1 | // Copyright 2022 Google LLC
|
2 | //
|
3 | // Licensed under the Apache License, Version 2.0 (the "License");
|
4 | // you may not use this file except in compliance with the License.
|
5 | // You may obtain a copy of the License at
|
6 | //
|
7 | // http://www.apache.org/licenses/LICENSE-2.0
|
8 | //
|
9 | // Unless required by applicable law or agreed to in writing, software
|
10 | // distributed under the License is distributed on an "AS IS" BASIS,
|
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12 | // See the License for the specific language governing permissions and
|
13 | // limitations under the License.
|
14 |
|
15 | import * as Long from "long";
|
16 | import {protobuf as $protobuf} from "google-gax";
|
17 | /** Namespace google. */
|
18 | export 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 { google.cloud.speech.v1.RecognizeRequest.verify|verify} messages.
|
150 | * message RecognizeRequest message or plain object to encode
|
151 | * [writer] Writer to encode to
|
152 | * 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 | /** LongRunningRecognizeRequest outputConfig */
|
222 | outputConfig?: (google.cloud.speech.v1.ITranscriptOutputConfig|null);
|
223 | }
|
224 |
|
225 | /** Represents a LongRunningRecognizeRequest. */
|
226 | class LongRunningRecognizeRequest implements ILongRunningRecognizeRequest {
|
227 |
|
228 | /**
|
229 | * Constructs a new LongRunningRecognizeRequest.
|
230 | * @param [properties] Properties to set
|
231 | */
|
232 | constructor(properties?: google.cloud.speech.v1.ILongRunningRecognizeRequest);
|
233 |
|
234 | /** LongRunningRecognizeRequest config. */
|
235 | public config?: (google.cloud.speech.v1.IRecognitionConfig|null);
|
236 |
|
237 | /** LongRunningRecognizeRequest audio. */
|
238 | public audio?: (google.cloud.speech.v1.IRecognitionAudio|null);
|
239 |
|
240 | /** LongRunningRecognizeRequest outputConfig. */
|
241 | public outputConfig?: (google.cloud.speech.v1.ITranscriptOutputConfig|null);
|
242 |
|
243 | /**
|
244 | * Creates a new LongRunningRecognizeRequest instance using the specified properties.
|
245 | * @param [properties] Properties to set
|
246 | * @returns LongRunningRecognizeRequest instance
|
247 | */
|
248 | public static create(properties?: google.cloud.speech.v1.ILongRunningRecognizeRequest): google.cloud.speech.v1.LongRunningRecognizeRequest;
|
249 |
|
250 | /**
|
251 | * Encodes the specified LongRunningRecognizeRequest message. Does not implicitly { google.cloud.speech.v1.LongRunningRecognizeRequest.verify|verify} messages.
|
252 | * message LongRunningRecognizeRequest message or plain object to encode
|
253 | * [writer] Writer to encode to
|
254 | * Writer
|
255 | */
|
256 | public static encode(message: google.cloud.speech.v1.ILongRunningRecognizeRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
257 |
|
258 | /**
|
259 | * Encodes the specified LongRunningRecognizeRequest message, length delimited. Does not implicitly {@link google.cloud.speech.v1.LongRunningRecognizeRequest.verify|verify} messages.
|
260 | * @param message LongRunningRecognizeRequest message or plain object to encode
|
261 | * @param [writer] Writer to encode to
|
262 | * @returns Writer
|
263 | */
|
264 | public static encodeDelimited(message: google.cloud.speech.v1.ILongRunningRecognizeRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
265 |
|
266 | /**
|
267 | * Decodes a LongRunningRecognizeRequest message from the specified reader or buffer.
|
268 | * @param reader Reader or buffer to decode from
|
269 | * @param [length] Message length if known beforehand
|
270 | * @returns LongRunningRecognizeRequest
|
271 | * @throws {Error} If the payload is not a reader or valid buffer
|
272 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
273 | */
|
274 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1.LongRunningRecognizeRequest;
|
275 |
|
276 | /**
|
277 | * Decodes a LongRunningRecognizeRequest message from the specified reader or buffer, length delimited.
|
278 | * @param reader Reader or buffer to decode from
|
279 | * @returns LongRunningRecognizeRequest
|
280 | * @throws {Error} If the payload is not a reader or valid buffer
|
281 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
282 | */
|
283 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1.LongRunningRecognizeRequest;
|
284 |
|
285 | /**
|
286 | * Verifies a LongRunningRecognizeRequest message.
|
287 | * @param message Plain object to verify
|
288 | * @returns `null` if valid, otherwise the reason why it is not
|
289 | */
|
290 | public static verify(message: { [k: string]: any }): (string|null);
|
291 |
|
292 | /**
|
293 | * Creates a LongRunningRecognizeRequest message from a plain object. Also converts values to their respective internal types.
|
294 | * @param object Plain object
|
295 | * @returns LongRunningRecognizeRequest
|
296 | */
|
297 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1.LongRunningRecognizeRequest;
|
298 |
|
299 | /**
|
300 | * Creates a plain object from a LongRunningRecognizeRequest message. Also converts values to other types if specified.
|
301 | * @param message LongRunningRecognizeRequest
|
302 | * @param [options] Conversion options
|
303 | * @returns Plain object
|
304 | */
|
305 | public static toObject(message: google.cloud.speech.v1.LongRunningRecognizeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
306 |
|
307 | /**
|
308 | * Converts this LongRunningRecognizeRequest to JSON.
|
309 | * @returns JSON object
|
310 | */
|
311 | public toJSON(): { [k: string]: any };
|
312 | }
|
313 |
|
314 | /** Properties of a TranscriptOutputConfig. */
|
315 | interface ITranscriptOutputConfig {
|
316 |
|
317 | /** TranscriptOutputConfig gcsUri */
|
318 | gcsUri?: (string|null);
|
319 | }
|
320 |
|
321 | /** Represents a TranscriptOutputConfig. */
|
322 | class TranscriptOutputConfig implements ITranscriptOutputConfig {
|
323 |
|
324 | /**
|
325 | * Constructs a new TranscriptOutputConfig.
|
326 | * @param [properties] Properties to set
|
327 | */
|
328 | constructor(properties?: google.cloud.speech.v1.ITranscriptOutputConfig);
|
329 |
|
330 | /** TranscriptOutputConfig gcsUri. */
|
331 | public gcsUri?: (string|null);
|
332 |
|
333 | /** TranscriptOutputConfig outputType. */
|
334 | public outputType?: "gcsUri";
|
335 |
|
336 | /**
|
337 | * Creates a new TranscriptOutputConfig instance using the specified properties.
|
338 | * @param [properties] Properties to set
|
339 | * @returns TranscriptOutputConfig instance
|
340 | */
|
341 | public static create(properties?: google.cloud.speech.v1.ITranscriptOutputConfig): google.cloud.speech.v1.TranscriptOutputConfig;
|
342 |
|
343 | /**
|
344 | * Encodes the specified TranscriptOutputConfig message. Does not implicitly { google.cloud.speech.v1.TranscriptOutputConfig.verify|verify} messages.
|
345 | * message TranscriptOutputConfig message or plain object to encode
|
346 | * [writer] Writer to encode to
|
347 | * Writer
|
348 | */
|
349 | public static encode(message: google.cloud.speech.v1.ITranscriptOutputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
350 |
|
351 | /**
|
352 | * Encodes the specified TranscriptOutputConfig message, length delimited. Does not implicitly {@link google.cloud.speech.v1.TranscriptOutputConfig.verify|verify} messages.
|
353 | * @param message TranscriptOutputConfig 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.ITranscriptOutputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
358 |
|
359 | /**
|
360 | * Decodes a TranscriptOutputConfig 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 TranscriptOutputConfig
|
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.TranscriptOutputConfig;
|
368 |
|
369 | /**
|
370 | * Decodes a TranscriptOutputConfig message from the specified reader or buffer, length delimited.
|
371 | * @param reader Reader or buffer to decode from
|
372 | * @returns TranscriptOutputConfig
|
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.TranscriptOutputConfig;
|
377 |
|
378 | /**
|
379 | * Verifies a TranscriptOutputConfig 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 TranscriptOutputConfig message from a plain object. Also converts values to their respective internal types.
|
387 | * @param object Plain object
|
388 | * @returns TranscriptOutputConfig
|
389 | */
|
390 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1.TranscriptOutputConfig;
|
391 |
|
392 | /**
|
393 | * Creates a plain object from a TranscriptOutputConfig message. Also converts values to other types if specified.
|
394 | * @param message TranscriptOutputConfig
|
395 | * @param [options] Conversion options
|
396 | * @returns Plain object
|
397 | */
|
398 | public static toObject(message: google.cloud.speech.v1.TranscriptOutputConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
399 |
|
400 | /**
|
401 | * Converts this TranscriptOutputConfig to JSON.
|
402 | * @returns JSON object
|
403 | */
|
404 | public toJSON(): { [k: string]: any };
|
405 | }
|
406 |
|
407 | /** Properties of a StreamingRecognizeRequest. */
|
408 | interface IStreamingRecognizeRequest {
|
409 |
|
410 | /** StreamingRecognizeRequest streamingConfig */
|
411 | streamingConfig?: (google.cloud.speech.v1.IStreamingRecognitionConfig|null);
|
412 |
|
413 | /** StreamingRecognizeRequest audioContent */
|
414 | audioContent?: (Uint8Array|string|null);
|
415 | }
|
416 |
|
417 | /** Represents a StreamingRecognizeRequest. */
|
418 | class StreamingRecognizeRequest implements IStreamingRecognizeRequest {
|
419 |
|
420 | /**
|
421 | * Constructs a new StreamingRecognizeRequest.
|
422 | * @param [properties] Properties to set
|
423 | */
|
424 | constructor(properties?: google.cloud.speech.v1.IStreamingRecognizeRequest);
|
425 |
|
426 | /** StreamingRecognizeRequest streamingConfig. */
|
427 | public streamingConfig?: (google.cloud.speech.v1.IStreamingRecognitionConfig|null);
|
428 |
|
429 | /** StreamingRecognizeRequest audioContent. */
|
430 | public audioContent?: (Uint8Array|string|null);
|
431 |
|
432 | /** StreamingRecognizeRequest streamingRequest. */
|
433 | public streamingRequest?: ("streamingConfig"|"audioContent");
|
434 |
|
435 | /**
|
436 | * Creates a new StreamingRecognizeRequest instance using the specified properties.
|
437 | * @param [properties] Properties to set
|
438 | * @returns StreamingRecognizeRequest instance
|
439 | */
|
440 | public static create(properties?: google.cloud.speech.v1.IStreamingRecognizeRequest): google.cloud.speech.v1.StreamingRecognizeRequest;
|
441 |
|
442 | /**
|
443 | * Encodes the specified StreamingRecognizeRequest message. Does not implicitly { google.cloud.speech.v1.StreamingRecognizeRequest.verify|verify} messages.
|
444 | * message StreamingRecognizeRequest message or plain object to encode
|
445 | * [writer] Writer to encode to
|
446 | * Writer
|
447 | */
|
448 | public static encode(message: google.cloud.speech.v1.IStreamingRecognizeRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
449 |
|
450 | /**
|
451 | * Encodes the specified StreamingRecognizeRequest message, length delimited. Does not implicitly {@link google.cloud.speech.v1.StreamingRecognizeRequest.verify|verify} messages.
|
452 | * @param message StreamingRecognizeRequest message or plain object to encode
|
453 | * @param [writer] Writer to encode to
|
454 | * @returns Writer
|
455 | */
|
456 | public static encodeDelimited(message: google.cloud.speech.v1.IStreamingRecognizeRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
457 |
|
458 | /**
|
459 | * Decodes a StreamingRecognizeRequest message from the specified reader or buffer.
|
460 | * @param reader Reader or buffer to decode from
|
461 | * @param [length] Message length if known beforehand
|
462 | * @returns StreamingRecognizeRequest
|
463 | * @throws {Error} If the payload is not a reader or valid buffer
|
464 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
465 | */
|
466 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1.StreamingRecognizeRequest;
|
467 |
|
468 | /**
|
469 | * Decodes a StreamingRecognizeRequest message from the specified reader or buffer, length delimited.
|
470 | * @param reader Reader or buffer to decode from
|
471 | * @returns StreamingRecognizeRequest
|
472 | * @throws {Error} If the payload is not a reader or valid buffer
|
473 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
474 | */
|
475 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1.StreamingRecognizeRequest;
|
476 |
|
477 | /**
|
478 | * Verifies a StreamingRecognizeRequest message.
|
479 | * @param message Plain object to verify
|
480 | * @returns `null` if valid, otherwise the reason why it is not
|
481 | */
|
482 | public static verify(message: { [k: string]: any }): (string|null);
|
483 |
|
484 | /**
|
485 | * Creates a StreamingRecognizeRequest message from a plain object. Also converts values to their respective internal types.
|
486 | * @param object Plain object
|
487 | * @returns StreamingRecognizeRequest
|
488 | */
|
489 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1.StreamingRecognizeRequest;
|
490 |
|
491 | /**
|
492 | * Creates a plain object from a StreamingRecognizeRequest message. Also converts values to other types if specified.
|
493 | * @param message StreamingRecognizeRequest
|
494 | * @param [options] Conversion options
|
495 | * @returns Plain object
|
496 | */
|
497 | public static toObject(message: google.cloud.speech.v1.StreamingRecognizeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
498 |
|
499 | /**
|
500 | * Converts this StreamingRecognizeRequest to JSON.
|
501 | * @returns JSON object
|
502 | */
|
503 | public toJSON(): { [k: string]: any };
|
504 | }
|
505 |
|
506 | /** Properties of a StreamingRecognitionConfig. */
|
507 | interface IStreamingRecognitionConfig {
|
508 |
|
509 | /** StreamingRecognitionConfig config */
|
510 | config?: (google.cloud.speech.v1.IRecognitionConfig|null);
|
511 |
|
512 | /** StreamingRecognitionConfig singleUtterance */
|
513 | singleUtterance?: (boolean|null);
|
514 |
|
515 | /** StreamingRecognitionConfig interimResults */
|
516 | interimResults?: (boolean|null);
|
517 | }
|
518 |
|
519 | /** Represents a StreamingRecognitionConfig. */
|
520 | class StreamingRecognitionConfig implements IStreamingRecognitionConfig {
|
521 |
|
522 | /**
|
523 | * Constructs a new StreamingRecognitionConfig.
|
524 | * @param [properties] Properties to set
|
525 | */
|
526 | constructor(properties?: google.cloud.speech.v1.IStreamingRecognitionConfig);
|
527 |
|
528 | /** StreamingRecognitionConfig config. */
|
529 | public config?: (google.cloud.speech.v1.IRecognitionConfig|null);
|
530 |
|
531 | /** StreamingRecognitionConfig singleUtterance. */
|
532 | public singleUtterance: boolean;
|
533 |
|
534 | /** StreamingRecognitionConfig interimResults. */
|
535 | public interimResults: boolean;
|
536 |
|
537 | /**
|
538 | * Creates a new StreamingRecognitionConfig instance using the specified properties.
|
539 | * @param [properties] Properties to set
|
540 | * @returns StreamingRecognitionConfig instance
|
541 | */
|
542 | public static create(properties?: google.cloud.speech.v1.IStreamingRecognitionConfig): google.cloud.speech.v1.StreamingRecognitionConfig;
|
543 |
|
544 | /**
|
545 | * Encodes the specified StreamingRecognitionConfig message. Does not implicitly { google.cloud.speech.v1.StreamingRecognitionConfig.verify|verify} messages.
|
546 | * message StreamingRecognitionConfig message or plain object to encode
|
547 | * [writer] Writer to encode to
|
548 | * Writer
|
549 | */
|
550 | public static encode(message: google.cloud.speech.v1.IStreamingRecognitionConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
551 |
|
552 | /**
|
553 | * Encodes the specified StreamingRecognitionConfig message, length delimited. Does not implicitly {@link google.cloud.speech.v1.StreamingRecognitionConfig.verify|verify} messages.
|
554 | * @param message StreamingRecognitionConfig message or plain object to encode
|
555 | * @param [writer] Writer to encode to
|
556 | * @returns Writer
|
557 | */
|
558 | public static encodeDelimited(message: google.cloud.speech.v1.IStreamingRecognitionConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
559 |
|
560 | /**
|
561 | * Decodes a StreamingRecognitionConfig message from the specified reader or buffer.
|
562 | * @param reader Reader or buffer to decode from
|
563 | * @param [length] Message length if known beforehand
|
564 | * @returns StreamingRecognitionConfig
|
565 | * @throws {Error} If the payload is not a reader or valid buffer
|
566 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
567 | */
|
568 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1.StreamingRecognitionConfig;
|
569 |
|
570 | /**
|
571 | * Decodes a StreamingRecognitionConfig message from the specified reader or buffer, length delimited.
|
572 | * @param reader Reader or buffer to decode from
|
573 | * @returns StreamingRecognitionConfig
|
574 | * @throws {Error} If the payload is not a reader or valid buffer
|
575 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
576 | */
|
577 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1.StreamingRecognitionConfig;
|
578 |
|
579 | /**
|
580 | * Verifies a StreamingRecognitionConfig message.
|
581 | * @param message Plain object to verify
|
582 | * @returns `null` if valid, otherwise the reason why it is not
|
583 | */
|
584 | public static verify(message: { [k: string]: any }): (string|null);
|
585 |
|
586 | /**
|
587 | * Creates a StreamingRecognitionConfig message from a plain object. Also converts values to their respective internal types.
|
588 | * @param object Plain object
|
589 | * @returns StreamingRecognitionConfig
|
590 | */
|
591 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1.StreamingRecognitionConfig;
|
592 |
|
593 | /**
|
594 | * Creates a plain object from a StreamingRecognitionConfig message. Also converts values to other types if specified.
|
595 | * @param message StreamingRecognitionConfig
|
596 | * @param [options] Conversion options
|
597 | * @returns Plain object
|
598 | */
|
599 | public static toObject(message: google.cloud.speech.v1.StreamingRecognitionConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
600 |
|
601 | /**
|
602 | * Converts this StreamingRecognitionConfig to JSON.
|
603 | * @returns JSON object
|
604 | */
|
605 | public toJSON(): { [k: string]: any };
|
606 | }
|
607 |
|
608 | /** Properties of a RecognitionConfig. */
|
609 | interface IRecognitionConfig {
|
610 |
|
611 | /** RecognitionConfig encoding */
|
612 | encoding?: (google.cloud.speech.v1.RecognitionConfig.AudioEncoding|keyof typeof google.cloud.speech.v1.RecognitionConfig.AudioEncoding|null);
|
613 |
|
614 | /** RecognitionConfig sampleRateHertz */
|
615 | sampleRateHertz?: (number|null);
|
616 |
|
617 | /** RecognitionConfig audioChannelCount */
|
618 | audioChannelCount?: (number|null);
|
619 |
|
620 | /** RecognitionConfig enableSeparateRecognitionPerChannel */
|
621 | enableSeparateRecognitionPerChannel?: (boolean|null);
|
622 |
|
623 | /** RecognitionConfig languageCode */
|
624 | languageCode?: (string|null);
|
625 |
|
626 | /** RecognitionConfig alternativeLanguageCodes */
|
627 | alternativeLanguageCodes?: (string[]|null);
|
628 |
|
629 | /** RecognitionConfig maxAlternatives */
|
630 | maxAlternatives?: (number|null);
|
631 |
|
632 | /** RecognitionConfig profanityFilter */
|
633 | profanityFilter?: (boolean|null);
|
634 |
|
635 | /** RecognitionConfig adaptation */
|
636 | adaptation?: (google.cloud.speech.v1.ISpeechAdaptation|null);
|
637 |
|
638 | /** RecognitionConfig speechContexts */
|
639 | speechContexts?: (google.cloud.speech.v1.ISpeechContext[]|null);
|
640 |
|
641 | /** RecognitionConfig enableWordTimeOffsets */
|
642 | enableWordTimeOffsets?: (boolean|null);
|
643 |
|
644 | /** RecognitionConfig enableWordConfidence */
|
645 | enableWordConfidence?: (boolean|null);
|
646 |
|
647 | /** RecognitionConfig enableAutomaticPunctuation */
|
648 | enableAutomaticPunctuation?: (boolean|null);
|
649 |
|
650 | /** RecognitionConfig enableSpokenPunctuation */
|
651 | enableSpokenPunctuation?: (google.protobuf.IBoolValue|null);
|
652 |
|
653 | /** RecognitionConfig enableSpokenEmojis */
|
654 | enableSpokenEmojis?: (google.protobuf.IBoolValue|null);
|
655 |
|
656 | /** RecognitionConfig diarizationConfig */
|
657 | diarizationConfig?: (google.cloud.speech.v1.ISpeakerDiarizationConfig|null);
|
658 |
|
659 | /** RecognitionConfig metadata */
|
660 | metadata?: (google.cloud.speech.v1.IRecognitionMetadata|null);
|
661 |
|
662 | /** RecognitionConfig model */
|
663 | model?: (string|null);
|
664 |
|
665 | /** RecognitionConfig useEnhanced */
|
666 | useEnhanced?: (boolean|null);
|
667 | }
|
668 |
|
669 | /** Represents a RecognitionConfig. */
|
670 | class RecognitionConfig implements IRecognitionConfig {
|
671 |
|
672 | /**
|
673 | * Constructs a new RecognitionConfig.
|
674 | * @param [properties] Properties to set
|
675 | */
|
676 | constructor(properties?: google.cloud.speech.v1.IRecognitionConfig);
|
677 |
|
678 | /** RecognitionConfig encoding. */
|
679 | public encoding: (google.cloud.speech.v1.RecognitionConfig.AudioEncoding|keyof typeof google.cloud.speech.v1.RecognitionConfig.AudioEncoding);
|
680 |
|
681 | /** RecognitionConfig sampleRateHertz. */
|
682 | public sampleRateHertz: number;
|
683 |
|
684 | /** RecognitionConfig audioChannelCount. */
|
685 | public audioChannelCount: number;
|
686 |
|
687 | /** RecognitionConfig enableSeparateRecognitionPerChannel. */
|
688 | public enableSeparateRecognitionPerChannel: boolean;
|
689 |
|
690 | /** RecognitionConfig languageCode. */
|
691 | public languageCode: string;
|
692 |
|
693 | /** RecognitionConfig alternativeLanguageCodes. */
|
694 | public alternativeLanguageCodes: string[];
|
695 |
|
696 | /** RecognitionConfig maxAlternatives. */
|
697 | public maxAlternatives: number;
|
698 |
|
699 | /** RecognitionConfig profanityFilter. */
|
700 | public profanityFilter: boolean;
|
701 |
|
702 | /** RecognitionConfig adaptation. */
|
703 | public adaptation?: (google.cloud.speech.v1.ISpeechAdaptation|null);
|
704 |
|
705 | /** RecognitionConfig speechContexts. */
|
706 | public speechContexts: google.cloud.speech.v1.ISpeechContext[];
|
707 |
|
708 | /** RecognitionConfig enableWordTimeOffsets. */
|
709 | public enableWordTimeOffsets: boolean;
|
710 |
|
711 | /** RecognitionConfig enableWordConfidence. */
|
712 | public enableWordConfidence: boolean;
|
713 |
|
714 | /** RecognitionConfig enableAutomaticPunctuation. */
|
715 | public enableAutomaticPunctuation: boolean;
|
716 |
|
717 | /** RecognitionConfig enableSpokenPunctuation. */
|
718 | public enableSpokenPunctuation?: (google.protobuf.IBoolValue|null);
|
719 |
|
720 | /** RecognitionConfig enableSpokenEmojis. */
|
721 | public enableSpokenEmojis?: (google.protobuf.IBoolValue|null);
|
722 |
|
723 | /** RecognitionConfig diarizationConfig. */
|
724 | public diarizationConfig?: (google.cloud.speech.v1.ISpeakerDiarizationConfig|null);
|
725 |
|
726 | /** RecognitionConfig metadata. */
|
727 | public metadata?: (google.cloud.speech.v1.IRecognitionMetadata|null);
|
728 |
|
729 | /** RecognitionConfig model. */
|
730 | public model: string;
|
731 |
|
732 | /** RecognitionConfig useEnhanced. */
|
733 | public useEnhanced: boolean;
|
734 |
|
735 | /**
|
736 | * Creates a new RecognitionConfig instance using the specified properties.
|
737 | * @param [properties] Properties to set
|
738 | * @returns RecognitionConfig instance
|
739 | */
|
740 | public static create(properties?: google.cloud.speech.v1.IRecognitionConfig): google.cloud.speech.v1.RecognitionConfig;
|
741 |
|
742 | /**
|
743 | * Encodes the specified RecognitionConfig message. Does not implicitly { google.cloud.speech.v1.RecognitionConfig.verify|verify} messages.
|
744 | * message RecognitionConfig message or plain object to encode
|
745 | * [writer] Writer to encode to
|
746 | * Writer
|
747 | */
|
748 | public static encode(message: google.cloud.speech.v1.IRecognitionConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
749 |
|
750 | /**
|
751 | * Encodes the specified RecognitionConfig message, length delimited. Does not implicitly {@link google.cloud.speech.v1.RecognitionConfig.verify|verify} messages.
|
752 | * @param message RecognitionConfig message or plain object to encode
|
753 | * @param [writer] Writer to encode to
|
754 | * @returns Writer
|
755 | */
|
756 | public static encodeDelimited(message: google.cloud.speech.v1.IRecognitionConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
757 |
|
758 | /**
|
759 | * Decodes a RecognitionConfig message from the specified reader or buffer.
|
760 | * @param reader Reader or buffer to decode from
|
761 | * @param [length] Message length if known beforehand
|
762 | * @returns RecognitionConfig
|
763 | * @throws {Error} If the payload is not a reader or valid buffer
|
764 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
765 | */
|
766 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1.RecognitionConfig;
|
767 |
|
768 | /**
|
769 | * Decodes a RecognitionConfig message from the specified reader or buffer, length delimited.
|
770 | * @param reader Reader or buffer to decode from
|
771 | * @returns RecognitionConfig
|
772 | * @throws {Error} If the payload is not a reader or valid buffer
|
773 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
774 | */
|
775 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1.RecognitionConfig;
|
776 |
|
777 | /**
|
778 | * Verifies a RecognitionConfig message.
|
779 | * @param message Plain object to verify
|
780 | * @returns `null` if valid, otherwise the reason why it is not
|
781 | */
|
782 | public static verify(message: { [k: string]: any }): (string|null);
|
783 |
|
784 | /**
|
785 | * Creates a RecognitionConfig message from a plain object. Also converts values to their respective internal types.
|
786 | * @param object Plain object
|
787 | * @returns RecognitionConfig
|
788 | */
|
789 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1.RecognitionConfig;
|
790 |
|
791 | /**
|
792 | * Creates a plain object from a RecognitionConfig message. Also converts values to other types if specified.
|
793 | * @param message RecognitionConfig
|
794 | * @param [options] Conversion options
|
795 | * @returns Plain object
|
796 | */
|
797 | public static toObject(message: google.cloud.speech.v1.RecognitionConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
798 |
|
799 | /**
|
800 | * Converts this RecognitionConfig to JSON.
|
801 | * @returns JSON object
|
802 | */
|
803 | public toJSON(): { [k: string]: any };
|
804 | }
|
805 |
|
806 | namespace RecognitionConfig {
|
807 |
|
808 | /** AudioEncoding enum. */
|
809 | enum AudioEncoding {
|
810 | ENCODING_UNSPECIFIED = 0,
|
811 | LINEAR16 = 1,
|
812 | FLAC = 2,
|
813 | MULAW = 3,
|
814 | AMR = 4,
|
815 | AMR_WB = 5,
|
816 | OGG_OPUS = 6,
|
817 | SPEEX_WITH_HEADER_BYTE = 7,
|
818 | WEBM_OPUS = 9
|
819 | }
|
820 | }
|
821 |
|
822 | /** Properties of a SpeakerDiarizationConfig. */
|
823 | interface ISpeakerDiarizationConfig {
|
824 |
|
825 | /** SpeakerDiarizationConfig enableSpeakerDiarization */
|
826 | enableSpeakerDiarization?: (boolean|null);
|
827 |
|
828 | /** SpeakerDiarizationConfig minSpeakerCount */
|
829 | minSpeakerCount?: (number|null);
|
830 |
|
831 | /** SpeakerDiarizationConfig maxSpeakerCount */
|
832 | maxSpeakerCount?: (number|null);
|
833 |
|
834 | /** SpeakerDiarizationConfig speakerTag */
|
835 | speakerTag?: (number|null);
|
836 | }
|
837 |
|
838 | /** Represents a SpeakerDiarizationConfig. */
|
839 | class SpeakerDiarizationConfig implements ISpeakerDiarizationConfig {
|
840 |
|
841 | /**
|
842 | * Constructs a new SpeakerDiarizationConfig.
|
843 | * @param [properties] Properties to set
|
844 | */
|
845 | constructor(properties?: google.cloud.speech.v1.ISpeakerDiarizationConfig);
|
846 |
|
847 | /** SpeakerDiarizationConfig enableSpeakerDiarization. */
|
848 | public enableSpeakerDiarization: boolean;
|
849 |
|
850 | /** SpeakerDiarizationConfig minSpeakerCount. */
|
851 | public minSpeakerCount: number;
|
852 |
|
853 | /** SpeakerDiarizationConfig maxSpeakerCount. */
|
854 | public maxSpeakerCount: number;
|
855 |
|
856 | /** SpeakerDiarizationConfig speakerTag. */
|
857 | public speakerTag: number;
|
858 |
|
859 | /**
|
860 | * Creates a new SpeakerDiarizationConfig instance using the specified properties.
|
861 | * @param [properties] Properties to set
|
862 | * @returns SpeakerDiarizationConfig instance
|
863 | */
|
864 | public static create(properties?: google.cloud.speech.v1.ISpeakerDiarizationConfig): google.cloud.speech.v1.SpeakerDiarizationConfig;
|
865 |
|
866 | /**
|
867 | * Encodes the specified SpeakerDiarizationConfig message. Does not implicitly { google.cloud.speech.v1.SpeakerDiarizationConfig.verify|verify} messages.
|
868 | * message SpeakerDiarizationConfig message or plain object to encode
|
869 | * [writer] Writer to encode to
|
870 | * Writer
|
871 | */
|
872 | public static encode(message: google.cloud.speech.v1.ISpeakerDiarizationConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
873 |
|
874 | /**
|
875 | * Encodes the specified SpeakerDiarizationConfig message, length delimited. Does not implicitly {@link google.cloud.speech.v1.SpeakerDiarizationConfig.verify|verify} messages.
|
876 | * @param message SpeakerDiarizationConfig message or plain object to encode
|
877 | * @param [writer] Writer to encode to
|
878 | * @returns Writer
|
879 | */
|
880 | public static encodeDelimited(message: google.cloud.speech.v1.ISpeakerDiarizationConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
881 |
|
882 | /**
|
883 | * Decodes a SpeakerDiarizationConfig message from the specified reader or buffer.
|
884 | * @param reader Reader or buffer to decode from
|
885 | * @param [length] Message length if known beforehand
|
886 | * @returns SpeakerDiarizationConfig
|
887 | * @throws {Error} If the payload is not a reader or valid buffer
|
888 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
889 | */
|
890 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1.SpeakerDiarizationConfig;
|
891 |
|
892 | /**
|
893 | * Decodes a SpeakerDiarizationConfig message from the specified reader or buffer, length delimited.
|
894 | * @param reader Reader or buffer to decode from
|
895 | * @returns SpeakerDiarizationConfig
|
896 | * @throws {Error} If the payload is not a reader or valid buffer
|
897 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
898 | */
|
899 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1.SpeakerDiarizationConfig;
|
900 |
|
901 | /**
|
902 | * Verifies a SpeakerDiarizationConfig message.
|
903 | * @param message Plain object to verify
|
904 | * @returns `null` if valid, otherwise the reason why it is not
|
905 | */
|
906 | public static verify(message: { [k: string]: any }): (string|null);
|
907 |
|
908 | /**
|
909 | * Creates a SpeakerDiarizationConfig message from a plain object. Also converts values to their respective internal types.
|
910 | * @param object Plain object
|
911 | * @returns SpeakerDiarizationConfig
|
912 | */
|
913 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1.SpeakerDiarizationConfig;
|
914 |
|
915 | /**
|
916 | * Creates a plain object from a SpeakerDiarizationConfig message. Also converts values to other types if specified.
|
917 | * @param message SpeakerDiarizationConfig
|
918 | * @param [options] Conversion options
|
919 | * @returns Plain object
|
920 | */
|
921 | public static toObject(message: google.cloud.speech.v1.SpeakerDiarizationConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
922 |
|
923 | /**
|
924 | * Converts this SpeakerDiarizationConfig to JSON.
|
925 | * @returns JSON object
|
926 | */
|
927 | public toJSON(): { [k: string]: any };
|
928 | }
|
929 |
|
930 | /** Properties of a RecognitionMetadata. */
|
931 | interface IRecognitionMetadata {
|
932 |
|
933 | /** RecognitionMetadata interactionType */
|
934 | interactionType?: (google.cloud.speech.v1.RecognitionMetadata.InteractionType|keyof typeof google.cloud.speech.v1.RecognitionMetadata.InteractionType|null);
|
935 |
|
936 | /** RecognitionMetadata industryNaicsCodeOfAudio */
|
937 | industryNaicsCodeOfAudio?: (number|null);
|
938 |
|
939 | /** RecognitionMetadata microphoneDistance */
|
940 | microphoneDistance?: (google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance|keyof typeof google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance|null);
|
941 |
|
942 | /** RecognitionMetadata originalMediaType */
|
943 | originalMediaType?: (google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType|keyof typeof google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType|null);
|
944 |
|
945 | /** RecognitionMetadata recordingDeviceType */
|
946 | recordingDeviceType?: (google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType|keyof typeof google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType|null);
|
947 |
|
948 | /** RecognitionMetadata recordingDeviceName */
|
949 | recordingDeviceName?: (string|null);
|
950 |
|
951 | /** RecognitionMetadata originalMimeType */
|
952 | originalMimeType?: (string|null);
|
953 |
|
954 | /** RecognitionMetadata audioTopic */
|
955 | audioTopic?: (string|null);
|
956 | }
|
957 |
|
958 | /** Represents a RecognitionMetadata. */
|
959 | class RecognitionMetadata implements IRecognitionMetadata {
|
960 |
|
961 | /**
|
962 | * Constructs a new RecognitionMetadata.
|
963 | * @param [properties] Properties to set
|
964 | */
|
965 | constructor(properties?: google.cloud.speech.v1.IRecognitionMetadata);
|
966 |
|
967 | /** RecognitionMetadata interactionType. */
|
968 | public interactionType: (google.cloud.speech.v1.RecognitionMetadata.InteractionType|keyof typeof google.cloud.speech.v1.RecognitionMetadata.InteractionType);
|
969 |
|
970 | /** RecognitionMetadata industryNaicsCodeOfAudio. */
|
971 | public industryNaicsCodeOfAudio: number;
|
972 |
|
973 | /** RecognitionMetadata microphoneDistance. */
|
974 | public microphoneDistance: (google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance|keyof typeof google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance);
|
975 |
|
976 | /** RecognitionMetadata originalMediaType. */
|
977 | public originalMediaType: (google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType|keyof typeof google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType);
|
978 |
|
979 | /** RecognitionMetadata recordingDeviceType. */
|
980 | public recordingDeviceType: (google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType|keyof typeof google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType);
|
981 |
|
982 | /** RecognitionMetadata recordingDeviceName. */
|
983 | public recordingDeviceName: string;
|
984 |
|
985 | /** RecognitionMetadata originalMimeType. */
|
986 | public originalMimeType: string;
|
987 |
|
988 | /** RecognitionMetadata audioTopic. */
|
989 | public audioTopic: string;
|
990 |
|
991 | /**
|
992 | * Creates a new RecognitionMetadata instance using the specified properties.
|
993 | * @param [properties] Properties to set
|
994 | * @returns RecognitionMetadata instance
|
995 | */
|
996 | public static create(properties?: google.cloud.speech.v1.IRecognitionMetadata): google.cloud.speech.v1.RecognitionMetadata;
|
997 |
|
998 | /**
|
999 | * Encodes the specified RecognitionMetadata message. Does not implicitly { google.cloud.speech.v1.RecognitionMetadata.verify|verify} messages.
|
1000 | * message RecognitionMetadata message or plain object to encode
|
1001 | * [writer] Writer to encode to
|
1002 | * Writer
|
1003 | */
|
1004 | public static encode(message: google.cloud.speech.v1.IRecognitionMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
|
1005 |
|
1006 | /**
|
1007 | * Encodes the specified RecognitionMetadata message, length delimited. Does not implicitly {@link google.cloud.speech.v1.RecognitionMetadata.verify|verify} messages.
|
1008 | * @param message RecognitionMetadata message or plain object to encode
|
1009 | * @param [writer] Writer to encode to
|
1010 | * @returns Writer
|
1011 | */
|
1012 | public static encodeDelimited(message: google.cloud.speech.v1.IRecognitionMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
|
1013 |
|
1014 | /**
|
1015 | * Decodes a RecognitionMetadata message from the specified reader or buffer.
|
1016 | * @param reader Reader or buffer to decode from
|
1017 | * @param [length] Message length if known beforehand
|
1018 | * @returns RecognitionMetadata
|
1019 | * @throws {Error} If the payload is not a reader or valid buffer
|
1020 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1021 | */
|
1022 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1.RecognitionMetadata;
|
1023 |
|
1024 | /**
|
1025 | * Decodes a RecognitionMetadata message from the specified reader or buffer, length delimited.
|
1026 | * @param reader Reader or buffer to decode from
|
1027 | * @returns RecognitionMetadata
|
1028 | * @throws {Error} If the payload is not a reader or valid buffer
|
1029 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1030 | */
|
1031 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1.RecognitionMetadata;
|
1032 |
|
1033 | /**
|
1034 | * Verifies a RecognitionMetadata message.
|
1035 | * @param message Plain object to verify
|
1036 | * @returns `null` if valid, otherwise the reason why it is not
|
1037 | */
|
1038 | public static verify(message: { [k: string]: any }): (string|null);
|
1039 |
|
1040 | /**
|
1041 | * Creates a RecognitionMetadata message from a plain object. Also converts values to their respective internal types.
|
1042 | * @param object Plain object
|
1043 | * @returns RecognitionMetadata
|
1044 | */
|
1045 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1.RecognitionMetadata;
|
1046 |
|
1047 | /**
|
1048 | * Creates a plain object from a RecognitionMetadata message. Also converts values to other types if specified.
|
1049 | * @param message RecognitionMetadata
|
1050 | * @param [options] Conversion options
|
1051 | * @returns Plain object
|
1052 | */
|
1053 | public static toObject(message: google.cloud.speech.v1.RecognitionMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
1054 |
|
1055 | /**
|
1056 | * Converts this RecognitionMetadata to JSON.
|
1057 | * @returns JSON object
|
1058 | */
|
1059 | public toJSON(): { [k: string]: any };
|
1060 | }
|
1061 |
|
1062 | namespace RecognitionMetadata {
|
1063 |
|
1064 | /** InteractionType enum. */
|
1065 | enum InteractionType {
|
1066 | INTERACTION_TYPE_UNSPECIFIED = 0,
|
1067 | DISCUSSION = 1,
|
1068 | PRESENTATION = 2,
|
1069 | PHONE_CALL = 3,
|
1070 | VOICEMAIL = 4,
|
1071 | PROFESSIONALLY_PRODUCED = 5,
|
1072 | VOICE_SEARCH = 6,
|
1073 | VOICE_COMMAND = 7,
|
1074 | DICTATION = 8
|
1075 | }
|
1076 |
|
1077 | /** MicrophoneDistance enum. */
|
1078 | enum MicrophoneDistance {
|
1079 | MICROPHONE_DISTANCE_UNSPECIFIED = 0,
|
1080 | NEARFIELD = 1,
|
1081 | MIDFIELD = 2,
|
1082 | FARFIELD = 3
|
1083 | }
|
1084 |
|
1085 | /** OriginalMediaType enum. */
|
1086 | enum OriginalMediaType {
|
1087 | ORIGINAL_MEDIA_TYPE_UNSPECIFIED = 0,
|
1088 | AUDIO = 1,
|
1089 | VIDEO = 2
|
1090 | }
|
1091 |
|
1092 | /** RecordingDeviceType enum. */
|
1093 | enum RecordingDeviceType {
|
1094 | RECORDING_DEVICE_TYPE_UNSPECIFIED = 0,
|
1095 | SMARTPHONE = 1,
|
1096 | PC = 2,
|
1097 | PHONE_LINE = 3,
|
1098 | VEHICLE = 4,
|
1099 | OTHER_OUTDOOR_DEVICE = 5,
|
1100 | OTHER_INDOOR_DEVICE = 6
|
1101 | }
|
1102 | }
|
1103 |
|
1104 | /** Properties of a SpeechContext. */
|
1105 | interface ISpeechContext {
|
1106 |
|
1107 | /** SpeechContext phrases */
|
1108 | phrases?: (string[]|null);
|
1109 |
|
1110 | /** SpeechContext boost */
|
1111 | boost?: (number|null);
|
1112 | }
|
1113 |
|
1114 | /** Represents a SpeechContext. */
|
1115 | class SpeechContext implements ISpeechContext {
|
1116 |
|
1117 | /**
|
1118 | * Constructs a new SpeechContext.
|
1119 | * @param [properties] Properties to set
|
1120 | */
|
1121 | constructor(properties?: google.cloud.speech.v1.ISpeechContext);
|
1122 |
|
1123 | /** SpeechContext phrases. */
|
1124 | public phrases: string[];
|
1125 |
|
1126 | /** SpeechContext boost. */
|
1127 | public boost: number;
|
1128 |
|
1129 | /**
|
1130 | * Creates a new SpeechContext instance using the specified properties.
|
1131 | * @param [properties] Properties to set
|
1132 | * @returns SpeechContext instance
|
1133 | */
|
1134 | public static create(properties?: google.cloud.speech.v1.ISpeechContext): google.cloud.speech.v1.SpeechContext;
|
1135 |
|
1136 | /**
|
1137 | * Encodes the specified SpeechContext message. Does not implicitly { google.cloud.speech.v1.SpeechContext.verify|verify} messages.
|
1138 | * message SpeechContext message or plain object to encode
|
1139 | * [writer] Writer to encode to
|
1140 | * Writer
|
1141 | */
|
1142 | public static encode(message: google.cloud.speech.v1.ISpeechContext, writer?: $protobuf.Writer): $protobuf.Writer;
|
1143 |
|
1144 | /**
|
1145 | * Encodes the specified SpeechContext message, length delimited. Does not implicitly {@link google.cloud.speech.v1.SpeechContext.verify|verify} messages.
|
1146 | * @param message SpeechContext message or plain object to encode
|
1147 | * @param [writer] Writer to encode to
|
1148 | * @returns Writer
|
1149 | */
|
1150 | public static encodeDelimited(message: google.cloud.speech.v1.ISpeechContext, writer?: $protobuf.Writer): $protobuf.Writer;
|
1151 |
|
1152 | /**
|
1153 | * Decodes a SpeechContext message from the specified reader or buffer.
|
1154 | * @param reader Reader or buffer to decode from
|
1155 | * @param [length] Message length if known beforehand
|
1156 | * @returns SpeechContext
|
1157 | * @throws {Error} If the payload is not a reader or valid buffer
|
1158 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1159 | */
|
1160 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1.SpeechContext;
|
1161 |
|
1162 | /**
|
1163 | * Decodes a SpeechContext message from the specified reader or buffer, length delimited.
|
1164 | * @param reader Reader or buffer to decode from
|
1165 | * @returns SpeechContext
|
1166 | * @throws {Error} If the payload is not a reader or valid buffer
|
1167 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1168 | */
|
1169 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1.SpeechContext;
|
1170 |
|
1171 | /**
|
1172 | * Verifies a SpeechContext message.
|
1173 | * @param message Plain object to verify
|
1174 | * @returns `null` if valid, otherwise the reason why it is not
|
1175 | */
|
1176 | public static verify(message: { [k: string]: any }): (string|null);
|
1177 |
|
1178 | /**
|
1179 | * Creates a SpeechContext message from a plain object. Also converts values to their respective internal types.
|
1180 | * @param object Plain object
|
1181 | * @returns SpeechContext
|
1182 | */
|
1183 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1.SpeechContext;
|
1184 |
|
1185 | /**
|
1186 | * Creates a plain object from a SpeechContext message. Also converts values to other types if specified.
|
1187 | * @param message SpeechContext
|
1188 | * @param [options] Conversion options
|
1189 | * @returns Plain object
|
1190 | */
|
1191 | public static toObject(message: google.cloud.speech.v1.SpeechContext, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
1192 |
|
1193 | /**
|
1194 | * Converts this SpeechContext to JSON.
|
1195 | * @returns JSON object
|
1196 | */
|
1197 | public toJSON(): { [k: string]: any };
|
1198 | }
|
1199 |
|
1200 | /** Properties of a RecognitionAudio. */
|
1201 | interface IRecognitionAudio {
|
1202 |
|
1203 | /** RecognitionAudio content */
|
1204 | content?: (Uint8Array|string|null);
|
1205 |
|
1206 | /** RecognitionAudio uri */
|
1207 | uri?: (string|null);
|
1208 | }
|
1209 |
|
1210 | /** Represents a RecognitionAudio. */
|
1211 | class RecognitionAudio implements IRecognitionAudio {
|
1212 |
|
1213 | /**
|
1214 | * Constructs a new RecognitionAudio.
|
1215 | * @param [properties] Properties to set
|
1216 | */
|
1217 | constructor(properties?: google.cloud.speech.v1.IRecognitionAudio);
|
1218 |
|
1219 | /** RecognitionAudio content. */
|
1220 | public content?: (Uint8Array|string|null);
|
1221 |
|
1222 | /** RecognitionAudio uri. */
|
1223 | public uri?: (string|null);
|
1224 |
|
1225 | /** RecognitionAudio audioSource. */
|
1226 | public audioSource?: ("content"|"uri");
|
1227 |
|
1228 | /**
|
1229 | * Creates a new RecognitionAudio instance using the specified properties.
|
1230 | * @param [properties] Properties to set
|
1231 | * @returns RecognitionAudio instance
|
1232 | */
|
1233 | public static create(properties?: google.cloud.speech.v1.IRecognitionAudio): google.cloud.speech.v1.RecognitionAudio;
|
1234 |
|
1235 | /**
|
1236 | * Encodes the specified RecognitionAudio message. Does not implicitly { google.cloud.speech.v1.RecognitionAudio.verify|verify} messages.
|
1237 | * message RecognitionAudio message or plain object to encode
|
1238 | * [writer] Writer to encode to
|
1239 | * Writer
|
1240 | */
|
1241 | public static encode(message: google.cloud.speech.v1.IRecognitionAudio, writer?: $protobuf.Writer): $protobuf.Writer;
|
1242 |
|
1243 | /**
|
1244 | * Encodes the specified RecognitionAudio message, length delimited. Does not implicitly {@link google.cloud.speech.v1.RecognitionAudio.verify|verify} messages.
|
1245 | * @param message RecognitionAudio message or plain object to encode
|
1246 | * @param [writer] Writer to encode to
|
1247 | * @returns Writer
|
1248 | */
|
1249 | public static encodeDelimited(message: google.cloud.speech.v1.IRecognitionAudio, writer?: $protobuf.Writer): $protobuf.Writer;
|
1250 |
|
1251 | /**
|
1252 | * Decodes a RecognitionAudio message from the specified reader or buffer.
|
1253 | * @param reader Reader or buffer to decode from
|
1254 | * @param [length] Message length if known beforehand
|
1255 | * @returns RecognitionAudio
|
1256 | * @throws {Error} If the payload is not a reader or valid buffer
|
1257 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1258 | */
|
1259 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1.RecognitionAudio;
|
1260 |
|
1261 | /**
|
1262 | * Decodes a RecognitionAudio message from the specified reader or buffer, length delimited.
|
1263 | * @param reader Reader or buffer to decode from
|
1264 | * @returns RecognitionAudio
|
1265 | * @throws {Error} If the payload is not a reader or valid buffer
|
1266 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1267 | */
|
1268 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1.RecognitionAudio;
|
1269 |
|
1270 | /**
|
1271 | * Verifies a RecognitionAudio message.
|
1272 | * @param message Plain object to verify
|
1273 | * @returns `null` if valid, otherwise the reason why it is not
|
1274 | */
|
1275 | public static verify(message: { [k: string]: any }): (string|null);
|
1276 |
|
1277 | /**
|
1278 | * Creates a RecognitionAudio message from a plain object. Also converts values to their respective internal types.
|
1279 | * @param object Plain object
|
1280 | * @returns RecognitionAudio
|
1281 | */
|
1282 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1.RecognitionAudio;
|
1283 |
|
1284 | /**
|
1285 | * Creates a plain object from a RecognitionAudio message. Also converts values to other types if specified.
|
1286 | * @param message RecognitionAudio
|
1287 | * @param [options] Conversion options
|
1288 | * @returns Plain object
|
1289 | */
|
1290 | public static toObject(message: google.cloud.speech.v1.RecognitionAudio, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
1291 |
|
1292 | /**
|
1293 | * Converts this RecognitionAudio to JSON.
|
1294 | * @returns JSON object
|
1295 | */
|
1296 | public toJSON(): { [k: string]: any };
|
1297 | }
|
1298 |
|
1299 | /** Properties of a RecognizeResponse. */
|
1300 | interface IRecognizeResponse {
|
1301 |
|
1302 | /** RecognizeResponse results */
|
1303 | results?: (google.cloud.speech.v1.ISpeechRecognitionResult[]|null);
|
1304 |
|
1305 | /** RecognizeResponse totalBilledTime */
|
1306 | totalBilledTime?: (google.protobuf.IDuration|null);
|
1307 | }
|
1308 |
|
1309 | /** Represents a RecognizeResponse. */
|
1310 | class RecognizeResponse implements IRecognizeResponse {
|
1311 |
|
1312 | /**
|
1313 | * Constructs a new RecognizeResponse.
|
1314 | * @param [properties] Properties to set
|
1315 | */
|
1316 | constructor(properties?: google.cloud.speech.v1.IRecognizeResponse);
|
1317 |
|
1318 | /** RecognizeResponse results. */
|
1319 | public results: google.cloud.speech.v1.ISpeechRecognitionResult[];
|
1320 |
|
1321 | /** RecognizeResponse totalBilledTime. */
|
1322 | public totalBilledTime?: (google.protobuf.IDuration|null);
|
1323 |
|
1324 | /**
|
1325 | * Creates a new RecognizeResponse instance using the specified properties.
|
1326 | * @param [properties] Properties to set
|
1327 | * @returns RecognizeResponse instance
|
1328 | */
|
1329 | public static create(properties?: google.cloud.speech.v1.IRecognizeResponse): google.cloud.speech.v1.RecognizeResponse;
|
1330 |
|
1331 | /**
|
1332 | * Encodes the specified RecognizeResponse message. Does not implicitly { google.cloud.speech.v1.RecognizeResponse.verify|verify} messages.
|
1333 | * message RecognizeResponse message or plain object to encode
|
1334 | * [writer] Writer to encode to
|
1335 | * Writer
|
1336 | */
|
1337 | public static encode(message: google.cloud.speech.v1.IRecognizeResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
1338 |
|
1339 | /**
|
1340 | * Encodes the specified RecognizeResponse message, length delimited. Does not implicitly {@link google.cloud.speech.v1.RecognizeResponse.verify|verify} messages.
|
1341 | * @param message RecognizeResponse message or plain object to encode
|
1342 | * @param [writer] Writer to encode to
|
1343 | * @returns Writer
|
1344 | */
|
1345 | public static encodeDelimited(message: google.cloud.speech.v1.IRecognizeResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
1346 |
|
1347 | /**
|
1348 | * Decodes a RecognizeResponse message from the specified reader or buffer.
|
1349 | * @param reader Reader or buffer to decode from
|
1350 | * @param [length] Message length if known beforehand
|
1351 | * @returns RecognizeResponse
|
1352 | * @throws {Error} If the payload is not a reader or valid buffer
|
1353 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1354 | */
|
1355 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1.RecognizeResponse;
|
1356 |
|
1357 | /**
|
1358 | * Decodes a RecognizeResponse message from the specified reader or buffer, length delimited.
|
1359 | * @param reader Reader or buffer to decode from
|
1360 | * @returns RecognizeResponse
|
1361 | * @throws {Error} If the payload is not a reader or valid buffer
|
1362 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1363 | */
|
1364 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1.RecognizeResponse;
|
1365 |
|
1366 | /**
|
1367 | * Verifies a RecognizeResponse message.
|
1368 | * @param message Plain object to verify
|
1369 | * @returns `null` if valid, otherwise the reason why it is not
|
1370 | */
|
1371 | public static verify(message: { [k: string]: any }): (string|null);
|
1372 |
|
1373 | /**
|
1374 | * Creates a RecognizeResponse message from a plain object. Also converts values to their respective internal types.
|
1375 | * @param object Plain object
|
1376 | * @returns RecognizeResponse
|
1377 | */
|
1378 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1.RecognizeResponse;
|
1379 |
|
1380 | /**
|
1381 | * Creates a plain object from a RecognizeResponse message. Also converts values to other types if specified.
|
1382 | * @param message RecognizeResponse
|
1383 | * @param [options] Conversion options
|
1384 | * @returns Plain object
|
1385 | */
|
1386 | public static toObject(message: google.cloud.speech.v1.RecognizeResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
1387 |
|
1388 | /**
|
1389 | * Converts this RecognizeResponse to JSON.
|
1390 | * @returns JSON object
|
1391 | */
|
1392 | public toJSON(): { [k: string]: any };
|
1393 | }
|
1394 |
|
1395 | /** Properties of a LongRunningRecognizeResponse. */
|
1396 | interface ILongRunningRecognizeResponse {
|
1397 |
|
1398 | /** LongRunningRecognizeResponse results */
|
1399 | results?: (google.cloud.speech.v1.ISpeechRecognitionResult[]|null);
|
1400 |
|
1401 | /** LongRunningRecognizeResponse totalBilledTime */
|
1402 | totalBilledTime?: (google.protobuf.IDuration|null);
|
1403 |
|
1404 | /** LongRunningRecognizeResponse outputConfig */
|
1405 | outputConfig?: (google.cloud.speech.v1.ITranscriptOutputConfig|null);
|
1406 |
|
1407 | /** LongRunningRecognizeResponse outputError */
|
1408 | outputError?: (google.rpc.IStatus|null);
|
1409 | }
|
1410 |
|
1411 | /** Represents a LongRunningRecognizeResponse. */
|
1412 | class LongRunningRecognizeResponse implements ILongRunningRecognizeResponse {
|
1413 |
|
1414 | /**
|
1415 | * Constructs a new LongRunningRecognizeResponse.
|
1416 | * @param [properties] Properties to set
|
1417 | */
|
1418 | constructor(properties?: google.cloud.speech.v1.ILongRunningRecognizeResponse);
|
1419 |
|
1420 | /** LongRunningRecognizeResponse results. */
|
1421 | public results: google.cloud.speech.v1.ISpeechRecognitionResult[];
|
1422 |
|
1423 | /** LongRunningRecognizeResponse totalBilledTime. */
|
1424 | public totalBilledTime?: (google.protobuf.IDuration|null);
|
1425 |
|
1426 | /** LongRunningRecognizeResponse outputConfig. */
|
1427 | public outputConfig?: (google.cloud.speech.v1.ITranscriptOutputConfig|null);
|
1428 |
|
1429 | /** LongRunningRecognizeResponse outputError. */
|
1430 | public outputError?: (google.rpc.IStatus|null);
|
1431 |
|
1432 | /**
|
1433 | * Creates a new LongRunningRecognizeResponse instance using the specified properties.
|
1434 | * @param [properties] Properties to set
|
1435 | * @returns LongRunningRecognizeResponse instance
|
1436 | */
|
1437 | public static create(properties?: google.cloud.speech.v1.ILongRunningRecognizeResponse): google.cloud.speech.v1.LongRunningRecognizeResponse;
|
1438 |
|
1439 | /**
|
1440 | * Encodes the specified LongRunningRecognizeResponse message. Does not implicitly { google.cloud.speech.v1.LongRunningRecognizeResponse.verify|verify} messages.
|
1441 | * message LongRunningRecognizeResponse message or plain object to encode
|
1442 | * [writer] Writer to encode to
|
1443 | * Writer
|
1444 | */
|
1445 | public static encode(message: google.cloud.speech.v1.ILongRunningRecognizeResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
1446 |
|
1447 | /**
|
1448 | * Encodes the specified LongRunningRecognizeResponse message, length delimited. Does not implicitly {@link google.cloud.speech.v1.LongRunningRecognizeResponse.verify|verify} messages.
|
1449 | * @param message LongRunningRecognizeResponse message or plain object to encode
|
1450 | * @param [writer] Writer to encode to
|
1451 | * @returns Writer
|
1452 | */
|
1453 | public static encodeDelimited(message: google.cloud.speech.v1.ILongRunningRecognizeResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
1454 |
|
1455 | /**
|
1456 | * Decodes a LongRunningRecognizeResponse message from the specified reader or buffer.
|
1457 | * @param reader Reader or buffer to decode from
|
1458 | * @param [length] Message length if known beforehand
|
1459 | * @returns LongRunningRecognizeResponse
|
1460 | * @throws {Error} If the payload is not a reader or valid buffer
|
1461 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1462 | */
|
1463 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1.LongRunningRecognizeResponse;
|
1464 |
|
1465 | /**
|
1466 | * Decodes a LongRunningRecognizeResponse message from the specified reader or buffer, length delimited.
|
1467 | * @param reader Reader or buffer to decode from
|
1468 | * @returns LongRunningRecognizeResponse
|
1469 | * @throws {Error} If the payload is not a reader or valid buffer
|
1470 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1471 | */
|
1472 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1.LongRunningRecognizeResponse;
|
1473 |
|
1474 | /**
|
1475 | * Verifies a LongRunningRecognizeResponse message.
|
1476 | * @param message Plain object to verify
|
1477 | * @returns `null` if valid, otherwise the reason why it is not
|
1478 | */
|
1479 | public static verify(message: { [k: string]: any }): (string|null);
|
1480 |
|
1481 | /**
|
1482 | * Creates a LongRunningRecognizeResponse message from a plain object. Also converts values to their respective internal types.
|
1483 | * @param object Plain object
|
1484 | * @returns LongRunningRecognizeResponse
|
1485 | */
|
1486 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1.LongRunningRecognizeResponse;
|
1487 |
|
1488 | /**
|
1489 | * Creates a plain object from a LongRunningRecognizeResponse message. Also converts values to other types if specified.
|
1490 | * @param message LongRunningRecognizeResponse
|
1491 | * @param [options] Conversion options
|
1492 | * @returns Plain object
|
1493 | */
|
1494 | public static toObject(message: google.cloud.speech.v1.LongRunningRecognizeResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
1495 |
|
1496 | /**
|
1497 | * Converts this LongRunningRecognizeResponse to JSON.
|
1498 | * @returns JSON object
|
1499 | */
|
1500 | public toJSON(): { [k: string]: any };
|
1501 | }
|
1502 |
|
1503 | /** Properties of a LongRunningRecognizeMetadata. */
|
1504 | interface ILongRunningRecognizeMetadata {
|
1505 |
|
1506 | /** LongRunningRecognizeMetadata progressPercent */
|
1507 | progressPercent?: (number|null);
|
1508 |
|
1509 | /** LongRunningRecognizeMetadata startTime */
|
1510 | startTime?: (google.protobuf.ITimestamp|null);
|
1511 |
|
1512 | /** LongRunningRecognizeMetadata lastUpdateTime */
|
1513 | lastUpdateTime?: (google.protobuf.ITimestamp|null);
|
1514 |
|
1515 | /** LongRunningRecognizeMetadata uri */
|
1516 | uri?: (string|null);
|
1517 | }
|
1518 |
|
1519 | /** Represents a LongRunningRecognizeMetadata. */
|
1520 | class LongRunningRecognizeMetadata implements ILongRunningRecognizeMetadata {
|
1521 |
|
1522 | /**
|
1523 | * Constructs a new LongRunningRecognizeMetadata.
|
1524 | * @param [properties] Properties to set
|
1525 | */
|
1526 | constructor(properties?: google.cloud.speech.v1.ILongRunningRecognizeMetadata);
|
1527 |
|
1528 | /** LongRunningRecognizeMetadata progressPercent. */
|
1529 | public progressPercent: number;
|
1530 |
|
1531 | /** LongRunningRecognizeMetadata startTime. */
|
1532 | public startTime?: (google.protobuf.ITimestamp|null);
|
1533 |
|
1534 | /** LongRunningRecognizeMetadata lastUpdateTime. */
|
1535 | public lastUpdateTime?: (google.protobuf.ITimestamp|null);
|
1536 |
|
1537 | /** LongRunningRecognizeMetadata uri. */
|
1538 | public uri: string;
|
1539 |
|
1540 | /**
|
1541 | * Creates a new LongRunningRecognizeMetadata instance using the specified properties.
|
1542 | * @param [properties] Properties to set
|
1543 | * @returns LongRunningRecognizeMetadata instance
|
1544 | */
|
1545 | public static create(properties?: google.cloud.speech.v1.ILongRunningRecognizeMetadata): google.cloud.speech.v1.LongRunningRecognizeMetadata;
|
1546 |
|
1547 | /**
|
1548 | * Encodes the specified LongRunningRecognizeMetadata message. Does not implicitly { google.cloud.speech.v1.LongRunningRecognizeMetadata.verify|verify} messages.
|
1549 | * message LongRunningRecognizeMetadata message or plain object to encode
|
1550 | * [writer] Writer to encode to
|
1551 | * Writer
|
1552 | */
|
1553 | public static encode(message: google.cloud.speech.v1.ILongRunningRecognizeMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
|
1554 |
|
1555 | /**
|
1556 | * Encodes the specified LongRunningRecognizeMetadata message, length delimited. Does not implicitly {@link google.cloud.speech.v1.LongRunningRecognizeMetadata.verify|verify} messages.
|
1557 | * @param message LongRunningRecognizeMetadata message or plain object to encode
|
1558 | * @param [writer] Writer to encode to
|
1559 | * @returns Writer
|
1560 | */
|
1561 | public static encodeDelimited(message: google.cloud.speech.v1.ILongRunningRecognizeMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
|
1562 |
|
1563 | /**
|
1564 | * Decodes a LongRunningRecognizeMetadata message from the specified reader or buffer.
|
1565 | * @param reader Reader or buffer to decode from
|
1566 | * @param [length] Message length if known beforehand
|
1567 | * @returns LongRunningRecognizeMetadata
|
1568 | * @throws {Error} If the payload is not a reader or valid buffer
|
1569 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1570 | */
|
1571 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1.LongRunningRecognizeMetadata;
|
1572 |
|
1573 | /**
|
1574 | * Decodes a LongRunningRecognizeMetadata message from the specified reader or buffer, length delimited.
|
1575 | * @param reader Reader or buffer to decode from
|
1576 | * @returns LongRunningRecognizeMetadata
|
1577 | * @throws {Error} If the payload is not a reader or valid buffer
|
1578 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1579 | */
|
1580 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1.LongRunningRecognizeMetadata;
|
1581 |
|
1582 | /**
|
1583 | * Verifies a LongRunningRecognizeMetadata message.
|
1584 | * @param message Plain object to verify
|
1585 | * @returns `null` if valid, otherwise the reason why it is not
|
1586 | */
|
1587 | public static verify(message: { [k: string]: any }): (string|null);
|
1588 |
|
1589 | /**
|
1590 | * Creates a LongRunningRecognizeMetadata message from a plain object. Also converts values to their respective internal types.
|
1591 | * @param object Plain object
|
1592 | * @returns LongRunningRecognizeMetadata
|
1593 | */
|
1594 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1.LongRunningRecognizeMetadata;
|
1595 |
|
1596 | /**
|
1597 | * Creates a plain object from a LongRunningRecognizeMetadata message. Also converts values to other types if specified.
|
1598 | * @param message LongRunningRecognizeMetadata
|
1599 | * @param [options] Conversion options
|
1600 | * @returns Plain object
|
1601 | */
|
1602 | public static toObject(message: google.cloud.speech.v1.LongRunningRecognizeMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
1603 |
|
1604 | /**
|
1605 | * Converts this LongRunningRecognizeMetadata to JSON.
|
1606 | * @returns JSON object
|
1607 | */
|
1608 | public toJSON(): { [k: string]: any };
|
1609 | }
|
1610 |
|
1611 | /** Properties of a StreamingRecognizeResponse. */
|
1612 | interface IStreamingRecognizeResponse {
|
1613 |
|
1614 | /** StreamingRecognizeResponse error */
|
1615 | error?: (google.rpc.IStatus|null);
|
1616 |
|
1617 | /** StreamingRecognizeResponse results */
|
1618 | results?: (google.cloud.speech.v1.IStreamingRecognitionResult[]|null);
|
1619 |
|
1620 | /** StreamingRecognizeResponse speechEventType */
|
1621 | speechEventType?: (google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType|keyof typeof google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType|null);
|
1622 |
|
1623 | /** StreamingRecognizeResponse totalBilledTime */
|
1624 | totalBilledTime?: (google.protobuf.IDuration|null);
|
1625 | }
|
1626 |
|
1627 | /** Represents a StreamingRecognizeResponse. */
|
1628 | class StreamingRecognizeResponse implements IStreamingRecognizeResponse {
|
1629 |
|
1630 | /**
|
1631 | * Constructs a new StreamingRecognizeResponse.
|
1632 | * @param [properties] Properties to set
|
1633 | */
|
1634 | constructor(properties?: google.cloud.speech.v1.IStreamingRecognizeResponse);
|
1635 |
|
1636 | /** StreamingRecognizeResponse error. */
|
1637 | public error?: (google.rpc.IStatus|null);
|
1638 |
|
1639 | /** StreamingRecognizeResponse results. */
|
1640 | public results: google.cloud.speech.v1.IStreamingRecognitionResult[];
|
1641 |
|
1642 | /** StreamingRecognizeResponse speechEventType. */
|
1643 | public speechEventType: (google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType|keyof typeof google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType);
|
1644 |
|
1645 | /** StreamingRecognizeResponse totalBilledTime. */
|
1646 | public totalBilledTime?: (google.protobuf.IDuration|null);
|
1647 |
|
1648 | /**
|
1649 | * Creates a new StreamingRecognizeResponse instance using the specified properties.
|
1650 | * @param [properties] Properties to set
|
1651 | * @returns StreamingRecognizeResponse instance
|
1652 | */
|
1653 | public static create(properties?: google.cloud.speech.v1.IStreamingRecognizeResponse): google.cloud.speech.v1.StreamingRecognizeResponse;
|
1654 |
|
1655 | /**
|
1656 | * Encodes the specified StreamingRecognizeResponse message. Does not implicitly { google.cloud.speech.v1.StreamingRecognizeResponse.verify|verify} messages.
|
1657 | * message StreamingRecognizeResponse message or plain object to encode
|
1658 | * [writer] Writer to encode to
|
1659 | * Writer
|
1660 | */
|
1661 | public static encode(message: google.cloud.speech.v1.IStreamingRecognizeResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
1662 |
|
1663 | /**
|
1664 | * Encodes the specified StreamingRecognizeResponse message, length delimited. Does not implicitly {@link google.cloud.speech.v1.StreamingRecognizeResponse.verify|verify} messages.
|
1665 | * @param message StreamingRecognizeResponse message or plain object to encode
|
1666 | * @param [writer] Writer to encode to
|
1667 | * @returns Writer
|
1668 | */
|
1669 | public static encodeDelimited(message: google.cloud.speech.v1.IStreamingRecognizeResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
1670 |
|
1671 | /**
|
1672 | * Decodes a StreamingRecognizeResponse message from the specified reader or buffer.
|
1673 | * @param reader Reader or buffer to decode from
|
1674 | * @param [length] Message length if known beforehand
|
1675 | * @returns StreamingRecognizeResponse
|
1676 | * @throws {Error} If the payload is not a reader or valid buffer
|
1677 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1678 | */
|
1679 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1.StreamingRecognizeResponse;
|
1680 |
|
1681 | /**
|
1682 | * Decodes a StreamingRecognizeResponse message from the specified reader or buffer, length delimited.
|
1683 | * @param reader Reader or buffer to decode from
|
1684 | * @returns StreamingRecognizeResponse
|
1685 | * @throws {Error} If the payload is not a reader or valid buffer
|
1686 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1687 | */
|
1688 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1.StreamingRecognizeResponse;
|
1689 |
|
1690 | /**
|
1691 | * Verifies a StreamingRecognizeResponse message.
|
1692 | * @param message Plain object to verify
|
1693 | * @returns `null` if valid, otherwise the reason why it is not
|
1694 | */
|
1695 | public static verify(message: { [k: string]: any }): (string|null);
|
1696 |
|
1697 | /**
|
1698 | * Creates a StreamingRecognizeResponse message from a plain object. Also converts values to their respective internal types.
|
1699 | * @param object Plain object
|
1700 | * @returns StreamingRecognizeResponse
|
1701 | */
|
1702 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1.StreamingRecognizeResponse;
|
1703 |
|
1704 | /**
|
1705 | * Creates a plain object from a StreamingRecognizeResponse message. Also converts values to other types if specified.
|
1706 | * @param message StreamingRecognizeResponse
|
1707 | * @param [options] Conversion options
|
1708 | * @returns Plain object
|
1709 | */
|
1710 | public static toObject(message: google.cloud.speech.v1.StreamingRecognizeResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
1711 |
|
1712 | /**
|
1713 | * Converts this StreamingRecognizeResponse to JSON.
|
1714 | * @returns JSON object
|
1715 | */
|
1716 | public toJSON(): { [k: string]: any };
|
1717 | }
|
1718 |
|
1719 | namespace StreamingRecognizeResponse {
|
1720 |
|
1721 | /** SpeechEventType enum. */
|
1722 | enum SpeechEventType {
|
1723 | SPEECH_EVENT_UNSPECIFIED = 0,
|
1724 | END_OF_SINGLE_UTTERANCE = 1
|
1725 | }
|
1726 | }
|
1727 |
|
1728 | /** Properties of a StreamingRecognitionResult. */
|
1729 | interface IStreamingRecognitionResult {
|
1730 |
|
1731 | /** StreamingRecognitionResult alternatives */
|
1732 | alternatives?: (google.cloud.speech.v1.ISpeechRecognitionAlternative[]|null);
|
1733 |
|
1734 | /** StreamingRecognitionResult isFinal */
|
1735 | isFinal?: (boolean|null);
|
1736 |
|
1737 | /** StreamingRecognitionResult stability */
|
1738 | stability?: (number|null);
|
1739 |
|
1740 | /** StreamingRecognitionResult resultEndTime */
|
1741 | resultEndTime?: (google.protobuf.IDuration|null);
|
1742 |
|
1743 | /** StreamingRecognitionResult channelTag */
|
1744 | channelTag?: (number|null);
|
1745 |
|
1746 | /** StreamingRecognitionResult languageCode */
|
1747 | languageCode?: (string|null);
|
1748 | }
|
1749 |
|
1750 | /** Represents a StreamingRecognitionResult. */
|
1751 | class StreamingRecognitionResult implements IStreamingRecognitionResult {
|
1752 |
|
1753 | /**
|
1754 | * Constructs a new StreamingRecognitionResult.
|
1755 | * @param [properties] Properties to set
|
1756 | */
|
1757 | constructor(properties?: google.cloud.speech.v1.IStreamingRecognitionResult);
|
1758 |
|
1759 | /** StreamingRecognitionResult alternatives. */
|
1760 | public alternatives: google.cloud.speech.v1.ISpeechRecognitionAlternative[];
|
1761 |
|
1762 | /** StreamingRecognitionResult isFinal. */
|
1763 | public isFinal: boolean;
|
1764 |
|
1765 | /** StreamingRecognitionResult stability. */
|
1766 | public stability: number;
|
1767 |
|
1768 | /** StreamingRecognitionResult resultEndTime. */
|
1769 | public resultEndTime?: (google.protobuf.IDuration|null);
|
1770 |
|
1771 | /** StreamingRecognitionResult channelTag. */
|
1772 | public channelTag: number;
|
1773 |
|
1774 | /** StreamingRecognitionResult languageCode. */
|
1775 | public languageCode: string;
|
1776 |
|
1777 | /**
|
1778 | * Creates a new StreamingRecognitionResult instance using the specified properties.
|
1779 | * @param [properties] Properties to set
|
1780 | * @returns StreamingRecognitionResult instance
|
1781 | */
|
1782 | public static create(properties?: google.cloud.speech.v1.IStreamingRecognitionResult): google.cloud.speech.v1.StreamingRecognitionResult;
|
1783 |
|
1784 | /**
|
1785 | * Encodes the specified StreamingRecognitionResult message. Does not implicitly { google.cloud.speech.v1.StreamingRecognitionResult.verify|verify} messages.
|
1786 | * message StreamingRecognitionResult message or plain object to encode
|
1787 | * [writer] Writer to encode to
|
1788 | * Writer
|
1789 | */
|
1790 | public static encode(message: google.cloud.speech.v1.IStreamingRecognitionResult, writer?: $protobuf.Writer): $protobuf.Writer;
|
1791 |
|
1792 | /**
|
1793 | * Encodes the specified StreamingRecognitionResult message, length delimited. Does not implicitly {@link google.cloud.speech.v1.StreamingRecognitionResult.verify|verify} messages.
|
1794 | * @param message StreamingRecognitionResult message or plain object to encode
|
1795 | * @param [writer] Writer to encode to
|
1796 | * @returns Writer
|
1797 | */
|
1798 | public static encodeDelimited(message: google.cloud.speech.v1.IStreamingRecognitionResult, writer?: $protobuf.Writer): $protobuf.Writer;
|
1799 |
|
1800 | /**
|
1801 | * Decodes a StreamingRecognitionResult message from the specified reader or buffer.
|
1802 | * @param reader Reader or buffer to decode from
|
1803 | * @param [length] Message length if known beforehand
|
1804 | * @returns StreamingRecognitionResult
|
1805 | * @throws {Error} If the payload is not a reader or valid buffer
|
1806 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1807 | */
|
1808 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1.StreamingRecognitionResult;
|
1809 |
|
1810 | /**
|
1811 | * Decodes a StreamingRecognitionResult message from the specified reader or buffer, length delimited.
|
1812 | * @param reader Reader or buffer to decode from
|
1813 | * @returns StreamingRecognitionResult
|
1814 | * @throws {Error} If the payload is not a reader or valid buffer
|
1815 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1816 | */
|
1817 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1.StreamingRecognitionResult;
|
1818 |
|
1819 | /**
|
1820 | * Verifies a StreamingRecognitionResult message.
|
1821 | * @param message Plain object to verify
|
1822 | * @returns `null` if valid, otherwise the reason why it is not
|
1823 | */
|
1824 | public static verify(message: { [k: string]: any }): (string|null);
|
1825 |
|
1826 | /**
|
1827 | * Creates a StreamingRecognitionResult message from a plain object. Also converts values to their respective internal types.
|
1828 | * @param object Plain object
|
1829 | * @returns StreamingRecognitionResult
|
1830 | */
|
1831 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1.StreamingRecognitionResult;
|
1832 |
|
1833 | /**
|
1834 | * Creates a plain object from a StreamingRecognitionResult message. Also converts values to other types if specified.
|
1835 | * @param message StreamingRecognitionResult
|
1836 | * @param [options] Conversion options
|
1837 | * @returns Plain object
|
1838 | */
|
1839 | public static toObject(message: google.cloud.speech.v1.StreamingRecognitionResult, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
1840 |
|
1841 | /**
|
1842 | * Converts this StreamingRecognitionResult to JSON.
|
1843 | * @returns JSON object
|
1844 | */
|
1845 | public toJSON(): { [k: string]: any };
|
1846 | }
|
1847 |
|
1848 | /** Properties of a SpeechRecognitionResult. */
|
1849 | interface ISpeechRecognitionResult {
|
1850 |
|
1851 | /** SpeechRecognitionResult alternatives */
|
1852 | alternatives?: (google.cloud.speech.v1.ISpeechRecognitionAlternative[]|null);
|
1853 |
|
1854 | /** SpeechRecognitionResult channelTag */
|
1855 | channelTag?: (number|null);
|
1856 |
|
1857 | /** SpeechRecognitionResult resultEndTime */
|
1858 | resultEndTime?: (google.protobuf.IDuration|null);
|
1859 |
|
1860 | /** SpeechRecognitionResult languageCode */
|
1861 | languageCode?: (string|null);
|
1862 | }
|
1863 |
|
1864 | /** Represents a SpeechRecognitionResult. */
|
1865 | class SpeechRecognitionResult implements ISpeechRecognitionResult {
|
1866 |
|
1867 | /**
|
1868 | * Constructs a new SpeechRecognitionResult.
|
1869 | * @param [properties] Properties to set
|
1870 | */
|
1871 | constructor(properties?: google.cloud.speech.v1.ISpeechRecognitionResult);
|
1872 |
|
1873 | /** SpeechRecognitionResult alternatives. */
|
1874 | public alternatives: google.cloud.speech.v1.ISpeechRecognitionAlternative[];
|
1875 |
|
1876 | /** SpeechRecognitionResult channelTag. */
|
1877 | public channelTag: number;
|
1878 |
|
1879 | /** SpeechRecognitionResult resultEndTime. */
|
1880 | public resultEndTime?: (google.protobuf.IDuration|null);
|
1881 |
|
1882 | /** SpeechRecognitionResult languageCode. */
|
1883 | public languageCode: string;
|
1884 |
|
1885 | /**
|
1886 | * Creates a new SpeechRecognitionResult instance using the specified properties.
|
1887 | * @param [properties] Properties to set
|
1888 | * @returns SpeechRecognitionResult instance
|
1889 | */
|
1890 | public static create(properties?: google.cloud.speech.v1.ISpeechRecognitionResult): google.cloud.speech.v1.SpeechRecognitionResult;
|
1891 |
|
1892 | /**
|
1893 | * Encodes the specified SpeechRecognitionResult message. Does not implicitly { google.cloud.speech.v1.SpeechRecognitionResult.verify|verify} messages.
|
1894 | * message SpeechRecognitionResult message or plain object to encode
|
1895 | * [writer] Writer to encode to
|
1896 | * Writer
|
1897 | */
|
1898 | public static encode(message: google.cloud.speech.v1.ISpeechRecognitionResult, writer?: $protobuf.Writer): $protobuf.Writer;
|
1899 |
|
1900 | /**
|
1901 | * Encodes the specified SpeechRecognitionResult message, length delimited. Does not implicitly {@link google.cloud.speech.v1.SpeechRecognitionResult.verify|verify} messages.
|
1902 | * @param message SpeechRecognitionResult message or plain object to encode
|
1903 | * @param [writer] Writer to encode to
|
1904 | * @returns Writer
|
1905 | */
|
1906 | public static encodeDelimited(message: google.cloud.speech.v1.ISpeechRecognitionResult, writer?: $protobuf.Writer): $protobuf.Writer;
|
1907 |
|
1908 | /**
|
1909 | * Decodes a SpeechRecognitionResult message from the specified reader or buffer.
|
1910 | * @param reader Reader or buffer to decode from
|
1911 | * @param [length] Message length if known beforehand
|
1912 | * @returns SpeechRecognitionResult
|
1913 | * @throws {Error} If the payload is not a reader or valid buffer
|
1914 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1915 | */
|
1916 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1.SpeechRecognitionResult;
|
1917 |
|
1918 | /**
|
1919 | * Decodes a SpeechRecognitionResult message from the specified reader or buffer, length delimited.
|
1920 | * @param reader Reader or buffer to decode from
|
1921 | * @returns SpeechRecognitionResult
|
1922 | * @throws {Error} If the payload is not a reader or valid buffer
|
1923 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1924 | */
|
1925 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1.SpeechRecognitionResult;
|
1926 |
|
1927 | /**
|
1928 | * Verifies a SpeechRecognitionResult message.
|
1929 | * @param message Plain object to verify
|
1930 | * @returns `null` if valid, otherwise the reason why it is not
|
1931 | */
|
1932 | public static verify(message: { [k: string]: any }): (string|null);
|
1933 |
|
1934 | /**
|
1935 | * Creates a SpeechRecognitionResult message from a plain object. Also converts values to their respective internal types.
|
1936 | * @param object Plain object
|
1937 | * @returns SpeechRecognitionResult
|
1938 | */
|
1939 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1.SpeechRecognitionResult;
|
1940 |
|
1941 | /**
|
1942 | * Creates a plain object from a SpeechRecognitionResult message. Also converts values to other types if specified.
|
1943 | * @param message SpeechRecognitionResult
|
1944 | * @param [options] Conversion options
|
1945 | * @returns Plain object
|
1946 | */
|
1947 | public static toObject(message: google.cloud.speech.v1.SpeechRecognitionResult, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
1948 |
|
1949 | /**
|
1950 | * Converts this SpeechRecognitionResult to JSON.
|
1951 | * @returns JSON object
|
1952 | */
|
1953 | public toJSON(): { [k: string]: any };
|
1954 | }
|
1955 |
|
1956 | /** Properties of a SpeechRecognitionAlternative. */
|
1957 | interface ISpeechRecognitionAlternative {
|
1958 |
|
1959 | /** SpeechRecognitionAlternative transcript */
|
1960 | transcript?: (string|null);
|
1961 |
|
1962 | /** SpeechRecognitionAlternative confidence */
|
1963 | confidence?: (number|null);
|
1964 |
|
1965 | /** SpeechRecognitionAlternative words */
|
1966 | words?: (google.cloud.speech.v1.IWordInfo[]|null);
|
1967 | }
|
1968 |
|
1969 | /** Represents a SpeechRecognitionAlternative. */
|
1970 | class SpeechRecognitionAlternative implements ISpeechRecognitionAlternative {
|
1971 |
|
1972 | /**
|
1973 | * Constructs a new SpeechRecognitionAlternative.
|
1974 | * @param [properties] Properties to set
|
1975 | */
|
1976 | constructor(properties?: google.cloud.speech.v1.ISpeechRecognitionAlternative);
|
1977 |
|
1978 | /** SpeechRecognitionAlternative transcript. */
|
1979 | public transcript: string;
|
1980 |
|
1981 | /** SpeechRecognitionAlternative confidence. */
|
1982 | public confidence: number;
|
1983 |
|
1984 | /** SpeechRecognitionAlternative words. */
|
1985 | public words: google.cloud.speech.v1.IWordInfo[];
|
1986 |
|
1987 | /**
|
1988 | * Creates a new SpeechRecognitionAlternative instance using the specified properties.
|
1989 | * @param [properties] Properties to set
|
1990 | * @returns SpeechRecognitionAlternative instance
|
1991 | */
|
1992 | public static create(properties?: google.cloud.speech.v1.ISpeechRecognitionAlternative): google.cloud.speech.v1.SpeechRecognitionAlternative;
|
1993 |
|
1994 | /**
|
1995 | * Encodes the specified SpeechRecognitionAlternative message. Does not implicitly { google.cloud.speech.v1.SpeechRecognitionAlternative.verify|verify} messages.
|
1996 | * message SpeechRecognitionAlternative message or plain object to encode
|
1997 | * [writer] Writer to encode to
|
1998 | * Writer
|
1999 | */
|
2000 | public static encode(message: google.cloud.speech.v1.ISpeechRecognitionAlternative, writer?: $protobuf.Writer): $protobuf.Writer;
|
2001 |
|
2002 | /**
|
2003 | * Encodes the specified SpeechRecognitionAlternative message, length delimited. Does not implicitly {@link google.cloud.speech.v1.SpeechRecognitionAlternative.verify|verify} messages.
|
2004 | * @param message SpeechRecognitionAlternative message or plain object to encode
|
2005 | * @param [writer] Writer to encode to
|
2006 | * @returns Writer
|
2007 | */
|
2008 | public static encodeDelimited(message: google.cloud.speech.v1.ISpeechRecognitionAlternative, writer?: $protobuf.Writer): $protobuf.Writer;
|
2009 |
|
2010 | /**
|
2011 | * Decodes a SpeechRecognitionAlternative message from the specified reader or buffer.
|
2012 | * @param reader Reader or buffer to decode from
|
2013 | * @param [length] Message length if known beforehand
|
2014 | * @returns SpeechRecognitionAlternative
|
2015 | * @throws {Error} If the payload is not a reader or valid buffer
|
2016 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
2017 | */
|
2018 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1.SpeechRecognitionAlternative;
|
2019 |
|
2020 | /**
|
2021 | * Decodes a SpeechRecognitionAlternative message from the specified reader or buffer, length delimited.
|
2022 | * @param reader Reader or buffer to decode from
|
2023 | * @returns SpeechRecognitionAlternative
|
2024 | * @throws {Error} If the payload is not a reader or valid buffer
|
2025 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
2026 | */
|
2027 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1.SpeechRecognitionAlternative;
|
2028 |
|
2029 | /**
|
2030 | * Verifies a SpeechRecognitionAlternative message.
|
2031 | * @param message Plain object to verify
|
2032 | * @returns `null` if valid, otherwise the reason why it is not
|
2033 | */
|
2034 | public static verify(message: { [k: string]: any }): (string|null);
|
2035 |
|
2036 | /**
|
2037 | * Creates a SpeechRecognitionAlternative message from a plain object. Also converts values to their respective internal types.
|
2038 | * @param object Plain object
|
2039 | * @returns SpeechRecognitionAlternative
|
2040 | */
|
2041 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1.SpeechRecognitionAlternative;
|
2042 |
|
2043 | /**
|
2044 | * Creates a plain object from a SpeechRecognitionAlternative message. Also converts values to other types if specified.
|
2045 | * @param message SpeechRecognitionAlternative
|
2046 | * @param [options] Conversion options
|
2047 | * @returns Plain object
|
2048 | */
|
2049 | public static toObject(message: google.cloud.speech.v1.SpeechRecognitionAlternative, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
2050 |
|
2051 | /**
|
2052 | * Converts this SpeechRecognitionAlternative to JSON.
|
2053 | * @returns JSON object
|
2054 | */
|
2055 | public toJSON(): { [k: string]: any };
|
2056 | }
|
2057 |
|
2058 | /** Properties of a WordInfo. */
|
2059 | interface IWordInfo {
|
2060 |
|
2061 | /** WordInfo startTime */
|
2062 | startTime?: (google.protobuf.IDuration|null);
|
2063 |
|
2064 | /** WordInfo endTime */
|
2065 | endTime?: (google.protobuf.IDuration|null);
|
2066 |
|
2067 | /** WordInfo word */
|
2068 | word?: (string|null);
|
2069 |
|
2070 | /** WordInfo confidence */
|
2071 | confidence?: (number|null);
|
2072 |
|
2073 | /** WordInfo speakerTag */
|
2074 | speakerTag?: (number|null);
|
2075 | }
|
2076 |
|
2077 | /** Represents a WordInfo. */
|
2078 | class WordInfo implements IWordInfo {
|
2079 |
|
2080 | /**
|
2081 | * Constructs a new WordInfo.
|
2082 | * @param [properties] Properties to set
|
2083 | */
|
2084 | constructor(properties?: google.cloud.speech.v1.IWordInfo);
|
2085 |
|
2086 | /** WordInfo startTime. */
|
2087 | public startTime?: (google.protobuf.IDuration|null);
|
2088 |
|
2089 | /** WordInfo endTime. */
|
2090 | public endTime?: (google.protobuf.IDuration|null);
|
2091 |
|
2092 | /** WordInfo word. */
|
2093 | public word: string;
|
2094 |
|
2095 | /** WordInfo confidence. */
|
2096 | public confidence: number;
|
2097 |
|
2098 | /** WordInfo speakerTag. */
|
2099 | public speakerTag: number;
|
2100 |
|
2101 | /**
|
2102 | * Creates a new WordInfo instance using the specified properties.
|
2103 | * @param [properties] Properties to set
|
2104 | * @returns WordInfo instance
|
2105 | */
|
2106 | public static create(properties?: google.cloud.speech.v1.IWordInfo): google.cloud.speech.v1.WordInfo;
|
2107 |
|
2108 | /**
|
2109 | * Encodes the specified WordInfo message. Does not implicitly { google.cloud.speech.v1.WordInfo.verify|verify} messages.
|
2110 | * message WordInfo message or plain object to encode
|
2111 | * [writer] Writer to encode to
|
2112 | * Writer
|
2113 | */
|
2114 | public static encode(message: google.cloud.speech.v1.IWordInfo, writer?: $protobuf.Writer): $protobuf.Writer;
|
2115 |
|
2116 | /**
|
2117 | * Encodes the specified WordInfo message, length delimited. Does not implicitly {@link google.cloud.speech.v1.WordInfo.verify|verify} messages.
|
2118 | * @param message WordInfo message or plain object to encode
|
2119 | * @param [writer] Writer to encode to
|
2120 | * @returns Writer
|
2121 | */
|
2122 | public static encodeDelimited(message: google.cloud.speech.v1.IWordInfo, writer?: $protobuf.Writer): $protobuf.Writer;
|
2123 |
|
2124 | /**
|
2125 | * Decodes a WordInfo message from the specified reader or buffer.
|
2126 | * @param reader Reader or buffer to decode from
|
2127 | * @param [length] Message length if known beforehand
|
2128 | * @returns WordInfo
|
2129 | * @throws {Error} If the payload is not a reader or valid buffer
|
2130 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
2131 | */
|
2132 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1.WordInfo;
|
2133 |
|
2134 | /**
|
2135 | * Decodes a WordInfo message from the specified reader or buffer, length delimited.
|
2136 | * @param reader Reader or buffer to decode from
|
2137 | * @returns WordInfo
|
2138 | * @throws {Error} If the payload is not a reader or valid buffer
|
2139 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
2140 | */
|
2141 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1.WordInfo;
|
2142 |
|
2143 | /**
|
2144 | * Verifies a WordInfo message.
|
2145 | * @param message Plain object to verify
|
2146 | * @returns `null` if valid, otherwise the reason why it is not
|
2147 | */
|
2148 | public static verify(message: { [k: string]: any }): (string|null);
|
2149 |
|
2150 | /**
|
2151 | * Creates a WordInfo message from a plain object. Also converts values to their respective internal types.
|
2152 | * @param object Plain object
|
2153 | * @returns WordInfo
|
2154 | */
|
2155 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1.WordInfo;
|
2156 |
|
2157 | /**
|
2158 | * Creates a plain object from a WordInfo message. Also converts values to other types if specified.
|
2159 | * @param message WordInfo
|
2160 | * @param [options] Conversion options
|
2161 | * @returns Plain object
|
2162 | */
|
2163 | public static toObject(message: google.cloud.speech.v1.WordInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
2164 |
|
2165 | /**
|
2166 | * Converts this WordInfo to JSON.
|
2167 | * @returns JSON object
|
2168 | */
|
2169 | public toJSON(): { [k: string]: any };
|
2170 | }
|
2171 |
|
2172 | /** Properties of a CustomClass. */
|
2173 | interface ICustomClass {
|
2174 |
|
2175 | /** CustomClass name */
|
2176 | name?: (string|null);
|
2177 |
|
2178 | /** CustomClass customClassId */
|
2179 | customClassId?: (string|null);
|
2180 |
|
2181 | /** CustomClass items */
|
2182 | items?: (google.cloud.speech.v1.CustomClass.IClassItem[]|null);
|
2183 | }
|
2184 |
|
2185 | /** Represents a CustomClass. */
|
2186 | class CustomClass implements ICustomClass {
|
2187 |
|
2188 | /**
|
2189 | * Constructs a new CustomClass.
|
2190 | * @param [properties] Properties to set
|
2191 | */
|
2192 | constructor(properties?: google.cloud.speech.v1.ICustomClass);
|
2193 |
|
2194 | /** CustomClass name. */
|
2195 | public name: string;
|
2196 |
|
2197 | /** CustomClass customClassId. */
|
2198 | public customClassId: string;
|
2199 |
|
2200 | /** CustomClass items. */
|
2201 | public items: google.cloud.speech.v1.CustomClass.IClassItem[];
|
2202 |
|
2203 | /**
|
2204 | * Creates a new CustomClass instance using the specified properties.
|
2205 | * @param [properties] Properties to set
|
2206 | * @returns CustomClass instance
|
2207 | */
|
2208 | public static create(properties?: google.cloud.speech.v1.ICustomClass): google.cloud.speech.v1.CustomClass;
|
2209 |
|
2210 | /**
|
2211 | * Encodes the specified CustomClass message. Does not implicitly { google.cloud.speech.v1.CustomClass.verify|verify} messages.
|
2212 | * message CustomClass message or plain object to encode
|
2213 | * [writer] Writer to encode to
|
2214 | * Writer
|
2215 | */
|
2216 | public static encode(message: google.cloud.speech.v1.ICustomClass, writer?: $protobuf.Writer): $protobuf.Writer;
|
2217 |
|
2218 | /**
|
2219 | * Encodes the specified CustomClass message, length delimited. Does not implicitly {@link google.cloud.speech.v1.CustomClass.verify|verify} messages.
|
2220 | * @param message CustomClass message or plain object to encode
|
2221 | * @param [writer] Writer to encode to
|
2222 | * @returns Writer
|
2223 | */
|
2224 | public static encodeDelimited(message: google.cloud.speech.v1.ICustomClass, writer?: $protobuf.Writer): $protobuf.Writer;
|
2225 |
|
2226 | /**
|
2227 | * Decodes a CustomClass message from the specified reader or buffer.
|
2228 | * @param reader Reader or buffer to decode from
|
2229 | * @param [length] Message length if known beforehand
|
2230 | * @returns CustomClass
|
2231 | * @throws {Error} If the payload is not a reader or valid buffer
|
2232 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
2233 | */
|
2234 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1.CustomClass;
|
2235 |
|
2236 | /**
|
2237 | * Decodes a CustomClass message from the specified reader or buffer, length delimited.
|
2238 | * @param reader Reader or buffer to decode from
|
2239 | * @returns CustomClass
|
2240 | * @throws {Error} If the payload is not a reader or valid buffer
|
2241 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
2242 | */
|
2243 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1.CustomClass;
|
2244 |
|
2245 | /**
|
2246 | * Verifies a CustomClass message.
|
2247 | * @param message Plain object to verify
|
2248 | * @returns `null` if valid, otherwise the reason why it is not
|
2249 | */
|
2250 | public static verify(message: { [k: string]: any }): (string|null);
|
2251 |
|
2252 | /**
|
2253 | * Creates a CustomClass message from a plain object. Also converts values to their respective internal types.
|
2254 | * @param object Plain object
|
2255 | * @returns CustomClass
|
2256 | */
|
2257 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1.CustomClass;
|
2258 |
|
2259 | /**
|
2260 | * Creates a plain object from a CustomClass message. Also converts values to other types if specified.
|
2261 | * @param message CustomClass
|
2262 | * @param [options] Conversion options
|
2263 | * @returns Plain object
|
2264 | */
|
2265 | public static toObject(message: google.cloud.speech.v1.CustomClass, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
2266 |
|
2267 | /**
|
2268 | * Converts this CustomClass to JSON.
|
2269 | * @returns JSON object
|
2270 | */
|
2271 | public toJSON(): { [k: string]: any };
|
2272 | }
|
2273 |
|
2274 | namespace CustomClass {
|
2275 |
|
2276 | /** Properties of a ClassItem. */
|
2277 | interface IClassItem {
|
2278 |
|
2279 | /** ClassItem value */
|
2280 | value?: (string|null);
|
2281 | }
|
2282 |
|
2283 | /** Represents a ClassItem. */
|
2284 | class ClassItem implements IClassItem {
|
2285 |
|
2286 | /**
|
2287 | * Constructs a new ClassItem.
|
2288 | * @param [properties] Properties to set
|
2289 | */
|
2290 | constructor(properties?: google.cloud.speech.v1.CustomClass.IClassItem);
|
2291 |
|
2292 | /** ClassItem value. */
|
2293 | public value: string;
|
2294 |
|
2295 | /**
|
2296 | * Creates a new ClassItem instance using the specified properties.
|
2297 | * @param [properties] Properties to set
|
2298 | * @returns ClassItem instance
|
2299 | */
|
2300 | public static create(properties?: google.cloud.speech.v1.CustomClass.IClassItem): google.cloud.speech.v1.CustomClass.ClassItem;
|
2301 |
|
2302 | /**
|
2303 | * Encodes the specified ClassItem message. Does not implicitly { google.cloud.speech.v1.CustomClass.ClassItem.verify|verify} messages.
|
2304 | * message ClassItem message or plain object to encode
|
2305 | * [writer] Writer to encode to
|
2306 | * Writer
|
2307 | */
|
2308 | public static encode(message: google.cloud.speech.v1.CustomClass.IClassItem, writer?: $protobuf.Writer): $protobuf.Writer;
|
2309 |
|
2310 | /**
|
2311 | * Encodes the specified ClassItem message, length delimited. Does not implicitly {@link google.cloud.speech.v1.CustomClass.ClassItem.verify|verify} messages.
|
2312 | * @param message ClassItem message or plain object to encode
|
2313 | * @param [writer] Writer to encode to
|
2314 | * @returns Writer
|
2315 | */
|
2316 | public static encodeDelimited(message: google.cloud.speech.v1.CustomClass.IClassItem, writer?: $protobuf.Writer): $protobuf.Writer;
|
2317 |
|
2318 | /**
|
2319 | * Decodes a ClassItem message from the specified reader or buffer.
|
2320 | * @param reader Reader or buffer to decode from
|
2321 | * @param [length] Message length if known beforehand
|
2322 | * @returns ClassItem
|
2323 | * @throws {Error} If the payload is not a reader or valid buffer
|
2324 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
2325 | */
|
2326 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1.CustomClass.ClassItem;
|
2327 |
|
2328 | /**
|
2329 | * Decodes a ClassItem message from the specified reader or buffer, length delimited.
|
2330 | * @param reader Reader or buffer to decode from
|
2331 | * @returns ClassItem
|
2332 | * @throws {Error} If the payload is not a reader or valid buffer
|
2333 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
2334 | */
|
2335 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1.CustomClass.ClassItem;
|
2336 |
|
2337 | /**
|
2338 | * Verifies a ClassItem message.
|
2339 | * @param message Plain object to verify
|
2340 | * @returns `null` if valid, otherwise the reason why it is not
|
2341 | */
|
2342 | public static verify(message: { [k: string]: any }): (string|null);
|
2343 |
|
2344 | /**
|
2345 | * Creates a ClassItem message from a plain object. Also converts values to their respective internal types.
|
2346 | * @param object Plain object
|
2347 | * @returns ClassItem
|
2348 | */
|
2349 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1.CustomClass.ClassItem;
|
2350 |
|
2351 | /**
|
2352 | * Creates a plain object from a ClassItem message. Also converts values to other types if specified.
|
2353 | * @param message ClassItem
|
2354 | * @param [options] Conversion options
|
2355 | * @returns Plain object
|
2356 | */
|
2357 | public static toObject(message: google.cloud.speech.v1.CustomClass.ClassItem, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
2358 |
|
2359 | /**
|
2360 | * Converts this ClassItem to JSON.
|
2361 | * @returns JSON object
|
2362 | */
|
2363 | public toJSON(): { [k: string]: any };
|
2364 | }
|
2365 | }
|
2366 |
|
2367 | /** Properties of a PhraseSet. */
|
2368 | interface IPhraseSet {
|
2369 |
|
2370 | /** PhraseSet name */
|
2371 | name?: (string|null);
|
2372 |
|
2373 | /** PhraseSet phrases */
|
2374 | phrases?: (google.cloud.speech.v1.PhraseSet.IPhrase[]|null);
|
2375 |
|
2376 | /** PhraseSet boost */
|
2377 | boost?: (number|null);
|
2378 | }
|
2379 |
|
2380 | /** Represents a PhraseSet. */
|
2381 | class PhraseSet implements IPhraseSet {
|
2382 |
|
2383 | /**
|
2384 | * Constructs a new PhraseSet.
|
2385 | * @param [properties] Properties to set
|
2386 | */
|
2387 | constructor(properties?: google.cloud.speech.v1.IPhraseSet);
|
2388 |
|
2389 | /** PhraseSet name. */
|
2390 | public name: string;
|
2391 |
|
2392 | /** PhraseSet phrases. */
|
2393 | public phrases: google.cloud.speech.v1.PhraseSet.IPhrase[];
|
2394 |
|
2395 | /** PhraseSet boost. */
|
2396 | public boost: number;
|
2397 |
|
2398 | /**
|
2399 | * Creates a new PhraseSet instance using the specified properties.
|
2400 | * @param [properties] Properties to set
|
2401 | * @returns PhraseSet instance
|
2402 | */
|
2403 | public static create(properties?: google.cloud.speech.v1.IPhraseSet): google.cloud.speech.v1.PhraseSet;
|
2404 |
|
2405 | /**
|
2406 | * Encodes the specified PhraseSet message. Does not implicitly { google.cloud.speech.v1.PhraseSet.verify|verify} messages.
|
2407 | * message PhraseSet message or plain object to encode
|
2408 | * [writer] Writer to encode to
|
2409 | * Writer
|
2410 | */
|
2411 | public static encode(message: google.cloud.speech.v1.IPhraseSet, writer?: $protobuf.Writer): $protobuf.Writer;
|
2412 |
|
2413 | /**
|
2414 | * Encodes the specified PhraseSet message, length delimited. Does not implicitly {@link google.cloud.speech.v1.PhraseSet.verify|verify} messages.
|
2415 | * @param message PhraseSet message or plain object to encode
|
2416 | * @param [writer] Writer to encode to
|
2417 | * @returns Writer
|
2418 | */
|
2419 | public static encodeDelimited(message: google.cloud.speech.v1.IPhraseSet, writer?: $protobuf.Writer): $protobuf.Writer;
|
2420 |
|
2421 | /**
|
2422 | * Decodes a PhraseSet message from the specified reader or buffer.
|
2423 | * @param reader Reader or buffer to decode from
|
2424 | * @param [length] Message length if known beforehand
|
2425 | * @returns PhraseSet
|
2426 | * @throws {Error} If the payload is not a reader or valid buffer
|
2427 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
2428 | */
|
2429 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1.PhraseSet;
|
2430 |
|
2431 | /**
|
2432 | * Decodes a PhraseSet message from the specified reader or buffer, length delimited.
|
2433 | * @param reader Reader or buffer to decode from
|
2434 | * @returns PhraseSet
|
2435 | * @throws {Error} If the payload is not a reader or valid buffer
|
2436 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
2437 | */
|
2438 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1.PhraseSet;
|
2439 |
|
2440 | /**
|
2441 | * Verifies a PhraseSet message.
|
2442 | * @param message Plain object to verify
|
2443 | * @returns `null` if valid, otherwise the reason why it is not
|
2444 | */
|
2445 | public static verify(message: { [k: string]: any }): (string|null);
|
2446 |
|
2447 | /**
|
2448 | * Creates a PhraseSet message from a plain object. Also converts values to their respective internal types.
|
2449 | * @param object Plain object
|
2450 | * @returns PhraseSet
|
2451 | */
|
2452 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1.PhraseSet;
|
2453 |
|
2454 | /**
|
2455 | * Creates a plain object from a PhraseSet message. Also converts values to other types if specified.
|
2456 | * @param message PhraseSet
|
2457 | * @param [options] Conversion options
|
2458 | * @returns Plain object
|
2459 | */
|
2460 | public static toObject(message: google.cloud.speech.v1.PhraseSet, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
2461 |
|
2462 | /**
|
2463 | * Converts this PhraseSet to JSON.
|
2464 | * @returns JSON object
|
2465 | */
|
2466 | public toJSON(): { [k: string]: any };
|
2467 | }
|
2468 |
|
2469 | namespace PhraseSet {
|
2470 |
|
2471 | /** Properties of a Phrase. */
|
2472 | interface IPhrase {
|
2473 |
|
2474 | /** Phrase value */
|
2475 | value?: (string|null);
|
2476 |
|
2477 | /** Phrase boost */
|
2478 | boost?: (number|null);
|
2479 | }
|
2480 |
|
2481 | /** Represents a Phrase. */
|
2482 | class Phrase implements IPhrase {
|
2483 |
|
2484 | /**
|
2485 | * Constructs a new Phrase.
|
2486 | * @param [properties] Properties to set
|
2487 | */
|
2488 | constructor(properties?: google.cloud.speech.v1.PhraseSet.IPhrase);
|
2489 |
|
2490 | /** Phrase value. */
|
2491 | public value: string;
|
2492 |
|
2493 | /** Phrase boost. */
|
2494 | public boost: number;
|
2495 |
|
2496 | /**
|
2497 | * Creates a new Phrase instance using the specified properties.
|
2498 | * @param [properties] Properties to set
|
2499 | * @returns Phrase instance
|
2500 | */
|
2501 | public static create(properties?: google.cloud.speech.v1.PhraseSet.IPhrase): google.cloud.speech.v1.PhraseSet.Phrase;
|
2502 |
|
2503 | /**
|
2504 | * Encodes the specified Phrase message. Does not implicitly { google.cloud.speech.v1.PhraseSet.Phrase.verify|verify} messages.
|
2505 | * message Phrase message or plain object to encode
|
2506 | * [writer] Writer to encode to
|
2507 | * Writer
|
2508 | */
|
2509 | public static encode(message: google.cloud.speech.v1.PhraseSet.IPhrase, writer?: $protobuf.Writer): $protobuf.Writer;
|
2510 |
|
2511 | /**
|
2512 | * Encodes the specified Phrase message, length delimited. Does not implicitly {@link google.cloud.speech.v1.PhraseSet.Phrase.verify|verify} messages.
|
2513 | * @param message Phrase message or plain object to encode
|
2514 | * @param [writer] Writer to encode to
|
2515 | * @returns Writer
|
2516 | */
|
2517 | public static encodeDelimited(message: google.cloud.speech.v1.PhraseSet.IPhrase, writer?: $protobuf.Writer): $protobuf.Writer;
|
2518 |
|
2519 | /**
|
2520 | * Decodes a Phrase message from the specified reader or buffer.
|
2521 | * @param reader Reader or buffer to decode from
|
2522 | * @param [length] Message length if known beforehand
|
2523 | * @returns Phrase
|
2524 | * @throws {Error} If the payload is not a reader or valid buffer
|
2525 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
2526 | */
|
2527 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1.PhraseSet.Phrase;
|
2528 |
|
2529 | /**
|
2530 | * Decodes a Phrase message from the specified reader or buffer, length delimited.
|
2531 | * @param reader Reader or buffer to decode from
|
2532 | * @returns Phrase
|
2533 | * @throws {Error} If the payload is not a reader or valid buffer
|
2534 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
2535 | */
|
2536 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1.PhraseSet.Phrase;
|
2537 |
|
2538 | /**
|
2539 | * Verifies a Phrase message.
|
2540 | * @param message Plain object to verify
|
2541 | * @returns `null` if valid, otherwise the reason why it is not
|
2542 | */
|
2543 | public static verify(message: { [k: string]: any }): (string|null);
|
2544 |
|
2545 | /**
|
2546 | * Creates a Phrase message from a plain object. Also converts values to their respective internal types.
|
2547 | * @param object Plain object
|
2548 | * @returns Phrase
|
2549 | */
|
2550 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1.PhraseSet.Phrase;
|
2551 |
|
2552 | /**
|
2553 | * Creates a plain object from a Phrase message. Also converts values to other types if specified.
|
2554 | * @param message Phrase
|
2555 | * @param [options] Conversion options
|
2556 | * @returns Plain object
|
2557 | */
|
2558 | public static toObject(message: google.cloud.speech.v1.PhraseSet.Phrase, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
2559 |
|
2560 | /**
|
2561 | * Converts this Phrase to JSON.
|
2562 | * @returns JSON object
|
2563 | */
|
2564 | public toJSON(): { [k: string]: any };
|
2565 | }
|
2566 | }
|
2567 |
|
2568 | /** Properties of a SpeechAdaptation. */
|
2569 | interface ISpeechAdaptation {
|
2570 |
|
2571 | /** SpeechAdaptation phraseSets */
|
2572 | phraseSets?: (google.cloud.speech.v1.IPhraseSet[]|null);
|
2573 |
|
2574 | /** SpeechAdaptation phraseSetReferences */
|
2575 | phraseSetReferences?: (string[]|null);
|
2576 |
|
2577 | /** SpeechAdaptation customClasses */
|
2578 | customClasses?: (google.cloud.speech.v1.ICustomClass[]|null);
|
2579 | }
|
2580 |
|
2581 | /** Represents a SpeechAdaptation. */
|
2582 | class SpeechAdaptation implements ISpeechAdaptation {
|
2583 |
|
2584 | /**
|
2585 | * Constructs a new SpeechAdaptation.
|
2586 | * @param [properties] Properties to set
|
2587 | */
|
2588 | constructor(properties?: google.cloud.speech.v1.ISpeechAdaptation);
|
2589 |
|
2590 | /** SpeechAdaptation phraseSets. */
|
2591 | public phraseSets: google.cloud.speech.v1.IPhraseSet[];
|
2592 |
|
2593 | /** SpeechAdaptation phraseSetReferences. */
|
2594 | public phraseSetReferences: string[];
|
2595 |
|
2596 | /** SpeechAdaptation customClasses. */
|
2597 | public customClasses: google.cloud.speech.v1.ICustomClass[];
|
2598 |
|
2599 | /**
|
2600 | * Creates a new SpeechAdaptation instance using the specified properties.
|
2601 | * @param [properties] Properties to set
|
2602 | * @returns SpeechAdaptation instance
|
2603 | */
|
2604 | public static create(properties?: google.cloud.speech.v1.ISpeechAdaptation): google.cloud.speech.v1.SpeechAdaptation;
|
2605 |
|
2606 | /**
|
2607 | * Encodes the specified SpeechAdaptation message. Does not implicitly { google.cloud.speech.v1.SpeechAdaptation.verify|verify} messages.
|
2608 | * message SpeechAdaptation message or plain object to encode
|
2609 | * [writer] Writer to encode to
|
2610 | * Writer
|
2611 | */
|
2612 | public static encode(message: google.cloud.speech.v1.ISpeechAdaptation, writer?: $protobuf.Writer): $protobuf.Writer;
|
2613 |
|
2614 | /**
|
2615 | * Encodes the specified SpeechAdaptation message, length delimited. Does not implicitly {@link google.cloud.speech.v1.SpeechAdaptation.verify|verify} messages.
|
2616 | * @param message SpeechAdaptation message or plain object to encode
|
2617 | * @param [writer] Writer to encode to
|
2618 | * @returns Writer
|
2619 | */
|
2620 | public static encodeDelimited(message: google.cloud.speech.v1.ISpeechAdaptation, writer?: $protobuf.Writer): $protobuf.Writer;
|
2621 |
|
2622 | /**
|
2623 | * Decodes a SpeechAdaptation message from the specified reader or buffer.
|
2624 | * @param reader Reader or buffer to decode from
|
2625 | * @param [length] Message length if known beforehand
|
2626 | * @returns SpeechAdaptation
|
2627 | * @throws {Error} If the payload is not a reader or valid buffer
|
2628 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
2629 | */
|
2630 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1.SpeechAdaptation;
|
2631 |
|
2632 | /**
|
2633 | * Decodes a SpeechAdaptation message from the specified reader or buffer, length delimited.
|
2634 | * @param reader Reader or buffer to decode from
|
2635 | * @returns SpeechAdaptation
|
2636 | * @throws {Error} If the payload is not a reader or valid buffer
|
2637 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
2638 | */
|
2639 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1.SpeechAdaptation;
|
2640 |
|
2641 | /**
|
2642 | * Verifies a SpeechAdaptation message.
|
2643 | * @param message Plain object to verify
|
2644 | * @returns `null` if valid, otherwise the reason why it is not
|
2645 | */
|
2646 | public static verify(message: { [k: string]: any }): (string|null);
|
2647 |
|
2648 | /**
|
2649 | * Creates a SpeechAdaptation message from a plain object. Also converts values to their respective internal types.
|
2650 | * @param object Plain object
|
2651 | * @returns SpeechAdaptation
|
2652 | */
|
2653 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1.SpeechAdaptation;
|
2654 |
|
2655 | /**
|
2656 | * Creates a plain object from a SpeechAdaptation message. Also converts values to other types if specified.
|
2657 | * @param message SpeechAdaptation
|
2658 | * @param [options] Conversion options
|
2659 | * @returns Plain object
|
2660 | */
|
2661 | public static toObject(message: google.cloud.speech.v1.SpeechAdaptation, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
2662 |
|
2663 | /**
|
2664 | * Converts this SpeechAdaptation to JSON.
|
2665 | * @returns JSON object
|
2666 | */
|
2667 | public toJSON(): { [k: string]: any };
|
2668 | }
|
2669 | }
|
2670 |
|
2671 | /** Namespace v1p1beta1. */
|
2672 | namespace v1p1beta1 {
|
2673 |
|
2674 | /** Represents a Speech */
|
2675 | class Speech extends $protobuf.rpc.Service {
|
2676 |
|
2677 | /**
|
2678 | * Constructs a new Speech service.
|
2679 | * @param rpcImpl RPC implementation
|
2680 | * @param [requestDelimited=false] Whether requests are length-delimited
|
2681 | * @param [responseDelimited=false] Whether responses are length-delimited
|
2682 | */
|
2683 | constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
|
2684 |
|
2685 | /**
|
2686 | * Creates new Speech service using the specified rpc implementation.
|
2687 | * @param rpcImpl RPC implementation
|
2688 | * @param [requestDelimited=false] Whether requests are length-delimited
|
2689 | * @param [responseDelimited=false] Whether responses are length-delimited
|
2690 | * @returns RPC service. Useful where requests and/or responses are streamed.
|
2691 | */
|
2692 | public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Speech;
|
2693 |
|
2694 | /**
|
2695 | * Calls Recognize.
|
2696 | * @param request RecognizeRequest message or plain object
|
2697 | * @param callback Node-style callback called with the error, if any, and RecognizeResponse
|
2698 | */
|
2699 | public recognize(request: google.cloud.speech.v1p1beta1.IRecognizeRequest, callback: google.cloud.speech.v1p1beta1.Speech.RecognizeCallback): void;
|
2700 |
|
2701 | /**
|
2702 | * Calls Recognize.
|
2703 | * @param request RecognizeRequest message or plain object
|
2704 | * @returns Promise
|
2705 | */
|
2706 | public recognize(request: google.cloud.speech.v1p1beta1.IRecognizeRequest): Promise<google.cloud.speech.v1p1beta1.RecognizeResponse>;
|
2707 |
|
2708 | /**
|
2709 | * Calls LongRunningRecognize.
|
2710 | * @param request LongRunningRecognizeRequest message or plain object
|
2711 | * @param callback Node-style callback called with the error, if any, and Operation
|
2712 | */
|
2713 | public longRunningRecognize(request: google.cloud.speech.v1p1beta1.ILongRunningRecognizeRequest, callback: google.cloud.speech.v1p1beta1.Speech.LongRunningRecognizeCallback): void;
|
2714 |
|
2715 | /**
|
2716 | * Calls LongRunningRecognize.
|
2717 | * @param request LongRunningRecognizeRequest message or plain object
|
2718 | * @returns Promise
|
2719 | */
|
2720 | public longRunningRecognize(request: google.cloud.speech.v1p1beta1.ILongRunningRecognizeRequest): Promise<google.longrunning.Operation>;
|
2721 |
|
2722 | /**
|
2723 | * Calls StreamingRecognize.
|
2724 | * @param request StreamingRecognizeRequest message or plain object
|
2725 | * @param callback Node-style callback called with the error, if any, and StreamingRecognizeResponse
|
2726 | */
|
2727 | public streamingRecognize(request: google.cloud.speech.v1p1beta1.IStreamingRecognizeRequest, callback: google.cloud.speech.v1p1beta1.Speech.StreamingRecognizeCallback): void;
|
2728 |
|
2729 | /**
|
2730 | * Calls StreamingRecognize.
|
2731 | * @param request StreamingRecognizeRequest message or plain object
|
2732 | * @returns Promise
|
2733 | */
|
2734 | public streamingRecognize(request: google.cloud.speech.v1p1beta1.IStreamingRecognizeRequest): Promise<google.cloud.speech.v1p1beta1.StreamingRecognizeResponse>;
|
2735 | }
|
2736 |
|
2737 | namespace Speech {
|
2738 |
|
2739 | /**
|
2740 | * Callback as used by {@link google.cloud.speech.v1p1beta1.Speech#recognize}.
|
2741 | * @param error Error, if any
|
2742 | * @param [response] RecognizeResponse
|
2743 | */
|
2744 | type RecognizeCallback = (error: (Error|null), response?: google.cloud.speech.v1p1beta1.RecognizeResponse) => void;
|
2745 |
|
2746 | /**
|
2747 | * Callback as used by {@link google.cloud.speech.v1p1beta1.Speech#longRunningRecognize}.
|
2748 | * @param error Error, if any
|
2749 | * @param [response] Operation
|
2750 | */
|
2751 | type LongRunningRecognizeCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
|
2752 |
|
2753 | /**
|
2754 | * Callback as used by {@link google.cloud.speech.v1p1beta1.Speech#streamingRecognize}.
|
2755 | * @param error Error, if any
|
2756 | * @param [response] StreamingRecognizeResponse
|
2757 | */
|
2758 | type StreamingRecognizeCallback = (error: (Error|null), response?: google.cloud.speech.v1p1beta1.StreamingRecognizeResponse) => void;
|
2759 | }
|
2760 |
|
2761 | /** Properties of a RecognizeRequest. */
|
2762 | interface IRecognizeRequest {
|
2763 |
|
2764 | /** RecognizeRequest config */
|
2765 | config?: (google.cloud.speech.v1p1beta1.IRecognitionConfig|null);
|
2766 |
|
2767 | /** RecognizeRequest audio */
|
2768 | audio?: (google.cloud.speech.v1p1beta1.IRecognitionAudio|null);
|
2769 | }
|
2770 |
|
2771 | /** Represents a RecognizeRequest. */
|
2772 | class RecognizeRequest implements IRecognizeRequest {
|
2773 |
|
2774 | /**
|
2775 | * Constructs a new RecognizeRequest.
|
2776 | * @param [properties] Properties to set
|
2777 | */
|
2778 | constructor(properties?: google.cloud.speech.v1p1beta1.IRecognizeRequest);
|
2779 |
|
2780 | /** RecognizeRequest config. */
|
2781 | public config?: (google.cloud.speech.v1p1beta1.IRecognitionConfig|null);
|
2782 |
|
2783 | /** RecognizeRequest audio. */
|
2784 | public audio?: (google.cloud.speech.v1p1beta1.IRecognitionAudio|null);
|
2785 |
|
2786 | /**
|
2787 | * Creates a new RecognizeRequest instance using the specified properties.
|
2788 | * @param [properties] Properties to set
|
2789 | * @returns RecognizeRequest instance
|
2790 | */
|
2791 | public static create(properties?: google.cloud.speech.v1p1beta1.IRecognizeRequest): google.cloud.speech.v1p1beta1.RecognizeRequest;
|
2792 |
|
2793 | /**
|
2794 | * Encodes the specified RecognizeRequest message. Does not implicitly { google.cloud.speech.v1p1beta1.RecognizeRequest.verify|verify} messages.
|
2795 | * message RecognizeRequest message or plain object to encode
|
2796 | * [writer] Writer to encode to
|
2797 | * Writer
|
2798 | */
|
2799 | public static encode(message: google.cloud.speech.v1p1beta1.IRecognizeRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
2800 |
|
2801 | /**
|
2802 | * Encodes the specified RecognizeRequest message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.RecognizeRequest.verify|verify} messages.
|
2803 | * @param message RecognizeRequest message or plain object to encode
|
2804 | * @param [writer] Writer to encode to
|
2805 | * @returns Writer
|
2806 | */
|
2807 | public static encodeDelimited(message: google.cloud.speech.v1p1beta1.IRecognizeRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
2808 |
|
2809 | /**
|
2810 | * Decodes a RecognizeRequest message from the specified reader or buffer.
|
2811 | * @param reader Reader or buffer to decode from
|
2812 | * @param [length] Message length if known beforehand
|
2813 | * @returns RecognizeRequest
|
2814 | * @throws {Error} If the payload is not a reader or valid buffer
|
2815 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
2816 | */
|
2817 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.RecognizeRequest;
|
2818 |
|
2819 | /**
|
2820 | * Decodes a RecognizeRequest message from the specified reader or buffer, length delimited.
|
2821 | * @param reader Reader or buffer to decode from
|
2822 | * @returns RecognizeRequest
|
2823 | * @throws {Error} If the payload is not a reader or valid buffer
|
2824 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
2825 | */
|
2826 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.RecognizeRequest;
|
2827 |
|
2828 | /**
|
2829 | * Verifies a RecognizeRequest message.
|
2830 | * @param message Plain object to verify
|
2831 | * @returns `null` if valid, otherwise the reason why it is not
|
2832 | */
|
2833 | public static verify(message: { [k: string]: any }): (string|null);
|
2834 |
|
2835 | /**
|
2836 | * Creates a RecognizeRequest message from a plain object. Also converts values to their respective internal types.
|
2837 | * @param object Plain object
|
2838 | * @returns RecognizeRequest
|
2839 | */
|
2840 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.RecognizeRequest;
|
2841 |
|
2842 | /**
|
2843 | * Creates a plain object from a RecognizeRequest message. Also converts values to other types if specified.
|
2844 | * @param message RecognizeRequest
|
2845 | * @param [options] Conversion options
|
2846 | * @returns Plain object
|
2847 | */
|
2848 | public static toObject(message: google.cloud.speech.v1p1beta1.RecognizeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
2849 |
|
2850 | /**
|
2851 | * Converts this RecognizeRequest to JSON.
|
2852 | * @returns JSON object
|
2853 | */
|
2854 | public toJSON(): { [k: string]: any };
|
2855 | }
|
2856 |
|
2857 | /** Properties of a LongRunningRecognizeRequest. */
|
2858 | interface ILongRunningRecognizeRequest {
|
2859 |
|
2860 | /** LongRunningRecognizeRequest config */
|
2861 | config?: (google.cloud.speech.v1p1beta1.IRecognitionConfig|null);
|
2862 |
|
2863 | /** LongRunningRecognizeRequest audio */
|
2864 | audio?: (google.cloud.speech.v1p1beta1.IRecognitionAudio|null);
|
2865 |
|
2866 | /** LongRunningRecognizeRequest outputConfig */
|
2867 | outputConfig?: (google.cloud.speech.v1p1beta1.ITranscriptOutputConfig|null);
|
2868 | }
|
2869 |
|
2870 | /** Represents a LongRunningRecognizeRequest. */
|
2871 | class LongRunningRecognizeRequest implements ILongRunningRecognizeRequest {
|
2872 |
|
2873 | /**
|
2874 | * Constructs a new LongRunningRecognizeRequest.
|
2875 | * @param [properties] Properties to set
|
2876 | */
|
2877 | constructor(properties?: google.cloud.speech.v1p1beta1.ILongRunningRecognizeRequest);
|
2878 |
|
2879 | /** LongRunningRecognizeRequest config. */
|
2880 | public config?: (google.cloud.speech.v1p1beta1.IRecognitionConfig|null);
|
2881 |
|
2882 | /** LongRunningRecognizeRequest audio. */
|
2883 | public audio?: (google.cloud.speech.v1p1beta1.IRecognitionAudio|null);
|
2884 |
|
2885 | /** LongRunningRecognizeRequest outputConfig. */
|
2886 | public outputConfig?: (google.cloud.speech.v1p1beta1.ITranscriptOutputConfig|null);
|
2887 |
|
2888 | /**
|
2889 | * Creates a new LongRunningRecognizeRequest instance using the specified properties.
|
2890 | * @param [properties] Properties to set
|
2891 | * @returns LongRunningRecognizeRequest instance
|
2892 | */
|
2893 | public static create(properties?: google.cloud.speech.v1p1beta1.ILongRunningRecognizeRequest): google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest;
|
2894 |
|
2895 | /**
|
2896 | * Encodes the specified LongRunningRecognizeRequest message. Does not implicitly { google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest.verify|verify} messages.
|
2897 | * message LongRunningRecognizeRequest message or plain object to encode
|
2898 | * [writer] Writer to encode to
|
2899 | * Writer
|
2900 | */
|
2901 | public static encode(message: google.cloud.speech.v1p1beta1.ILongRunningRecognizeRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
2902 |
|
2903 | /**
|
2904 | * Encodes the specified LongRunningRecognizeRequest message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest.verify|verify} messages.
|
2905 | * @param message LongRunningRecognizeRequest message or plain object to encode
|
2906 | * @param [writer] Writer to encode to
|
2907 | * @returns Writer
|
2908 | */
|
2909 | public static encodeDelimited(message: google.cloud.speech.v1p1beta1.ILongRunningRecognizeRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
2910 |
|
2911 | /**
|
2912 | * Decodes a LongRunningRecognizeRequest message from the specified reader or buffer.
|
2913 | * @param reader Reader or buffer to decode from
|
2914 | * @param [length] Message length if known beforehand
|
2915 | * @returns LongRunningRecognizeRequest
|
2916 | * @throws {Error} If the payload is not a reader or valid buffer
|
2917 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
2918 | */
|
2919 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest;
|
2920 |
|
2921 | /**
|
2922 | * Decodes a LongRunningRecognizeRequest message from the specified reader or buffer, length delimited.
|
2923 | * @param reader Reader or buffer to decode from
|
2924 | * @returns LongRunningRecognizeRequest
|
2925 | * @throws {Error} If the payload is not a reader or valid buffer
|
2926 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
2927 | */
|
2928 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest;
|
2929 |
|
2930 | /**
|
2931 | * Verifies a LongRunningRecognizeRequest message.
|
2932 | * @param message Plain object to verify
|
2933 | * @returns `null` if valid, otherwise the reason why it is not
|
2934 | */
|
2935 | public static verify(message: { [k: string]: any }): (string|null);
|
2936 |
|
2937 | /**
|
2938 | * Creates a LongRunningRecognizeRequest message from a plain object. Also converts values to their respective internal types.
|
2939 | * @param object Plain object
|
2940 | * @returns LongRunningRecognizeRequest
|
2941 | */
|
2942 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest;
|
2943 |
|
2944 | /**
|
2945 | * Creates a plain object from a LongRunningRecognizeRequest message. Also converts values to other types if specified.
|
2946 | * @param message LongRunningRecognizeRequest
|
2947 | * @param [options] Conversion options
|
2948 | * @returns Plain object
|
2949 | */
|
2950 | public static toObject(message: google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
2951 |
|
2952 | /**
|
2953 | * Converts this LongRunningRecognizeRequest to JSON.
|
2954 | * @returns JSON object
|
2955 | */
|
2956 | public toJSON(): { [k: string]: any };
|
2957 | }
|
2958 |
|
2959 | /** Properties of a TranscriptOutputConfig. */
|
2960 | interface ITranscriptOutputConfig {
|
2961 |
|
2962 | /** TranscriptOutputConfig gcsUri */
|
2963 | gcsUri?: (string|null);
|
2964 | }
|
2965 |
|
2966 | /** Represents a TranscriptOutputConfig. */
|
2967 | class TranscriptOutputConfig implements ITranscriptOutputConfig {
|
2968 |
|
2969 | /**
|
2970 | * Constructs a new TranscriptOutputConfig.
|
2971 | * @param [properties] Properties to set
|
2972 | */
|
2973 | constructor(properties?: google.cloud.speech.v1p1beta1.ITranscriptOutputConfig);
|
2974 |
|
2975 | /** TranscriptOutputConfig gcsUri. */
|
2976 | public gcsUri?: (string|null);
|
2977 |
|
2978 | /** TranscriptOutputConfig outputType. */
|
2979 | public outputType?: "gcsUri";
|
2980 |
|
2981 | /**
|
2982 | * Creates a new TranscriptOutputConfig instance using the specified properties.
|
2983 | * @param [properties] Properties to set
|
2984 | * @returns TranscriptOutputConfig instance
|
2985 | */
|
2986 | public static create(properties?: google.cloud.speech.v1p1beta1.ITranscriptOutputConfig): google.cloud.speech.v1p1beta1.TranscriptOutputConfig;
|
2987 |
|
2988 | /**
|
2989 | * Encodes the specified TranscriptOutputConfig message. Does not implicitly { google.cloud.speech.v1p1beta1.TranscriptOutputConfig.verify|verify} messages.
|
2990 | * message TranscriptOutputConfig message or plain object to encode
|
2991 | * [writer] Writer to encode to
|
2992 | * Writer
|
2993 | */
|
2994 | public static encode(message: google.cloud.speech.v1p1beta1.ITranscriptOutputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
2995 |
|
2996 | /**
|
2997 | * Encodes the specified TranscriptOutputConfig message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.TranscriptOutputConfig.verify|verify} messages.
|
2998 | * @param message TranscriptOutputConfig message or plain object to encode
|
2999 | * @param [writer] Writer to encode to
|
3000 | * @returns Writer
|
3001 | */
|
3002 | public static encodeDelimited(message: google.cloud.speech.v1p1beta1.ITranscriptOutputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
3003 |
|
3004 | /**
|
3005 | * Decodes a TranscriptOutputConfig message from the specified reader or buffer.
|
3006 | * @param reader Reader or buffer to decode from
|
3007 | * @param [length] Message length if known beforehand
|
3008 | * @returns TranscriptOutputConfig
|
3009 | * @throws {Error} If the payload is not a reader or valid buffer
|
3010 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
3011 | */
|
3012 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.TranscriptOutputConfig;
|
3013 |
|
3014 | /**
|
3015 | * Decodes a TranscriptOutputConfig message from the specified reader or buffer, length delimited.
|
3016 | * @param reader Reader or buffer to decode from
|
3017 | * @returns TranscriptOutputConfig
|
3018 | * @throws {Error} If the payload is not a reader or valid buffer
|
3019 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
3020 | */
|
3021 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.TranscriptOutputConfig;
|
3022 |
|
3023 | /**
|
3024 | * Verifies a TranscriptOutputConfig message.
|
3025 | * @param message Plain object to verify
|
3026 | * @returns `null` if valid, otherwise the reason why it is not
|
3027 | */
|
3028 | public static verify(message: { [k: string]: any }): (string|null);
|
3029 |
|
3030 | /**
|
3031 | * Creates a TranscriptOutputConfig message from a plain object. Also converts values to their respective internal types.
|
3032 | * @param object Plain object
|
3033 | * @returns TranscriptOutputConfig
|
3034 | */
|
3035 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.TranscriptOutputConfig;
|
3036 |
|
3037 | /**
|
3038 | * Creates a plain object from a TranscriptOutputConfig message. Also converts values to other types if specified.
|
3039 | * @param message TranscriptOutputConfig
|
3040 | * @param [options] Conversion options
|
3041 | * @returns Plain object
|
3042 | */
|
3043 | public static toObject(message: google.cloud.speech.v1p1beta1.TranscriptOutputConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
3044 |
|
3045 | /**
|
3046 | * Converts this TranscriptOutputConfig to JSON.
|
3047 | * @returns JSON object
|
3048 | */
|
3049 | public toJSON(): { [k: string]: any };
|
3050 | }
|
3051 |
|
3052 | /** Properties of a StreamingRecognizeRequest. */
|
3053 | interface IStreamingRecognizeRequest {
|
3054 |
|
3055 | /** StreamingRecognizeRequest streamingConfig */
|
3056 | streamingConfig?: (google.cloud.speech.v1p1beta1.IStreamingRecognitionConfig|null);
|
3057 |
|
3058 | /** StreamingRecognizeRequest audioContent */
|
3059 | audioContent?: (Uint8Array|string|null);
|
3060 | }
|
3061 |
|
3062 | /** Represents a StreamingRecognizeRequest. */
|
3063 | class StreamingRecognizeRequest implements IStreamingRecognizeRequest {
|
3064 |
|
3065 | /**
|
3066 | * Constructs a new StreamingRecognizeRequest.
|
3067 | * @param [properties] Properties to set
|
3068 | */
|
3069 | constructor(properties?: google.cloud.speech.v1p1beta1.IStreamingRecognizeRequest);
|
3070 |
|
3071 | /** StreamingRecognizeRequest streamingConfig. */
|
3072 | public streamingConfig?: (google.cloud.speech.v1p1beta1.IStreamingRecognitionConfig|null);
|
3073 |
|
3074 | /** StreamingRecognizeRequest audioContent. */
|
3075 | public audioContent?: (Uint8Array|string|null);
|
3076 |
|
3077 | /** StreamingRecognizeRequest streamingRequest. */
|
3078 | public streamingRequest?: ("streamingConfig"|"audioContent");
|
3079 |
|
3080 | /**
|
3081 | * Creates a new StreamingRecognizeRequest instance using the specified properties.
|
3082 | * @param [properties] Properties to set
|
3083 | * @returns StreamingRecognizeRequest instance
|
3084 | */
|
3085 | public static create(properties?: google.cloud.speech.v1p1beta1.IStreamingRecognizeRequest): google.cloud.speech.v1p1beta1.StreamingRecognizeRequest;
|
3086 |
|
3087 | /**
|
3088 | * Encodes the specified StreamingRecognizeRequest message. Does not implicitly { google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.verify|verify} messages.
|
3089 | * message StreamingRecognizeRequest message or plain object to encode
|
3090 | * [writer] Writer to encode to
|
3091 | * Writer
|
3092 | */
|
3093 | public static encode(message: google.cloud.speech.v1p1beta1.IStreamingRecognizeRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
3094 |
|
3095 | /**
|
3096 | * Encodes the specified StreamingRecognizeRequest message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.verify|verify} messages.
|
3097 | * @param message StreamingRecognizeRequest message or plain object to encode
|
3098 | * @param [writer] Writer to encode to
|
3099 | * @returns Writer
|
3100 | */
|
3101 | public static encodeDelimited(message: google.cloud.speech.v1p1beta1.IStreamingRecognizeRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
3102 |
|
3103 | /**
|
3104 | * Decodes a StreamingRecognizeRequest message from the specified reader or buffer.
|
3105 | * @param reader Reader or buffer to decode from
|
3106 | * @param [length] Message length if known beforehand
|
3107 | * @returns StreamingRecognizeRequest
|
3108 | * @throws {Error} If the payload is not a reader or valid buffer
|
3109 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
3110 | */
|
3111 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.StreamingRecognizeRequest;
|
3112 |
|
3113 | /**
|
3114 | * Decodes a StreamingRecognizeRequest message from the specified reader or buffer, length delimited.
|
3115 | * @param reader Reader or buffer to decode from
|
3116 | * @returns StreamingRecognizeRequest
|
3117 | * @throws {Error} If the payload is not a reader or valid buffer
|
3118 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
3119 | */
|
3120 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.StreamingRecognizeRequest;
|
3121 |
|
3122 | /**
|
3123 | * Verifies a StreamingRecognizeRequest message.
|
3124 | * @param message Plain object to verify
|
3125 | * @returns `null` if valid, otherwise the reason why it is not
|
3126 | */
|
3127 | public static verify(message: { [k: string]: any }): (string|null);
|
3128 |
|
3129 | /**
|
3130 | * Creates a StreamingRecognizeRequest message from a plain object. Also converts values to their respective internal types.
|
3131 | * @param object Plain object
|
3132 | * @returns StreamingRecognizeRequest
|
3133 | */
|
3134 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.StreamingRecognizeRequest;
|
3135 |
|
3136 | /**
|
3137 | * Creates a plain object from a StreamingRecognizeRequest message. Also converts values to other types if specified.
|
3138 | * @param message StreamingRecognizeRequest
|
3139 | * @param [options] Conversion options
|
3140 | * @returns Plain object
|
3141 | */
|
3142 | public static toObject(message: google.cloud.speech.v1p1beta1.StreamingRecognizeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
3143 |
|
3144 | /**
|
3145 | * Converts this StreamingRecognizeRequest to JSON.
|
3146 | * @returns JSON object
|
3147 | */
|
3148 | public toJSON(): { [k: string]: any };
|
3149 | }
|
3150 |
|
3151 | /** Properties of a StreamingRecognitionConfig. */
|
3152 | interface IStreamingRecognitionConfig {
|
3153 |
|
3154 | /** StreamingRecognitionConfig config */
|
3155 | config?: (google.cloud.speech.v1p1beta1.IRecognitionConfig|null);
|
3156 |
|
3157 | /** StreamingRecognitionConfig singleUtterance */
|
3158 | singleUtterance?: (boolean|null);
|
3159 |
|
3160 | /** StreamingRecognitionConfig interimResults */
|
3161 | interimResults?: (boolean|null);
|
3162 | }
|
3163 |
|
3164 | /** Represents a StreamingRecognitionConfig. */
|
3165 | class StreamingRecognitionConfig implements IStreamingRecognitionConfig {
|
3166 |
|
3167 | /**
|
3168 | * Constructs a new StreamingRecognitionConfig.
|
3169 | * @param [properties] Properties to set
|
3170 | */
|
3171 | constructor(properties?: google.cloud.speech.v1p1beta1.IStreamingRecognitionConfig);
|
3172 |
|
3173 | /** StreamingRecognitionConfig config. */
|
3174 | public config?: (google.cloud.speech.v1p1beta1.IRecognitionConfig|null);
|
3175 |
|
3176 | /** StreamingRecognitionConfig singleUtterance. */
|
3177 | public singleUtterance: boolean;
|
3178 |
|
3179 | /** StreamingRecognitionConfig interimResults. */
|
3180 | public interimResults: boolean;
|
3181 |
|
3182 | /**
|
3183 | * Creates a new StreamingRecognitionConfig instance using the specified properties.
|
3184 | * @param [properties] Properties to set
|
3185 | * @returns StreamingRecognitionConfig instance
|
3186 | */
|
3187 | public static create(properties?: google.cloud.speech.v1p1beta1.IStreamingRecognitionConfig): google.cloud.speech.v1p1beta1.StreamingRecognitionConfig;
|
3188 |
|
3189 | /**
|
3190 | * Encodes the specified StreamingRecognitionConfig message. Does not implicitly { google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.verify|verify} messages.
|
3191 | * message StreamingRecognitionConfig message or plain object to encode
|
3192 | * [writer] Writer to encode to
|
3193 | * Writer
|
3194 | */
|
3195 | public static encode(message: google.cloud.speech.v1p1beta1.IStreamingRecognitionConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
3196 |
|
3197 | /**
|
3198 | * Encodes the specified StreamingRecognitionConfig message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.verify|verify} messages.
|
3199 | * @param message StreamingRecognitionConfig message or plain object to encode
|
3200 | * @param [writer] Writer to encode to
|
3201 | * @returns Writer
|
3202 | */
|
3203 | public static encodeDelimited(message: google.cloud.speech.v1p1beta1.IStreamingRecognitionConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
3204 |
|
3205 | /**
|
3206 | * Decodes a StreamingRecognitionConfig message from the specified reader or buffer.
|
3207 | * @param reader Reader or buffer to decode from
|
3208 | * @param [length] Message length if known beforehand
|
3209 | * @returns StreamingRecognitionConfig
|
3210 | * @throws {Error} If the payload is not a reader or valid buffer
|
3211 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
3212 | */
|
3213 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.StreamingRecognitionConfig;
|
3214 |
|
3215 | /**
|
3216 | * Decodes a StreamingRecognitionConfig message from the specified reader or buffer, length delimited.
|
3217 | * @param reader Reader or buffer to decode from
|
3218 | * @returns StreamingRecognitionConfig
|
3219 | * @throws {Error} If the payload is not a reader or valid buffer
|
3220 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
3221 | */
|
3222 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.StreamingRecognitionConfig;
|
3223 |
|
3224 | /**
|
3225 | * Verifies a StreamingRecognitionConfig message.
|
3226 | * @param message Plain object to verify
|
3227 | * @returns `null` if valid, otherwise the reason why it is not
|
3228 | */
|
3229 | public static verify(message: { [k: string]: any }): (string|null);
|
3230 |
|
3231 | /**
|
3232 | * Creates a StreamingRecognitionConfig message from a plain object. Also converts values to their respective internal types.
|
3233 | * @param object Plain object
|
3234 | * @returns StreamingRecognitionConfig
|
3235 | */
|
3236 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.StreamingRecognitionConfig;
|
3237 |
|
3238 | /**
|
3239 | * Creates a plain object from a StreamingRecognitionConfig message. Also converts values to other types if specified.
|
3240 | * @param message StreamingRecognitionConfig
|
3241 | * @param [options] Conversion options
|
3242 | * @returns Plain object
|
3243 | */
|
3244 | public static toObject(message: google.cloud.speech.v1p1beta1.StreamingRecognitionConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
3245 |
|
3246 | /**
|
3247 | * Converts this StreamingRecognitionConfig to JSON.
|
3248 | * @returns JSON object
|
3249 | */
|
3250 | public toJSON(): { [k: string]: any };
|
3251 | }
|
3252 |
|
3253 | /** Properties of a RecognitionConfig. */
|
3254 | interface IRecognitionConfig {
|
3255 |
|
3256 | /** RecognitionConfig encoding */
|
3257 | encoding?: (google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding|keyof typeof google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding|null);
|
3258 |
|
3259 | /** RecognitionConfig sampleRateHertz */
|
3260 | sampleRateHertz?: (number|null);
|
3261 |
|
3262 | /** RecognitionConfig audioChannelCount */
|
3263 | audioChannelCount?: (number|null);
|
3264 |
|
3265 | /** RecognitionConfig enableSeparateRecognitionPerChannel */
|
3266 | enableSeparateRecognitionPerChannel?: (boolean|null);
|
3267 |
|
3268 | /** RecognitionConfig languageCode */
|
3269 | languageCode?: (string|null);
|
3270 |
|
3271 | /** RecognitionConfig alternativeLanguageCodes */
|
3272 | alternativeLanguageCodes?: (string[]|null);
|
3273 |
|
3274 | /** RecognitionConfig maxAlternatives */
|
3275 | maxAlternatives?: (number|null);
|
3276 |
|
3277 | /** RecognitionConfig profanityFilter */
|
3278 | profanityFilter?: (boolean|null);
|
3279 |
|
3280 | /** RecognitionConfig adaptation */
|
3281 | adaptation?: (google.cloud.speech.v1p1beta1.ISpeechAdaptation|null);
|
3282 |
|
3283 | /** RecognitionConfig transcriptNormalization */
|
3284 | transcriptNormalization?: (google.cloud.speech.v1p1beta1.ITranscriptNormalization|null);
|
3285 |
|
3286 | /** RecognitionConfig speechContexts */
|
3287 | speechContexts?: (google.cloud.speech.v1p1beta1.ISpeechContext[]|null);
|
3288 |
|
3289 | /** RecognitionConfig enableWordTimeOffsets */
|
3290 | enableWordTimeOffsets?: (boolean|null);
|
3291 |
|
3292 | /** RecognitionConfig enableWordConfidence */
|
3293 | enableWordConfidence?: (boolean|null);
|
3294 |
|
3295 | /** RecognitionConfig enableAutomaticPunctuation */
|
3296 | enableAutomaticPunctuation?: (boolean|null);
|
3297 |
|
3298 | /** RecognitionConfig enableSpokenPunctuation */
|
3299 | enableSpokenPunctuation?: (google.protobuf.IBoolValue|null);
|
3300 |
|
3301 | /** RecognitionConfig enableSpokenEmojis */
|
3302 | enableSpokenEmojis?: (google.protobuf.IBoolValue|null);
|
3303 |
|
3304 | /** RecognitionConfig enableSpeakerDiarization */
|
3305 | enableSpeakerDiarization?: (boolean|null);
|
3306 |
|
3307 | /** RecognitionConfig diarizationSpeakerCount */
|
3308 | diarizationSpeakerCount?: (number|null);
|
3309 |
|
3310 | /** RecognitionConfig diarizationConfig */
|
3311 | diarizationConfig?: (google.cloud.speech.v1p1beta1.ISpeakerDiarizationConfig|null);
|
3312 |
|
3313 | /** RecognitionConfig metadata */
|
3314 | metadata?: (google.cloud.speech.v1p1beta1.IRecognitionMetadata|null);
|
3315 |
|
3316 | /** RecognitionConfig model */
|
3317 | model?: (string|null);
|
3318 |
|
3319 | /** RecognitionConfig useEnhanced */
|
3320 | useEnhanced?: (boolean|null);
|
3321 | }
|
3322 |
|
3323 | /** Represents a RecognitionConfig. */
|
3324 | class RecognitionConfig implements IRecognitionConfig {
|
3325 |
|
3326 | /**
|
3327 | * Constructs a new RecognitionConfig.
|
3328 | * @param [properties] Properties to set
|
3329 | */
|
3330 | constructor(properties?: google.cloud.speech.v1p1beta1.IRecognitionConfig);
|
3331 |
|
3332 | /** RecognitionConfig encoding. */
|
3333 | public encoding: (google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding|keyof typeof google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding);
|
3334 |
|
3335 | /** RecognitionConfig sampleRateHertz. */
|
3336 | public sampleRateHertz: number;
|
3337 |
|
3338 | /** RecognitionConfig audioChannelCount. */
|
3339 | public audioChannelCount: number;
|
3340 |
|
3341 | /** RecognitionConfig enableSeparateRecognitionPerChannel. */
|
3342 | public enableSeparateRecognitionPerChannel: boolean;
|
3343 |
|
3344 | /** RecognitionConfig languageCode. */
|
3345 | public languageCode: string;
|
3346 |
|
3347 | /** RecognitionConfig alternativeLanguageCodes. */
|
3348 | public alternativeLanguageCodes: string[];
|
3349 |
|
3350 | /** RecognitionConfig maxAlternatives. */
|
3351 | public maxAlternatives: number;
|
3352 |
|
3353 | /** RecognitionConfig profanityFilter. */
|
3354 | public profanityFilter: boolean;
|
3355 |
|
3356 | /** RecognitionConfig adaptation. */
|
3357 | public adaptation?: (google.cloud.speech.v1p1beta1.ISpeechAdaptation|null);
|
3358 |
|
3359 | /** RecognitionConfig transcriptNormalization. */
|
3360 | public transcriptNormalization?: (google.cloud.speech.v1p1beta1.ITranscriptNormalization|null);
|
3361 |
|
3362 | /** RecognitionConfig speechContexts. */
|
3363 | public speechContexts: google.cloud.speech.v1p1beta1.ISpeechContext[];
|
3364 |
|
3365 | /** RecognitionConfig enableWordTimeOffsets. */
|
3366 | public enableWordTimeOffsets: boolean;
|
3367 |
|
3368 | /** RecognitionConfig enableWordConfidence. */
|
3369 | public enableWordConfidence: boolean;
|
3370 |
|
3371 | /** RecognitionConfig enableAutomaticPunctuation. */
|
3372 | public enableAutomaticPunctuation: boolean;
|
3373 |
|
3374 | /** RecognitionConfig enableSpokenPunctuation. */
|
3375 | public enableSpokenPunctuation?: (google.protobuf.IBoolValue|null);
|
3376 |
|
3377 | /** RecognitionConfig enableSpokenEmojis. */
|
3378 | public enableSpokenEmojis?: (google.protobuf.IBoolValue|null);
|
3379 |
|
3380 | /** RecognitionConfig enableSpeakerDiarization. */
|
3381 | public enableSpeakerDiarization: boolean;
|
3382 |
|
3383 | /** RecognitionConfig diarizationSpeakerCount. */
|
3384 | public diarizationSpeakerCount: number;
|
3385 |
|
3386 | /** RecognitionConfig diarizationConfig. */
|
3387 | public diarizationConfig?: (google.cloud.speech.v1p1beta1.ISpeakerDiarizationConfig|null);
|
3388 |
|
3389 | /** RecognitionConfig metadata. */
|
3390 | public metadata?: (google.cloud.speech.v1p1beta1.IRecognitionMetadata|null);
|
3391 |
|
3392 | /** RecognitionConfig model. */
|
3393 | public model: string;
|
3394 |
|
3395 | /** RecognitionConfig useEnhanced. */
|
3396 | public useEnhanced: boolean;
|
3397 |
|
3398 | /**
|
3399 | * Creates a new RecognitionConfig instance using the specified properties.
|
3400 | * @param [properties] Properties to set
|
3401 | * @returns RecognitionConfig instance
|
3402 | */
|
3403 | public static create(properties?: google.cloud.speech.v1p1beta1.IRecognitionConfig): google.cloud.speech.v1p1beta1.RecognitionConfig;
|
3404 |
|
3405 | /**
|
3406 | * Encodes the specified RecognitionConfig message. Does not implicitly { google.cloud.speech.v1p1beta1.RecognitionConfig.verify|verify} messages.
|
3407 | * message RecognitionConfig message or plain object to encode
|
3408 | * [writer] Writer to encode to
|
3409 | * Writer
|
3410 | */
|
3411 | public static encode(message: google.cloud.speech.v1p1beta1.IRecognitionConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
3412 |
|
3413 | /**
|
3414 | * Encodes the specified RecognitionConfig message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.RecognitionConfig.verify|verify} messages.
|
3415 | * @param message RecognitionConfig message or plain object to encode
|
3416 | * @param [writer] Writer to encode to
|
3417 | * @returns Writer
|
3418 | */
|
3419 | public static encodeDelimited(message: google.cloud.speech.v1p1beta1.IRecognitionConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
3420 |
|
3421 | /**
|
3422 | * Decodes a RecognitionConfig message from the specified reader or buffer.
|
3423 | * @param reader Reader or buffer to decode from
|
3424 | * @param [length] Message length if known beforehand
|
3425 | * @returns RecognitionConfig
|
3426 | * @throws {Error} If the payload is not a reader or valid buffer
|
3427 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
3428 | */
|
3429 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.RecognitionConfig;
|
3430 |
|
3431 | /**
|
3432 | * Decodes a RecognitionConfig message from the specified reader or buffer, length delimited.
|
3433 | * @param reader Reader or buffer to decode from
|
3434 | * @returns RecognitionConfig
|
3435 | * @throws {Error} If the payload is not a reader or valid buffer
|
3436 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
3437 | */
|
3438 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.RecognitionConfig;
|
3439 |
|
3440 | /**
|
3441 | * Verifies a RecognitionConfig message.
|
3442 | * @param message Plain object to verify
|
3443 | * @returns `null` if valid, otherwise the reason why it is not
|
3444 | */
|
3445 | public static verify(message: { [k: string]: any }): (string|null);
|
3446 |
|
3447 | /**
|
3448 | * Creates a RecognitionConfig message from a plain object. Also converts values to their respective internal types.
|
3449 | * @param object Plain object
|
3450 | * @returns RecognitionConfig
|
3451 | */
|
3452 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.RecognitionConfig;
|
3453 |
|
3454 | /**
|
3455 | * Creates a plain object from a RecognitionConfig message. Also converts values to other types if specified.
|
3456 | * @param message RecognitionConfig
|
3457 | * @param [options] Conversion options
|
3458 | * @returns Plain object
|
3459 | */
|
3460 | public static toObject(message: google.cloud.speech.v1p1beta1.RecognitionConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
3461 |
|
3462 | /**
|
3463 | * Converts this RecognitionConfig to JSON.
|
3464 | * @returns JSON object
|
3465 | */
|
3466 | public toJSON(): { [k: string]: any };
|
3467 | }
|
3468 |
|
3469 | namespace RecognitionConfig {
|
3470 |
|
3471 | /** AudioEncoding enum. */
|
3472 | enum AudioEncoding {
|
3473 | ENCODING_UNSPECIFIED = 0,
|
3474 | LINEAR16 = 1,
|
3475 | FLAC = 2,
|
3476 | MULAW = 3,
|
3477 | AMR = 4,
|
3478 | AMR_WB = 5,
|
3479 | OGG_OPUS = 6,
|
3480 | SPEEX_WITH_HEADER_BYTE = 7,
|
3481 | MP3 = 8,
|
3482 | WEBM_OPUS = 9
|
3483 | }
|
3484 | }
|
3485 |
|
3486 | /** Properties of a SpeakerDiarizationConfig. */
|
3487 | interface ISpeakerDiarizationConfig {
|
3488 |
|
3489 | /** SpeakerDiarizationConfig enableSpeakerDiarization */
|
3490 | enableSpeakerDiarization?: (boolean|null);
|
3491 |
|
3492 | /** SpeakerDiarizationConfig minSpeakerCount */
|
3493 | minSpeakerCount?: (number|null);
|
3494 |
|
3495 | /** SpeakerDiarizationConfig maxSpeakerCount */
|
3496 | maxSpeakerCount?: (number|null);
|
3497 |
|
3498 | /** SpeakerDiarizationConfig speakerTag */
|
3499 | speakerTag?: (number|null);
|
3500 | }
|
3501 |
|
3502 | /** Represents a SpeakerDiarizationConfig. */
|
3503 | class SpeakerDiarizationConfig implements ISpeakerDiarizationConfig {
|
3504 |
|
3505 | /**
|
3506 | * Constructs a new SpeakerDiarizationConfig.
|
3507 | * @param [properties] Properties to set
|
3508 | */
|
3509 | constructor(properties?: google.cloud.speech.v1p1beta1.ISpeakerDiarizationConfig);
|
3510 |
|
3511 | /** SpeakerDiarizationConfig enableSpeakerDiarization. */
|
3512 | public enableSpeakerDiarization: boolean;
|
3513 |
|
3514 | /** SpeakerDiarizationConfig minSpeakerCount. */
|
3515 | public minSpeakerCount: number;
|
3516 |
|
3517 | /** SpeakerDiarizationConfig maxSpeakerCount. */
|
3518 | public maxSpeakerCount: number;
|
3519 |
|
3520 | /** SpeakerDiarizationConfig speakerTag. */
|
3521 | public speakerTag: number;
|
3522 |
|
3523 | /**
|
3524 | * Creates a new SpeakerDiarizationConfig instance using the specified properties.
|
3525 | * @param [properties] Properties to set
|
3526 | * @returns SpeakerDiarizationConfig instance
|
3527 | */
|
3528 | public static create(properties?: google.cloud.speech.v1p1beta1.ISpeakerDiarizationConfig): google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig;
|
3529 |
|
3530 | /**
|
3531 | * Encodes the specified SpeakerDiarizationConfig message. Does not implicitly { google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.verify|verify} messages.
|
3532 | * message SpeakerDiarizationConfig message or plain object to encode
|
3533 | * [writer] Writer to encode to
|
3534 | * Writer
|
3535 | */
|
3536 | public static encode(message: google.cloud.speech.v1p1beta1.ISpeakerDiarizationConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
3537 |
|
3538 | /**
|
3539 | * Encodes the specified SpeakerDiarizationConfig message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.verify|verify} messages.
|
3540 | * @param message SpeakerDiarizationConfig message or plain object to encode
|
3541 | * @param [writer] Writer to encode to
|
3542 | * @returns Writer
|
3543 | */
|
3544 | public static encodeDelimited(message: google.cloud.speech.v1p1beta1.ISpeakerDiarizationConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
3545 |
|
3546 | /**
|
3547 | * Decodes a SpeakerDiarizationConfig message from the specified reader or buffer.
|
3548 | * @param reader Reader or buffer to decode from
|
3549 | * @param [length] Message length if known beforehand
|
3550 | * @returns SpeakerDiarizationConfig
|
3551 | * @throws {Error} If the payload is not a reader or valid buffer
|
3552 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
3553 | */
|
3554 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig;
|
3555 |
|
3556 | /**
|
3557 | * Decodes a SpeakerDiarizationConfig message from the specified reader or buffer, length delimited.
|
3558 | * @param reader Reader or buffer to decode from
|
3559 | * @returns SpeakerDiarizationConfig
|
3560 | * @throws {Error} If the payload is not a reader or valid buffer
|
3561 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
3562 | */
|
3563 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig;
|
3564 |
|
3565 | /**
|
3566 | * Verifies a SpeakerDiarizationConfig message.
|
3567 | * @param message Plain object to verify
|
3568 | * @returns `null` if valid, otherwise the reason why it is not
|
3569 | */
|
3570 | public static verify(message: { [k: string]: any }): (string|null);
|
3571 |
|
3572 | /**
|
3573 | * Creates a SpeakerDiarizationConfig message from a plain object. Also converts values to their respective internal types.
|
3574 | * @param object Plain object
|
3575 | * @returns SpeakerDiarizationConfig
|
3576 | */
|
3577 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig;
|
3578 |
|
3579 | /**
|
3580 | * Creates a plain object from a SpeakerDiarizationConfig message. Also converts values to other types if specified.
|
3581 | * @param message SpeakerDiarizationConfig
|
3582 | * @param [options] Conversion options
|
3583 | * @returns Plain object
|
3584 | */
|
3585 | public static toObject(message: google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
3586 |
|
3587 | /**
|
3588 | * Converts this SpeakerDiarizationConfig to JSON.
|
3589 | * @returns JSON object
|
3590 | */
|
3591 | public toJSON(): { [k: string]: any };
|
3592 | }
|
3593 |
|
3594 | /** Properties of a RecognitionMetadata. */
|
3595 | interface IRecognitionMetadata {
|
3596 |
|
3597 | /** RecognitionMetadata interactionType */
|
3598 | interactionType?: (google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType|keyof typeof google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType|null);
|
3599 |
|
3600 | /** RecognitionMetadata industryNaicsCodeOfAudio */
|
3601 | industryNaicsCodeOfAudio?: (number|null);
|
3602 |
|
3603 | /** RecognitionMetadata microphoneDistance */
|
3604 | microphoneDistance?: (google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance|keyof typeof google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance|null);
|
3605 |
|
3606 | /** RecognitionMetadata originalMediaType */
|
3607 | originalMediaType?: (google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType|keyof typeof google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType|null);
|
3608 |
|
3609 | /** RecognitionMetadata recordingDeviceType */
|
3610 | recordingDeviceType?: (google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType|keyof typeof google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType|null);
|
3611 |
|
3612 | /** RecognitionMetadata recordingDeviceName */
|
3613 | recordingDeviceName?: (string|null);
|
3614 |
|
3615 | /** RecognitionMetadata originalMimeType */
|
3616 | originalMimeType?: (string|null);
|
3617 |
|
3618 | /** RecognitionMetadata obfuscatedId */
|
3619 | obfuscatedId?: (number|Long|string|null);
|
3620 |
|
3621 | /** RecognitionMetadata audioTopic */
|
3622 | audioTopic?: (string|null);
|
3623 | }
|
3624 |
|
3625 | /** Represents a RecognitionMetadata. */
|
3626 | class RecognitionMetadata implements IRecognitionMetadata {
|
3627 |
|
3628 | /**
|
3629 | * Constructs a new RecognitionMetadata.
|
3630 | * @param [properties] Properties to set
|
3631 | */
|
3632 | constructor(properties?: google.cloud.speech.v1p1beta1.IRecognitionMetadata);
|
3633 |
|
3634 | /** RecognitionMetadata interactionType. */
|
3635 | public interactionType: (google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType|keyof typeof google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType);
|
3636 |
|
3637 | /** RecognitionMetadata industryNaicsCodeOfAudio. */
|
3638 | public industryNaicsCodeOfAudio: number;
|
3639 |
|
3640 | /** RecognitionMetadata microphoneDistance. */
|
3641 | public microphoneDistance: (google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance|keyof typeof google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance);
|
3642 |
|
3643 | /** RecognitionMetadata originalMediaType. */
|
3644 | public originalMediaType: (google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType|keyof typeof google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType);
|
3645 |
|
3646 | /** RecognitionMetadata recordingDeviceType. */
|
3647 | public recordingDeviceType: (google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType|keyof typeof google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType);
|
3648 |
|
3649 | /** RecognitionMetadata recordingDeviceName. */
|
3650 | public recordingDeviceName: string;
|
3651 |
|
3652 | /** RecognitionMetadata originalMimeType. */
|
3653 | public originalMimeType: string;
|
3654 |
|
3655 | /** RecognitionMetadata obfuscatedId. */
|
3656 | public obfuscatedId: (number|Long|string);
|
3657 |
|
3658 | /** RecognitionMetadata audioTopic. */
|
3659 | public audioTopic: string;
|
3660 |
|
3661 | /**
|
3662 | * Creates a new RecognitionMetadata instance using the specified properties.
|
3663 | * @param [properties] Properties to set
|
3664 | * @returns RecognitionMetadata instance
|
3665 | */
|
3666 | public static create(properties?: google.cloud.speech.v1p1beta1.IRecognitionMetadata): google.cloud.speech.v1p1beta1.RecognitionMetadata;
|
3667 |
|
3668 | /**
|
3669 | * Encodes the specified RecognitionMetadata message. Does not implicitly { google.cloud.speech.v1p1beta1.RecognitionMetadata.verify|verify} messages.
|
3670 | * message RecognitionMetadata message or plain object to encode
|
3671 | * [writer] Writer to encode to
|
3672 | * Writer
|
3673 | */
|
3674 | public static encode(message: google.cloud.speech.v1p1beta1.IRecognitionMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
|
3675 |
|
3676 | /**
|
3677 | * Encodes the specified RecognitionMetadata message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.RecognitionMetadata.verify|verify} messages.
|
3678 | * @param message RecognitionMetadata message or plain object to encode
|
3679 | * @param [writer] Writer to encode to
|
3680 | * @returns Writer
|
3681 | */
|
3682 | public static encodeDelimited(message: google.cloud.speech.v1p1beta1.IRecognitionMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
|
3683 |
|
3684 | /**
|
3685 | * Decodes a RecognitionMetadata message from the specified reader or buffer.
|
3686 | * @param reader Reader or buffer to decode from
|
3687 | * @param [length] Message length if known beforehand
|
3688 | * @returns RecognitionMetadata
|
3689 | * @throws {Error} If the payload is not a reader or valid buffer
|
3690 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
3691 | */
|
3692 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.RecognitionMetadata;
|
3693 |
|
3694 | /**
|
3695 | * Decodes a RecognitionMetadata message from the specified reader or buffer, length delimited.
|
3696 | * @param reader Reader or buffer to decode from
|
3697 | * @returns RecognitionMetadata
|
3698 | * @throws {Error} If the payload is not a reader or valid buffer
|
3699 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
3700 | */
|
3701 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.RecognitionMetadata;
|
3702 |
|
3703 | /**
|
3704 | * Verifies a RecognitionMetadata message.
|
3705 | * @param message Plain object to verify
|
3706 | * @returns `null` if valid, otherwise the reason why it is not
|
3707 | */
|
3708 | public static verify(message: { [k: string]: any }): (string|null);
|
3709 |
|
3710 | /**
|
3711 | * Creates a RecognitionMetadata message from a plain object. Also converts values to their respective internal types.
|
3712 | * @param object Plain object
|
3713 | * @returns RecognitionMetadata
|
3714 | */
|
3715 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.RecognitionMetadata;
|
3716 |
|
3717 | /**
|
3718 | * Creates a plain object from a RecognitionMetadata message. Also converts values to other types if specified.
|
3719 | * @param message RecognitionMetadata
|
3720 | * @param [options] Conversion options
|
3721 | * @returns Plain object
|
3722 | */
|
3723 | public static toObject(message: google.cloud.speech.v1p1beta1.RecognitionMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
3724 |
|
3725 | /**
|
3726 | * Converts this RecognitionMetadata to JSON.
|
3727 | * @returns JSON object
|
3728 | */
|
3729 | public toJSON(): { [k: string]: any };
|
3730 | }
|
3731 |
|
3732 | namespace RecognitionMetadata {
|
3733 |
|
3734 | /** InteractionType enum. */
|
3735 | enum InteractionType {
|
3736 | INTERACTION_TYPE_UNSPECIFIED = 0,
|
3737 | DISCUSSION = 1,
|
3738 | PRESENTATION = 2,
|
3739 | PHONE_CALL = 3,
|
3740 | VOICEMAIL = 4,
|
3741 | PROFESSIONALLY_PRODUCED = 5,
|
3742 | VOICE_SEARCH = 6,
|
3743 | VOICE_COMMAND = 7,
|
3744 | DICTATION = 8
|
3745 | }
|
3746 |
|
3747 | /** MicrophoneDistance enum. */
|
3748 | enum MicrophoneDistance {
|
3749 | MICROPHONE_DISTANCE_UNSPECIFIED = 0,
|
3750 | NEARFIELD = 1,
|
3751 | MIDFIELD = 2,
|
3752 | FARFIELD = 3
|
3753 | }
|
3754 |
|
3755 | /** OriginalMediaType enum. */
|
3756 | enum OriginalMediaType {
|
3757 | ORIGINAL_MEDIA_TYPE_UNSPECIFIED = 0,
|
3758 | AUDIO = 1,
|
3759 | VIDEO = 2
|
3760 | }
|
3761 |
|
3762 | /** RecordingDeviceType enum. */
|
3763 | enum RecordingDeviceType {
|
3764 | RECORDING_DEVICE_TYPE_UNSPECIFIED = 0,
|
3765 | SMARTPHONE = 1,
|
3766 | PC = 2,
|
3767 | PHONE_LINE = 3,
|
3768 | VEHICLE = 4,
|
3769 | OTHER_OUTDOOR_DEVICE = 5,
|
3770 | OTHER_INDOOR_DEVICE = 6
|
3771 | }
|
3772 | }
|
3773 |
|
3774 | /** Properties of a SpeechContext. */
|
3775 | interface ISpeechContext {
|
3776 |
|
3777 | /** SpeechContext phrases */
|
3778 | phrases?: (string[]|null);
|
3779 |
|
3780 | /** SpeechContext boost */
|
3781 | boost?: (number|null);
|
3782 | }
|
3783 |
|
3784 | /** Represents a SpeechContext. */
|
3785 | class SpeechContext implements ISpeechContext {
|
3786 |
|
3787 | /**
|
3788 | * Constructs a new SpeechContext.
|
3789 | * @param [properties] Properties to set
|
3790 | */
|
3791 | constructor(properties?: google.cloud.speech.v1p1beta1.ISpeechContext);
|
3792 |
|
3793 | /** SpeechContext phrases. */
|
3794 | public phrases: string[];
|
3795 |
|
3796 | /** SpeechContext boost. */
|
3797 | public boost: number;
|
3798 |
|
3799 | /**
|
3800 | * Creates a new SpeechContext instance using the specified properties.
|
3801 | * @param [properties] Properties to set
|
3802 | * @returns SpeechContext instance
|
3803 | */
|
3804 | public static create(properties?: google.cloud.speech.v1p1beta1.ISpeechContext): google.cloud.speech.v1p1beta1.SpeechContext;
|
3805 |
|
3806 | /**
|
3807 | * Encodes the specified SpeechContext message. Does not implicitly { google.cloud.speech.v1p1beta1.SpeechContext.verify|verify} messages.
|
3808 | * message SpeechContext message or plain object to encode
|
3809 | * [writer] Writer to encode to
|
3810 | * Writer
|
3811 | */
|
3812 | public static encode(message: google.cloud.speech.v1p1beta1.ISpeechContext, writer?: $protobuf.Writer): $protobuf.Writer;
|
3813 |
|
3814 | /**
|
3815 | * Encodes the specified SpeechContext message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.SpeechContext.verify|verify} messages.
|
3816 | * @param message SpeechContext message or plain object to encode
|
3817 | * @param [writer] Writer to encode to
|
3818 | * @returns Writer
|
3819 | */
|
3820 | public static encodeDelimited(message: google.cloud.speech.v1p1beta1.ISpeechContext, writer?: $protobuf.Writer): $protobuf.Writer;
|
3821 |
|
3822 | /**
|
3823 | * Decodes a SpeechContext message from the specified reader or buffer.
|
3824 | * @param reader Reader or buffer to decode from
|
3825 | * @param [length] Message length if known beforehand
|
3826 | * @returns SpeechContext
|
3827 | * @throws {Error} If the payload is not a reader or valid buffer
|
3828 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
3829 | */
|
3830 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.SpeechContext;
|
3831 |
|
3832 | /**
|
3833 | * Decodes a SpeechContext message from the specified reader or buffer, length delimited.
|
3834 | * @param reader Reader or buffer to decode from
|
3835 | * @returns SpeechContext
|
3836 | * @throws {Error} If the payload is not a reader or valid buffer
|
3837 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
3838 | */
|
3839 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.SpeechContext;
|
3840 |
|
3841 | /**
|
3842 | * Verifies a SpeechContext message.
|
3843 | * @param message Plain object to verify
|
3844 | * @returns `null` if valid, otherwise the reason why it is not
|
3845 | */
|
3846 | public static verify(message: { [k: string]: any }): (string|null);
|
3847 |
|
3848 | /**
|
3849 | * Creates a SpeechContext message from a plain object. Also converts values to their respective internal types.
|
3850 | * @param object Plain object
|
3851 | * @returns SpeechContext
|
3852 | */
|
3853 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.SpeechContext;
|
3854 |
|
3855 | /**
|
3856 | * Creates a plain object from a SpeechContext message. Also converts values to other types if specified.
|
3857 | * @param message SpeechContext
|
3858 | * @param [options] Conversion options
|
3859 | * @returns Plain object
|
3860 | */
|
3861 | public static toObject(message: google.cloud.speech.v1p1beta1.SpeechContext, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
3862 |
|
3863 | /**
|
3864 | * Converts this SpeechContext to JSON.
|
3865 | * @returns JSON object
|
3866 | */
|
3867 | public toJSON(): { [k: string]: any };
|
3868 | }
|
3869 |
|
3870 | /** Properties of a RecognitionAudio. */
|
3871 | interface IRecognitionAudio {
|
3872 |
|
3873 | /** RecognitionAudio content */
|
3874 | content?: (Uint8Array|string|null);
|
3875 |
|
3876 | /** RecognitionAudio uri */
|
3877 | uri?: (string|null);
|
3878 | }
|
3879 |
|
3880 | /** Represents a RecognitionAudio. */
|
3881 | class RecognitionAudio implements IRecognitionAudio {
|
3882 |
|
3883 | /**
|
3884 | * Constructs a new RecognitionAudio.
|
3885 | * @param [properties] Properties to set
|
3886 | */
|
3887 | constructor(properties?: google.cloud.speech.v1p1beta1.IRecognitionAudio);
|
3888 |
|
3889 | /** RecognitionAudio content. */
|
3890 | public content?: (Uint8Array|string|null);
|
3891 |
|
3892 | /** RecognitionAudio uri. */
|
3893 | public uri?: (string|null);
|
3894 |
|
3895 | /** RecognitionAudio audioSource. */
|
3896 | public audioSource?: ("content"|"uri");
|
3897 |
|
3898 | /**
|
3899 | * Creates a new RecognitionAudio instance using the specified properties.
|
3900 | * @param [properties] Properties to set
|
3901 | * @returns RecognitionAudio instance
|
3902 | */
|
3903 | public static create(properties?: google.cloud.speech.v1p1beta1.IRecognitionAudio): google.cloud.speech.v1p1beta1.RecognitionAudio;
|
3904 |
|
3905 | /**
|
3906 | * Encodes the specified RecognitionAudio message. Does not implicitly { google.cloud.speech.v1p1beta1.RecognitionAudio.verify|verify} messages.
|
3907 | * message RecognitionAudio message or plain object to encode
|
3908 | * [writer] Writer to encode to
|
3909 | * Writer
|
3910 | */
|
3911 | public static encode(message: google.cloud.speech.v1p1beta1.IRecognitionAudio, writer?: $protobuf.Writer): $protobuf.Writer;
|
3912 |
|
3913 | /**
|
3914 | * Encodes the specified RecognitionAudio message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.RecognitionAudio.verify|verify} messages.
|
3915 | * @param message RecognitionAudio message or plain object to encode
|
3916 | * @param [writer] Writer to encode to
|
3917 | * @returns Writer
|
3918 | */
|
3919 | public static encodeDelimited(message: google.cloud.speech.v1p1beta1.IRecognitionAudio, writer?: $protobuf.Writer): $protobuf.Writer;
|
3920 |
|
3921 | /**
|
3922 | * Decodes a RecognitionAudio message from the specified reader or buffer.
|
3923 | * @param reader Reader or buffer to decode from
|
3924 | * @param [length] Message length if known beforehand
|
3925 | * @returns RecognitionAudio
|
3926 | * @throws {Error} If the payload is not a reader or valid buffer
|
3927 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
3928 | */
|
3929 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.RecognitionAudio;
|
3930 |
|
3931 | /**
|
3932 | * Decodes a RecognitionAudio message from the specified reader or buffer, length delimited.
|
3933 | * @param reader Reader or buffer to decode from
|
3934 | * @returns RecognitionAudio
|
3935 | * @throws {Error} If the payload is not a reader or valid buffer
|
3936 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
3937 | */
|
3938 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.RecognitionAudio;
|
3939 |
|
3940 | /**
|
3941 | * Verifies a RecognitionAudio message.
|
3942 | * @param message Plain object to verify
|
3943 | * @returns `null` if valid, otherwise the reason why it is not
|
3944 | */
|
3945 | public static verify(message: { [k: string]: any }): (string|null);
|
3946 |
|
3947 | /**
|
3948 | * Creates a RecognitionAudio message from a plain object. Also converts values to their respective internal types.
|
3949 | * @param object Plain object
|
3950 | * @returns RecognitionAudio
|
3951 | */
|
3952 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.RecognitionAudio;
|
3953 |
|
3954 | /**
|
3955 | * Creates a plain object from a RecognitionAudio message. Also converts values to other types if specified.
|
3956 | * @param message RecognitionAudio
|
3957 | * @param [options] Conversion options
|
3958 | * @returns Plain object
|
3959 | */
|
3960 | public static toObject(message: google.cloud.speech.v1p1beta1.RecognitionAudio, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
3961 |
|
3962 | /**
|
3963 | * Converts this RecognitionAudio to JSON.
|
3964 | * @returns JSON object
|
3965 | */
|
3966 | public toJSON(): { [k: string]: any };
|
3967 | }
|
3968 |
|
3969 | /** Properties of a RecognizeResponse. */
|
3970 | interface IRecognizeResponse {
|
3971 |
|
3972 | /** RecognizeResponse results */
|
3973 | results?: (google.cloud.speech.v1p1beta1.ISpeechRecognitionResult[]|null);
|
3974 |
|
3975 | /** RecognizeResponse totalBilledTime */
|
3976 | totalBilledTime?: (google.protobuf.IDuration|null);
|
3977 | }
|
3978 |
|
3979 | /** Represents a RecognizeResponse. */
|
3980 | class RecognizeResponse implements IRecognizeResponse {
|
3981 |
|
3982 | /**
|
3983 | * Constructs a new RecognizeResponse.
|
3984 | * @param [properties] Properties to set
|
3985 | */
|
3986 | constructor(properties?: google.cloud.speech.v1p1beta1.IRecognizeResponse);
|
3987 |
|
3988 | /** RecognizeResponse results. */
|
3989 | public results: google.cloud.speech.v1p1beta1.ISpeechRecognitionResult[];
|
3990 |
|
3991 | /** RecognizeResponse totalBilledTime. */
|
3992 | public totalBilledTime?: (google.protobuf.IDuration|null);
|
3993 |
|
3994 | /**
|
3995 | * Creates a new RecognizeResponse instance using the specified properties.
|
3996 | * @param [properties] Properties to set
|
3997 | * @returns RecognizeResponse instance
|
3998 | */
|
3999 | public static create(properties?: google.cloud.speech.v1p1beta1.IRecognizeResponse): google.cloud.speech.v1p1beta1.RecognizeResponse;
|
4000 |
|
4001 | /**
|
4002 | * Encodes the specified RecognizeResponse message. Does not implicitly { google.cloud.speech.v1p1beta1.RecognizeResponse.verify|verify} messages.
|
4003 | * message RecognizeResponse message or plain object to encode
|
4004 | * [writer] Writer to encode to
|
4005 | * Writer
|
4006 | */
|
4007 | public static encode(message: google.cloud.speech.v1p1beta1.IRecognizeResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
4008 |
|
4009 | /**
|
4010 | * Encodes the specified RecognizeResponse message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.RecognizeResponse.verify|verify} messages.
|
4011 | * @param message RecognizeResponse message or plain object to encode
|
4012 | * @param [writer] Writer to encode to
|
4013 | * @returns Writer
|
4014 | */
|
4015 | public static encodeDelimited(message: google.cloud.speech.v1p1beta1.IRecognizeResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
4016 |
|
4017 | /**
|
4018 | * Decodes a RecognizeResponse message from the specified reader or buffer.
|
4019 | * @param reader Reader or buffer to decode from
|
4020 | * @param [length] Message length if known beforehand
|
4021 | * @returns RecognizeResponse
|
4022 | * @throws {Error} If the payload is not a reader or valid buffer
|
4023 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
4024 | */
|
4025 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.RecognizeResponse;
|
4026 |
|
4027 | /**
|
4028 | * Decodes a RecognizeResponse message from the specified reader or buffer, length delimited.
|
4029 | * @param reader Reader or buffer to decode from
|
4030 | * @returns RecognizeResponse
|
4031 | * @throws {Error} If the payload is not a reader or valid buffer
|
4032 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
4033 | */
|
4034 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.RecognizeResponse;
|
4035 |
|
4036 | /**
|
4037 | * Verifies a RecognizeResponse message.
|
4038 | * @param message Plain object to verify
|
4039 | * @returns `null` if valid, otherwise the reason why it is not
|
4040 | */
|
4041 | public static verify(message: { [k: string]: any }): (string|null);
|
4042 |
|
4043 | /**
|
4044 | * Creates a RecognizeResponse message from a plain object. Also converts values to their respective internal types.
|
4045 | * @param object Plain object
|
4046 | * @returns RecognizeResponse
|
4047 | */
|
4048 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.RecognizeResponse;
|
4049 |
|
4050 | /**
|
4051 | * Creates a plain object from a RecognizeResponse message. Also converts values to other types if specified.
|
4052 | * @param message RecognizeResponse
|
4053 | * @param [options] Conversion options
|
4054 | * @returns Plain object
|
4055 | */
|
4056 | public static toObject(message: google.cloud.speech.v1p1beta1.RecognizeResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
4057 |
|
4058 | /**
|
4059 | * Converts this RecognizeResponse to JSON.
|
4060 | * @returns JSON object
|
4061 | */
|
4062 | public toJSON(): { [k: string]: any };
|
4063 | }
|
4064 |
|
4065 | /** Properties of a LongRunningRecognizeResponse. */
|
4066 | interface ILongRunningRecognizeResponse {
|
4067 |
|
4068 | /** LongRunningRecognizeResponse results */
|
4069 | results?: (google.cloud.speech.v1p1beta1.ISpeechRecognitionResult[]|null);
|
4070 |
|
4071 | /** LongRunningRecognizeResponse totalBilledTime */
|
4072 | totalBilledTime?: (google.protobuf.IDuration|null);
|
4073 |
|
4074 | /** LongRunningRecognizeResponse outputConfig */
|
4075 | outputConfig?: (google.cloud.speech.v1p1beta1.ITranscriptOutputConfig|null);
|
4076 |
|
4077 | /** LongRunningRecognizeResponse outputError */
|
4078 | outputError?: (google.rpc.IStatus|null);
|
4079 | }
|
4080 |
|
4081 | /** Represents a LongRunningRecognizeResponse. */
|
4082 | class LongRunningRecognizeResponse implements ILongRunningRecognizeResponse {
|
4083 |
|
4084 | /**
|
4085 | * Constructs a new LongRunningRecognizeResponse.
|
4086 | * @param [properties] Properties to set
|
4087 | */
|
4088 | constructor(properties?: google.cloud.speech.v1p1beta1.ILongRunningRecognizeResponse);
|
4089 |
|
4090 | /** LongRunningRecognizeResponse results. */
|
4091 | public results: google.cloud.speech.v1p1beta1.ISpeechRecognitionResult[];
|
4092 |
|
4093 | /** LongRunningRecognizeResponse totalBilledTime. */
|
4094 | public totalBilledTime?: (google.protobuf.IDuration|null);
|
4095 |
|
4096 | /** LongRunningRecognizeResponse outputConfig. */
|
4097 | public outputConfig?: (google.cloud.speech.v1p1beta1.ITranscriptOutputConfig|null);
|
4098 |
|
4099 | /** LongRunningRecognizeResponse outputError. */
|
4100 | public outputError?: (google.rpc.IStatus|null);
|
4101 |
|
4102 | /**
|
4103 | * Creates a new LongRunningRecognizeResponse instance using the specified properties.
|
4104 | * @param [properties] Properties to set
|
4105 | * @returns LongRunningRecognizeResponse instance
|
4106 | */
|
4107 | public static create(properties?: google.cloud.speech.v1p1beta1.ILongRunningRecognizeResponse): google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse;
|
4108 |
|
4109 | /**
|
4110 | * Encodes the specified LongRunningRecognizeResponse message. Does not implicitly { google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse.verify|verify} messages.
|
4111 | * message LongRunningRecognizeResponse message or plain object to encode
|
4112 | * [writer] Writer to encode to
|
4113 | * Writer
|
4114 | */
|
4115 | public static encode(message: google.cloud.speech.v1p1beta1.ILongRunningRecognizeResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
4116 |
|
4117 | /**
|
4118 | * Encodes the specified LongRunningRecognizeResponse message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse.verify|verify} messages.
|
4119 | * @param message LongRunningRecognizeResponse message or plain object to encode
|
4120 | * @param [writer] Writer to encode to
|
4121 | * @returns Writer
|
4122 | */
|
4123 | public static encodeDelimited(message: google.cloud.speech.v1p1beta1.ILongRunningRecognizeResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
4124 |
|
4125 | /**
|
4126 | * Decodes a LongRunningRecognizeResponse message from the specified reader or buffer.
|
4127 | * @param reader Reader or buffer to decode from
|
4128 | * @param [length] Message length if known beforehand
|
4129 | * @returns LongRunningRecognizeResponse
|
4130 | * @throws {Error} If the payload is not a reader or valid buffer
|
4131 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
4132 | */
|
4133 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse;
|
4134 |
|
4135 | /**
|
4136 | * Decodes a LongRunningRecognizeResponse message from the specified reader or buffer, length delimited.
|
4137 | * @param reader Reader or buffer to decode from
|
4138 | * @returns LongRunningRecognizeResponse
|
4139 | * @throws {Error} If the payload is not a reader or valid buffer
|
4140 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
4141 | */
|
4142 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse;
|
4143 |
|
4144 | /**
|
4145 | * Verifies a LongRunningRecognizeResponse message.
|
4146 | * @param message Plain object to verify
|
4147 | * @returns `null` if valid, otherwise the reason why it is not
|
4148 | */
|
4149 | public static verify(message: { [k: string]: any }): (string|null);
|
4150 |
|
4151 | /**
|
4152 | * Creates a LongRunningRecognizeResponse message from a plain object. Also converts values to their respective internal types.
|
4153 | * @param object Plain object
|
4154 | * @returns LongRunningRecognizeResponse
|
4155 | */
|
4156 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse;
|
4157 |
|
4158 | /**
|
4159 | * Creates a plain object from a LongRunningRecognizeResponse message. Also converts values to other types if specified.
|
4160 | * @param message LongRunningRecognizeResponse
|
4161 | * @param [options] Conversion options
|
4162 | * @returns Plain object
|
4163 | */
|
4164 | public static toObject(message: google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
4165 |
|
4166 | /**
|
4167 | * Converts this LongRunningRecognizeResponse to JSON.
|
4168 | * @returns JSON object
|
4169 | */
|
4170 | public toJSON(): { [k: string]: any };
|
4171 | }
|
4172 |
|
4173 | /** Properties of a LongRunningRecognizeMetadata. */
|
4174 | interface ILongRunningRecognizeMetadata {
|
4175 |
|
4176 | /** LongRunningRecognizeMetadata progressPercent */
|
4177 | progressPercent?: (number|null);
|
4178 |
|
4179 | /** LongRunningRecognizeMetadata startTime */
|
4180 | startTime?: (google.protobuf.ITimestamp|null);
|
4181 |
|
4182 | /** LongRunningRecognizeMetadata lastUpdateTime */
|
4183 | lastUpdateTime?: (google.protobuf.ITimestamp|null);
|
4184 |
|
4185 | /** LongRunningRecognizeMetadata uri */
|
4186 | uri?: (string|null);
|
4187 |
|
4188 | /** LongRunningRecognizeMetadata outputConfig */
|
4189 | outputConfig?: (google.cloud.speech.v1p1beta1.ITranscriptOutputConfig|null);
|
4190 | }
|
4191 |
|
4192 | /** Represents a LongRunningRecognizeMetadata. */
|
4193 | class LongRunningRecognizeMetadata implements ILongRunningRecognizeMetadata {
|
4194 |
|
4195 | /**
|
4196 | * Constructs a new LongRunningRecognizeMetadata.
|
4197 | * @param [properties] Properties to set
|
4198 | */
|
4199 | constructor(properties?: google.cloud.speech.v1p1beta1.ILongRunningRecognizeMetadata);
|
4200 |
|
4201 | /** LongRunningRecognizeMetadata progressPercent. */
|
4202 | public progressPercent: number;
|
4203 |
|
4204 | /** LongRunningRecognizeMetadata startTime. */
|
4205 | public startTime?: (google.protobuf.ITimestamp|null);
|
4206 |
|
4207 | /** LongRunningRecognizeMetadata lastUpdateTime. */
|
4208 | public lastUpdateTime?: (google.protobuf.ITimestamp|null);
|
4209 |
|
4210 | /** LongRunningRecognizeMetadata uri. */
|
4211 | public uri: string;
|
4212 |
|
4213 | /** LongRunningRecognizeMetadata outputConfig. */
|
4214 | public outputConfig?: (google.cloud.speech.v1p1beta1.ITranscriptOutputConfig|null);
|
4215 |
|
4216 | /**
|
4217 | * Creates a new LongRunningRecognizeMetadata instance using the specified properties.
|
4218 | * @param [properties] Properties to set
|
4219 | * @returns LongRunningRecognizeMetadata instance
|
4220 | */
|
4221 | public static create(properties?: google.cloud.speech.v1p1beta1.ILongRunningRecognizeMetadata): google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata;
|
4222 |
|
4223 | /**
|
4224 | * Encodes the specified LongRunningRecognizeMetadata message. Does not implicitly { google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata.verify|verify} messages.
|
4225 | * message LongRunningRecognizeMetadata message or plain object to encode
|
4226 | * [writer] Writer to encode to
|
4227 | * Writer
|
4228 | */
|
4229 | public static encode(message: google.cloud.speech.v1p1beta1.ILongRunningRecognizeMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
|
4230 |
|
4231 | /**
|
4232 | * Encodes the specified LongRunningRecognizeMetadata message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata.verify|verify} messages.
|
4233 | * @param message LongRunningRecognizeMetadata message or plain object to encode
|
4234 | * @param [writer] Writer to encode to
|
4235 | * @returns Writer
|
4236 | */
|
4237 | public static encodeDelimited(message: google.cloud.speech.v1p1beta1.ILongRunningRecognizeMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
|
4238 |
|
4239 | /**
|
4240 | * Decodes a LongRunningRecognizeMetadata message from the specified reader or buffer.
|
4241 | * @param reader Reader or buffer to decode from
|
4242 | * @param [length] Message length if known beforehand
|
4243 | * @returns LongRunningRecognizeMetadata
|
4244 | * @throws {Error} If the payload is not a reader or valid buffer
|
4245 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
4246 | */
|
4247 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata;
|
4248 |
|
4249 | /**
|
4250 | * Decodes a LongRunningRecognizeMetadata message from the specified reader or buffer, length delimited.
|
4251 | * @param reader Reader or buffer to decode from
|
4252 | * @returns LongRunningRecognizeMetadata
|
4253 | * @throws {Error} If the payload is not a reader or valid buffer
|
4254 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
4255 | */
|
4256 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata;
|
4257 |
|
4258 | /**
|
4259 | * Verifies a LongRunningRecognizeMetadata message.
|
4260 | * @param message Plain object to verify
|
4261 | * @returns `null` if valid, otherwise the reason why it is not
|
4262 | */
|
4263 | public static verify(message: { [k: string]: any }): (string|null);
|
4264 |
|
4265 | /**
|
4266 | * Creates a LongRunningRecognizeMetadata message from a plain object. Also converts values to their respective internal types.
|
4267 | * @param object Plain object
|
4268 | * @returns LongRunningRecognizeMetadata
|
4269 | */
|
4270 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata;
|
4271 |
|
4272 | /**
|
4273 | * Creates a plain object from a LongRunningRecognizeMetadata message. Also converts values to other types if specified.
|
4274 | * @param message LongRunningRecognizeMetadata
|
4275 | * @param [options] Conversion options
|
4276 | * @returns Plain object
|
4277 | */
|
4278 | public static toObject(message: google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
4279 |
|
4280 | /**
|
4281 | * Converts this LongRunningRecognizeMetadata to JSON.
|
4282 | * @returns JSON object
|
4283 | */
|
4284 | public toJSON(): { [k: string]: any };
|
4285 | }
|
4286 |
|
4287 | /** Properties of a StreamingRecognizeResponse. */
|
4288 | interface IStreamingRecognizeResponse {
|
4289 |
|
4290 | /** StreamingRecognizeResponse error */
|
4291 | error?: (google.rpc.IStatus|null);
|
4292 |
|
4293 | /** StreamingRecognizeResponse results */
|
4294 | results?: (google.cloud.speech.v1p1beta1.IStreamingRecognitionResult[]|null);
|
4295 |
|
4296 | /** StreamingRecognizeResponse speechEventType */
|
4297 | speechEventType?: (google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType|keyof typeof google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType|null);
|
4298 |
|
4299 | /** StreamingRecognizeResponse totalBilledTime */
|
4300 | totalBilledTime?: (google.protobuf.IDuration|null);
|
4301 | }
|
4302 |
|
4303 | /** Represents a StreamingRecognizeResponse. */
|
4304 | class StreamingRecognizeResponse implements IStreamingRecognizeResponse {
|
4305 |
|
4306 | /**
|
4307 | * Constructs a new StreamingRecognizeResponse.
|
4308 | * @param [properties] Properties to set
|
4309 | */
|
4310 | constructor(properties?: google.cloud.speech.v1p1beta1.IStreamingRecognizeResponse);
|
4311 |
|
4312 | /** StreamingRecognizeResponse error. */
|
4313 | public error?: (google.rpc.IStatus|null);
|
4314 |
|
4315 | /** StreamingRecognizeResponse results. */
|
4316 | public results: google.cloud.speech.v1p1beta1.IStreamingRecognitionResult[];
|
4317 |
|
4318 | /** StreamingRecognizeResponse speechEventType. */
|
4319 | public speechEventType: (google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType|keyof typeof google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType);
|
4320 |
|
4321 | /** StreamingRecognizeResponse totalBilledTime. */
|
4322 | public totalBilledTime?: (google.protobuf.IDuration|null);
|
4323 |
|
4324 | /**
|
4325 | * Creates a new StreamingRecognizeResponse instance using the specified properties.
|
4326 | * @param [properties] Properties to set
|
4327 | * @returns StreamingRecognizeResponse instance
|
4328 | */
|
4329 | public static create(properties?: google.cloud.speech.v1p1beta1.IStreamingRecognizeResponse): google.cloud.speech.v1p1beta1.StreamingRecognizeResponse;
|
4330 |
|
4331 | /**
|
4332 | * Encodes the specified StreamingRecognizeResponse message. Does not implicitly { google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.verify|verify} messages.
|
4333 | * message StreamingRecognizeResponse message or plain object to encode
|
4334 | * [writer] Writer to encode to
|
4335 | * Writer
|
4336 | */
|
4337 | public static encode(message: google.cloud.speech.v1p1beta1.IStreamingRecognizeResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
4338 |
|
4339 | /**
|
4340 | * Encodes the specified StreamingRecognizeResponse message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.verify|verify} messages.
|
4341 | * @param message StreamingRecognizeResponse message or plain object to encode
|
4342 | * @param [writer] Writer to encode to
|
4343 | * @returns Writer
|
4344 | */
|
4345 | public static encodeDelimited(message: google.cloud.speech.v1p1beta1.IStreamingRecognizeResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
4346 |
|
4347 | /**
|
4348 | * Decodes a StreamingRecognizeResponse message from the specified reader or buffer.
|
4349 | * @param reader Reader or buffer to decode from
|
4350 | * @param [length] Message length if known beforehand
|
4351 | * @returns StreamingRecognizeResponse
|
4352 | * @throws {Error} If the payload is not a reader or valid buffer
|
4353 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
4354 | */
|
4355 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.StreamingRecognizeResponse;
|
4356 |
|
4357 | /**
|
4358 | * Decodes a StreamingRecognizeResponse message from the specified reader or buffer, length delimited.
|
4359 | * @param reader Reader or buffer to decode from
|
4360 | * @returns StreamingRecognizeResponse
|
4361 | * @throws {Error} If the payload is not a reader or valid buffer
|
4362 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
4363 | */
|
4364 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.StreamingRecognizeResponse;
|
4365 |
|
4366 | /**
|
4367 | * Verifies a StreamingRecognizeResponse message.
|
4368 | * @param message Plain object to verify
|
4369 | * @returns `null` if valid, otherwise the reason why it is not
|
4370 | */
|
4371 | public static verify(message: { [k: string]: any }): (string|null);
|
4372 |
|
4373 | /**
|
4374 | * Creates a StreamingRecognizeResponse message from a plain object. Also converts values to their respective internal types.
|
4375 | * @param object Plain object
|
4376 | * @returns StreamingRecognizeResponse
|
4377 | */
|
4378 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.StreamingRecognizeResponse;
|
4379 |
|
4380 | /**
|
4381 | * Creates a plain object from a StreamingRecognizeResponse message. Also converts values to other types if specified.
|
4382 | * @param message StreamingRecognizeResponse
|
4383 | * @param [options] Conversion options
|
4384 | * @returns Plain object
|
4385 | */
|
4386 | public static toObject(message: google.cloud.speech.v1p1beta1.StreamingRecognizeResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
4387 |
|
4388 | /**
|
4389 | * Converts this StreamingRecognizeResponse to JSON.
|
4390 | * @returns JSON object
|
4391 | */
|
4392 | public toJSON(): { [k: string]: any };
|
4393 | }
|
4394 |
|
4395 | namespace StreamingRecognizeResponse {
|
4396 |
|
4397 | /** SpeechEventType enum. */
|
4398 | enum SpeechEventType {
|
4399 | SPEECH_EVENT_UNSPECIFIED = 0,
|
4400 | END_OF_SINGLE_UTTERANCE = 1
|
4401 | }
|
4402 | }
|
4403 |
|
4404 | /** Properties of a StreamingRecognitionResult. */
|
4405 | interface IStreamingRecognitionResult {
|
4406 |
|
4407 | /** StreamingRecognitionResult alternatives */
|
4408 | alternatives?: (google.cloud.speech.v1p1beta1.ISpeechRecognitionAlternative[]|null);
|
4409 |
|
4410 | /** StreamingRecognitionResult isFinal */
|
4411 | isFinal?: (boolean|null);
|
4412 |
|
4413 | /** StreamingRecognitionResult stability */
|
4414 | stability?: (number|null);
|
4415 |
|
4416 | /** StreamingRecognitionResult resultEndTime */
|
4417 | resultEndTime?: (google.protobuf.IDuration|null);
|
4418 |
|
4419 | /** StreamingRecognitionResult channelTag */
|
4420 | channelTag?: (number|null);
|
4421 |
|
4422 | /** StreamingRecognitionResult languageCode */
|
4423 | languageCode?: (string|null);
|
4424 | }
|
4425 |
|
4426 | /** Represents a StreamingRecognitionResult. */
|
4427 | class StreamingRecognitionResult implements IStreamingRecognitionResult {
|
4428 |
|
4429 | /**
|
4430 | * Constructs a new StreamingRecognitionResult.
|
4431 | * @param [properties] Properties to set
|
4432 | */
|
4433 | constructor(properties?: google.cloud.speech.v1p1beta1.IStreamingRecognitionResult);
|
4434 |
|
4435 | /** StreamingRecognitionResult alternatives. */
|
4436 | public alternatives: google.cloud.speech.v1p1beta1.ISpeechRecognitionAlternative[];
|
4437 |
|
4438 | /** StreamingRecognitionResult isFinal. */
|
4439 | public isFinal: boolean;
|
4440 |
|
4441 | /** StreamingRecognitionResult stability. */
|
4442 | public stability: number;
|
4443 |
|
4444 | /** StreamingRecognitionResult resultEndTime. */
|
4445 | public resultEndTime?: (google.protobuf.IDuration|null);
|
4446 |
|
4447 | /** StreamingRecognitionResult channelTag. */
|
4448 | public channelTag: number;
|
4449 |
|
4450 | /** StreamingRecognitionResult languageCode. */
|
4451 | public languageCode: string;
|
4452 |
|
4453 | /**
|
4454 | * Creates a new StreamingRecognitionResult instance using the specified properties.
|
4455 | * @param [properties] Properties to set
|
4456 | * @returns StreamingRecognitionResult instance
|
4457 | */
|
4458 | public static create(properties?: google.cloud.speech.v1p1beta1.IStreamingRecognitionResult): google.cloud.speech.v1p1beta1.StreamingRecognitionResult;
|
4459 |
|
4460 | /**
|
4461 | * Encodes the specified StreamingRecognitionResult message. Does not implicitly { google.cloud.speech.v1p1beta1.StreamingRecognitionResult.verify|verify} messages.
|
4462 | * message StreamingRecognitionResult message or plain object to encode
|
4463 | * [writer] Writer to encode to
|
4464 | * Writer
|
4465 | */
|
4466 | public static encode(message: google.cloud.speech.v1p1beta1.IStreamingRecognitionResult, writer?: $protobuf.Writer): $protobuf.Writer;
|
4467 |
|
4468 | /**
|
4469 | * Encodes the specified StreamingRecognitionResult message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.StreamingRecognitionResult.verify|verify} messages.
|
4470 | * @param message StreamingRecognitionResult message or plain object to encode
|
4471 | * @param [writer] Writer to encode to
|
4472 | * @returns Writer
|
4473 | */
|
4474 | public static encodeDelimited(message: google.cloud.speech.v1p1beta1.IStreamingRecognitionResult, writer?: $protobuf.Writer): $protobuf.Writer;
|
4475 |
|
4476 | /**
|
4477 | * Decodes a StreamingRecognitionResult message from the specified reader or buffer.
|
4478 | * @param reader Reader or buffer to decode from
|
4479 | * @param [length] Message length if known beforehand
|
4480 | * @returns StreamingRecognitionResult
|
4481 | * @throws {Error} If the payload is not a reader or valid buffer
|
4482 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
4483 | */
|
4484 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.StreamingRecognitionResult;
|
4485 |
|
4486 | /**
|
4487 | * Decodes a StreamingRecognitionResult message from the specified reader or buffer, length delimited.
|
4488 | * @param reader Reader or buffer to decode from
|
4489 | * @returns StreamingRecognitionResult
|
4490 | * @throws {Error} If the payload is not a reader or valid buffer
|
4491 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
4492 | */
|
4493 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.StreamingRecognitionResult;
|
4494 |
|
4495 | /**
|
4496 | * Verifies a StreamingRecognitionResult message.
|
4497 | * @param message Plain object to verify
|
4498 | * @returns `null` if valid, otherwise the reason why it is not
|
4499 | */
|
4500 | public static verify(message: { [k: string]: any }): (string|null);
|
4501 |
|
4502 | /**
|
4503 | * Creates a StreamingRecognitionResult message from a plain object. Also converts values to their respective internal types.
|
4504 | * @param object Plain object
|
4505 | * @returns StreamingRecognitionResult
|
4506 | */
|
4507 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.StreamingRecognitionResult;
|
4508 |
|
4509 | /**
|
4510 | * Creates a plain object from a StreamingRecognitionResult message. Also converts values to other types if specified.
|
4511 | * @param message StreamingRecognitionResult
|
4512 | * @param [options] Conversion options
|
4513 | * @returns Plain object
|
4514 | */
|
4515 | public static toObject(message: google.cloud.speech.v1p1beta1.StreamingRecognitionResult, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
4516 |
|
4517 | /**
|
4518 | * Converts this StreamingRecognitionResult to JSON.
|
4519 | * @returns JSON object
|
4520 | */
|
4521 | public toJSON(): { [k: string]: any };
|
4522 | }
|
4523 |
|
4524 | /** Properties of a SpeechRecognitionResult. */
|
4525 | interface ISpeechRecognitionResult {
|
4526 |
|
4527 | /** SpeechRecognitionResult alternatives */
|
4528 | alternatives?: (google.cloud.speech.v1p1beta1.ISpeechRecognitionAlternative[]|null);
|
4529 |
|
4530 | /** SpeechRecognitionResult channelTag */
|
4531 | channelTag?: (number|null);
|
4532 |
|
4533 | /** SpeechRecognitionResult resultEndTime */
|
4534 | resultEndTime?: (google.protobuf.IDuration|null);
|
4535 |
|
4536 | /** SpeechRecognitionResult languageCode */
|
4537 | languageCode?: (string|null);
|
4538 | }
|
4539 |
|
4540 | /** Represents a SpeechRecognitionResult. */
|
4541 | class SpeechRecognitionResult implements ISpeechRecognitionResult {
|
4542 |
|
4543 | /**
|
4544 | * Constructs a new SpeechRecognitionResult.
|
4545 | * @param [properties] Properties to set
|
4546 | */
|
4547 | constructor(properties?: google.cloud.speech.v1p1beta1.ISpeechRecognitionResult);
|
4548 |
|
4549 | /** SpeechRecognitionResult alternatives. */
|
4550 | public alternatives: google.cloud.speech.v1p1beta1.ISpeechRecognitionAlternative[];
|
4551 |
|
4552 | /** SpeechRecognitionResult channelTag. */
|
4553 | public channelTag: number;
|
4554 |
|
4555 | /** SpeechRecognitionResult resultEndTime. */
|
4556 | public resultEndTime?: (google.protobuf.IDuration|null);
|
4557 |
|
4558 | /** SpeechRecognitionResult languageCode. */
|
4559 | public languageCode: string;
|
4560 |
|
4561 | /**
|
4562 | * Creates a new SpeechRecognitionResult instance using the specified properties.
|
4563 | * @param [properties] Properties to set
|
4564 | * @returns SpeechRecognitionResult instance
|
4565 | */
|
4566 | public static create(properties?: google.cloud.speech.v1p1beta1.ISpeechRecognitionResult): google.cloud.speech.v1p1beta1.SpeechRecognitionResult;
|
4567 |
|
4568 | /**
|
4569 | * Encodes the specified SpeechRecognitionResult message. Does not implicitly { google.cloud.speech.v1p1beta1.SpeechRecognitionResult.verify|verify} messages.
|
4570 | * message SpeechRecognitionResult message or plain object to encode
|
4571 | * [writer] Writer to encode to
|
4572 | * Writer
|
4573 | */
|
4574 | public static encode(message: google.cloud.speech.v1p1beta1.ISpeechRecognitionResult, writer?: $protobuf.Writer): $protobuf.Writer;
|
4575 |
|
4576 | /**
|
4577 | * Encodes the specified SpeechRecognitionResult message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.SpeechRecognitionResult.verify|verify} messages.
|
4578 | * @param message SpeechRecognitionResult message or plain object to encode
|
4579 | * @param [writer] Writer to encode to
|
4580 | * @returns Writer
|
4581 | */
|
4582 | public static encodeDelimited(message: google.cloud.speech.v1p1beta1.ISpeechRecognitionResult, writer?: $protobuf.Writer): $protobuf.Writer;
|
4583 |
|
4584 | /**
|
4585 | * Decodes a SpeechRecognitionResult message from the specified reader or buffer.
|
4586 | * @param reader Reader or buffer to decode from
|
4587 | * @param [length] Message length if known beforehand
|
4588 | * @returns SpeechRecognitionResult
|
4589 | * @throws {Error} If the payload is not a reader or valid buffer
|
4590 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
4591 | */
|
4592 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.SpeechRecognitionResult;
|
4593 |
|
4594 | /**
|
4595 | * Decodes a SpeechRecognitionResult message from the specified reader or buffer, length delimited.
|
4596 | * @param reader Reader or buffer to decode from
|
4597 | * @returns SpeechRecognitionResult
|
4598 | * @throws {Error} If the payload is not a reader or valid buffer
|
4599 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
4600 | */
|
4601 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.SpeechRecognitionResult;
|
4602 |
|
4603 | /**
|
4604 | * Verifies a SpeechRecognitionResult message.
|
4605 | * @param message Plain object to verify
|
4606 | * @returns `null` if valid, otherwise the reason why it is not
|
4607 | */
|
4608 | public static verify(message: { [k: string]: any }): (string|null);
|
4609 |
|
4610 | /**
|
4611 | * Creates a SpeechRecognitionResult message from a plain object. Also converts values to their respective internal types.
|
4612 | * @param object Plain object
|
4613 | * @returns SpeechRecognitionResult
|
4614 | */
|
4615 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.SpeechRecognitionResult;
|
4616 |
|
4617 | /**
|
4618 | * Creates a plain object from a SpeechRecognitionResult message. Also converts values to other types if specified.
|
4619 | * @param message SpeechRecognitionResult
|
4620 | * @param [options] Conversion options
|
4621 | * @returns Plain object
|
4622 | */
|
4623 | public static toObject(message: google.cloud.speech.v1p1beta1.SpeechRecognitionResult, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
4624 |
|
4625 | /**
|
4626 | * Converts this SpeechRecognitionResult to JSON.
|
4627 | * @returns JSON object
|
4628 | */
|
4629 | public toJSON(): { [k: string]: any };
|
4630 | }
|
4631 |
|
4632 | /** Properties of a SpeechRecognitionAlternative. */
|
4633 | interface ISpeechRecognitionAlternative {
|
4634 |
|
4635 | /** SpeechRecognitionAlternative transcript */
|
4636 | transcript?: (string|null);
|
4637 |
|
4638 | /** SpeechRecognitionAlternative confidence */
|
4639 | confidence?: (number|null);
|
4640 |
|
4641 | /** SpeechRecognitionAlternative words */
|
4642 | words?: (google.cloud.speech.v1p1beta1.IWordInfo[]|null);
|
4643 | }
|
4644 |
|
4645 | /** Represents a SpeechRecognitionAlternative. */
|
4646 | class SpeechRecognitionAlternative implements ISpeechRecognitionAlternative {
|
4647 |
|
4648 | /**
|
4649 | * Constructs a new SpeechRecognitionAlternative.
|
4650 | * @param [properties] Properties to set
|
4651 | */
|
4652 | constructor(properties?: google.cloud.speech.v1p1beta1.ISpeechRecognitionAlternative);
|
4653 |
|
4654 | /** SpeechRecognitionAlternative transcript. */
|
4655 | public transcript: string;
|
4656 |
|
4657 | /** SpeechRecognitionAlternative confidence. */
|
4658 | public confidence: number;
|
4659 |
|
4660 | /** SpeechRecognitionAlternative words. */
|
4661 | public words: google.cloud.speech.v1p1beta1.IWordInfo[];
|
4662 |
|
4663 | /**
|
4664 | * Creates a new SpeechRecognitionAlternative instance using the specified properties.
|
4665 | * @param [properties] Properties to set
|
4666 | * @returns SpeechRecognitionAlternative instance
|
4667 | */
|
4668 | public static create(properties?: google.cloud.speech.v1p1beta1.ISpeechRecognitionAlternative): google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative;
|
4669 |
|
4670 | /**
|
4671 | * Encodes the specified SpeechRecognitionAlternative message. Does not implicitly { google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.verify|verify} messages.
|
4672 | * message SpeechRecognitionAlternative message or plain object to encode
|
4673 | * [writer] Writer to encode to
|
4674 | * Writer
|
4675 | */
|
4676 | public static encode(message: google.cloud.speech.v1p1beta1.ISpeechRecognitionAlternative, writer?: $protobuf.Writer): $protobuf.Writer;
|
4677 |
|
4678 | /**
|
4679 | * Encodes the specified SpeechRecognitionAlternative message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.verify|verify} messages.
|
4680 | * @param message SpeechRecognitionAlternative message or plain object to encode
|
4681 | * @param [writer] Writer to encode to
|
4682 | * @returns Writer
|
4683 | */
|
4684 | public static encodeDelimited(message: google.cloud.speech.v1p1beta1.ISpeechRecognitionAlternative, writer?: $protobuf.Writer): $protobuf.Writer;
|
4685 |
|
4686 | /**
|
4687 | * Decodes a SpeechRecognitionAlternative message from the specified reader or buffer.
|
4688 | * @param reader Reader or buffer to decode from
|
4689 | * @param [length] Message length if known beforehand
|
4690 | * @returns SpeechRecognitionAlternative
|
4691 | * @throws {Error} If the payload is not a reader or valid buffer
|
4692 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
4693 | */
|
4694 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative;
|
4695 |
|
4696 | /**
|
4697 | * Decodes a SpeechRecognitionAlternative message from the specified reader or buffer, length delimited.
|
4698 | * @param reader Reader or buffer to decode from
|
4699 | * @returns SpeechRecognitionAlternative
|
4700 | * @throws {Error} If the payload is not a reader or valid buffer
|
4701 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
4702 | */
|
4703 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative;
|
4704 |
|
4705 | /**
|
4706 | * Verifies a SpeechRecognitionAlternative message.
|
4707 | * @param message Plain object to verify
|
4708 | * @returns `null` if valid, otherwise the reason why it is not
|
4709 | */
|
4710 | public static verify(message: { [k: string]: any }): (string|null);
|
4711 |
|
4712 | /**
|
4713 | * Creates a SpeechRecognitionAlternative message from a plain object. Also converts values to their respective internal types.
|
4714 | * @param object Plain object
|
4715 | * @returns SpeechRecognitionAlternative
|
4716 | */
|
4717 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative;
|
4718 |
|
4719 | /**
|
4720 | * Creates a plain object from a SpeechRecognitionAlternative message. Also converts values to other types if specified.
|
4721 | * @param message SpeechRecognitionAlternative
|
4722 | * @param [options] Conversion options
|
4723 | * @returns Plain object
|
4724 | */
|
4725 | public static toObject(message: google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
4726 |
|
4727 | /**
|
4728 | * Converts this SpeechRecognitionAlternative to JSON.
|
4729 | * @returns JSON object
|
4730 | */
|
4731 | public toJSON(): { [k: string]: any };
|
4732 | }
|
4733 |
|
4734 | /** Properties of a WordInfo. */
|
4735 | interface IWordInfo {
|
4736 |
|
4737 | /** WordInfo startTime */
|
4738 | startTime?: (google.protobuf.IDuration|null);
|
4739 |
|
4740 | /** WordInfo endTime */
|
4741 | endTime?: (google.protobuf.IDuration|null);
|
4742 |
|
4743 | /** WordInfo word */
|
4744 | word?: (string|null);
|
4745 |
|
4746 | /** WordInfo confidence */
|
4747 | confidence?: (number|null);
|
4748 |
|
4749 | /** WordInfo speakerTag */
|
4750 | speakerTag?: (number|null);
|
4751 | }
|
4752 |
|
4753 | /** Represents a WordInfo. */
|
4754 | class WordInfo implements IWordInfo {
|
4755 |
|
4756 | /**
|
4757 | * Constructs a new WordInfo.
|
4758 | * @param [properties] Properties to set
|
4759 | */
|
4760 | constructor(properties?: google.cloud.speech.v1p1beta1.IWordInfo);
|
4761 |
|
4762 | /** WordInfo startTime. */
|
4763 | public startTime?: (google.protobuf.IDuration|null);
|
4764 |
|
4765 | /** WordInfo endTime. */
|
4766 | public endTime?: (google.protobuf.IDuration|null);
|
4767 |
|
4768 | /** WordInfo word. */
|
4769 | public word: string;
|
4770 |
|
4771 | /** WordInfo confidence. */
|
4772 | public confidence: number;
|
4773 |
|
4774 | /** WordInfo speakerTag. */
|
4775 | public speakerTag: number;
|
4776 |
|
4777 | /**
|
4778 | * Creates a new WordInfo instance using the specified properties.
|
4779 | * @param [properties] Properties to set
|
4780 | * @returns WordInfo instance
|
4781 | */
|
4782 | public static create(properties?: google.cloud.speech.v1p1beta1.IWordInfo): google.cloud.speech.v1p1beta1.WordInfo;
|
4783 |
|
4784 | /**
|
4785 | * Encodes the specified WordInfo message. Does not implicitly { google.cloud.speech.v1p1beta1.WordInfo.verify|verify} messages.
|
4786 | * message WordInfo message or plain object to encode
|
4787 | * [writer] Writer to encode to
|
4788 | * Writer
|
4789 | */
|
4790 | public static encode(message: google.cloud.speech.v1p1beta1.IWordInfo, writer?: $protobuf.Writer): $protobuf.Writer;
|
4791 |
|
4792 | /**
|
4793 | * Encodes the specified WordInfo message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.WordInfo.verify|verify} messages.
|
4794 | * @param message WordInfo message or plain object to encode
|
4795 | * @param [writer] Writer to encode to
|
4796 | * @returns Writer
|
4797 | */
|
4798 | public static encodeDelimited(message: google.cloud.speech.v1p1beta1.IWordInfo, writer?: $protobuf.Writer): $protobuf.Writer;
|
4799 |
|
4800 | /**
|
4801 | * Decodes a WordInfo message from the specified reader or buffer.
|
4802 | * @param reader Reader or buffer to decode from
|
4803 | * @param [length] Message length if known beforehand
|
4804 | * @returns WordInfo
|
4805 | * @throws {Error} If the payload is not a reader or valid buffer
|
4806 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
4807 | */
|
4808 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.WordInfo;
|
4809 |
|
4810 | /**
|
4811 | * Decodes a WordInfo message from the specified reader or buffer, length delimited.
|
4812 | * @param reader Reader or buffer to decode from
|
4813 | * @returns WordInfo
|
4814 | * @throws {Error} If the payload is not a reader or valid buffer
|
4815 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
4816 | */
|
4817 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.WordInfo;
|
4818 |
|
4819 | /**
|
4820 | * Verifies a WordInfo message.
|
4821 | * @param message Plain object to verify
|
4822 | * @returns `null` if valid, otherwise the reason why it is not
|
4823 | */
|
4824 | public static verify(message: { [k: string]: any }): (string|null);
|
4825 |
|
4826 | /**
|
4827 | * Creates a WordInfo message from a plain object. Also converts values to their respective internal types.
|
4828 | * @param object Plain object
|
4829 | * @returns WordInfo
|
4830 | */
|
4831 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.WordInfo;
|
4832 |
|
4833 | /**
|
4834 | * Creates a plain object from a WordInfo message. Also converts values to other types if specified.
|
4835 | * @param message WordInfo
|
4836 | * @param [options] Conversion options
|
4837 | * @returns Plain object
|
4838 | */
|
4839 | public static toObject(message: google.cloud.speech.v1p1beta1.WordInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
4840 |
|
4841 | /**
|
4842 | * Converts this WordInfo to JSON.
|
4843 | * @returns JSON object
|
4844 | */
|
4845 | public toJSON(): { [k: string]: any };
|
4846 | }
|
4847 |
|
4848 | /** Properties of a CustomClass. */
|
4849 | interface ICustomClass {
|
4850 |
|
4851 | /** CustomClass name */
|
4852 | name?: (string|null);
|
4853 |
|
4854 | /** CustomClass customClassId */
|
4855 | customClassId?: (string|null);
|
4856 |
|
4857 | /** CustomClass items */
|
4858 | items?: (google.cloud.speech.v1p1beta1.CustomClass.IClassItem[]|null);
|
4859 | }
|
4860 |
|
4861 | /** Represents a CustomClass. */
|
4862 | class CustomClass implements ICustomClass {
|
4863 |
|
4864 | /**
|
4865 | * Constructs a new CustomClass.
|
4866 | * @param [properties] Properties to set
|
4867 | */
|
4868 | constructor(properties?: google.cloud.speech.v1p1beta1.ICustomClass);
|
4869 |
|
4870 | /** CustomClass name. */
|
4871 | public name: string;
|
4872 |
|
4873 | /** CustomClass customClassId. */
|
4874 | public customClassId: string;
|
4875 |
|
4876 | /** CustomClass items. */
|
4877 | public items: google.cloud.speech.v1p1beta1.CustomClass.IClassItem[];
|
4878 |
|
4879 | /**
|
4880 | * Creates a new CustomClass instance using the specified properties.
|
4881 | * @param [properties] Properties to set
|
4882 | * @returns CustomClass instance
|
4883 | */
|
4884 | public static create(properties?: google.cloud.speech.v1p1beta1.ICustomClass): google.cloud.speech.v1p1beta1.CustomClass;
|
4885 |
|
4886 | /**
|
4887 | * Encodes the specified CustomClass message. Does not implicitly { google.cloud.speech.v1p1beta1.CustomClass.verify|verify} messages.
|
4888 | * message CustomClass message or plain object to encode
|
4889 | * [writer] Writer to encode to
|
4890 | * Writer
|
4891 | */
|
4892 | public static encode(message: google.cloud.speech.v1p1beta1.ICustomClass, writer?: $protobuf.Writer): $protobuf.Writer;
|
4893 |
|
4894 | /**
|
4895 | * Encodes the specified CustomClass message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.CustomClass.verify|verify} messages.
|
4896 | * @param message CustomClass message or plain object to encode
|
4897 | * @param [writer] Writer to encode to
|
4898 | * @returns Writer
|
4899 | */
|
4900 | public static encodeDelimited(message: google.cloud.speech.v1p1beta1.ICustomClass, writer?: $protobuf.Writer): $protobuf.Writer;
|
4901 |
|
4902 | /**
|
4903 | * Decodes a CustomClass message from the specified reader or buffer.
|
4904 | * @param reader Reader or buffer to decode from
|
4905 | * @param [length] Message length if known beforehand
|
4906 | * @returns CustomClass
|
4907 | * @throws {Error} If the payload is not a reader or valid buffer
|
4908 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
4909 | */
|
4910 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.CustomClass;
|
4911 |
|
4912 | /**
|
4913 | * Decodes a CustomClass message from the specified reader or buffer, length delimited.
|
4914 | * @param reader Reader or buffer to decode from
|
4915 | * @returns CustomClass
|
4916 | * @throws {Error} If the payload is not a reader or valid buffer
|
4917 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
4918 | */
|
4919 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.CustomClass;
|
4920 |
|
4921 | /**
|
4922 | * Verifies a CustomClass message.
|
4923 | * @param message Plain object to verify
|
4924 | * @returns `null` if valid, otherwise the reason why it is not
|
4925 | */
|
4926 | public static verify(message: { [k: string]: any }): (string|null);
|
4927 |
|
4928 | /**
|
4929 | * Creates a CustomClass message from a plain object. Also converts values to their respective internal types.
|
4930 | * @param object Plain object
|
4931 | * @returns CustomClass
|
4932 | */
|
4933 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.CustomClass;
|
4934 |
|
4935 | /**
|
4936 | * Creates a plain object from a CustomClass message. Also converts values to other types if specified.
|
4937 | * @param message CustomClass
|
4938 | * @param [options] Conversion options
|
4939 | * @returns Plain object
|
4940 | */
|
4941 | public static toObject(message: google.cloud.speech.v1p1beta1.CustomClass, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
4942 |
|
4943 | /**
|
4944 | * Converts this CustomClass to JSON.
|
4945 | * @returns JSON object
|
4946 | */
|
4947 | public toJSON(): { [k: string]: any };
|
4948 | }
|
4949 |
|
4950 | namespace CustomClass {
|
4951 |
|
4952 | /** Properties of a ClassItem. */
|
4953 | interface IClassItem {
|
4954 |
|
4955 | /** ClassItem value */
|
4956 | value?: (string|null);
|
4957 | }
|
4958 |
|
4959 | /** Represents a ClassItem. */
|
4960 | class ClassItem implements IClassItem {
|
4961 |
|
4962 | /**
|
4963 | * Constructs a new ClassItem.
|
4964 | * @param [properties] Properties to set
|
4965 | */
|
4966 | constructor(properties?: google.cloud.speech.v1p1beta1.CustomClass.IClassItem);
|
4967 |
|
4968 | /** ClassItem value. */
|
4969 | public value: string;
|
4970 |
|
4971 | /**
|
4972 | * Creates a new ClassItem instance using the specified properties.
|
4973 | * @param [properties] Properties to set
|
4974 | * @returns ClassItem instance
|
4975 | */
|
4976 | public static create(properties?: google.cloud.speech.v1p1beta1.CustomClass.IClassItem): google.cloud.speech.v1p1beta1.CustomClass.ClassItem;
|
4977 |
|
4978 | /**
|
4979 | * Encodes the specified ClassItem message. Does not implicitly { google.cloud.speech.v1p1beta1.CustomClass.ClassItem.verify|verify} messages.
|
4980 | * message ClassItem message or plain object to encode
|
4981 | * [writer] Writer to encode to
|
4982 | * Writer
|
4983 | */
|
4984 | public static encode(message: google.cloud.speech.v1p1beta1.CustomClass.IClassItem, writer?: $protobuf.Writer): $protobuf.Writer;
|
4985 |
|
4986 | /**
|
4987 | * Encodes the specified ClassItem message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.CustomClass.ClassItem.verify|verify} messages.
|
4988 | * @param message ClassItem message or plain object to encode
|
4989 | * @param [writer] Writer to encode to
|
4990 | * @returns Writer
|
4991 | */
|
4992 | public static encodeDelimited(message: google.cloud.speech.v1p1beta1.CustomClass.IClassItem, writer?: $protobuf.Writer): $protobuf.Writer;
|
4993 |
|
4994 | /**
|
4995 | * Decodes a ClassItem message from the specified reader or buffer.
|
4996 | * @param reader Reader or buffer to decode from
|
4997 | * @param [length] Message length if known beforehand
|
4998 | * @returns ClassItem
|
4999 | * @throws {Error} If the payload is not a reader or valid buffer
|
5000 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
5001 | */
|
5002 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.CustomClass.ClassItem;
|
5003 |
|
5004 | /**
|
5005 | * Decodes a ClassItem message from the specified reader or buffer, length delimited.
|
5006 | * @param reader Reader or buffer to decode from
|
5007 | * @returns ClassItem
|
5008 | * @throws {Error} If the payload is not a reader or valid buffer
|
5009 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
5010 | */
|
5011 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.CustomClass.ClassItem;
|
5012 |
|
5013 | /**
|
5014 | * Verifies a ClassItem message.
|
5015 | * @param message Plain object to verify
|
5016 | * @returns `null` if valid, otherwise the reason why it is not
|
5017 | */
|
5018 | public static verify(message: { [k: string]: any }): (string|null);
|
5019 |
|
5020 | /**
|
5021 | * Creates a ClassItem message from a plain object. Also converts values to their respective internal types.
|
5022 | * @param object Plain object
|
5023 | * @returns ClassItem
|
5024 | */
|
5025 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.CustomClass.ClassItem;
|
5026 |
|
5027 | /**
|
5028 | * Creates a plain object from a ClassItem message. Also converts values to other types if specified.
|
5029 | * @param message ClassItem
|
5030 | * @param [options] Conversion options
|
5031 | * @returns Plain object
|
5032 | */
|
5033 | public static toObject(message: google.cloud.speech.v1p1beta1.CustomClass.ClassItem, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
5034 |
|
5035 | /**
|
5036 | * Converts this ClassItem to JSON.
|
5037 | * @returns JSON object
|
5038 | */
|
5039 | public toJSON(): { [k: string]: any };
|
5040 | }
|
5041 | }
|
5042 |
|
5043 | /** Properties of a PhraseSet. */
|
5044 | interface IPhraseSet {
|
5045 |
|
5046 | /** PhraseSet name */
|
5047 | name?: (string|null);
|
5048 |
|
5049 | /** PhraseSet phrases */
|
5050 | phrases?: (google.cloud.speech.v1p1beta1.PhraseSet.IPhrase[]|null);
|
5051 |
|
5052 | /** PhraseSet boost */
|
5053 | boost?: (number|null);
|
5054 | }
|
5055 |
|
5056 | /** Represents a PhraseSet. */
|
5057 | class PhraseSet implements IPhraseSet {
|
5058 |
|
5059 | /**
|
5060 | * Constructs a new PhraseSet.
|
5061 | * @param [properties] Properties to set
|
5062 | */
|
5063 | constructor(properties?: google.cloud.speech.v1p1beta1.IPhraseSet);
|
5064 |
|
5065 | /** PhraseSet name. */
|
5066 | public name: string;
|
5067 |
|
5068 | /** PhraseSet phrases. */
|
5069 | public phrases: google.cloud.speech.v1p1beta1.PhraseSet.IPhrase[];
|
5070 |
|
5071 | /** PhraseSet boost. */
|
5072 | public boost: number;
|
5073 |
|
5074 | /**
|
5075 | * Creates a new PhraseSet instance using the specified properties.
|
5076 | * @param [properties] Properties to set
|
5077 | * @returns PhraseSet instance
|
5078 | */
|
5079 | public static create(properties?: google.cloud.speech.v1p1beta1.IPhraseSet): google.cloud.speech.v1p1beta1.PhraseSet;
|
5080 |
|
5081 | /**
|
5082 | * Encodes the specified PhraseSet message. Does not implicitly { google.cloud.speech.v1p1beta1.PhraseSet.verify|verify} messages.
|
5083 | * message PhraseSet message or plain object to encode
|
5084 | * [writer] Writer to encode to
|
5085 | * Writer
|
5086 | */
|
5087 | public static encode(message: google.cloud.speech.v1p1beta1.IPhraseSet, writer?: $protobuf.Writer): $protobuf.Writer;
|
5088 |
|
5089 | /**
|
5090 | * Encodes the specified PhraseSet message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.PhraseSet.verify|verify} messages.
|
5091 | * @param message PhraseSet message or plain object to encode
|
5092 | * @param [writer] Writer to encode to
|
5093 | * @returns Writer
|
5094 | */
|
5095 | public static encodeDelimited(message: google.cloud.speech.v1p1beta1.IPhraseSet, writer?: $protobuf.Writer): $protobuf.Writer;
|
5096 |
|
5097 | /**
|
5098 | * Decodes a PhraseSet message from the specified reader or buffer.
|
5099 | * @param reader Reader or buffer to decode from
|
5100 | * @param [length] Message length if known beforehand
|
5101 | * @returns PhraseSet
|
5102 | * @throws {Error} If the payload is not a reader or valid buffer
|
5103 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
5104 | */
|
5105 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.PhraseSet;
|
5106 |
|
5107 | /**
|
5108 | * Decodes a PhraseSet message from the specified reader or buffer, length delimited.
|
5109 | * @param reader Reader or buffer to decode from
|
5110 | * @returns PhraseSet
|
5111 | * @throws {Error} If the payload is not a reader or valid buffer
|
5112 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
5113 | */
|
5114 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.PhraseSet;
|
5115 |
|
5116 | /**
|
5117 | * Verifies a PhraseSet message.
|
5118 | * @param message Plain object to verify
|
5119 | * @returns `null` if valid, otherwise the reason why it is not
|
5120 | */
|
5121 | public static verify(message: { [k: string]: any }): (string|null);
|
5122 |
|
5123 | /**
|
5124 | * Creates a PhraseSet message from a plain object. Also converts values to their respective internal types.
|
5125 | * @param object Plain object
|
5126 | * @returns PhraseSet
|
5127 | */
|
5128 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.PhraseSet;
|
5129 |
|
5130 | /**
|
5131 | * Creates a plain object from a PhraseSet message. Also converts values to other types if specified.
|
5132 | * @param message PhraseSet
|
5133 | * @param [options] Conversion options
|
5134 | * @returns Plain object
|
5135 | */
|
5136 | public static toObject(message: google.cloud.speech.v1p1beta1.PhraseSet, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
5137 |
|
5138 | /**
|
5139 | * Converts this PhraseSet to JSON.
|
5140 | * @returns JSON object
|
5141 | */
|
5142 | public toJSON(): { [k: string]: any };
|
5143 | }
|
5144 |
|
5145 | namespace PhraseSet {
|
5146 |
|
5147 | /** Properties of a Phrase. */
|
5148 | interface IPhrase {
|
5149 |
|
5150 | /** Phrase value */
|
5151 | value?: (string|null);
|
5152 |
|
5153 | /** Phrase boost */
|
5154 | boost?: (number|null);
|
5155 | }
|
5156 |
|
5157 | /** Represents a Phrase. */
|
5158 | class Phrase implements IPhrase {
|
5159 |
|
5160 | /**
|
5161 | * Constructs a new Phrase.
|
5162 | * @param [properties] Properties to set
|
5163 | */
|
5164 | constructor(properties?: google.cloud.speech.v1p1beta1.PhraseSet.IPhrase);
|
5165 |
|
5166 | /** Phrase value. */
|
5167 | public value: string;
|
5168 |
|
5169 | /** Phrase boost. */
|
5170 | public boost: number;
|
5171 |
|
5172 | /**
|
5173 | * Creates a new Phrase instance using the specified properties.
|
5174 | * @param [properties] Properties to set
|
5175 | * @returns Phrase instance
|
5176 | */
|
5177 | public static create(properties?: google.cloud.speech.v1p1beta1.PhraseSet.IPhrase): google.cloud.speech.v1p1beta1.PhraseSet.Phrase;
|
5178 |
|
5179 | /**
|
5180 | * Encodes the specified Phrase message. Does not implicitly { google.cloud.speech.v1p1beta1.PhraseSet.Phrase.verify|verify} messages.
|
5181 | * message Phrase message or plain object to encode
|
5182 | * [writer] Writer to encode to
|
5183 | * Writer
|
5184 | */
|
5185 | public static encode(message: google.cloud.speech.v1p1beta1.PhraseSet.IPhrase, writer?: $protobuf.Writer): $protobuf.Writer;
|
5186 |
|
5187 | /**
|
5188 | * Encodes the specified Phrase message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.PhraseSet.Phrase.verify|verify} messages.
|
5189 | * @param message Phrase message or plain object to encode
|
5190 | * @param [writer] Writer to encode to
|
5191 | * @returns Writer
|
5192 | */
|
5193 | public static encodeDelimited(message: google.cloud.speech.v1p1beta1.PhraseSet.IPhrase, writer?: $protobuf.Writer): $protobuf.Writer;
|
5194 |
|
5195 | /**
|
5196 | * Decodes a Phrase message from the specified reader or buffer.
|
5197 | * @param reader Reader or buffer to decode from
|
5198 | * @param [length] Message length if known beforehand
|
5199 | * @returns Phrase
|
5200 | * @throws {Error} If the payload is not a reader or valid buffer
|
5201 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
5202 | */
|
5203 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.PhraseSet.Phrase;
|
5204 |
|
5205 | /**
|
5206 | * Decodes a Phrase message from the specified reader or buffer, length delimited.
|
5207 | * @param reader Reader or buffer to decode from
|
5208 | * @returns Phrase
|
5209 | * @throws {Error} If the payload is not a reader or valid buffer
|
5210 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
5211 | */
|
5212 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.PhraseSet.Phrase;
|
5213 |
|
5214 | /**
|
5215 | * Verifies a Phrase message.
|
5216 | * @param message Plain object to verify
|
5217 | * @returns `null` if valid, otherwise the reason why it is not
|
5218 | */
|
5219 | public static verify(message: { [k: string]: any }): (string|null);
|
5220 |
|
5221 | /**
|
5222 | * Creates a Phrase message from a plain object. Also converts values to their respective internal types.
|
5223 | * @param object Plain object
|
5224 | * @returns Phrase
|
5225 | */
|
5226 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.PhraseSet.Phrase;
|
5227 |
|
5228 | /**
|
5229 | * Creates a plain object from a Phrase message. Also converts values to other types if specified.
|
5230 | * @param message Phrase
|
5231 | * @param [options] Conversion options
|
5232 | * @returns Plain object
|
5233 | */
|
5234 | public static toObject(message: google.cloud.speech.v1p1beta1.PhraseSet.Phrase, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
5235 |
|
5236 | /**
|
5237 | * Converts this Phrase to JSON.
|
5238 | * @returns JSON object
|
5239 | */
|
5240 | public toJSON(): { [k: string]: any };
|
5241 | }
|
5242 | }
|
5243 |
|
5244 | /** Properties of a SpeechAdaptation. */
|
5245 | interface ISpeechAdaptation {
|
5246 |
|
5247 | /** SpeechAdaptation phraseSets */
|
5248 | phraseSets?: (google.cloud.speech.v1p1beta1.IPhraseSet[]|null);
|
5249 |
|
5250 | /** SpeechAdaptation phraseSetReferences */
|
5251 | phraseSetReferences?: (string[]|null);
|
5252 |
|
5253 | /** SpeechAdaptation customClasses */
|
5254 | customClasses?: (google.cloud.speech.v1p1beta1.ICustomClass[]|null);
|
5255 | }
|
5256 |
|
5257 | /** Represents a SpeechAdaptation. */
|
5258 | class SpeechAdaptation implements ISpeechAdaptation {
|
5259 |
|
5260 | /**
|
5261 | * Constructs a new SpeechAdaptation.
|
5262 | * @param [properties] Properties to set
|
5263 | */
|
5264 | constructor(properties?: google.cloud.speech.v1p1beta1.ISpeechAdaptation);
|
5265 |
|
5266 | /** SpeechAdaptation phraseSets. */
|
5267 | public phraseSets: google.cloud.speech.v1p1beta1.IPhraseSet[];
|
5268 |
|
5269 | /** SpeechAdaptation phraseSetReferences. */
|
5270 | public phraseSetReferences: string[];
|
5271 |
|
5272 | /** SpeechAdaptation customClasses. */
|
5273 | public customClasses: google.cloud.speech.v1p1beta1.ICustomClass[];
|
5274 |
|
5275 | /**
|
5276 | * Creates a new SpeechAdaptation instance using the specified properties.
|
5277 | * @param [properties] Properties to set
|
5278 | * @returns SpeechAdaptation instance
|
5279 | */
|
5280 | public static create(properties?: google.cloud.speech.v1p1beta1.ISpeechAdaptation): google.cloud.speech.v1p1beta1.SpeechAdaptation;
|
5281 |
|
5282 | /**
|
5283 | * Encodes the specified SpeechAdaptation message. Does not implicitly { google.cloud.speech.v1p1beta1.SpeechAdaptation.verify|verify} messages.
|
5284 | * message SpeechAdaptation message or plain object to encode
|
5285 | * [writer] Writer to encode to
|
5286 | * Writer
|
5287 | */
|
5288 | public static encode(message: google.cloud.speech.v1p1beta1.ISpeechAdaptation, writer?: $protobuf.Writer): $protobuf.Writer;
|
5289 |
|
5290 | /**
|
5291 | * Encodes the specified SpeechAdaptation message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.SpeechAdaptation.verify|verify} messages.
|
5292 | * @param message SpeechAdaptation message or plain object to encode
|
5293 | * @param [writer] Writer to encode to
|
5294 | * @returns Writer
|
5295 | */
|
5296 | public static encodeDelimited(message: google.cloud.speech.v1p1beta1.ISpeechAdaptation, writer?: $protobuf.Writer): $protobuf.Writer;
|
5297 |
|
5298 | /**
|
5299 | * Decodes a SpeechAdaptation message from the specified reader or buffer.
|
5300 | * @param reader Reader or buffer to decode from
|
5301 | * @param [length] Message length if known beforehand
|
5302 | * @returns SpeechAdaptation
|
5303 | * @throws {Error} If the payload is not a reader or valid buffer
|
5304 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
5305 | */
|
5306 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.SpeechAdaptation;
|
5307 |
|
5308 | /**
|
5309 | * Decodes a SpeechAdaptation message from the specified reader or buffer, length delimited.
|
5310 | * @param reader Reader or buffer to decode from
|
5311 | * @returns SpeechAdaptation
|
5312 | * @throws {Error} If the payload is not a reader or valid buffer
|
5313 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
5314 | */
|
5315 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.SpeechAdaptation;
|
5316 |
|
5317 | /**
|
5318 | * Verifies a SpeechAdaptation message.
|
5319 | * @param message Plain object to verify
|
5320 | * @returns `null` if valid, otherwise the reason why it is not
|
5321 | */
|
5322 | public static verify(message: { [k: string]: any }): (string|null);
|
5323 |
|
5324 | /**
|
5325 | * Creates a SpeechAdaptation message from a plain object. Also converts values to their respective internal types.
|
5326 | * @param object Plain object
|
5327 | * @returns SpeechAdaptation
|
5328 | */
|
5329 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.SpeechAdaptation;
|
5330 |
|
5331 | /**
|
5332 | * Creates a plain object from a SpeechAdaptation message. Also converts values to other types if specified.
|
5333 | * @param message SpeechAdaptation
|
5334 | * @param [options] Conversion options
|
5335 | * @returns Plain object
|
5336 | */
|
5337 | public static toObject(message: google.cloud.speech.v1p1beta1.SpeechAdaptation, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
5338 |
|
5339 | /**
|
5340 | * Converts this SpeechAdaptation to JSON.
|
5341 | * @returns JSON object
|
5342 | */
|
5343 | public toJSON(): { [k: string]: any };
|
5344 | }
|
5345 |
|
5346 | /** Properties of a TranscriptNormalization. */
|
5347 | interface ITranscriptNormalization {
|
5348 |
|
5349 | /** TranscriptNormalization entries */
|
5350 | entries?: (google.cloud.speech.v1p1beta1.TranscriptNormalization.IEntry[]|null);
|
5351 | }
|
5352 |
|
5353 | /** Represents a TranscriptNormalization. */
|
5354 | class TranscriptNormalization implements ITranscriptNormalization {
|
5355 |
|
5356 | /**
|
5357 | * Constructs a new TranscriptNormalization.
|
5358 | * @param [properties] Properties to set
|
5359 | */
|
5360 | constructor(properties?: google.cloud.speech.v1p1beta1.ITranscriptNormalization);
|
5361 |
|
5362 | /** TranscriptNormalization entries. */
|
5363 | public entries: google.cloud.speech.v1p1beta1.TranscriptNormalization.IEntry[];
|
5364 |
|
5365 | /**
|
5366 | * Creates a new TranscriptNormalization instance using the specified properties.
|
5367 | * @param [properties] Properties to set
|
5368 | * @returns TranscriptNormalization instance
|
5369 | */
|
5370 | public static create(properties?: google.cloud.speech.v1p1beta1.ITranscriptNormalization): google.cloud.speech.v1p1beta1.TranscriptNormalization;
|
5371 |
|
5372 | /**
|
5373 | * Encodes the specified TranscriptNormalization message. Does not implicitly { google.cloud.speech.v1p1beta1.TranscriptNormalization.verify|verify} messages.
|
5374 | * message TranscriptNormalization message or plain object to encode
|
5375 | * [writer] Writer to encode to
|
5376 | * Writer
|
5377 | */
|
5378 | public static encode(message: google.cloud.speech.v1p1beta1.ITranscriptNormalization, writer?: $protobuf.Writer): $protobuf.Writer;
|
5379 |
|
5380 | /**
|
5381 | * Encodes the specified TranscriptNormalization message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.TranscriptNormalization.verify|verify} messages.
|
5382 | * @param message TranscriptNormalization message or plain object to encode
|
5383 | * @param [writer] Writer to encode to
|
5384 | * @returns Writer
|
5385 | */
|
5386 | public static encodeDelimited(message: google.cloud.speech.v1p1beta1.ITranscriptNormalization, writer?: $protobuf.Writer): $protobuf.Writer;
|
5387 |
|
5388 | /**
|
5389 | * Decodes a TranscriptNormalization message from the specified reader or buffer.
|
5390 | * @param reader Reader or buffer to decode from
|
5391 | * @param [length] Message length if known beforehand
|
5392 | * @returns TranscriptNormalization
|
5393 | * @throws {Error} If the payload is not a reader or valid buffer
|
5394 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
5395 | */
|
5396 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.TranscriptNormalization;
|
5397 |
|
5398 | /**
|
5399 | * Decodes a TranscriptNormalization message from the specified reader or buffer, length delimited.
|
5400 | * @param reader Reader or buffer to decode from
|
5401 | * @returns TranscriptNormalization
|
5402 | * @throws {Error} If the payload is not a reader or valid buffer
|
5403 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
5404 | */
|
5405 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.TranscriptNormalization;
|
5406 |
|
5407 | /**
|
5408 | * Verifies a TranscriptNormalization message.
|
5409 | * @param message Plain object to verify
|
5410 | * @returns `null` if valid, otherwise the reason why it is not
|
5411 | */
|
5412 | public static verify(message: { [k: string]: any }): (string|null);
|
5413 |
|
5414 | /**
|
5415 | * Creates a TranscriptNormalization message from a plain object. Also converts values to their respective internal types.
|
5416 | * @param object Plain object
|
5417 | * @returns TranscriptNormalization
|
5418 | */
|
5419 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.TranscriptNormalization;
|
5420 |
|
5421 | /**
|
5422 | * Creates a plain object from a TranscriptNormalization message. Also converts values to other types if specified.
|
5423 | * @param message TranscriptNormalization
|
5424 | * @param [options] Conversion options
|
5425 | * @returns Plain object
|
5426 | */
|
5427 | public static toObject(message: google.cloud.speech.v1p1beta1.TranscriptNormalization, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
5428 |
|
5429 | /**
|
5430 | * Converts this TranscriptNormalization to JSON.
|
5431 | * @returns JSON object
|
5432 | */
|
5433 | public toJSON(): { [k: string]: any };
|
5434 | }
|
5435 |
|
5436 | namespace TranscriptNormalization {
|
5437 |
|
5438 | /** Properties of an Entry. */
|
5439 | interface IEntry {
|
5440 |
|
5441 | /** Entry search */
|
5442 | search?: (string|null);
|
5443 |
|
5444 | /** Entry replace */
|
5445 | replace?: (string|null);
|
5446 |
|
5447 | /** Entry caseSensitive */
|
5448 | caseSensitive?: (boolean|null);
|
5449 | }
|
5450 |
|
5451 | /** Represents an Entry. */
|
5452 | class Entry implements IEntry {
|
5453 |
|
5454 | /**
|
5455 | * Constructs a new Entry.
|
5456 | * @param [properties] Properties to set
|
5457 | */
|
5458 | constructor(properties?: google.cloud.speech.v1p1beta1.TranscriptNormalization.IEntry);
|
5459 |
|
5460 | /** Entry search. */
|
5461 | public search: string;
|
5462 |
|
5463 | /** Entry replace. */
|
5464 | public replace: string;
|
5465 |
|
5466 | /** Entry caseSensitive. */
|
5467 | public caseSensitive: boolean;
|
5468 |
|
5469 | /**
|
5470 | * Creates a new Entry instance using the specified properties.
|
5471 | * @param [properties] Properties to set
|
5472 | * @returns Entry instance
|
5473 | */
|
5474 | public static create(properties?: google.cloud.speech.v1p1beta1.TranscriptNormalization.IEntry): google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry;
|
5475 |
|
5476 | /**
|
5477 | * Encodes the specified Entry message. Does not implicitly { google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.verify|verify} messages.
|
5478 | * message Entry message or plain object to encode
|
5479 | * [writer] Writer to encode to
|
5480 | * Writer
|
5481 | */
|
5482 | public static encode(message: google.cloud.speech.v1p1beta1.TranscriptNormalization.IEntry, writer?: $protobuf.Writer): $protobuf.Writer;
|
5483 |
|
5484 | /**
|
5485 | * Encodes the specified Entry message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.verify|verify} messages.
|
5486 | * @param message Entry message or plain object to encode
|
5487 | * @param [writer] Writer to encode to
|
5488 | * @returns Writer
|
5489 | */
|
5490 | public static encodeDelimited(message: google.cloud.speech.v1p1beta1.TranscriptNormalization.IEntry, writer?: $protobuf.Writer): $protobuf.Writer;
|
5491 |
|
5492 | /**
|
5493 | * Decodes an Entry message from the specified reader or buffer.
|
5494 | * @param reader Reader or buffer to decode from
|
5495 | * @param [length] Message length if known beforehand
|
5496 | * @returns Entry
|
5497 | * @throws {Error} If the payload is not a reader or valid buffer
|
5498 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
5499 | */
|
5500 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry;
|
5501 |
|
5502 | /**
|
5503 | * Decodes an Entry message from the specified reader or buffer, length delimited.
|
5504 | * @param reader Reader or buffer to decode from
|
5505 | * @returns Entry
|
5506 | * @throws {Error} If the payload is not a reader or valid buffer
|
5507 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
5508 | */
|
5509 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry;
|
5510 |
|
5511 | /**
|
5512 | * Verifies an Entry message.
|
5513 | * @param message Plain object to verify
|
5514 | * @returns `null` if valid, otherwise the reason why it is not
|
5515 | */
|
5516 | public static verify(message: { [k: string]: any }): (string|null);
|
5517 |
|
5518 | /**
|
5519 | * Creates an Entry message from a plain object. Also converts values to their respective internal types.
|
5520 | * @param object Plain object
|
5521 | * @returns Entry
|
5522 | */
|
5523 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry;
|
5524 |
|
5525 | /**
|
5526 | * Creates a plain object from an Entry message. Also converts values to other types if specified.
|
5527 | * @param message Entry
|
5528 | * @param [options] Conversion options
|
5529 | * @returns Plain object
|
5530 | */
|
5531 | public static toObject(message: google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
5532 |
|
5533 | /**
|
5534 | * Converts this Entry to JSON.
|
5535 | * @returns JSON object
|
5536 | */
|
5537 | public toJSON(): { [k: string]: any };
|
5538 | }
|
5539 | }
|
5540 |
|
5541 | /** Represents an Adaptation */
|
5542 | class Adaptation extends $protobuf.rpc.Service {
|
5543 |
|
5544 | /**
|
5545 | * Constructs a new Adaptation service.
|
5546 | * @param rpcImpl RPC implementation
|
5547 | * @param [requestDelimited=false] Whether requests are length-delimited
|
5548 | * @param [responseDelimited=false] Whether responses are length-delimited
|
5549 | */
|
5550 | constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
|
5551 |
|
5552 | /**
|
5553 | * Creates new Adaptation service using the specified rpc implementation.
|
5554 | * @param rpcImpl RPC implementation
|
5555 | * @param [requestDelimited=false] Whether requests are length-delimited
|
5556 | * @param [responseDelimited=false] Whether responses are length-delimited
|
5557 | * @returns RPC service. Useful where requests and/or responses are streamed.
|
5558 | */
|
5559 | public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Adaptation;
|
5560 |
|
5561 | /**
|
5562 | * Calls CreatePhraseSet.
|
5563 | * @param request CreatePhraseSetRequest message or plain object
|
5564 | * @param callback Node-style callback called with the error, if any, and PhraseSet
|
5565 | */
|
5566 | public createPhraseSet(request: google.cloud.speech.v1p1beta1.ICreatePhraseSetRequest, callback: google.cloud.speech.v1p1beta1.Adaptation.CreatePhraseSetCallback): void;
|
5567 |
|
5568 | /**
|
5569 | * Calls CreatePhraseSet.
|
5570 | * @param request CreatePhraseSetRequest message or plain object
|
5571 | * @returns Promise
|
5572 | */
|
5573 | public createPhraseSet(request: google.cloud.speech.v1p1beta1.ICreatePhraseSetRequest): Promise<google.cloud.speech.v1p1beta1.PhraseSet>;
|
5574 |
|
5575 | /**
|
5576 | * Calls GetPhraseSet.
|
5577 | * @param request GetPhraseSetRequest message or plain object
|
5578 | * @param callback Node-style callback called with the error, if any, and PhraseSet
|
5579 | */
|
5580 | public getPhraseSet(request: google.cloud.speech.v1p1beta1.IGetPhraseSetRequest, callback: google.cloud.speech.v1p1beta1.Adaptation.GetPhraseSetCallback): void;
|
5581 |
|
5582 | /**
|
5583 | * Calls GetPhraseSet.
|
5584 | * @param request GetPhraseSetRequest message or plain object
|
5585 | * @returns Promise
|
5586 | */
|
5587 | public getPhraseSet(request: google.cloud.speech.v1p1beta1.IGetPhraseSetRequest): Promise<google.cloud.speech.v1p1beta1.PhraseSet>;
|
5588 |
|
5589 | /**
|
5590 | * Calls ListPhraseSet.
|
5591 | * @param request ListPhraseSetRequest message or plain object
|
5592 | * @param callback Node-style callback called with the error, if any, and ListPhraseSetResponse
|
5593 | */
|
5594 | public listPhraseSet(request: google.cloud.speech.v1p1beta1.IListPhraseSetRequest, callback: google.cloud.speech.v1p1beta1.Adaptation.ListPhraseSetCallback): void;
|
5595 |
|
5596 | /**
|
5597 | * Calls ListPhraseSet.
|
5598 | * @param request ListPhraseSetRequest message or plain object
|
5599 | * @returns Promise
|
5600 | */
|
5601 | public listPhraseSet(request: google.cloud.speech.v1p1beta1.IListPhraseSetRequest): Promise<google.cloud.speech.v1p1beta1.ListPhraseSetResponse>;
|
5602 |
|
5603 | /**
|
5604 | * Calls UpdatePhraseSet.
|
5605 | * @param request UpdatePhraseSetRequest message or plain object
|
5606 | * @param callback Node-style callback called with the error, if any, and PhraseSet
|
5607 | */
|
5608 | public updatePhraseSet(request: google.cloud.speech.v1p1beta1.IUpdatePhraseSetRequest, callback: google.cloud.speech.v1p1beta1.Adaptation.UpdatePhraseSetCallback): void;
|
5609 |
|
5610 | /**
|
5611 | * Calls UpdatePhraseSet.
|
5612 | * @param request UpdatePhraseSetRequest message or plain object
|
5613 | * @returns Promise
|
5614 | */
|
5615 | public updatePhraseSet(request: google.cloud.speech.v1p1beta1.IUpdatePhraseSetRequest): Promise<google.cloud.speech.v1p1beta1.PhraseSet>;
|
5616 |
|
5617 | /**
|
5618 | * Calls DeletePhraseSet.
|
5619 | * @param request DeletePhraseSetRequest message or plain object
|
5620 | * @param callback Node-style callback called with the error, if any, and Empty
|
5621 | */
|
5622 | public deletePhraseSet(request: google.cloud.speech.v1p1beta1.IDeletePhraseSetRequest, callback: google.cloud.speech.v1p1beta1.Adaptation.DeletePhraseSetCallback): void;
|
5623 |
|
5624 | /**
|
5625 | * Calls DeletePhraseSet.
|
5626 | * @param request DeletePhraseSetRequest message or plain object
|
5627 | * @returns Promise
|
5628 | */
|
5629 | public deletePhraseSet(request: google.cloud.speech.v1p1beta1.IDeletePhraseSetRequest): Promise<google.protobuf.Empty>;
|
5630 |
|
5631 | /**
|
5632 | * Calls CreateCustomClass.
|
5633 | * @param request CreateCustomClassRequest message or plain object
|
5634 | * @param callback Node-style callback called with the error, if any, and CustomClass
|
5635 | */
|
5636 | public createCustomClass(request: google.cloud.speech.v1p1beta1.ICreateCustomClassRequest, callback: google.cloud.speech.v1p1beta1.Adaptation.CreateCustomClassCallback): void;
|
5637 |
|
5638 | /**
|
5639 | * Calls CreateCustomClass.
|
5640 | * @param request CreateCustomClassRequest message or plain object
|
5641 | * @returns Promise
|
5642 | */
|
5643 | public createCustomClass(request: google.cloud.speech.v1p1beta1.ICreateCustomClassRequest): Promise<google.cloud.speech.v1p1beta1.CustomClass>;
|
5644 |
|
5645 | /**
|
5646 | * Calls GetCustomClass.
|
5647 | * @param request GetCustomClassRequest message or plain object
|
5648 | * @param callback Node-style callback called with the error, if any, and CustomClass
|
5649 | */
|
5650 | public getCustomClass(request: google.cloud.speech.v1p1beta1.IGetCustomClassRequest, callback: google.cloud.speech.v1p1beta1.Adaptation.GetCustomClassCallback): void;
|
5651 |
|
5652 | /**
|
5653 | * Calls GetCustomClass.
|
5654 | * @param request GetCustomClassRequest message or plain object
|
5655 | * @returns Promise
|
5656 | */
|
5657 | public getCustomClass(request: google.cloud.speech.v1p1beta1.IGetCustomClassRequest): Promise<google.cloud.speech.v1p1beta1.CustomClass>;
|
5658 |
|
5659 | /**
|
5660 | * Calls ListCustomClasses.
|
5661 | * @param request ListCustomClassesRequest message or plain object
|
5662 | * @param callback Node-style callback called with the error, if any, and ListCustomClassesResponse
|
5663 | */
|
5664 | public listCustomClasses(request: google.cloud.speech.v1p1beta1.IListCustomClassesRequest, callback: google.cloud.speech.v1p1beta1.Adaptation.ListCustomClassesCallback): void;
|
5665 |
|
5666 | /**
|
5667 | * Calls ListCustomClasses.
|
5668 | * @param request ListCustomClassesRequest message or plain object
|
5669 | * @returns Promise
|
5670 | */
|
5671 | public listCustomClasses(request: google.cloud.speech.v1p1beta1.IListCustomClassesRequest): Promise<google.cloud.speech.v1p1beta1.ListCustomClassesResponse>;
|
5672 |
|
5673 | /**
|
5674 | * Calls UpdateCustomClass.
|
5675 | * @param request UpdateCustomClassRequest message or plain object
|
5676 | * @param callback Node-style callback called with the error, if any, and CustomClass
|
5677 | */
|
5678 | public updateCustomClass(request: google.cloud.speech.v1p1beta1.IUpdateCustomClassRequest, callback: google.cloud.speech.v1p1beta1.Adaptation.UpdateCustomClassCallback): void;
|
5679 |
|
5680 | /**
|
5681 | * Calls UpdateCustomClass.
|
5682 | * @param request UpdateCustomClassRequest message or plain object
|
5683 | * @returns Promise
|
5684 | */
|
5685 | public updateCustomClass(request: google.cloud.speech.v1p1beta1.IUpdateCustomClassRequest): Promise<google.cloud.speech.v1p1beta1.CustomClass>;
|
5686 |
|
5687 | /**
|
5688 | * Calls DeleteCustomClass.
|
5689 | * @param request DeleteCustomClassRequest message or plain object
|
5690 | * @param callback Node-style callback called with the error, if any, and Empty
|
5691 | */
|
5692 | public deleteCustomClass(request: google.cloud.speech.v1p1beta1.IDeleteCustomClassRequest, callback: google.cloud.speech.v1p1beta1.Adaptation.DeleteCustomClassCallback): void;
|
5693 |
|
5694 | /**
|
5695 | * Calls DeleteCustomClass.
|
5696 | * @param request DeleteCustomClassRequest message or plain object
|
5697 | * @returns Promise
|
5698 | */
|
5699 | public deleteCustomClass(request: google.cloud.speech.v1p1beta1.IDeleteCustomClassRequest): Promise<google.protobuf.Empty>;
|
5700 | }
|
5701 |
|
5702 | namespace Adaptation {
|
5703 |
|
5704 | /**
|
5705 | * Callback as used by {@link google.cloud.speech.v1p1beta1.Adaptation#createPhraseSet}.
|
5706 | * @param error Error, if any
|
5707 | * @param [response] PhraseSet
|
5708 | */
|
5709 | type CreatePhraseSetCallback = (error: (Error|null), response?: google.cloud.speech.v1p1beta1.PhraseSet) => void;
|
5710 |
|
5711 | /**
|
5712 | * Callback as used by {@link google.cloud.speech.v1p1beta1.Adaptation#getPhraseSet}.
|
5713 | * @param error Error, if any
|
5714 | * @param [response] PhraseSet
|
5715 | */
|
5716 | type GetPhraseSetCallback = (error: (Error|null), response?: google.cloud.speech.v1p1beta1.PhraseSet) => void;
|
5717 |
|
5718 | /**
|
5719 | * Callback as used by {@link google.cloud.speech.v1p1beta1.Adaptation#listPhraseSet}.
|
5720 | * @param error Error, if any
|
5721 | * @param [response] ListPhraseSetResponse
|
5722 | */
|
5723 | type ListPhraseSetCallback = (error: (Error|null), response?: google.cloud.speech.v1p1beta1.ListPhraseSetResponse) => void;
|
5724 |
|
5725 | /**
|
5726 | * Callback as used by {@link google.cloud.speech.v1p1beta1.Adaptation#updatePhraseSet}.
|
5727 | * @param error Error, if any
|
5728 | * @param [response] PhraseSet
|
5729 | */
|
5730 | type UpdatePhraseSetCallback = (error: (Error|null), response?: google.cloud.speech.v1p1beta1.PhraseSet) => void;
|
5731 |
|
5732 | /**
|
5733 | * Callback as used by {@link google.cloud.speech.v1p1beta1.Adaptation#deletePhraseSet}.
|
5734 | * @param error Error, if any
|
5735 | * @param [response] Empty
|
5736 | */
|
5737 | type DeletePhraseSetCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
|
5738 |
|
5739 | /**
|
5740 | * Callback as used by {@link google.cloud.speech.v1p1beta1.Adaptation#createCustomClass}.
|
5741 | * @param error Error, if any
|
5742 | * @param [response] CustomClass
|
5743 | */
|
5744 | type CreateCustomClassCallback = (error: (Error|null), response?: google.cloud.speech.v1p1beta1.CustomClass) => void;
|
5745 |
|
5746 | /**
|
5747 | * Callback as used by {@link google.cloud.speech.v1p1beta1.Adaptation#getCustomClass}.
|
5748 | * @param error Error, if any
|
5749 | * @param [response] CustomClass
|
5750 | */
|
5751 | type GetCustomClassCallback = (error: (Error|null), response?: google.cloud.speech.v1p1beta1.CustomClass) => void;
|
5752 |
|
5753 | /**
|
5754 | * Callback as used by {@link google.cloud.speech.v1p1beta1.Adaptation#listCustomClasses}.
|
5755 | * @param error Error, if any
|
5756 | * @param [response] ListCustomClassesResponse
|
5757 | */
|
5758 | type ListCustomClassesCallback = (error: (Error|null), response?: google.cloud.speech.v1p1beta1.ListCustomClassesResponse) => void;
|
5759 |
|
5760 | /**
|
5761 | * Callback as used by {@link google.cloud.speech.v1p1beta1.Adaptation#updateCustomClass}.
|
5762 | * @param error Error, if any
|
5763 | * @param [response] CustomClass
|
5764 | */
|
5765 | type UpdateCustomClassCallback = (error: (Error|null), response?: google.cloud.speech.v1p1beta1.CustomClass) => void;
|
5766 |
|
5767 | /**
|
5768 | * Callback as used by {@link google.cloud.speech.v1p1beta1.Adaptation#deleteCustomClass}.
|
5769 | * @param error Error, if any
|
5770 | * @param [response] Empty
|
5771 | */
|
5772 | type DeleteCustomClassCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
|
5773 | }
|
5774 |
|
5775 | /** Properties of a CreatePhraseSetRequest. */
|
5776 | interface ICreatePhraseSetRequest {
|
5777 |
|
5778 | /** CreatePhraseSetRequest parent */
|
5779 | parent?: (string|null);
|
5780 |
|
5781 | /** CreatePhraseSetRequest phraseSetId */
|
5782 | phraseSetId?: (string|null);
|
5783 |
|
5784 | /** CreatePhraseSetRequest phraseSet */
|
5785 | phraseSet?: (google.cloud.speech.v1p1beta1.IPhraseSet|null);
|
5786 | }
|
5787 |
|
5788 | /** Represents a CreatePhraseSetRequest. */
|
5789 | class CreatePhraseSetRequest implements ICreatePhraseSetRequest {
|
5790 |
|
5791 | /**
|
5792 | * Constructs a new CreatePhraseSetRequest.
|
5793 | * @param [properties] Properties to set
|
5794 | */
|
5795 | constructor(properties?: google.cloud.speech.v1p1beta1.ICreatePhraseSetRequest);
|
5796 |
|
5797 | /** CreatePhraseSetRequest parent. */
|
5798 | public parent: string;
|
5799 |
|
5800 | /** CreatePhraseSetRequest phraseSetId. */
|
5801 | public phraseSetId: string;
|
5802 |
|
5803 | /** CreatePhraseSetRequest phraseSet. */
|
5804 | public phraseSet?: (google.cloud.speech.v1p1beta1.IPhraseSet|null);
|
5805 |
|
5806 | /**
|
5807 | * Creates a new CreatePhraseSetRequest instance using the specified properties.
|
5808 | * @param [properties] Properties to set
|
5809 | * @returns CreatePhraseSetRequest instance
|
5810 | */
|
5811 | public static create(properties?: google.cloud.speech.v1p1beta1.ICreatePhraseSetRequest): google.cloud.speech.v1p1beta1.CreatePhraseSetRequest;
|
5812 |
|
5813 | /**
|
5814 | * Encodes the specified CreatePhraseSetRequest message. Does not implicitly { google.cloud.speech.v1p1beta1.CreatePhraseSetRequest.verify|verify} messages.
|
5815 | * message CreatePhraseSetRequest message or plain object to encode
|
5816 | * [writer] Writer to encode to
|
5817 | * Writer
|
5818 | */
|
5819 | public static encode(message: google.cloud.speech.v1p1beta1.ICreatePhraseSetRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
5820 |
|
5821 | /**
|
5822 | * Encodes the specified CreatePhraseSetRequest message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.CreatePhraseSetRequest.verify|verify} messages.
|
5823 | * @param message CreatePhraseSetRequest message or plain object to encode
|
5824 | * @param [writer] Writer to encode to
|
5825 | * @returns Writer
|
5826 | */
|
5827 | public static encodeDelimited(message: google.cloud.speech.v1p1beta1.ICreatePhraseSetRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
5828 |
|
5829 | /**
|
5830 | * Decodes a CreatePhraseSetRequest message from the specified reader or buffer.
|
5831 | * @param reader Reader or buffer to decode from
|
5832 | * @param [length] Message length if known beforehand
|
5833 | * @returns CreatePhraseSetRequest
|
5834 | * @throws {Error} If the payload is not a reader or valid buffer
|
5835 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
5836 | */
|
5837 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.CreatePhraseSetRequest;
|
5838 |
|
5839 | /**
|
5840 | * Decodes a CreatePhraseSetRequest message from the specified reader or buffer, length delimited.
|
5841 | * @param reader Reader or buffer to decode from
|
5842 | * @returns CreatePhraseSetRequest
|
5843 | * @throws {Error} If the payload is not a reader or valid buffer
|
5844 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
5845 | */
|
5846 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.CreatePhraseSetRequest;
|
5847 |
|
5848 | /**
|
5849 | * Verifies a CreatePhraseSetRequest message.
|
5850 | * @param message Plain object to verify
|
5851 | * @returns `null` if valid, otherwise the reason why it is not
|
5852 | */
|
5853 | public static verify(message: { [k: string]: any }): (string|null);
|
5854 |
|
5855 | /**
|
5856 | * Creates a CreatePhraseSetRequest message from a plain object. Also converts values to their respective internal types.
|
5857 | * @param object Plain object
|
5858 | * @returns CreatePhraseSetRequest
|
5859 | */
|
5860 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.CreatePhraseSetRequest;
|
5861 |
|
5862 | /**
|
5863 | * Creates a plain object from a CreatePhraseSetRequest message. Also converts values to other types if specified.
|
5864 | * @param message CreatePhraseSetRequest
|
5865 | * @param [options] Conversion options
|
5866 | * @returns Plain object
|
5867 | */
|
5868 | public static toObject(message: google.cloud.speech.v1p1beta1.CreatePhraseSetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
5869 |
|
5870 | /**
|
5871 | * Converts this CreatePhraseSetRequest to JSON.
|
5872 | * @returns JSON object
|
5873 | */
|
5874 | public toJSON(): { [k: string]: any };
|
5875 | }
|
5876 |
|
5877 | /** Properties of an UpdatePhraseSetRequest. */
|
5878 | interface IUpdatePhraseSetRequest {
|
5879 |
|
5880 | /** UpdatePhraseSetRequest phraseSet */
|
5881 | phraseSet?: (google.cloud.speech.v1p1beta1.IPhraseSet|null);
|
5882 |
|
5883 | /** UpdatePhraseSetRequest updateMask */
|
5884 | updateMask?: (google.protobuf.IFieldMask|null);
|
5885 | }
|
5886 |
|
5887 | /** Represents an UpdatePhraseSetRequest. */
|
5888 | class UpdatePhraseSetRequest implements IUpdatePhraseSetRequest {
|
5889 |
|
5890 | /**
|
5891 | * Constructs a new UpdatePhraseSetRequest.
|
5892 | * @param [properties] Properties to set
|
5893 | */
|
5894 | constructor(properties?: google.cloud.speech.v1p1beta1.IUpdatePhraseSetRequest);
|
5895 |
|
5896 | /** UpdatePhraseSetRequest phraseSet. */
|
5897 | public phraseSet?: (google.cloud.speech.v1p1beta1.IPhraseSet|null);
|
5898 |
|
5899 | /** UpdatePhraseSetRequest updateMask. */
|
5900 | public updateMask?: (google.protobuf.IFieldMask|null);
|
5901 |
|
5902 | /**
|
5903 | * Creates a new UpdatePhraseSetRequest instance using the specified properties.
|
5904 | * @param [properties] Properties to set
|
5905 | * @returns UpdatePhraseSetRequest instance
|
5906 | */
|
5907 | public static create(properties?: google.cloud.speech.v1p1beta1.IUpdatePhraseSetRequest): google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest;
|
5908 |
|
5909 | /**
|
5910 | * Encodes the specified UpdatePhraseSetRequest message. Does not implicitly { google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest.verify|verify} messages.
|
5911 | * message UpdatePhraseSetRequest message or plain object to encode
|
5912 | * [writer] Writer to encode to
|
5913 | * Writer
|
5914 | */
|
5915 | public static encode(message: google.cloud.speech.v1p1beta1.IUpdatePhraseSetRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
5916 |
|
5917 | /**
|
5918 | * Encodes the specified UpdatePhraseSetRequest message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest.verify|verify} messages.
|
5919 | * @param message UpdatePhraseSetRequest message or plain object to encode
|
5920 | * @param [writer] Writer to encode to
|
5921 | * @returns Writer
|
5922 | */
|
5923 | public static encodeDelimited(message: google.cloud.speech.v1p1beta1.IUpdatePhraseSetRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
5924 |
|
5925 | /**
|
5926 | * Decodes an UpdatePhraseSetRequest message from the specified reader or buffer.
|
5927 | * @param reader Reader or buffer to decode from
|
5928 | * @param [length] Message length if known beforehand
|
5929 | * @returns UpdatePhraseSetRequest
|
5930 | * @throws {Error} If the payload is not a reader or valid buffer
|
5931 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
5932 | */
|
5933 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest;
|
5934 |
|
5935 | /**
|
5936 | * Decodes an UpdatePhraseSetRequest message from the specified reader or buffer, length delimited.
|
5937 | * @param reader Reader or buffer to decode from
|
5938 | * @returns UpdatePhraseSetRequest
|
5939 | * @throws {Error} If the payload is not a reader or valid buffer
|
5940 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
5941 | */
|
5942 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest;
|
5943 |
|
5944 | /**
|
5945 | * Verifies an UpdatePhraseSetRequest message.
|
5946 | * @param message Plain object to verify
|
5947 | * @returns `null` if valid, otherwise the reason why it is not
|
5948 | */
|
5949 | public static verify(message: { [k: string]: any }): (string|null);
|
5950 |
|
5951 | /**
|
5952 | * Creates an UpdatePhraseSetRequest message from a plain object. Also converts values to their respective internal types.
|
5953 | * @param object Plain object
|
5954 | * @returns UpdatePhraseSetRequest
|
5955 | */
|
5956 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest;
|
5957 |
|
5958 | /**
|
5959 | * Creates a plain object from an UpdatePhraseSetRequest message. Also converts values to other types if specified.
|
5960 | * @param message UpdatePhraseSetRequest
|
5961 | * @param [options] Conversion options
|
5962 | * @returns Plain object
|
5963 | */
|
5964 | public static toObject(message: google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
5965 |
|
5966 | /**
|
5967 | * Converts this UpdatePhraseSetRequest to JSON.
|
5968 | * @returns JSON object
|
5969 | */
|
5970 | public toJSON(): { [k: string]: any };
|
5971 | }
|
5972 |
|
5973 | /** Properties of a GetPhraseSetRequest. */
|
5974 | interface IGetPhraseSetRequest {
|
5975 |
|
5976 | /** GetPhraseSetRequest name */
|
5977 | name?: (string|null);
|
5978 | }
|
5979 |
|
5980 | /** Represents a GetPhraseSetRequest. */
|
5981 | class GetPhraseSetRequest implements IGetPhraseSetRequest {
|
5982 |
|
5983 | /**
|
5984 | * Constructs a new GetPhraseSetRequest.
|
5985 | * @param [properties] Properties to set
|
5986 | */
|
5987 | constructor(properties?: google.cloud.speech.v1p1beta1.IGetPhraseSetRequest);
|
5988 |
|
5989 | /** GetPhraseSetRequest name. */
|
5990 | public name: string;
|
5991 |
|
5992 | /**
|
5993 | * Creates a new GetPhraseSetRequest instance using the specified properties.
|
5994 | * @param [properties] Properties to set
|
5995 | * @returns GetPhraseSetRequest instance
|
5996 | */
|
5997 | public static create(properties?: google.cloud.speech.v1p1beta1.IGetPhraseSetRequest): google.cloud.speech.v1p1beta1.GetPhraseSetRequest;
|
5998 |
|
5999 | /**
|
6000 | * Encodes the specified GetPhraseSetRequest message. Does not implicitly { google.cloud.speech.v1p1beta1.GetPhraseSetRequest.verify|verify} messages.
|
6001 | * message GetPhraseSetRequest message or plain object to encode
|
6002 | * [writer] Writer to encode to
|
6003 | * Writer
|
6004 | */
|
6005 | public static encode(message: google.cloud.speech.v1p1beta1.IGetPhraseSetRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
6006 |
|
6007 | /**
|
6008 | * Encodes the specified GetPhraseSetRequest message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.GetPhraseSetRequest.verify|verify} messages.
|
6009 | * @param message GetPhraseSetRequest message or plain object to encode
|
6010 | * @param [writer] Writer to encode to
|
6011 | * @returns Writer
|
6012 | */
|
6013 | public static encodeDelimited(message: google.cloud.speech.v1p1beta1.IGetPhraseSetRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
6014 |
|
6015 | /**
|
6016 | * Decodes a GetPhraseSetRequest message from the specified reader or buffer.
|
6017 | * @param reader Reader or buffer to decode from
|
6018 | * @param [length] Message length if known beforehand
|
6019 | * @returns GetPhraseSetRequest
|
6020 | * @throws {Error} If the payload is not a reader or valid buffer
|
6021 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
6022 | */
|
6023 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.GetPhraseSetRequest;
|
6024 |
|
6025 | /**
|
6026 | * Decodes a GetPhraseSetRequest message from the specified reader or buffer, length delimited.
|
6027 | * @param reader Reader or buffer to decode from
|
6028 | * @returns GetPhraseSetRequest
|
6029 | * @throws {Error} If the payload is not a reader or valid buffer
|
6030 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
6031 | */
|
6032 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.GetPhraseSetRequest;
|
6033 |
|
6034 | /**
|
6035 | * Verifies a GetPhraseSetRequest message.
|
6036 | * @param message Plain object to verify
|
6037 | * @returns `null` if valid, otherwise the reason why it is not
|
6038 | */
|
6039 | public static verify(message: { [k: string]: any }): (string|null);
|
6040 |
|
6041 | /**
|
6042 | * Creates a GetPhraseSetRequest message from a plain object. Also converts values to their respective internal types.
|
6043 | * @param object Plain object
|
6044 | * @returns GetPhraseSetRequest
|
6045 | */
|
6046 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.GetPhraseSetRequest;
|
6047 |
|
6048 | /**
|
6049 | * Creates a plain object from a GetPhraseSetRequest message. Also converts values to other types if specified.
|
6050 | * @param message GetPhraseSetRequest
|
6051 | * @param [options] Conversion options
|
6052 | * @returns Plain object
|
6053 | */
|
6054 | public static toObject(message: google.cloud.speech.v1p1beta1.GetPhraseSetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
6055 |
|
6056 | /**
|
6057 | * Converts this GetPhraseSetRequest to JSON.
|
6058 | * @returns JSON object
|
6059 | */
|
6060 | public toJSON(): { [k: string]: any };
|
6061 | }
|
6062 |
|
6063 | /** Properties of a ListPhraseSetRequest. */
|
6064 | interface IListPhraseSetRequest {
|
6065 |
|
6066 | /** ListPhraseSetRequest parent */
|
6067 | parent?: (string|null);
|
6068 |
|
6069 | /** ListPhraseSetRequest pageSize */
|
6070 | pageSize?: (number|null);
|
6071 |
|
6072 | /** ListPhraseSetRequest pageToken */
|
6073 | pageToken?: (string|null);
|
6074 | }
|
6075 |
|
6076 | /** Represents a ListPhraseSetRequest. */
|
6077 | class ListPhraseSetRequest implements IListPhraseSetRequest {
|
6078 |
|
6079 | /**
|
6080 | * Constructs a new ListPhraseSetRequest.
|
6081 | * @param [properties] Properties to set
|
6082 | */
|
6083 | constructor(properties?: google.cloud.speech.v1p1beta1.IListPhraseSetRequest);
|
6084 |
|
6085 | /** ListPhraseSetRequest parent. */
|
6086 | public parent: string;
|
6087 |
|
6088 | /** ListPhraseSetRequest pageSize. */
|
6089 | public pageSize: number;
|
6090 |
|
6091 | /** ListPhraseSetRequest pageToken. */
|
6092 | public pageToken: string;
|
6093 |
|
6094 | /**
|
6095 | * Creates a new ListPhraseSetRequest instance using the specified properties.
|
6096 | * @param [properties] Properties to set
|
6097 | * @returns ListPhraseSetRequest instance
|
6098 | */
|
6099 | public static create(properties?: google.cloud.speech.v1p1beta1.IListPhraseSetRequest): google.cloud.speech.v1p1beta1.ListPhraseSetRequest;
|
6100 |
|
6101 | /**
|
6102 | * Encodes the specified ListPhraseSetRequest message. Does not implicitly { google.cloud.speech.v1p1beta1.ListPhraseSetRequest.verify|verify} messages.
|
6103 | * message ListPhraseSetRequest message or plain object to encode
|
6104 | * [writer] Writer to encode to
|
6105 | * Writer
|
6106 | */
|
6107 | public static encode(message: google.cloud.speech.v1p1beta1.IListPhraseSetRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
6108 |
|
6109 | /**
|
6110 | * Encodes the specified ListPhraseSetRequest message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.ListPhraseSetRequest.verify|verify} messages.
|
6111 | * @param message ListPhraseSetRequest message or plain object to encode
|
6112 | * @param [writer] Writer to encode to
|
6113 | * @returns Writer
|
6114 | */
|
6115 | public static encodeDelimited(message: google.cloud.speech.v1p1beta1.IListPhraseSetRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
6116 |
|
6117 | /**
|
6118 | * Decodes a ListPhraseSetRequest message from the specified reader or buffer.
|
6119 | * @param reader Reader or buffer to decode from
|
6120 | * @param [length] Message length if known beforehand
|
6121 | * @returns ListPhraseSetRequest
|
6122 | * @throws {Error} If the payload is not a reader or valid buffer
|
6123 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
6124 | */
|
6125 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.ListPhraseSetRequest;
|
6126 |
|
6127 | /**
|
6128 | * Decodes a ListPhraseSetRequest message from the specified reader or buffer, length delimited.
|
6129 | * @param reader Reader or buffer to decode from
|
6130 | * @returns ListPhraseSetRequest
|
6131 | * @throws {Error} If the payload is not a reader or valid buffer
|
6132 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
6133 | */
|
6134 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.ListPhraseSetRequest;
|
6135 |
|
6136 | /**
|
6137 | * Verifies a ListPhraseSetRequest message.
|
6138 | * @param message Plain object to verify
|
6139 | * @returns `null` if valid, otherwise the reason why it is not
|
6140 | */
|
6141 | public static verify(message: { [k: string]: any }): (string|null);
|
6142 |
|
6143 | /**
|
6144 | * Creates a ListPhraseSetRequest message from a plain object. Also converts values to their respective internal types.
|
6145 | * @param object Plain object
|
6146 | * @returns ListPhraseSetRequest
|
6147 | */
|
6148 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.ListPhraseSetRequest;
|
6149 |
|
6150 | /**
|
6151 | * Creates a plain object from a ListPhraseSetRequest message. Also converts values to other types if specified.
|
6152 | * @param message ListPhraseSetRequest
|
6153 | * @param [options] Conversion options
|
6154 | * @returns Plain object
|
6155 | */
|
6156 | public static toObject(message: google.cloud.speech.v1p1beta1.ListPhraseSetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
6157 |
|
6158 | /**
|
6159 | * Converts this ListPhraseSetRequest to JSON.
|
6160 | * @returns JSON object
|
6161 | */
|
6162 | public toJSON(): { [k: string]: any };
|
6163 | }
|
6164 |
|
6165 | /** Properties of a ListPhraseSetResponse. */
|
6166 | interface IListPhraseSetResponse {
|
6167 |
|
6168 | /** ListPhraseSetResponse phraseSets */
|
6169 | phraseSets?: (google.cloud.speech.v1p1beta1.IPhraseSet[]|null);
|
6170 |
|
6171 | /** ListPhraseSetResponse nextPageToken */
|
6172 | nextPageToken?: (string|null);
|
6173 | }
|
6174 |
|
6175 | /** Represents a ListPhraseSetResponse. */
|
6176 | class ListPhraseSetResponse implements IListPhraseSetResponse {
|
6177 |
|
6178 | /**
|
6179 | * Constructs a new ListPhraseSetResponse.
|
6180 | * @param [properties] Properties to set
|
6181 | */
|
6182 | constructor(properties?: google.cloud.speech.v1p1beta1.IListPhraseSetResponse);
|
6183 |
|
6184 | /** ListPhraseSetResponse phraseSets. */
|
6185 | public phraseSets: google.cloud.speech.v1p1beta1.IPhraseSet[];
|
6186 |
|
6187 | /** ListPhraseSetResponse nextPageToken. */
|
6188 | public nextPageToken: string;
|
6189 |
|
6190 | /**
|
6191 | * Creates a new ListPhraseSetResponse instance using the specified properties.
|
6192 | * @param [properties] Properties to set
|
6193 | * @returns ListPhraseSetResponse instance
|
6194 | */
|
6195 | public static create(properties?: google.cloud.speech.v1p1beta1.IListPhraseSetResponse): google.cloud.speech.v1p1beta1.ListPhraseSetResponse;
|
6196 |
|
6197 | /**
|
6198 | * Encodes the specified ListPhraseSetResponse message. Does not implicitly { google.cloud.speech.v1p1beta1.ListPhraseSetResponse.verify|verify} messages.
|
6199 | * message ListPhraseSetResponse message or plain object to encode
|
6200 | * [writer] Writer to encode to
|
6201 | * Writer
|
6202 | */
|
6203 | public static encode(message: google.cloud.speech.v1p1beta1.IListPhraseSetResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
6204 |
|
6205 | /**
|
6206 | * Encodes the specified ListPhraseSetResponse message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.ListPhraseSetResponse.verify|verify} messages.
|
6207 | * @param message ListPhraseSetResponse message or plain object to encode
|
6208 | * @param [writer] Writer to encode to
|
6209 | * @returns Writer
|
6210 | */
|
6211 | public static encodeDelimited(message: google.cloud.speech.v1p1beta1.IListPhraseSetResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
6212 |
|
6213 | /**
|
6214 | * Decodes a ListPhraseSetResponse message from the specified reader or buffer.
|
6215 | * @param reader Reader or buffer to decode from
|
6216 | * @param [length] Message length if known beforehand
|
6217 | * @returns ListPhraseSetResponse
|
6218 | * @throws {Error} If the payload is not a reader or valid buffer
|
6219 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
6220 | */
|
6221 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.ListPhraseSetResponse;
|
6222 |
|
6223 | /**
|
6224 | * Decodes a ListPhraseSetResponse message from the specified reader or buffer, length delimited.
|
6225 | * @param reader Reader or buffer to decode from
|
6226 | * @returns ListPhraseSetResponse
|
6227 | * @throws {Error} If the payload is not a reader or valid buffer
|
6228 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
6229 | */
|
6230 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.ListPhraseSetResponse;
|
6231 |
|
6232 | /**
|
6233 | * Verifies a ListPhraseSetResponse message.
|
6234 | * @param message Plain object to verify
|
6235 | * @returns `null` if valid, otherwise the reason why it is not
|
6236 | */
|
6237 | public static verify(message: { [k: string]: any }): (string|null);
|
6238 |
|
6239 | /**
|
6240 | * Creates a ListPhraseSetResponse message from a plain object. Also converts values to their respective internal types.
|
6241 | * @param object Plain object
|
6242 | * @returns ListPhraseSetResponse
|
6243 | */
|
6244 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.ListPhraseSetResponse;
|
6245 |
|
6246 | /**
|
6247 | * Creates a plain object from a ListPhraseSetResponse message. Also converts values to other types if specified.
|
6248 | * @param message ListPhraseSetResponse
|
6249 | * @param [options] Conversion options
|
6250 | * @returns Plain object
|
6251 | */
|
6252 | public static toObject(message: google.cloud.speech.v1p1beta1.ListPhraseSetResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
6253 |
|
6254 | /**
|
6255 | * Converts this ListPhraseSetResponse to JSON.
|
6256 | * @returns JSON object
|
6257 | */
|
6258 | public toJSON(): { [k: string]: any };
|
6259 | }
|
6260 |
|
6261 | /** Properties of a DeletePhraseSetRequest. */
|
6262 | interface IDeletePhraseSetRequest {
|
6263 |
|
6264 | /** DeletePhraseSetRequest name */
|
6265 | name?: (string|null);
|
6266 | }
|
6267 |
|
6268 | /** Represents a DeletePhraseSetRequest. */
|
6269 | class DeletePhraseSetRequest implements IDeletePhraseSetRequest {
|
6270 |
|
6271 | /**
|
6272 | * Constructs a new DeletePhraseSetRequest.
|
6273 | * @param [properties] Properties to set
|
6274 | */
|
6275 | constructor(properties?: google.cloud.speech.v1p1beta1.IDeletePhraseSetRequest);
|
6276 |
|
6277 | /** DeletePhraseSetRequest name. */
|
6278 | public name: string;
|
6279 |
|
6280 | /**
|
6281 | * Creates a new DeletePhraseSetRequest instance using the specified properties.
|
6282 | * @param [properties] Properties to set
|
6283 | * @returns DeletePhraseSetRequest instance
|
6284 | */
|
6285 | public static create(properties?: google.cloud.speech.v1p1beta1.IDeletePhraseSetRequest): google.cloud.speech.v1p1beta1.DeletePhraseSetRequest;
|
6286 |
|
6287 | /**
|
6288 | * Encodes the specified DeletePhraseSetRequest message. Does not implicitly { google.cloud.speech.v1p1beta1.DeletePhraseSetRequest.verify|verify} messages.
|
6289 | * message DeletePhraseSetRequest message or plain object to encode
|
6290 | * [writer] Writer to encode to
|
6291 | * Writer
|
6292 | */
|
6293 | public static encode(message: google.cloud.speech.v1p1beta1.IDeletePhraseSetRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
6294 |
|
6295 | /**
|
6296 | * Encodes the specified DeletePhraseSetRequest message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.DeletePhraseSetRequest.verify|verify} messages.
|
6297 | * @param message DeletePhraseSetRequest message or plain object to encode
|
6298 | * @param [writer] Writer to encode to
|
6299 | * @returns Writer
|
6300 | */
|
6301 | public static encodeDelimited(message: google.cloud.speech.v1p1beta1.IDeletePhraseSetRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
6302 |
|
6303 | /**
|
6304 | * Decodes a DeletePhraseSetRequest message from the specified reader or buffer.
|
6305 | * @param reader Reader or buffer to decode from
|
6306 | * @param [length] Message length if known beforehand
|
6307 | * @returns DeletePhraseSetRequest
|
6308 | * @throws {Error} If the payload is not a reader or valid buffer
|
6309 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
6310 | */
|
6311 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.DeletePhraseSetRequest;
|
6312 |
|
6313 | /**
|
6314 | * Decodes a DeletePhraseSetRequest message from the specified reader or buffer, length delimited.
|
6315 | * @param reader Reader or buffer to decode from
|
6316 | * @returns DeletePhraseSetRequest
|
6317 | * @throws {Error} If the payload is not a reader or valid buffer
|
6318 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
6319 | */
|
6320 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.DeletePhraseSetRequest;
|
6321 |
|
6322 | /**
|
6323 | * Verifies a DeletePhraseSetRequest message.
|
6324 | * @param message Plain object to verify
|
6325 | * @returns `null` if valid, otherwise the reason why it is not
|
6326 | */
|
6327 | public static verify(message: { [k: string]: any }): (string|null);
|
6328 |
|
6329 | /**
|
6330 | * Creates a DeletePhraseSetRequest message from a plain object. Also converts values to their respective internal types.
|
6331 | * @param object Plain object
|
6332 | * @returns DeletePhraseSetRequest
|
6333 | */
|
6334 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.DeletePhraseSetRequest;
|
6335 |
|
6336 | /**
|
6337 | * Creates a plain object from a DeletePhraseSetRequest message. Also converts values to other types if specified.
|
6338 | * @param message DeletePhraseSetRequest
|
6339 | * @param [options] Conversion options
|
6340 | * @returns Plain object
|
6341 | */
|
6342 | public static toObject(message: google.cloud.speech.v1p1beta1.DeletePhraseSetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
6343 |
|
6344 | /**
|
6345 | * Converts this DeletePhraseSetRequest to JSON.
|
6346 | * @returns JSON object
|
6347 | */
|
6348 | public toJSON(): { [k: string]: any };
|
6349 | }
|
6350 |
|
6351 | /** Properties of a CreateCustomClassRequest. */
|
6352 | interface ICreateCustomClassRequest {
|
6353 |
|
6354 | /** CreateCustomClassRequest parent */
|
6355 | parent?: (string|null);
|
6356 |
|
6357 | /** CreateCustomClassRequest customClassId */
|
6358 | customClassId?: (string|null);
|
6359 |
|
6360 | /** CreateCustomClassRequest customClass */
|
6361 | customClass?: (google.cloud.speech.v1p1beta1.ICustomClass|null);
|
6362 | }
|
6363 |
|
6364 | /** Represents a CreateCustomClassRequest. */
|
6365 | class CreateCustomClassRequest implements ICreateCustomClassRequest {
|
6366 |
|
6367 | /**
|
6368 | * Constructs a new CreateCustomClassRequest.
|
6369 | * @param [properties] Properties to set
|
6370 | */
|
6371 | constructor(properties?: google.cloud.speech.v1p1beta1.ICreateCustomClassRequest);
|
6372 |
|
6373 | /** CreateCustomClassRequest parent. */
|
6374 | public parent: string;
|
6375 |
|
6376 | /** CreateCustomClassRequest customClassId. */
|
6377 | public customClassId: string;
|
6378 |
|
6379 | /** CreateCustomClassRequest customClass. */
|
6380 | public customClass?: (google.cloud.speech.v1p1beta1.ICustomClass|null);
|
6381 |
|
6382 | /**
|
6383 | * Creates a new CreateCustomClassRequest instance using the specified properties.
|
6384 | * @param [properties] Properties to set
|
6385 | * @returns CreateCustomClassRequest instance
|
6386 | */
|
6387 | public static create(properties?: google.cloud.speech.v1p1beta1.ICreateCustomClassRequest): google.cloud.speech.v1p1beta1.CreateCustomClassRequest;
|
6388 |
|
6389 | /**
|
6390 | * Encodes the specified CreateCustomClassRequest message. Does not implicitly { google.cloud.speech.v1p1beta1.CreateCustomClassRequest.verify|verify} messages.
|
6391 | * message CreateCustomClassRequest message or plain object to encode
|
6392 | * [writer] Writer to encode to
|
6393 | * Writer
|
6394 | */
|
6395 | public static encode(message: google.cloud.speech.v1p1beta1.ICreateCustomClassRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
6396 |
|
6397 | /**
|
6398 | * Encodes the specified CreateCustomClassRequest message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.CreateCustomClassRequest.verify|verify} messages.
|
6399 | * @param message CreateCustomClassRequest message or plain object to encode
|
6400 | * @param [writer] Writer to encode to
|
6401 | * @returns Writer
|
6402 | */
|
6403 | public static encodeDelimited(message: google.cloud.speech.v1p1beta1.ICreateCustomClassRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
6404 |
|
6405 | /**
|
6406 | * Decodes a CreateCustomClassRequest message from the specified reader or buffer.
|
6407 | * @param reader Reader or buffer to decode from
|
6408 | * @param [length] Message length if known beforehand
|
6409 | * @returns CreateCustomClassRequest
|
6410 | * @throws {Error} If the payload is not a reader or valid buffer
|
6411 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
6412 | */
|
6413 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.CreateCustomClassRequest;
|
6414 |
|
6415 | /**
|
6416 | * Decodes a CreateCustomClassRequest message from the specified reader or buffer, length delimited.
|
6417 | * @param reader Reader or buffer to decode from
|
6418 | * @returns CreateCustomClassRequest
|
6419 | * @throws {Error} If the payload is not a reader or valid buffer
|
6420 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
6421 | */
|
6422 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.CreateCustomClassRequest;
|
6423 |
|
6424 | /**
|
6425 | * Verifies a CreateCustomClassRequest message.
|
6426 | * @param message Plain object to verify
|
6427 | * @returns `null` if valid, otherwise the reason why it is not
|
6428 | */
|
6429 | public static verify(message: { [k: string]: any }): (string|null);
|
6430 |
|
6431 | /**
|
6432 | * Creates a CreateCustomClassRequest message from a plain object. Also converts values to their respective internal types.
|
6433 | * @param object Plain object
|
6434 | * @returns CreateCustomClassRequest
|
6435 | */
|
6436 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.CreateCustomClassRequest;
|
6437 |
|
6438 | /**
|
6439 | * Creates a plain object from a CreateCustomClassRequest message. Also converts values to other types if specified.
|
6440 | * @param message CreateCustomClassRequest
|
6441 | * @param [options] Conversion options
|
6442 | * @returns Plain object
|
6443 | */
|
6444 | public static toObject(message: google.cloud.speech.v1p1beta1.CreateCustomClassRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
6445 |
|
6446 | /**
|
6447 | * Converts this CreateCustomClassRequest to JSON.
|
6448 | * @returns JSON object
|
6449 | */
|
6450 | public toJSON(): { [k: string]: any };
|
6451 | }
|
6452 |
|
6453 | /** Properties of an UpdateCustomClassRequest. */
|
6454 | interface IUpdateCustomClassRequest {
|
6455 |
|
6456 | /** UpdateCustomClassRequest customClass */
|
6457 | customClass?: (google.cloud.speech.v1p1beta1.ICustomClass|null);
|
6458 |
|
6459 | /** UpdateCustomClassRequest updateMask */
|
6460 | updateMask?: (google.protobuf.IFieldMask|null);
|
6461 | }
|
6462 |
|
6463 | /** Represents an UpdateCustomClassRequest. */
|
6464 | class UpdateCustomClassRequest implements IUpdateCustomClassRequest {
|
6465 |
|
6466 | /**
|
6467 | * Constructs a new UpdateCustomClassRequest.
|
6468 | * @param [properties] Properties to set
|
6469 | */
|
6470 | constructor(properties?: google.cloud.speech.v1p1beta1.IUpdateCustomClassRequest);
|
6471 |
|
6472 | /** UpdateCustomClassRequest customClass. */
|
6473 | public customClass?: (google.cloud.speech.v1p1beta1.ICustomClass|null);
|
6474 |
|
6475 | /** UpdateCustomClassRequest updateMask. */
|
6476 | public updateMask?: (google.protobuf.IFieldMask|null);
|
6477 |
|
6478 | /**
|
6479 | * Creates a new UpdateCustomClassRequest instance using the specified properties.
|
6480 | * @param [properties] Properties to set
|
6481 | * @returns UpdateCustomClassRequest instance
|
6482 | */
|
6483 | public static create(properties?: google.cloud.speech.v1p1beta1.IUpdateCustomClassRequest): google.cloud.speech.v1p1beta1.UpdateCustomClassRequest;
|
6484 |
|
6485 | /**
|
6486 | * Encodes the specified UpdateCustomClassRequest message. Does not implicitly { google.cloud.speech.v1p1beta1.UpdateCustomClassRequest.verify|verify} messages.
|
6487 | * message UpdateCustomClassRequest message or plain object to encode
|
6488 | * [writer] Writer to encode to
|
6489 | * Writer
|
6490 | */
|
6491 | public static encode(message: google.cloud.speech.v1p1beta1.IUpdateCustomClassRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
6492 |
|
6493 | /**
|
6494 | * Encodes the specified UpdateCustomClassRequest message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.UpdateCustomClassRequest.verify|verify} messages.
|
6495 | * @param message UpdateCustomClassRequest message or plain object to encode
|
6496 | * @param [writer] Writer to encode to
|
6497 | * @returns Writer
|
6498 | */
|
6499 | public static encodeDelimited(message: google.cloud.speech.v1p1beta1.IUpdateCustomClassRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
6500 |
|
6501 | /**
|
6502 | * Decodes an UpdateCustomClassRequest message from the specified reader or buffer.
|
6503 | * @param reader Reader or buffer to decode from
|
6504 | * @param [length] Message length if known beforehand
|
6505 | * @returns UpdateCustomClassRequest
|
6506 | * @throws {Error} If the payload is not a reader or valid buffer
|
6507 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
6508 | */
|
6509 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.UpdateCustomClassRequest;
|
6510 |
|
6511 | /**
|
6512 | * Decodes an UpdateCustomClassRequest message from the specified reader or buffer, length delimited.
|
6513 | * @param reader Reader or buffer to decode from
|
6514 | * @returns UpdateCustomClassRequest
|
6515 | * @throws {Error} If the payload is not a reader or valid buffer
|
6516 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
6517 | */
|
6518 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.UpdateCustomClassRequest;
|
6519 |
|
6520 | /**
|
6521 | * Verifies an UpdateCustomClassRequest message.
|
6522 | * @param message Plain object to verify
|
6523 | * @returns `null` if valid, otherwise the reason why it is not
|
6524 | */
|
6525 | public static verify(message: { [k: string]: any }): (string|null);
|
6526 |
|
6527 | /**
|
6528 | * Creates an UpdateCustomClassRequest message from a plain object. Also converts values to their respective internal types.
|
6529 | * @param object Plain object
|
6530 | * @returns UpdateCustomClassRequest
|
6531 | */
|
6532 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.UpdateCustomClassRequest;
|
6533 |
|
6534 | /**
|
6535 | * Creates a plain object from an UpdateCustomClassRequest message. Also converts values to other types if specified.
|
6536 | * @param message UpdateCustomClassRequest
|
6537 | * @param [options] Conversion options
|
6538 | * @returns Plain object
|
6539 | */
|
6540 | public static toObject(message: google.cloud.speech.v1p1beta1.UpdateCustomClassRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
6541 |
|
6542 | /**
|
6543 | * Converts this UpdateCustomClassRequest to JSON.
|
6544 | * @returns JSON object
|
6545 | */
|
6546 | public toJSON(): { [k: string]: any };
|
6547 | }
|
6548 |
|
6549 | /** Properties of a GetCustomClassRequest. */
|
6550 | interface IGetCustomClassRequest {
|
6551 |
|
6552 | /** GetCustomClassRequest name */
|
6553 | name?: (string|null);
|
6554 | }
|
6555 |
|
6556 | /** Represents a GetCustomClassRequest. */
|
6557 | class GetCustomClassRequest implements IGetCustomClassRequest {
|
6558 |
|
6559 | /**
|
6560 | * Constructs a new GetCustomClassRequest.
|
6561 | * @param [properties] Properties to set
|
6562 | */
|
6563 | constructor(properties?: google.cloud.speech.v1p1beta1.IGetCustomClassRequest);
|
6564 |
|
6565 | /** GetCustomClassRequest name. */
|
6566 | public name: string;
|
6567 |
|
6568 | /**
|
6569 | * Creates a new GetCustomClassRequest instance using the specified properties.
|
6570 | * @param [properties] Properties to set
|
6571 | * @returns GetCustomClassRequest instance
|
6572 | */
|
6573 | public static create(properties?: google.cloud.speech.v1p1beta1.IGetCustomClassRequest): google.cloud.speech.v1p1beta1.GetCustomClassRequest;
|
6574 |
|
6575 | /**
|
6576 | * Encodes the specified GetCustomClassRequest message. Does not implicitly { google.cloud.speech.v1p1beta1.GetCustomClassRequest.verify|verify} messages.
|
6577 | * message GetCustomClassRequest message or plain object to encode
|
6578 | * [writer] Writer to encode to
|
6579 | * Writer
|
6580 | */
|
6581 | public static encode(message: google.cloud.speech.v1p1beta1.IGetCustomClassRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
6582 |
|
6583 | /**
|
6584 | * Encodes the specified GetCustomClassRequest message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.GetCustomClassRequest.verify|verify} messages.
|
6585 | * @param message GetCustomClassRequest message or plain object to encode
|
6586 | * @param [writer] Writer to encode to
|
6587 | * @returns Writer
|
6588 | */
|
6589 | public static encodeDelimited(message: google.cloud.speech.v1p1beta1.IGetCustomClassRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
6590 |
|
6591 | /**
|
6592 | * Decodes a GetCustomClassRequest message from the specified reader or buffer.
|
6593 | * @param reader Reader or buffer to decode from
|
6594 | * @param [length] Message length if known beforehand
|
6595 | * @returns GetCustomClassRequest
|
6596 | * @throws {Error} If the payload is not a reader or valid buffer
|
6597 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
6598 | */
|
6599 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.GetCustomClassRequest;
|
6600 |
|
6601 | /**
|
6602 | * Decodes a GetCustomClassRequest message from the specified reader or buffer, length delimited.
|
6603 | * @param reader Reader or buffer to decode from
|
6604 | * @returns GetCustomClassRequest
|
6605 | * @throws {Error} If the payload is not a reader or valid buffer
|
6606 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
6607 | */
|
6608 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.GetCustomClassRequest;
|
6609 |
|
6610 | /**
|
6611 | * Verifies a GetCustomClassRequest message.
|
6612 | * @param message Plain object to verify
|
6613 | * @returns `null` if valid, otherwise the reason why it is not
|
6614 | */
|
6615 | public static verify(message: { [k: string]: any }): (string|null);
|
6616 |
|
6617 | /**
|
6618 | * Creates a GetCustomClassRequest message from a plain object. Also converts values to their respective internal types.
|
6619 | * @param object Plain object
|
6620 | * @returns GetCustomClassRequest
|
6621 | */
|
6622 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.GetCustomClassRequest;
|
6623 |
|
6624 | /**
|
6625 | * Creates a plain object from a GetCustomClassRequest message. Also converts values to other types if specified.
|
6626 | * @param message GetCustomClassRequest
|
6627 | * @param [options] Conversion options
|
6628 | * @returns Plain object
|
6629 | */
|
6630 | public static toObject(message: google.cloud.speech.v1p1beta1.GetCustomClassRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
6631 |
|
6632 | /**
|
6633 | * Converts this GetCustomClassRequest to JSON.
|
6634 | * @returns JSON object
|
6635 | */
|
6636 | public toJSON(): { [k: string]: any };
|
6637 | }
|
6638 |
|
6639 | /** Properties of a ListCustomClassesRequest. */
|
6640 | interface IListCustomClassesRequest {
|
6641 |
|
6642 | /** ListCustomClassesRequest parent */
|
6643 | parent?: (string|null);
|
6644 |
|
6645 | /** ListCustomClassesRequest pageSize */
|
6646 | pageSize?: (number|null);
|
6647 |
|
6648 | /** ListCustomClassesRequest pageToken */
|
6649 | pageToken?: (string|null);
|
6650 | }
|
6651 |
|
6652 | /** Represents a ListCustomClassesRequest. */
|
6653 | class ListCustomClassesRequest implements IListCustomClassesRequest {
|
6654 |
|
6655 | /**
|
6656 | * Constructs a new ListCustomClassesRequest.
|
6657 | * @param [properties] Properties to set
|
6658 | */
|
6659 | constructor(properties?: google.cloud.speech.v1p1beta1.IListCustomClassesRequest);
|
6660 |
|
6661 | /** ListCustomClassesRequest parent. */
|
6662 | public parent: string;
|
6663 |
|
6664 | /** ListCustomClassesRequest pageSize. */
|
6665 | public pageSize: number;
|
6666 |
|
6667 | /** ListCustomClassesRequest pageToken. */
|
6668 | public pageToken: string;
|
6669 |
|
6670 | /**
|
6671 | * Creates a new ListCustomClassesRequest instance using the specified properties.
|
6672 | * @param [properties] Properties to set
|
6673 | * @returns ListCustomClassesRequest instance
|
6674 | */
|
6675 | public static create(properties?: google.cloud.speech.v1p1beta1.IListCustomClassesRequest): google.cloud.speech.v1p1beta1.ListCustomClassesRequest;
|
6676 |
|
6677 | /**
|
6678 | * Encodes the specified ListCustomClassesRequest message. Does not implicitly { google.cloud.speech.v1p1beta1.ListCustomClassesRequest.verify|verify} messages.
|
6679 | * message ListCustomClassesRequest message or plain object to encode
|
6680 | * [writer] Writer to encode to
|
6681 | * Writer
|
6682 | */
|
6683 | public static encode(message: google.cloud.speech.v1p1beta1.IListCustomClassesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
6684 |
|
6685 | /**
|
6686 | * Encodes the specified ListCustomClassesRequest message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.ListCustomClassesRequest.verify|verify} messages.
|
6687 | * @param message ListCustomClassesRequest message or plain object to encode
|
6688 | * @param [writer] Writer to encode to
|
6689 | * @returns Writer
|
6690 | */
|
6691 | public static encodeDelimited(message: google.cloud.speech.v1p1beta1.IListCustomClassesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
6692 |
|
6693 | /**
|
6694 | * Decodes a ListCustomClassesRequest message from the specified reader or buffer.
|
6695 | * @param reader Reader or buffer to decode from
|
6696 | * @param [length] Message length if known beforehand
|
6697 | * @returns ListCustomClassesRequest
|
6698 | * @throws {Error} If the payload is not a reader or valid buffer
|
6699 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
6700 | */
|
6701 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.ListCustomClassesRequest;
|
6702 |
|
6703 | /**
|
6704 | * Decodes a ListCustomClassesRequest message from the specified reader or buffer, length delimited.
|
6705 | * @param reader Reader or buffer to decode from
|
6706 | * @returns ListCustomClassesRequest
|
6707 | * @throws {Error} If the payload is not a reader or valid buffer
|
6708 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
6709 | */
|
6710 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.ListCustomClassesRequest;
|
6711 |
|
6712 | /**
|
6713 | * Verifies a ListCustomClassesRequest message.
|
6714 | * @param message Plain object to verify
|
6715 | * @returns `null` if valid, otherwise the reason why it is not
|
6716 | */
|
6717 | public static verify(message: { [k: string]: any }): (string|null);
|
6718 |
|
6719 | /**
|
6720 | * Creates a ListCustomClassesRequest message from a plain object. Also converts values to their respective internal types.
|
6721 | * @param object Plain object
|
6722 | * @returns ListCustomClassesRequest
|
6723 | */
|
6724 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.ListCustomClassesRequest;
|
6725 |
|
6726 | /**
|
6727 | * Creates a plain object from a ListCustomClassesRequest message. Also converts values to other types if specified.
|
6728 | * @param message ListCustomClassesRequest
|
6729 | * @param [options] Conversion options
|
6730 | * @returns Plain object
|
6731 | */
|
6732 | public static toObject(message: google.cloud.speech.v1p1beta1.ListCustomClassesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
6733 |
|
6734 | /**
|
6735 | * Converts this ListCustomClassesRequest to JSON.
|
6736 | * @returns JSON object
|
6737 | */
|
6738 | public toJSON(): { [k: string]: any };
|
6739 | }
|
6740 |
|
6741 | /** Properties of a ListCustomClassesResponse. */
|
6742 | interface IListCustomClassesResponse {
|
6743 |
|
6744 | /** ListCustomClassesResponse customClasses */
|
6745 | customClasses?: (google.cloud.speech.v1p1beta1.ICustomClass[]|null);
|
6746 |
|
6747 | /** ListCustomClassesResponse nextPageToken */
|
6748 | nextPageToken?: (string|null);
|
6749 | }
|
6750 |
|
6751 | /** Represents a ListCustomClassesResponse. */
|
6752 | class ListCustomClassesResponse implements IListCustomClassesResponse {
|
6753 |
|
6754 | /**
|
6755 | * Constructs a new ListCustomClassesResponse.
|
6756 | * @param [properties] Properties to set
|
6757 | */
|
6758 | constructor(properties?: google.cloud.speech.v1p1beta1.IListCustomClassesResponse);
|
6759 |
|
6760 | /** ListCustomClassesResponse customClasses. */
|
6761 | public customClasses: google.cloud.speech.v1p1beta1.ICustomClass[];
|
6762 |
|
6763 | /** ListCustomClassesResponse nextPageToken. */
|
6764 | public nextPageToken: string;
|
6765 |
|
6766 | /**
|
6767 | * Creates a new ListCustomClassesResponse instance using the specified properties.
|
6768 | * @param [properties] Properties to set
|
6769 | * @returns ListCustomClassesResponse instance
|
6770 | */
|
6771 | public static create(properties?: google.cloud.speech.v1p1beta1.IListCustomClassesResponse): google.cloud.speech.v1p1beta1.ListCustomClassesResponse;
|
6772 |
|
6773 | /**
|
6774 | * Encodes the specified ListCustomClassesResponse message. Does not implicitly { google.cloud.speech.v1p1beta1.ListCustomClassesResponse.verify|verify} messages.
|
6775 | * message ListCustomClassesResponse message or plain object to encode
|
6776 | * [writer] Writer to encode to
|
6777 | * Writer
|
6778 | */
|
6779 | public static encode(message: google.cloud.speech.v1p1beta1.IListCustomClassesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
6780 |
|
6781 | /**
|
6782 | * Encodes the specified ListCustomClassesResponse message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.ListCustomClassesResponse.verify|verify} messages.
|
6783 | * @param message ListCustomClassesResponse message or plain object to encode
|
6784 | * @param [writer] Writer to encode to
|
6785 | * @returns Writer
|
6786 | */
|
6787 | public static encodeDelimited(message: google.cloud.speech.v1p1beta1.IListCustomClassesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
6788 |
|
6789 | /**
|
6790 | * Decodes a ListCustomClassesResponse message from the specified reader or buffer.
|
6791 | * @param reader Reader or buffer to decode from
|
6792 | * @param [length] Message length if known beforehand
|
6793 | * @returns ListCustomClassesResponse
|
6794 | * @throws {Error} If the payload is not a reader or valid buffer
|
6795 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
6796 | */
|
6797 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.ListCustomClassesResponse;
|
6798 |
|
6799 | /**
|
6800 | * Decodes a ListCustomClassesResponse message from the specified reader or buffer, length delimited.
|
6801 | * @param reader Reader or buffer to decode from
|
6802 | * @returns ListCustomClassesResponse
|
6803 | * @throws {Error} If the payload is not a reader or valid buffer
|
6804 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
6805 | */
|
6806 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.ListCustomClassesResponse;
|
6807 |
|
6808 | /**
|
6809 | * Verifies a ListCustomClassesResponse message.
|
6810 | * @param message Plain object to verify
|
6811 | * @returns `null` if valid, otherwise the reason why it is not
|
6812 | */
|
6813 | public static verify(message: { [k: string]: any }): (string|null);
|
6814 |
|
6815 | /**
|
6816 | * Creates a ListCustomClassesResponse message from a plain object. Also converts values to their respective internal types.
|
6817 | * @param object Plain object
|
6818 | * @returns ListCustomClassesResponse
|
6819 | */
|
6820 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.ListCustomClassesResponse;
|
6821 |
|
6822 | /**
|
6823 | * Creates a plain object from a ListCustomClassesResponse message. Also converts values to other types if specified.
|
6824 | * @param message ListCustomClassesResponse
|
6825 | * @param [options] Conversion options
|
6826 | * @returns Plain object
|
6827 | */
|
6828 | public static toObject(message: google.cloud.speech.v1p1beta1.ListCustomClassesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
6829 |
|
6830 | /**
|
6831 | * Converts this ListCustomClassesResponse to JSON.
|
6832 | * @returns JSON object
|
6833 | */
|
6834 | public toJSON(): { [k: string]: any };
|
6835 | }
|
6836 |
|
6837 | /** Properties of a DeleteCustomClassRequest. */
|
6838 | interface IDeleteCustomClassRequest {
|
6839 |
|
6840 | /** DeleteCustomClassRequest name */
|
6841 | name?: (string|null);
|
6842 | }
|
6843 |
|
6844 | /** Represents a DeleteCustomClassRequest. */
|
6845 | class DeleteCustomClassRequest implements IDeleteCustomClassRequest {
|
6846 |
|
6847 | /**
|
6848 | * Constructs a new DeleteCustomClassRequest.
|
6849 | * @param [properties] Properties to set
|
6850 | */
|
6851 | constructor(properties?: google.cloud.speech.v1p1beta1.IDeleteCustomClassRequest);
|
6852 |
|
6853 | /** DeleteCustomClassRequest name. */
|
6854 | public name: string;
|
6855 |
|
6856 | /**
|
6857 | * Creates a new DeleteCustomClassRequest instance using the specified properties.
|
6858 | * @param [properties] Properties to set
|
6859 | * @returns DeleteCustomClassRequest instance
|
6860 | */
|
6861 | public static create(properties?: google.cloud.speech.v1p1beta1.IDeleteCustomClassRequest): google.cloud.speech.v1p1beta1.DeleteCustomClassRequest;
|
6862 |
|
6863 | /**
|
6864 | * Encodes the specified DeleteCustomClassRequest message. Does not implicitly { google.cloud.speech.v1p1beta1.DeleteCustomClassRequest.verify|verify} messages.
|
6865 | * message DeleteCustomClassRequest message or plain object to encode
|
6866 | * [writer] Writer to encode to
|
6867 | * Writer
|
6868 | */
|
6869 | public static encode(message: google.cloud.speech.v1p1beta1.IDeleteCustomClassRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
6870 |
|
6871 | /**
|
6872 | * Encodes the specified DeleteCustomClassRequest message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.DeleteCustomClassRequest.verify|verify} messages.
|
6873 | * @param message DeleteCustomClassRequest message or plain object to encode
|
6874 | * @param [writer] Writer to encode to
|
6875 | * @returns Writer
|
6876 | */
|
6877 | public static encodeDelimited(message: google.cloud.speech.v1p1beta1.IDeleteCustomClassRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
6878 |
|
6879 | /**
|
6880 | * Decodes a DeleteCustomClassRequest message from the specified reader or buffer.
|
6881 | * @param reader Reader or buffer to decode from
|
6882 | * @param [length] Message length if known beforehand
|
6883 | * @returns DeleteCustomClassRequest
|
6884 | * @throws {Error} If the payload is not a reader or valid buffer
|
6885 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
6886 | */
|
6887 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.DeleteCustomClassRequest;
|
6888 |
|
6889 | /**
|
6890 | * Decodes a DeleteCustomClassRequest message from the specified reader or buffer, length delimited.
|
6891 | * @param reader Reader or buffer to decode from
|
6892 | * @returns DeleteCustomClassRequest
|
6893 | * @throws {Error} If the payload is not a reader or valid buffer
|
6894 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
6895 | */
|
6896 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.DeleteCustomClassRequest;
|
6897 |
|
6898 | /**
|
6899 | * Verifies a DeleteCustomClassRequest message.
|
6900 | * @param message Plain object to verify
|
6901 | * @returns `null` if valid, otherwise the reason why it is not
|
6902 | */
|
6903 | public static verify(message: { [k: string]: any }): (string|null);
|
6904 |
|
6905 | /**
|
6906 | * Creates a DeleteCustomClassRequest message from a plain object. Also converts values to their respective internal types.
|
6907 | * @param object Plain object
|
6908 | * @returns DeleteCustomClassRequest
|
6909 | */
|
6910 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.DeleteCustomClassRequest;
|
6911 |
|
6912 | /**
|
6913 | * Creates a plain object from a DeleteCustomClassRequest message. Also converts values to other types if specified.
|
6914 | * @param message DeleteCustomClassRequest
|
6915 | * @param [options] Conversion options
|
6916 | * @returns Plain object
|
6917 | */
|
6918 | public static toObject(message: google.cloud.speech.v1p1beta1.DeleteCustomClassRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
6919 |
|
6920 | /**
|
6921 | * Converts this DeleteCustomClassRequest to JSON.
|
6922 | * @returns JSON object
|
6923 | */
|
6924 | public toJSON(): { [k: string]: any };
|
6925 | }
|
6926 | }
|
6927 | }
|
6928 | }
|
6929 |
|
6930 | /** Namespace api. */
|
6931 | namespace api {
|
6932 |
|
6933 | /** Properties of a Http. */
|
6934 | interface IHttp {
|
6935 |
|
6936 | /** Http rules */
|
6937 | rules?: (google.api.IHttpRule[]|null);
|
6938 |
|
6939 | /** Http fullyDecodeReservedExpansion */
|
6940 | fullyDecodeReservedExpansion?: (boolean|null);
|
6941 | }
|
6942 |
|
6943 | /** Represents a Http. */
|
6944 | class Http implements IHttp {
|
6945 |
|
6946 | /**
|
6947 | * Constructs a new Http.
|
6948 | * @param [properties] Properties to set
|
6949 | */
|
6950 | constructor(properties?: google.api.IHttp);
|
6951 |
|
6952 | /** Http rules. */
|
6953 | public rules: google.api.IHttpRule[];
|
6954 |
|
6955 | /** Http fullyDecodeReservedExpansion. */
|
6956 | public fullyDecodeReservedExpansion: boolean;
|
6957 |
|
6958 | /**
|
6959 | * Creates a new Http instance using the specified properties.
|
6960 | * @param [properties] Properties to set
|
6961 | * @returns Http instance
|
6962 | */
|
6963 | public static create(properties?: google.api.IHttp): google.api.Http;
|
6964 |
|
6965 | /**
|
6966 | * Encodes the specified Http message. Does not implicitly { google.api.Http.verify|verify} messages.
|
6967 | * message Http message or plain object to encode
|
6968 | * [writer] Writer to encode to
|
6969 | * Writer
|
6970 | */
|
6971 | public static encode(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer;
|
6972 |
|
6973 | /**
|
6974 | * Encodes the specified Http message, length delimited. Does not implicitly {@link google.api.Http.verify|verify} messages.
|
6975 | * @param message Http message or plain object to encode
|
6976 | * @param [writer] Writer to encode to
|
6977 | * @returns Writer
|
6978 | */
|
6979 | public static encodeDelimited(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer;
|
6980 |
|
6981 | /**
|
6982 | * Decodes a Http message from the specified reader or buffer.
|
6983 | * @param reader Reader or buffer to decode from
|
6984 | * @param [length] Message length if known beforehand
|
6985 | * @returns Http
|
6986 | * @throws {Error} If the payload is not a reader or valid buffer
|
6987 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
6988 | */
|
6989 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.Http;
|
6990 |
|
6991 | /**
|
6992 | * Decodes a Http message from the specified reader or buffer, length delimited.
|
6993 | * @param reader Reader or buffer to decode from
|
6994 | * @returns Http
|
6995 | * @throws {Error} If the payload is not a reader or valid buffer
|
6996 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
6997 | */
|
6998 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.Http;
|
6999 |
|
7000 | /**
|
7001 | * Verifies a Http message.
|
7002 | * @param message Plain object to verify
|
7003 | * @returns `null` if valid, otherwise the reason why it is not
|
7004 | */
|
7005 | public static verify(message: { [k: string]: any }): (string|null);
|
7006 |
|
7007 | /**
|
7008 | * Creates a Http message from a plain object. Also converts values to their respective internal types.
|
7009 | * @param object Plain object
|
7010 | * @returns Http
|
7011 | */
|
7012 | public static fromObject(object: { [k: string]: any }): google.api.Http;
|
7013 |
|
7014 | /**
|
7015 | * Creates a plain object from a Http message. Also converts values to other types if specified.
|
7016 | * @param message Http
|
7017 | * @param [options] Conversion options
|
7018 | * @returns Plain object
|
7019 | */
|
7020 | public static toObject(message: google.api.Http, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
7021 |
|
7022 | /**
|
7023 | * Converts this Http to JSON.
|
7024 | * @returns JSON object
|
7025 | */
|
7026 | public toJSON(): { [k: string]: any };
|
7027 | }
|
7028 |
|
7029 | /** Properties of a HttpRule. */
|
7030 | interface IHttpRule {
|
7031 |
|
7032 | /** HttpRule selector */
|
7033 | selector?: (string|null);
|
7034 |
|
7035 | /** HttpRule get */
|
7036 | get?: (string|null);
|
7037 |
|
7038 | /** HttpRule put */
|
7039 | put?: (string|null);
|
7040 |
|
7041 | /** HttpRule post */
|
7042 | post?: (string|null);
|
7043 |
|
7044 | /** HttpRule delete */
|
7045 | "delete"?: (string|null);
|
7046 |
|
7047 | /** HttpRule patch */
|
7048 | patch?: (string|null);
|
7049 |
|
7050 | /** HttpRule custom */
|
7051 | custom?: (google.api.ICustomHttpPattern|null);
|
7052 |
|
7053 | /** HttpRule body */
|
7054 | body?: (string|null);
|
7055 |
|
7056 | /** HttpRule responseBody */
|
7057 | responseBody?: (string|null);
|
7058 |
|
7059 | /** HttpRule additionalBindings */
|
7060 | additionalBindings?: (google.api.IHttpRule[]|null);
|
7061 | }
|
7062 |
|
7063 | /** Represents a HttpRule. */
|
7064 | class HttpRule implements IHttpRule {
|
7065 |
|
7066 | /**
|
7067 | * Constructs a new HttpRule.
|
7068 | * @param [properties] Properties to set
|
7069 | */
|
7070 | constructor(properties?: google.api.IHttpRule);
|
7071 |
|
7072 | /** HttpRule selector. */
|
7073 | public selector: string;
|
7074 |
|
7075 | /** HttpRule get. */
|
7076 | public get?: (string|null);
|
7077 |
|
7078 | /** HttpRule put. */
|
7079 | public put?: (string|null);
|
7080 |
|
7081 | /** HttpRule post. */
|
7082 | public post?: (string|null);
|
7083 |
|
7084 | /** HttpRule delete. */
|
7085 | public delete?: (string|null);
|
7086 |
|
7087 | /** HttpRule patch. */
|
7088 | public patch?: (string|null);
|
7089 |
|
7090 | /** HttpRule custom. */
|
7091 | public custom?: (google.api.ICustomHttpPattern|null);
|
7092 |
|
7093 | /** HttpRule body. */
|
7094 | public body: string;
|
7095 |
|
7096 | /** HttpRule responseBody. */
|
7097 | public responseBody: string;
|
7098 |
|
7099 | /** HttpRule additionalBindings. */
|
7100 | public additionalBindings: google.api.IHttpRule[];
|
7101 |
|
7102 | /** HttpRule pattern. */
|
7103 | public pattern?: ("get"|"put"|"post"|"delete"|"patch"|"custom");
|
7104 |
|
7105 | /**
|
7106 | * Creates a new HttpRule instance using the specified properties.
|
7107 | * @param [properties] Properties to set
|
7108 | * @returns HttpRule instance
|
7109 | */
|
7110 | public static create(properties?: google.api.IHttpRule): google.api.HttpRule;
|
7111 |
|
7112 | /**
|
7113 | * Encodes the specified HttpRule message. Does not implicitly { google.api.HttpRule.verify|verify} messages.
|
7114 | * message HttpRule message or plain object to encode
|
7115 | * [writer] Writer to encode to
|
7116 | * Writer
|
7117 | */
|
7118 | public static encode(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer;
|
7119 |
|
7120 | /**
|
7121 | * Encodes the specified HttpRule message, length delimited. Does not implicitly {@link google.api.HttpRule.verify|verify} messages.
|
7122 | * @param message HttpRule message or plain object to encode
|
7123 | * @param [writer] Writer to encode to
|
7124 | * @returns Writer
|
7125 | */
|
7126 | public static encodeDelimited(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer;
|
7127 |
|
7128 | /**
|
7129 | * Decodes a HttpRule message from the specified reader or buffer.
|
7130 | * @param reader Reader or buffer to decode from
|
7131 | * @param [length] Message length if known beforehand
|
7132 | * @returns HttpRule
|
7133 | * @throws {Error} If the payload is not a reader or valid buffer
|
7134 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
7135 | */
|
7136 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.HttpRule;
|
7137 |
|
7138 | /**
|
7139 | * Decodes a HttpRule message from the specified reader or buffer, length delimited.
|
7140 | * @param reader Reader or buffer to decode from
|
7141 | * @returns HttpRule
|
7142 | * @throws {Error} If the payload is not a reader or valid buffer
|
7143 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
7144 | */
|
7145 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.HttpRule;
|
7146 |
|
7147 | /**
|
7148 | * Verifies a HttpRule message.
|
7149 | * @param message Plain object to verify
|
7150 | * @returns `null` if valid, otherwise the reason why it is not
|
7151 | */
|
7152 | public static verify(message: { [k: string]: any }): (string|null);
|
7153 |
|
7154 | /**
|
7155 | * Creates a HttpRule message from a plain object. Also converts values to their respective internal types.
|
7156 | * @param object Plain object
|
7157 | * @returns HttpRule
|
7158 | */
|
7159 | public static fromObject(object: { [k: string]: any }): google.api.HttpRule;
|
7160 |
|
7161 | /**
|
7162 | * Creates a plain object from a HttpRule message. Also converts values to other types if specified.
|
7163 | * @param message HttpRule
|
7164 | * @param [options] Conversion options
|
7165 | * @returns Plain object
|
7166 | */
|
7167 | public static toObject(message: google.api.HttpRule, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
7168 |
|
7169 | /**
|
7170 | * Converts this HttpRule to JSON.
|
7171 | * @returns JSON object
|
7172 | */
|
7173 | public toJSON(): { [k: string]: any };
|
7174 | }
|
7175 |
|
7176 | /** Properties of a CustomHttpPattern. */
|
7177 | interface ICustomHttpPattern {
|
7178 |
|
7179 | /** CustomHttpPattern kind */
|
7180 | kind?: (string|null);
|
7181 |
|
7182 | /** CustomHttpPattern path */
|
7183 | path?: (string|null);
|
7184 | }
|
7185 |
|
7186 | /** Represents a CustomHttpPattern. */
|
7187 | class CustomHttpPattern implements ICustomHttpPattern {
|
7188 |
|
7189 | /**
|
7190 | * Constructs a new CustomHttpPattern.
|
7191 | * @param [properties] Properties to set
|
7192 | */
|
7193 | constructor(properties?: google.api.ICustomHttpPattern);
|
7194 |
|
7195 | /** CustomHttpPattern kind. */
|
7196 | public kind: string;
|
7197 |
|
7198 | /** CustomHttpPattern path. */
|
7199 | public path: string;
|
7200 |
|
7201 | /**
|
7202 | * Creates a new CustomHttpPattern instance using the specified properties.
|
7203 | * @param [properties] Properties to set
|
7204 | * @returns CustomHttpPattern instance
|
7205 | */
|
7206 | public static create(properties?: google.api.ICustomHttpPattern): google.api.CustomHttpPattern;
|
7207 |
|
7208 | /**
|
7209 | * Encodes the specified CustomHttpPattern message. Does not implicitly { google.api.CustomHttpPattern.verify|verify} messages.
|
7210 | * message CustomHttpPattern message or plain object to encode
|
7211 | * [writer] Writer to encode to
|
7212 | * Writer
|
7213 | */
|
7214 | public static encode(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer;
|
7215 |
|
7216 | /**
|
7217 | * Encodes the specified CustomHttpPattern message, length delimited. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages.
|
7218 | * @param message CustomHttpPattern message or plain object to encode
|
7219 | * @param [writer] Writer to encode to
|
7220 | * @returns Writer
|
7221 | */
|
7222 | public static encodeDelimited(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer;
|
7223 |
|
7224 | /**
|
7225 | * Decodes a CustomHttpPattern message from the specified reader or buffer.
|
7226 | * @param reader Reader or buffer to decode from
|
7227 | * @param [length] Message length if known beforehand
|
7228 | * @returns CustomHttpPattern
|
7229 | * @throws {Error} If the payload is not a reader or valid buffer
|
7230 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
7231 | */
|
7232 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.CustomHttpPattern;
|
7233 |
|
7234 | /**
|
7235 | * Decodes a CustomHttpPattern message from the specified reader or buffer, length delimited.
|
7236 | * @param reader Reader or buffer to decode from
|
7237 | * @returns CustomHttpPattern
|
7238 | * @throws {Error} If the payload is not a reader or valid buffer
|
7239 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
7240 | */
|
7241 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.CustomHttpPattern;
|
7242 |
|
7243 | /**
|
7244 | * Verifies a CustomHttpPattern message.
|
7245 | * @param message Plain object to verify
|
7246 | * @returns `null` if valid, otherwise the reason why it is not
|
7247 | */
|
7248 | public static verify(message: { [k: string]: any }): (string|null);
|
7249 |
|
7250 | /**
|
7251 | * Creates a CustomHttpPattern message from a plain object. Also converts values to their respective internal types.
|
7252 | * @param object Plain object
|
7253 | * @returns CustomHttpPattern
|
7254 | */
|
7255 | public static fromObject(object: { [k: string]: any }): google.api.CustomHttpPattern;
|
7256 |
|
7257 | /**
|
7258 | * Creates a plain object from a CustomHttpPattern message. Also converts values to other types if specified.
|
7259 | * @param message CustomHttpPattern
|
7260 | * @param [options] Conversion options
|
7261 | * @returns Plain object
|
7262 | */
|
7263 | public static toObject(message: google.api.CustomHttpPattern, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
7264 |
|
7265 | /**
|
7266 | * Converts this CustomHttpPattern to JSON.
|
7267 | * @returns JSON object
|
7268 | */
|
7269 | public toJSON(): { [k: string]: any };
|
7270 | }
|
7271 |
|
7272 | /** FieldBehavior enum. */
|
7273 | enum FieldBehavior {
|
7274 | FIELD_BEHAVIOR_UNSPECIFIED = 0,
|
7275 | OPTIONAL = 1,
|
7276 | REQUIRED = 2,
|
7277 | OUTPUT_ONLY = 3,
|
7278 | INPUT_ONLY = 4,
|
7279 | IMMUTABLE = 5,
|
7280 | UNORDERED_LIST = 6,
|
7281 | NON_EMPTY_DEFAULT = 7
|
7282 | }
|
7283 |
|
7284 | /** Properties of a ResourceDescriptor. */
|
7285 | interface IResourceDescriptor {
|
7286 |
|
7287 | /** ResourceDescriptor type */
|
7288 | type?: (string|null);
|
7289 |
|
7290 | /** ResourceDescriptor pattern */
|
7291 | pattern?: (string[]|null);
|
7292 |
|
7293 | /** ResourceDescriptor nameField */
|
7294 | nameField?: (string|null);
|
7295 |
|
7296 | /** ResourceDescriptor history */
|
7297 | history?: (google.api.ResourceDescriptor.History|keyof typeof google.api.ResourceDescriptor.History|null);
|
7298 |
|
7299 | /** ResourceDescriptor plural */
|
7300 | plural?: (string|null);
|
7301 |
|
7302 | /** ResourceDescriptor singular */
|
7303 | singular?: (string|null);
|
7304 |
|
7305 | /** ResourceDescriptor style */
|
7306 | style?: (google.api.ResourceDescriptor.Style[]|null);
|
7307 | }
|
7308 |
|
7309 | /** Represents a ResourceDescriptor. */
|
7310 | class ResourceDescriptor implements IResourceDescriptor {
|
7311 |
|
7312 | /**
|
7313 | * Constructs a new ResourceDescriptor.
|
7314 | * @param [properties] Properties to set
|
7315 | */
|
7316 | constructor(properties?: google.api.IResourceDescriptor);
|
7317 |
|
7318 | /** ResourceDescriptor type. */
|
7319 | public type: string;
|
7320 |
|
7321 | /** ResourceDescriptor pattern. */
|
7322 | public pattern: string[];
|
7323 |
|
7324 | /** ResourceDescriptor nameField. */
|
7325 | public nameField: string;
|
7326 |
|
7327 | /** ResourceDescriptor history. */
|
7328 | public history: (google.api.ResourceDescriptor.History|keyof typeof google.api.ResourceDescriptor.History);
|
7329 |
|
7330 | /** ResourceDescriptor plural. */
|
7331 | public plural: string;
|
7332 |
|
7333 | /** ResourceDescriptor singular. */
|
7334 | public singular: string;
|
7335 |
|
7336 | /** ResourceDescriptor style. */
|
7337 | public style: google.api.ResourceDescriptor.Style[];
|
7338 |
|
7339 | /**
|
7340 | * Creates a new ResourceDescriptor instance using the specified properties.
|
7341 | * @param [properties] Properties to set
|
7342 | * @returns ResourceDescriptor instance
|
7343 | */
|
7344 | public static create(properties?: google.api.IResourceDescriptor): google.api.ResourceDescriptor;
|
7345 |
|
7346 | /**
|
7347 | * Encodes the specified ResourceDescriptor message. Does not implicitly { google.api.ResourceDescriptor.verify|verify} messages.
|
7348 | * message ResourceDescriptor message or plain object to encode
|
7349 | * [writer] Writer to encode to
|
7350 | * Writer
|
7351 | */
|
7352 | public static encode(message: google.api.IResourceDescriptor, writer?: $protobuf.Writer): $protobuf.Writer;
|
7353 |
|
7354 | /**
|
7355 | * Encodes the specified ResourceDescriptor message, length delimited. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages.
|
7356 | * @param message ResourceDescriptor message or plain object to encode
|
7357 | * @param [writer] Writer to encode to
|
7358 | * @returns Writer
|
7359 | */
|
7360 | public static encodeDelimited(message: google.api.IResourceDescriptor, writer?: $protobuf.Writer): $protobuf.Writer;
|
7361 |
|
7362 | /**
|
7363 | * Decodes a ResourceDescriptor message from the specified reader or buffer.
|
7364 | * @param reader Reader or buffer to decode from
|
7365 | * @param [length] Message length if known beforehand
|
7366 | * @returns ResourceDescriptor
|
7367 | * @throws {Error} If the payload is not a reader or valid buffer
|
7368 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
7369 | */
|
7370 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.ResourceDescriptor;
|
7371 |
|
7372 | /**
|
7373 | * Decodes a ResourceDescriptor message from the specified reader or buffer, length delimited.
|
7374 | * @param reader Reader or buffer to decode from
|
7375 | * @returns ResourceDescriptor
|
7376 | * @throws {Error} If the payload is not a reader or valid buffer
|
7377 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
7378 | */
|
7379 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.ResourceDescriptor;
|
7380 |
|
7381 | /**
|
7382 | * Verifies a ResourceDescriptor message.
|
7383 | * @param message Plain object to verify
|
7384 | * @returns `null` if valid, otherwise the reason why it is not
|
7385 | */
|
7386 | public static verify(message: { [k: string]: any }): (string|null);
|
7387 |
|
7388 | /**
|
7389 | * Creates a ResourceDescriptor message from a plain object. Also converts values to their respective internal types.
|
7390 | * @param object Plain object
|
7391 | * @returns ResourceDescriptor
|
7392 | */
|
7393 | public static fromObject(object: { [k: string]: any }): google.api.ResourceDescriptor;
|
7394 |
|
7395 | /**
|
7396 | * Creates a plain object from a ResourceDescriptor message. Also converts values to other types if specified.
|
7397 | * @param message ResourceDescriptor
|
7398 | * @param [options] Conversion options
|
7399 | * @returns Plain object
|
7400 | */
|
7401 | public static toObject(message: google.api.ResourceDescriptor, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
7402 |
|
7403 | /**
|
7404 | * Converts this ResourceDescriptor to JSON.
|
7405 | * @returns JSON object
|
7406 | */
|
7407 | public toJSON(): { [k: string]: any };
|
7408 | }
|
7409 |
|
7410 | namespace ResourceDescriptor {
|
7411 |
|
7412 | /** History enum. */
|
7413 | enum History {
|
7414 | HISTORY_UNSPECIFIED = 0,
|
7415 | ORIGINALLY_SINGLE_PATTERN = 1,
|
7416 | FUTURE_MULTI_PATTERN = 2
|
7417 | }
|
7418 |
|
7419 | /** Style enum. */
|
7420 | enum Style {
|
7421 | STYLE_UNSPECIFIED = 0,
|
7422 | DECLARATIVE_FRIENDLY = 1
|
7423 | }
|
7424 | }
|
7425 |
|
7426 | /** Properties of a ResourceReference. */
|
7427 | interface IResourceReference {
|
7428 |
|
7429 | /** ResourceReference type */
|
7430 | type?: (string|null);
|
7431 |
|
7432 | /** ResourceReference childType */
|
7433 | childType?: (string|null);
|
7434 | }
|
7435 |
|
7436 | /** Represents a ResourceReference. */
|
7437 | class ResourceReference implements IResourceReference {
|
7438 |
|
7439 | /**
|
7440 | * Constructs a new ResourceReference.
|
7441 | * @param [properties] Properties to set
|
7442 | */
|
7443 | constructor(properties?: google.api.IResourceReference);
|
7444 |
|
7445 | /** ResourceReference type. */
|
7446 | public type: string;
|
7447 |
|
7448 | /** ResourceReference childType. */
|
7449 | public childType: string;
|
7450 |
|
7451 | /**
|
7452 | * Creates a new ResourceReference instance using the specified properties.
|
7453 | * @param [properties] Properties to set
|
7454 | * @returns ResourceReference instance
|
7455 | */
|
7456 | public static create(properties?: google.api.IResourceReference): google.api.ResourceReference;
|
7457 |
|
7458 | /**
|
7459 | * Encodes the specified ResourceReference message. Does not implicitly { google.api.ResourceReference.verify|verify} messages.
|
7460 | * message ResourceReference message or plain object to encode
|
7461 | * [writer] Writer to encode to
|
7462 | * Writer
|
7463 | */
|
7464 | public static encode(message: google.api.IResourceReference, writer?: $protobuf.Writer): $protobuf.Writer;
|
7465 |
|
7466 | /**
|
7467 | * Encodes the specified ResourceReference message, length delimited. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages.
|
7468 | * @param message ResourceReference message or plain object to encode
|
7469 | * @param [writer] Writer to encode to
|
7470 | * @returns Writer
|
7471 | */
|
7472 | public static encodeDelimited(message: google.api.IResourceReference, writer?: $protobuf.Writer): $protobuf.Writer;
|
7473 |
|
7474 | /**
|
7475 | * Decodes a ResourceReference message from the specified reader or buffer.
|
7476 | * @param reader Reader or buffer to decode from
|
7477 | * @param [length] Message length if known beforehand
|
7478 | * @returns ResourceReference
|
7479 | * @throws {Error} If the payload is not a reader or valid buffer
|
7480 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
7481 | */
|
7482 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.ResourceReference;
|
7483 |
|
7484 | /**
|
7485 | * Decodes a ResourceReference message from the specified reader or buffer, length delimited.
|
7486 | * @param reader Reader or buffer to decode from
|
7487 | * @returns ResourceReference
|
7488 | * @throws {Error} If the payload is not a reader or valid buffer
|
7489 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
7490 | */
|
7491 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.ResourceReference;
|
7492 |
|
7493 | /**
|
7494 | * Verifies a ResourceReference message.
|
7495 | * @param message Plain object to verify
|
7496 | * @returns `null` if valid, otherwise the reason why it is not
|
7497 | */
|
7498 | public static verify(message: { [k: string]: any }): (string|null);
|
7499 |
|
7500 | /**
|
7501 | * Creates a ResourceReference message from a plain object. Also converts values to their respective internal types.
|
7502 | * @param object Plain object
|
7503 | * @returns ResourceReference
|
7504 | */
|
7505 | public static fromObject(object: { [k: string]: any }): google.api.ResourceReference;
|
7506 |
|
7507 | /**
|
7508 | * Creates a plain object from a ResourceReference message. Also converts values to other types if specified.
|
7509 | * @param message ResourceReference
|
7510 | * @param [options] Conversion options
|
7511 | * @returns Plain object
|
7512 | */
|
7513 | public static toObject(message: google.api.ResourceReference, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
7514 |
|
7515 | /**
|
7516 | * Converts this ResourceReference to JSON.
|
7517 | * @returns JSON object
|
7518 | */
|
7519 | public toJSON(): { [k: string]: any };
|
7520 | }
|
7521 | }
|
7522 |
|
7523 | /** Namespace protobuf. */
|
7524 | namespace protobuf {
|
7525 |
|
7526 | /** Properties of a FileDescriptorSet. */
|
7527 | interface IFileDescriptorSet {
|
7528 |
|
7529 | /** FileDescriptorSet file */
|
7530 | file?: (google.protobuf.IFileDescriptorProto[]|null);
|
7531 | }
|
7532 |
|
7533 | /** Represents a FileDescriptorSet. */
|
7534 | class FileDescriptorSet implements IFileDescriptorSet {
|
7535 |
|
7536 | /**
|
7537 | * Constructs a new FileDescriptorSet.
|
7538 | * @param [properties] Properties to set
|
7539 | */
|
7540 | constructor(properties?: google.protobuf.IFileDescriptorSet);
|
7541 |
|
7542 | /** FileDescriptorSet file. */
|
7543 | public file: google.protobuf.IFileDescriptorProto[];
|
7544 |
|
7545 | /**
|
7546 | * Creates a new FileDescriptorSet instance using the specified properties.
|
7547 | * @param [properties] Properties to set
|
7548 | * @returns FileDescriptorSet instance
|
7549 | */
|
7550 | public static create(properties?: google.protobuf.IFileDescriptorSet): google.protobuf.FileDescriptorSet;
|
7551 |
|
7552 | /**
|
7553 | * Encodes the specified FileDescriptorSet message. Does not implicitly { google.protobuf.FileDescriptorSet.verify|verify} messages.
|
7554 | * message FileDescriptorSet message or plain object to encode
|
7555 | * [writer] Writer to encode to
|
7556 | * Writer
|
7557 | */
|
7558 | public static encode(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer;
|
7559 |
|
7560 | /**
|
7561 | * Encodes the specified FileDescriptorSet message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages.
|
7562 | * @param message FileDescriptorSet message or plain object to encode
|
7563 | * @param [writer] Writer to encode to
|
7564 | * @returns Writer
|
7565 | */
|
7566 | public static encodeDelimited(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer;
|
7567 |
|
7568 | /**
|
7569 | * Decodes a FileDescriptorSet message from the specified reader or buffer.
|
7570 | * @param reader Reader or buffer to decode from
|
7571 | * @param [length] Message length if known beforehand
|
7572 | * @returns FileDescriptorSet
|
7573 | * @throws {Error} If the payload is not a reader or valid buffer
|
7574 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
7575 | */
|
7576 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorSet;
|
7577 |
|
7578 | /**
|
7579 | * Decodes a FileDescriptorSet message from the specified reader or buffer, length delimited.
|
7580 | * @param reader Reader or buffer to decode from
|
7581 | * @returns FileDescriptorSet
|
7582 | * @throws {Error} If the payload is not a reader or valid buffer
|
7583 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
7584 | */
|
7585 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileDescriptorSet;
|
7586 |
|
7587 | /**
|
7588 | * Verifies a FileDescriptorSet message.
|
7589 | * @param message Plain object to verify
|
7590 | * @returns `null` if valid, otherwise the reason why it is not
|
7591 | */
|
7592 | public static verify(message: { [k: string]: any }): (string|null);
|
7593 |
|
7594 | /**
|
7595 | * Creates a FileDescriptorSet message from a plain object. Also converts values to their respective internal types.
|
7596 | * @param object Plain object
|
7597 | * @returns FileDescriptorSet
|
7598 | */
|
7599 | public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorSet;
|
7600 |
|
7601 | /**
|
7602 | * Creates a plain object from a FileDescriptorSet message. Also converts values to other types if specified.
|
7603 | * @param message FileDescriptorSet
|
7604 | * @param [options] Conversion options
|
7605 | * @returns Plain object
|
7606 | */
|
7607 | public static toObject(message: google.protobuf.FileDescriptorSet, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
7608 |
|
7609 | /**
|
7610 | * Converts this FileDescriptorSet to JSON.
|
7611 | * @returns JSON object
|
7612 | */
|
7613 | public toJSON(): { [k: string]: any };
|
7614 | }
|
7615 |
|
7616 | /** Properties of a FileDescriptorProto. */
|
7617 | interface IFileDescriptorProto {
|
7618 |
|
7619 | /** FileDescriptorProto name */
|
7620 | name?: (string|null);
|
7621 |
|
7622 | /** FileDescriptorProto package */
|
7623 | "package"?: (string|null);
|
7624 |
|
7625 | /** FileDescriptorProto dependency */
|
7626 | dependency?: (string[]|null);
|
7627 |
|
7628 | /** FileDescriptorProto publicDependency */
|
7629 | publicDependency?: (number[]|null);
|
7630 |
|
7631 | /** FileDescriptorProto weakDependency */
|
7632 | weakDependency?: (number[]|null);
|
7633 |
|
7634 | /** FileDescriptorProto messageType */
|
7635 | messageType?: (google.protobuf.IDescriptorProto[]|null);
|
7636 |
|
7637 | /** FileDescriptorProto enumType */
|
7638 | enumType?: (google.protobuf.IEnumDescriptorProto[]|null);
|
7639 |
|
7640 | /** FileDescriptorProto service */
|
7641 | service?: (google.protobuf.IServiceDescriptorProto[]|null);
|
7642 |
|
7643 | /** FileDescriptorProto extension */
|
7644 | extension?: (google.protobuf.IFieldDescriptorProto[]|null);
|
7645 |
|
7646 | /** FileDescriptorProto options */
|
7647 | options?: (google.protobuf.IFileOptions|null);
|
7648 |
|
7649 | /** FileDescriptorProto sourceCodeInfo */
|
7650 | sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null);
|
7651 |
|
7652 | /** FileDescriptorProto syntax */
|
7653 | syntax?: (string|null);
|
7654 | }
|
7655 |
|
7656 | /** Represents a FileDescriptorProto. */
|
7657 | class FileDescriptorProto implements IFileDescriptorProto {
|
7658 |
|
7659 | /**
|
7660 | * Constructs a new FileDescriptorProto.
|
7661 | * @param [properties] Properties to set
|
7662 | */
|
7663 | constructor(properties?: google.protobuf.IFileDescriptorProto);
|
7664 |
|
7665 | /** FileDescriptorProto name. */
|
7666 | public name: string;
|
7667 |
|
7668 | /** FileDescriptorProto package. */
|
7669 | public package: string;
|
7670 |
|
7671 | /** FileDescriptorProto dependency. */
|
7672 | public dependency: string[];
|
7673 |
|
7674 | /** FileDescriptorProto publicDependency. */
|
7675 | public publicDependency: number[];
|
7676 |
|
7677 | /** FileDescriptorProto weakDependency. */
|
7678 | public weakDependency: number[];
|
7679 |
|
7680 | /** FileDescriptorProto messageType. */
|
7681 | public messageType: google.protobuf.IDescriptorProto[];
|
7682 |
|
7683 | /** FileDescriptorProto enumType. */
|
7684 | public enumType: google.protobuf.IEnumDescriptorProto[];
|
7685 |
|
7686 | /** FileDescriptorProto service. */
|
7687 | public service: google.protobuf.IServiceDescriptorProto[];
|
7688 |
|
7689 | /** FileDescriptorProto extension. */
|
7690 | public extension: google.protobuf.IFieldDescriptorProto[];
|
7691 |
|
7692 | /** FileDescriptorProto options. */
|
7693 | public options?: (google.protobuf.IFileOptions|null);
|
7694 |
|
7695 | /** FileDescriptorProto sourceCodeInfo. */
|
7696 | public sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null);
|
7697 |
|
7698 | /** FileDescriptorProto syntax. */
|
7699 | public syntax: string;
|
7700 |
|
7701 | /**
|
7702 | * Creates a new FileDescriptorProto instance using the specified properties.
|
7703 | * @param [properties] Properties to set
|
7704 | * @returns FileDescriptorProto instance
|
7705 | */
|
7706 | public static create(properties?: google.protobuf.IFileDescriptorProto): google.protobuf.FileDescriptorProto;
|
7707 |
|
7708 | /**
|
7709 | * Encodes the specified FileDescriptorProto message. Does not implicitly { google.protobuf.FileDescriptorProto.verify|verify} messages.
|
7710 | * message FileDescriptorProto message or plain object to encode
|
7711 | * [writer] Writer to encode to
|
7712 | * Writer
|
7713 | */
|
7714 | public static encode(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
|
7715 |
|
7716 | /**
|
7717 | * Encodes the specified FileDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages.
|
7718 | * @param message FileDescriptorProto message or plain object to encode
|
7719 | * @param [writer] Writer to encode to
|
7720 | * @returns Writer
|
7721 | */
|
7722 | public static encodeDelimited(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
|
7723 |
|
7724 | /**
|
7725 | * Decodes a FileDescriptorProto message from the specified reader or buffer.
|
7726 | * @param reader Reader or buffer to decode from
|
7727 | * @param [length] Message length if known beforehand
|
7728 | * @returns FileDescriptorProto
|
7729 | * @throws {Error} If the payload is not a reader or valid buffer
|
7730 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
7731 | */
|
7732 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorProto;
|
7733 |
|
7734 | /**
|
7735 | * Decodes a FileDescriptorProto message from the specified reader or buffer, length delimited.
|
7736 | * @param reader Reader or buffer to decode from
|
7737 | * @returns FileDescriptorProto
|
7738 | * @throws {Error} If the payload is not a reader or valid buffer
|
7739 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
7740 | */
|
7741 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileDescriptorProto;
|
7742 |
|
7743 | /**
|
7744 | * Verifies a FileDescriptorProto message.
|
7745 | * @param message Plain object to verify
|
7746 | * @returns `null` if valid, otherwise the reason why it is not
|
7747 | */
|
7748 | public static verify(message: { [k: string]: any }): (string|null);
|
7749 |
|
7750 | /**
|
7751 | * Creates a FileDescriptorProto message from a plain object. Also converts values to their respective internal types.
|
7752 | * @param object Plain object
|
7753 | * @returns FileDescriptorProto
|
7754 | */
|
7755 | public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorProto;
|
7756 |
|
7757 | /**
|
7758 | * Creates a plain object from a FileDescriptorProto message. Also converts values to other types if specified.
|
7759 | * @param message FileDescriptorProto
|
7760 | * @param [options] Conversion options
|
7761 | * @returns Plain object
|
7762 | */
|
7763 | public static toObject(message: google.protobuf.FileDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
7764 |
|
7765 | /**
|
7766 | * Converts this FileDescriptorProto to JSON.
|
7767 | * @returns JSON object
|
7768 | */
|
7769 | public toJSON(): { [k: string]: any };
|
7770 | }
|
7771 |
|
7772 | /** Properties of a DescriptorProto. */
|
7773 | interface IDescriptorProto {
|
7774 |
|
7775 | /** DescriptorProto name */
|
7776 | name?: (string|null);
|
7777 |
|
7778 | /** DescriptorProto field */
|
7779 | field?: (google.protobuf.IFieldDescriptorProto[]|null);
|
7780 |
|
7781 | /** DescriptorProto extension */
|
7782 | extension?: (google.protobuf.IFieldDescriptorProto[]|null);
|
7783 |
|
7784 | /** DescriptorProto nestedType */
|
7785 | nestedType?: (google.protobuf.IDescriptorProto[]|null);
|
7786 |
|
7787 | /** DescriptorProto enumType */
|
7788 | enumType?: (google.protobuf.IEnumDescriptorProto[]|null);
|
7789 |
|
7790 | /** DescriptorProto extensionRange */
|
7791 | extensionRange?: (google.protobuf.DescriptorProto.IExtensionRange[]|null);
|
7792 |
|
7793 | /** DescriptorProto oneofDecl */
|
7794 | oneofDecl?: (google.protobuf.IOneofDescriptorProto[]|null);
|
7795 |
|
7796 | /** DescriptorProto options */
|
7797 | options?: (google.protobuf.IMessageOptions|null);
|
7798 |
|
7799 | /** DescriptorProto reservedRange */
|
7800 | reservedRange?: (google.protobuf.DescriptorProto.IReservedRange[]|null);
|
7801 |
|
7802 | /** DescriptorProto reservedName */
|
7803 | reservedName?: (string[]|null);
|
7804 | }
|
7805 |
|
7806 | /** Represents a DescriptorProto. */
|
7807 | class DescriptorProto implements IDescriptorProto {
|
7808 |
|
7809 | /**
|
7810 | * Constructs a new DescriptorProto.
|
7811 | * @param [properties] Properties to set
|
7812 | */
|
7813 | constructor(properties?: google.protobuf.IDescriptorProto);
|
7814 |
|
7815 | /** DescriptorProto name. */
|
7816 | public name: string;
|
7817 |
|
7818 | /** DescriptorProto field. */
|
7819 | public field: google.protobuf.IFieldDescriptorProto[];
|
7820 |
|
7821 | /** DescriptorProto extension. */
|
7822 | public extension: google.protobuf.IFieldDescriptorProto[];
|
7823 |
|
7824 | /** DescriptorProto nestedType. */
|
7825 | public nestedType: google.protobuf.IDescriptorProto[];
|
7826 |
|
7827 | /** DescriptorProto enumType. */
|
7828 | public enumType: google.protobuf.IEnumDescriptorProto[];
|
7829 |
|
7830 | /** DescriptorProto extensionRange. */
|
7831 | public extensionRange: google.protobuf.DescriptorProto.IExtensionRange[];
|
7832 |
|
7833 | /** DescriptorProto oneofDecl. */
|
7834 | public oneofDecl: google.protobuf.IOneofDescriptorProto[];
|
7835 |
|
7836 | /** DescriptorProto options. */
|
7837 | public options?: (google.protobuf.IMessageOptions|null);
|
7838 |
|
7839 | /** DescriptorProto reservedRange. */
|
7840 | public reservedRange: google.protobuf.DescriptorProto.IReservedRange[];
|
7841 |
|
7842 | /** DescriptorProto reservedName. */
|
7843 | public reservedName: string[];
|
7844 |
|
7845 | /**
|
7846 | * Creates a new DescriptorProto instance using the specified properties.
|
7847 | * @param [properties] Properties to set
|
7848 | * @returns DescriptorProto instance
|
7849 | */
|
7850 | public static create(properties?: google.protobuf.IDescriptorProto): google.protobuf.DescriptorProto;
|
7851 |
|
7852 | /**
|
7853 | * Encodes the specified DescriptorProto message. Does not implicitly { google.protobuf.DescriptorProto.verify|verify} messages.
|
7854 | * message DescriptorProto message or plain object to encode
|
7855 | * [writer] Writer to encode to
|
7856 | * Writer
|
7857 | */
|
7858 | public static encode(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
|
7859 |
|
7860 | /**
|
7861 | * Encodes the specified DescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages.
|
7862 | * @param message DescriptorProto message or plain object to encode
|
7863 | * @param [writer] Writer to encode to
|
7864 | * @returns Writer
|
7865 | */
|
7866 | public static encodeDelimited(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
|
7867 |
|
7868 | /**
|
7869 | * Decodes a DescriptorProto message from the specified reader or buffer.
|
7870 | * @param reader Reader or buffer to decode from
|
7871 | * @param [length] Message length if known beforehand
|
7872 | * @returns DescriptorProto
|
7873 | * @throws {Error} If the payload is not a reader or valid buffer
|
7874 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
7875 | */
|
7876 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto;
|
7877 |
|
7878 | /**
|
7879 | * Decodes a DescriptorProto message from the specified reader or buffer, length delimited.
|
7880 | * @param reader Reader or buffer to decode from
|
7881 | * @returns DescriptorProto
|
7882 | * @throws {Error} If the payload is not a reader or valid buffer
|
7883 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
7884 | */
|
7885 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto;
|
7886 |
|
7887 | /**
|
7888 | * Verifies a DescriptorProto message.
|
7889 | * @param message Plain object to verify
|
7890 | * @returns `null` if valid, otherwise the reason why it is not
|
7891 | */
|
7892 | public static verify(message: { [k: string]: any }): (string|null);
|
7893 |
|
7894 | /**
|
7895 | * Creates a DescriptorProto message from a plain object. Also converts values to their respective internal types.
|
7896 | * @param object Plain object
|
7897 | * @returns DescriptorProto
|
7898 | */
|
7899 | public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto;
|
7900 |
|
7901 | /**
|
7902 | * Creates a plain object from a DescriptorProto message. Also converts values to other types if specified.
|
7903 | * @param message DescriptorProto
|
7904 | * @param [options] Conversion options
|
7905 | * @returns Plain object
|
7906 | */
|
7907 | public static toObject(message: google.protobuf.DescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
7908 |
|
7909 | /**
|
7910 | * Converts this DescriptorProto to JSON.
|
7911 | * @returns JSON object
|
7912 | */
|
7913 | public toJSON(): { [k: string]: any };
|
7914 | }
|
7915 |
|
7916 | namespace DescriptorProto {
|
7917 |
|
7918 | /** Properties of an ExtensionRange. */
|
7919 | interface IExtensionRange {
|
7920 |
|
7921 | /** ExtensionRange start */
|
7922 | start?: (number|null);
|
7923 |
|
7924 | /** ExtensionRange end */
|
7925 | end?: (number|null);
|
7926 |
|
7927 | /** ExtensionRange options */
|
7928 | options?: (google.protobuf.IExtensionRangeOptions|null);
|
7929 | }
|
7930 |
|
7931 | /** Represents an ExtensionRange. */
|
7932 | class ExtensionRange implements IExtensionRange {
|
7933 |
|
7934 | /**
|
7935 | * Constructs a new ExtensionRange.
|
7936 | * @param [properties] Properties to set
|
7937 | */
|
7938 | constructor(properties?: google.protobuf.DescriptorProto.IExtensionRange);
|
7939 |
|
7940 | /** ExtensionRange start. */
|
7941 | public start: number;
|
7942 |
|
7943 | /** ExtensionRange end. */
|
7944 | public end: number;
|
7945 |
|
7946 | /** ExtensionRange options. */
|
7947 | public options?: (google.protobuf.IExtensionRangeOptions|null);
|
7948 |
|
7949 | /**
|
7950 | * Creates a new ExtensionRange instance using the specified properties.
|
7951 | * @param [properties] Properties to set
|
7952 | * @returns ExtensionRange instance
|
7953 | */
|
7954 | public static create(properties?: google.protobuf.DescriptorProto.IExtensionRange): google.protobuf.DescriptorProto.ExtensionRange;
|
7955 |
|
7956 | /**
|
7957 | * Encodes the specified ExtensionRange message. Does not implicitly { google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages.
|
7958 | * message ExtensionRange message or plain object to encode
|
7959 | * [writer] Writer to encode to
|
7960 | * Writer
|
7961 | */
|
7962 | public static encode(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer;
|
7963 |
|
7964 | /**
|
7965 | * Encodes the specified ExtensionRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages.
|
7966 | * @param message ExtensionRange message or plain object to encode
|
7967 | * @param [writer] Writer to encode to
|
7968 | * @returns Writer
|
7969 | */
|
7970 | public static encodeDelimited(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer;
|
7971 |
|
7972 | /**
|
7973 | * Decodes an ExtensionRange message from the specified reader or buffer.
|
7974 | * @param reader Reader or buffer to decode from
|
7975 | * @param [length] Message length if known beforehand
|
7976 | * @returns ExtensionRange
|
7977 | * @throws {Error} If the payload is not a reader or valid buffer
|
7978 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
7979 | */
|
7980 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto.ExtensionRange;
|
7981 |
|
7982 | /**
|
7983 | * Decodes an ExtensionRange message from the specified reader or buffer, length delimited.
|
7984 | * @param reader Reader or buffer to decode from
|
7985 | * @returns ExtensionRange
|
7986 | * @throws {Error} If the payload is not a reader or valid buffer
|
7987 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
7988 | */
|
7989 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto.ExtensionRange;
|
7990 |
|
7991 | /**
|
7992 | * Verifies an ExtensionRange message.
|
7993 | * @param message Plain object to verify
|
7994 | * @returns `null` if valid, otherwise the reason why it is not
|
7995 | */
|
7996 | public static verify(message: { [k: string]: any }): (string|null);
|
7997 |
|
7998 | /**
|
7999 | * Creates an ExtensionRange message from a plain object. Also converts values to their respective internal types.
|
8000 | * @param object Plain object
|
8001 | * @returns ExtensionRange
|
8002 | */
|
8003 | public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ExtensionRange;
|
8004 |
|
8005 | /**
|
8006 | * Creates a plain object from an ExtensionRange message. Also converts values to other types if specified.
|
8007 | * @param message ExtensionRange
|
8008 | * @param [options] Conversion options
|
8009 | * @returns Plain object
|
8010 | */
|
8011 | public static toObject(message: google.protobuf.DescriptorProto.ExtensionRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
8012 |
|
8013 | /**
|
8014 | * Converts this ExtensionRange to JSON.
|
8015 | * @returns JSON object
|
8016 | */
|
8017 | public toJSON(): { [k: string]: any };
|
8018 | }
|
8019 |
|
8020 | /** Properties of a ReservedRange. */
|
8021 | interface IReservedRange {
|
8022 |
|
8023 | /** ReservedRange start */
|
8024 | start?: (number|null);
|
8025 |
|
8026 | /** ReservedRange end */
|
8027 | end?: (number|null);
|
8028 | }
|
8029 |
|
8030 | /** Represents a ReservedRange. */
|
8031 | class ReservedRange implements IReservedRange {
|
8032 |
|
8033 | /**
|
8034 | * Constructs a new ReservedRange.
|
8035 | * @param [properties] Properties to set
|
8036 | */
|
8037 | constructor(properties?: google.protobuf.DescriptorProto.IReservedRange);
|
8038 |
|
8039 | /** ReservedRange start. */
|
8040 | public start: number;
|
8041 |
|
8042 | /** ReservedRange end. */
|
8043 | public end: number;
|
8044 |
|
8045 | /**
|
8046 | * Creates a new ReservedRange instance using the specified properties.
|
8047 | * @param [properties] Properties to set
|
8048 | * @returns ReservedRange instance
|
8049 | */
|
8050 | public static create(properties?: google.protobuf.DescriptorProto.IReservedRange): google.protobuf.DescriptorProto.ReservedRange;
|
8051 |
|
8052 | /**
|
8053 | * Encodes the specified ReservedRange message. Does not implicitly { google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages.
|
8054 | * message ReservedRange message or plain object to encode
|
8055 | * [writer] Writer to encode to
|
8056 | * Writer
|
8057 | */
|
8058 | public static encode(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
|
8059 |
|
8060 | /**
|
8061 | * Encodes the specified ReservedRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages.
|
8062 | * @param message ReservedRange message or plain object to encode
|
8063 | * @param [writer] Writer to encode to
|
8064 | * @returns Writer
|
8065 | */
|
8066 | public static encodeDelimited(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
|
8067 |
|
8068 | /**
|
8069 | * Decodes a ReservedRange message from the specified reader or buffer.
|
8070 | * @param reader Reader or buffer to decode from
|
8071 | * @param [length] Message length if known beforehand
|
8072 | * @returns ReservedRange
|
8073 | * @throws {Error} If the payload is not a reader or valid buffer
|
8074 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
8075 | */
|
8076 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto.ReservedRange;
|
8077 |
|
8078 | /**
|
8079 | * Decodes a ReservedRange message from the specified reader or buffer, length delimited.
|
8080 | * @param reader Reader or buffer to decode from
|
8081 | * @returns ReservedRange
|
8082 | * @throws {Error} If the payload is not a reader or valid buffer
|
8083 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
8084 | */
|
8085 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto.ReservedRange;
|
8086 |
|
8087 | /**
|
8088 | * Verifies a ReservedRange message.
|
8089 | * @param message Plain object to verify
|
8090 | * @returns `null` if valid, otherwise the reason why it is not
|
8091 | */
|
8092 | public static verify(message: { [k: string]: any }): (string|null);
|
8093 |
|
8094 | /**
|
8095 | * Creates a ReservedRange message from a plain object. Also converts values to their respective internal types.
|
8096 | * @param object Plain object
|
8097 | * @returns ReservedRange
|
8098 | */
|
8099 | public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ReservedRange;
|
8100 |
|
8101 | /**
|
8102 | * Creates a plain object from a ReservedRange message. Also converts values to other types if specified.
|
8103 | * @param message ReservedRange
|
8104 | * @param [options] Conversion options
|
8105 | * @returns Plain object
|
8106 | */
|
8107 | public static toObject(message: google.protobuf.DescriptorProto.ReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
8108 |
|
8109 | /**
|
8110 | * Converts this ReservedRange to JSON.
|
8111 | * @returns JSON object
|
8112 | */
|
8113 | public toJSON(): { [k: string]: any };
|
8114 | }
|
8115 | }
|
8116 |
|
8117 | /** Properties of an ExtensionRangeOptions. */
|
8118 | interface IExtensionRangeOptions {
|
8119 |
|
8120 | /** ExtensionRangeOptions uninterpretedOption */
|
8121 | uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
|
8122 | }
|
8123 |
|
8124 | /** Represents an ExtensionRangeOptions. */
|
8125 | class ExtensionRangeOptions implements IExtensionRangeOptions {
|
8126 |
|
8127 | /**
|
8128 | * Constructs a new ExtensionRangeOptions.
|
8129 | * @param [properties] Properties to set
|
8130 | */
|
8131 | constructor(properties?: google.protobuf.IExtensionRangeOptions);
|
8132 |
|
8133 | /** ExtensionRangeOptions uninterpretedOption. */
|
8134 | public uninterpretedOption: google.protobuf.IUninterpretedOption[];
|
8135 |
|
8136 | /**
|
8137 | * Creates a new ExtensionRangeOptions instance using the specified properties.
|
8138 | * @param [properties] Properties to set
|
8139 | * @returns ExtensionRangeOptions instance
|
8140 | */
|
8141 | public static create(properties?: google.protobuf.IExtensionRangeOptions): google.protobuf.ExtensionRangeOptions;
|
8142 |
|
8143 | /**
|
8144 | * Encodes the specified ExtensionRangeOptions message. Does not implicitly { google.protobuf.ExtensionRangeOptions.verify|verify} messages.
|
8145 | * message ExtensionRangeOptions message or plain object to encode
|
8146 | * [writer] Writer to encode to
|
8147 | * Writer
|
8148 | */
|
8149 | public static encode(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer;
|
8150 |
|
8151 | /**
|
8152 | * Encodes the specified ExtensionRangeOptions message, length delimited. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages.
|
8153 | * @param message ExtensionRangeOptions message or plain object to encode
|
8154 | * @param [writer] Writer to encode to
|
8155 | * @returns Writer
|
8156 | */
|
8157 | public static encodeDelimited(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer;
|
8158 |
|
8159 | /**
|
8160 | * Decodes an ExtensionRangeOptions message from the specified reader or buffer.
|
8161 | * @param reader Reader or buffer to decode from
|
8162 | * @param [length] Message length if known beforehand
|
8163 | * @returns ExtensionRangeOptions
|
8164 | * @throws {Error} If the payload is not a reader or valid buffer
|
8165 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
8166 | */
|
8167 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ExtensionRangeOptions;
|
8168 |
|
8169 | /**
|
8170 | * Decodes an ExtensionRangeOptions message from the specified reader or buffer, length delimited.
|
8171 | * @param reader Reader or buffer to decode from
|
8172 | * @returns ExtensionRangeOptions
|
8173 | * @throws {Error} If the payload is not a reader or valid buffer
|
8174 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
8175 | */
|
8176 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ExtensionRangeOptions;
|
8177 |
|
8178 | /**
|
8179 | * Verifies an ExtensionRangeOptions message.
|
8180 | * @param message Plain object to verify
|
8181 | * @returns `null` if valid, otherwise the reason why it is not
|
8182 | */
|
8183 | public static verify(message: { [k: string]: any }): (string|null);
|
8184 |
|
8185 | /**
|
8186 | * Creates an ExtensionRangeOptions message from a plain object. Also converts values to their respective internal types.
|
8187 | * @param object Plain object
|
8188 | * @returns ExtensionRangeOptions
|
8189 | */
|
8190 | public static fromObject(object: { [k: string]: any }): google.protobuf.ExtensionRangeOptions;
|
8191 |
|
8192 | /**
|
8193 | * Creates a plain object from an ExtensionRangeOptions message. Also converts values to other types if specified.
|
8194 | * @param message ExtensionRangeOptions
|
8195 | * @param [options] Conversion options
|
8196 | * @returns Plain object
|
8197 | */
|
8198 | public static toObject(message: google.protobuf.ExtensionRangeOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
8199 |
|
8200 | /**
|
8201 | * Converts this ExtensionRangeOptions to JSON.
|
8202 | * @returns JSON object
|
8203 | */
|
8204 | public toJSON(): { [k: string]: any };
|
8205 | }
|
8206 |
|
8207 | /** Properties of a FieldDescriptorProto. */
|
8208 | interface IFieldDescriptorProto {
|
8209 |
|
8210 | /** FieldDescriptorProto name */
|
8211 | name?: (string|null);
|
8212 |
|
8213 | /** FieldDescriptorProto number */
|
8214 | number?: (number|null);
|
8215 |
|
8216 | /** FieldDescriptorProto label */
|
8217 | label?: (google.protobuf.FieldDescriptorProto.Label|keyof typeof google.protobuf.FieldDescriptorProto.Label|null);
|
8218 |
|
8219 | /** FieldDescriptorProto type */
|
8220 | type?: (google.protobuf.FieldDescriptorProto.Type|keyof typeof google.protobuf.FieldDescriptorProto.Type|null);
|
8221 |
|
8222 | /** FieldDescriptorProto typeName */
|
8223 | typeName?: (string|null);
|
8224 |
|
8225 | /** FieldDescriptorProto extendee */
|
8226 | extendee?: (string|null);
|
8227 |
|
8228 | /** FieldDescriptorProto defaultValue */
|
8229 | defaultValue?: (string|null);
|
8230 |
|
8231 | /** FieldDescriptorProto oneofIndex */
|
8232 | oneofIndex?: (number|null);
|
8233 |
|
8234 | /** FieldDescriptorProto jsonName */
|
8235 | jsonName?: (string|null);
|
8236 |
|
8237 | /** FieldDescriptorProto options */
|
8238 | options?: (google.protobuf.IFieldOptions|null);
|
8239 |
|
8240 | /** FieldDescriptorProto proto3Optional */
|
8241 | proto3Optional?: (boolean|null);
|
8242 | }
|
8243 |
|
8244 | /** Represents a FieldDescriptorProto. */
|
8245 | class FieldDescriptorProto implements IFieldDescriptorProto {
|
8246 |
|
8247 | /**
|
8248 | * Constructs a new FieldDescriptorProto.
|
8249 | * @param [properties] Properties to set
|
8250 | */
|
8251 | constructor(properties?: google.protobuf.IFieldDescriptorProto);
|
8252 |
|
8253 | /** FieldDescriptorProto name. */
|
8254 | public name: string;
|
8255 |
|
8256 | /** FieldDescriptorProto number. */
|
8257 | public number: number;
|
8258 |
|
8259 | /** FieldDescriptorProto label. */
|
8260 | public label: (google.protobuf.FieldDescriptorProto.Label|keyof typeof google.protobuf.FieldDescriptorProto.Label);
|
8261 |
|
8262 | /** FieldDescriptorProto type. */
|
8263 | public type: (google.protobuf.FieldDescriptorProto.Type|keyof typeof google.protobuf.FieldDescriptorProto.Type);
|
8264 |
|
8265 | /** FieldDescriptorProto typeName. */
|
8266 | public typeName: string;
|
8267 |
|
8268 | /** FieldDescriptorProto extendee. */
|
8269 | public extendee: string;
|
8270 |
|
8271 | /** FieldDescriptorProto defaultValue. */
|
8272 | public defaultValue: string;
|
8273 |
|
8274 | /** FieldDescriptorProto oneofIndex. */
|
8275 | public oneofIndex: number;
|
8276 |
|
8277 | /** FieldDescriptorProto jsonName. */
|
8278 | public jsonName: string;
|
8279 |
|
8280 | /** FieldDescriptorProto options. */
|
8281 | public options?: (google.protobuf.IFieldOptions|null);
|
8282 |
|
8283 | /** FieldDescriptorProto proto3Optional. */
|
8284 | public proto3Optional: boolean;
|
8285 |
|
8286 | /**
|
8287 | * Creates a new FieldDescriptorProto instance using the specified properties.
|
8288 | * @param [properties] Properties to set
|
8289 | * @returns FieldDescriptorProto instance
|
8290 | */
|
8291 | public static create(properties?: google.protobuf.IFieldDescriptorProto): google.protobuf.FieldDescriptorProto;
|
8292 |
|
8293 | /**
|
8294 | * Encodes the specified FieldDescriptorProto message. Does not implicitly { google.protobuf.FieldDescriptorProto.verify|verify} messages.
|
8295 | * message FieldDescriptorProto message or plain object to encode
|
8296 | * [writer] Writer to encode to
|
8297 | * Writer
|
8298 | */
|
8299 | public static encode(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
|
8300 |
|
8301 | /**
|
8302 | * Encodes the specified FieldDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages.
|
8303 | * @param message FieldDescriptorProto message or plain object to encode
|
8304 | * @param [writer] Writer to encode to
|
8305 | * @returns Writer
|
8306 | */
|
8307 | public static encodeDelimited(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
|
8308 |
|
8309 | /**
|
8310 | * Decodes a FieldDescriptorProto message from the specified reader or buffer.
|
8311 | * @param reader Reader or buffer to decode from
|
8312 | * @param [length] Message length if known beforehand
|
8313 | * @returns FieldDescriptorProto
|
8314 | * @throws {Error} If the payload is not a reader or valid buffer
|
8315 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
8316 | */
|
8317 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldDescriptorProto;
|
8318 |
|
8319 | /**
|
8320 | * Decodes a FieldDescriptorProto message from the specified reader or buffer, length delimited.
|
8321 | * @param reader Reader or buffer to decode from
|
8322 | * @returns FieldDescriptorProto
|
8323 | * @throws {Error} If the payload is not a reader or valid buffer
|
8324 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
8325 | */
|
8326 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldDescriptorProto;
|
8327 |
|
8328 | /**
|
8329 | * Verifies a FieldDescriptorProto message.
|
8330 | * @param message Plain object to verify
|
8331 | * @returns `null` if valid, otherwise the reason why it is not
|
8332 | */
|
8333 | public static verify(message: { [k: string]: any }): (string|null);
|
8334 |
|
8335 | /**
|
8336 | * Creates a FieldDescriptorProto message from a plain object. Also converts values to their respective internal types.
|
8337 | * @param object Plain object
|
8338 | * @returns FieldDescriptorProto
|
8339 | */
|
8340 | public static fromObject(object: { [k: string]: any }): google.protobuf.FieldDescriptorProto;
|
8341 |
|
8342 | /**
|
8343 | * Creates a plain object from a FieldDescriptorProto message. Also converts values to other types if specified.
|
8344 | * @param message FieldDescriptorProto
|
8345 | * @param [options] Conversion options
|
8346 | * @returns Plain object
|
8347 | */
|
8348 | public static toObject(message: google.protobuf.FieldDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
8349 |
|
8350 | /**
|
8351 | * Converts this FieldDescriptorProto to JSON.
|
8352 | * @returns JSON object
|
8353 | */
|
8354 | public toJSON(): { [k: string]: any };
|
8355 | }
|
8356 |
|
8357 | namespace FieldDescriptorProto {
|
8358 |
|
8359 | /** Type enum. */
|
8360 | enum Type {
|
8361 | TYPE_DOUBLE = 1,
|
8362 | TYPE_FLOAT = 2,
|
8363 | TYPE_INT64 = 3,
|
8364 | TYPE_UINT64 = 4,
|
8365 | TYPE_INT32 = 5,
|
8366 | TYPE_FIXED64 = 6,
|
8367 | TYPE_FIXED32 = 7,
|
8368 | TYPE_BOOL = 8,
|
8369 | TYPE_STRING = 9,
|
8370 | TYPE_GROUP = 10,
|
8371 | TYPE_MESSAGE = 11,
|
8372 | TYPE_BYTES = 12,
|
8373 | TYPE_UINT32 = 13,
|
8374 | TYPE_ENUM = 14,
|
8375 | TYPE_SFIXED32 = 15,
|
8376 | TYPE_SFIXED64 = 16,
|
8377 | TYPE_SINT32 = 17,
|
8378 | TYPE_SINT64 = 18
|
8379 | }
|
8380 |
|
8381 | /** Label enum. */
|
8382 | enum Label {
|
8383 | LABEL_OPTIONAL = 1,
|
8384 | LABEL_REQUIRED = 2,
|
8385 | LABEL_REPEATED = 3
|
8386 | }
|
8387 | }
|
8388 |
|
8389 | /** Properties of an OneofDescriptorProto. */
|
8390 | interface IOneofDescriptorProto {
|
8391 |
|
8392 | /** OneofDescriptorProto name */
|
8393 | name?: (string|null);
|
8394 |
|
8395 | /** OneofDescriptorProto options */
|
8396 | options?: (google.protobuf.IOneofOptions|null);
|
8397 | }
|
8398 |
|
8399 | /** Represents an OneofDescriptorProto. */
|
8400 | class OneofDescriptorProto implements IOneofDescriptorProto {
|
8401 |
|
8402 | /**
|
8403 | * Constructs a new OneofDescriptorProto.
|
8404 | * @param [properties] Properties to set
|
8405 | */
|
8406 | constructor(properties?: google.protobuf.IOneofDescriptorProto);
|
8407 |
|
8408 | /** OneofDescriptorProto name. */
|
8409 | public name: string;
|
8410 |
|
8411 | /** OneofDescriptorProto options. */
|
8412 | public options?: (google.protobuf.IOneofOptions|null);
|
8413 |
|
8414 | /**
|
8415 | * Creates a new OneofDescriptorProto instance using the specified properties.
|
8416 | * @param [properties] Properties to set
|
8417 | * @returns OneofDescriptorProto instance
|
8418 | */
|
8419 | public static create(properties?: google.protobuf.IOneofDescriptorProto): google.protobuf.OneofDescriptorProto;
|
8420 |
|
8421 | /**
|
8422 | * Encodes the specified OneofDescriptorProto message. Does not implicitly { google.protobuf.OneofDescriptorProto.verify|verify} messages.
|
8423 | * message OneofDescriptorProto message or plain object to encode
|
8424 | * [writer] Writer to encode to
|
8425 | * Writer
|
8426 | */
|
8427 | public static encode(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
|
8428 |
|
8429 | /**
|
8430 | * Encodes the specified OneofDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages.
|
8431 | * @param message OneofDescriptorProto message or plain object to encode
|
8432 | * @param [writer] Writer to encode to
|
8433 | * @returns Writer
|
8434 | */
|
8435 | public static encodeDelimited(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
|
8436 |
|
8437 | /**
|
8438 | * Decodes an OneofDescriptorProto message from the specified reader or buffer.
|
8439 | * @param reader Reader or buffer to decode from
|
8440 | * @param [length] Message length if known beforehand
|
8441 | * @returns OneofDescriptorProto
|
8442 | * @throws {Error} If the payload is not a reader or valid buffer
|
8443 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
8444 | */
|
8445 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofDescriptorProto;
|
8446 |
|
8447 | /**
|
8448 | * Decodes an OneofDescriptorProto message from the specified reader or buffer, length delimited.
|
8449 | * @param reader Reader or buffer to decode from
|
8450 | * @returns OneofDescriptorProto
|
8451 | * @throws {Error} If the payload is not a reader or valid buffer
|
8452 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
8453 | */
|
8454 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.OneofDescriptorProto;
|
8455 |
|
8456 | /**
|
8457 | * Verifies an OneofDescriptorProto message.
|
8458 | * @param message Plain object to verify
|
8459 | * @returns `null` if valid, otherwise the reason why it is not
|
8460 | */
|
8461 | public static verify(message: { [k: string]: any }): (string|null);
|
8462 |
|
8463 | /**
|
8464 | * Creates an OneofDescriptorProto message from a plain object. Also converts values to their respective internal types.
|
8465 | * @param object Plain object
|
8466 | * @returns OneofDescriptorProto
|
8467 | */
|
8468 | public static fromObject(object: { [k: string]: any }): google.protobuf.OneofDescriptorProto;
|
8469 |
|
8470 | /**
|
8471 | * Creates a plain object from an OneofDescriptorProto message. Also converts values to other types if specified.
|
8472 | * @param message OneofDescriptorProto
|
8473 | * @param [options] Conversion options
|
8474 | * @returns Plain object
|
8475 | */
|
8476 | public static toObject(message: google.protobuf.OneofDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
8477 |
|
8478 | /**
|
8479 | * Converts this OneofDescriptorProto to JSON.
|
8480 | * @returns JSON object
|
8481 | */
|
8482 | public toJSON(): { [k: string]: any };
|
8483 | }
|
8484 |
|
8485 | /** Properties of an EnumDescriptorProto. */
|
8486 | interface IEnumDescriptorProto {
|
8487 |
|
8488 | /** EnumDescriptorProto name */
|
8489 | name?: (string|null);
|
8490 |
|
8491 | /** EnumDescriptorProto value */
|
8492 | value?: (google.protobuf.IEnumValueDescriptorProto[]|null);
|
8493 |
|
8494 | /** EnumDescriptorProto options */
|
8495 | options?: (google.protobuf.IEnumOptions|null);
|
8496 |
|
8497 | /** EnumDescriptorProto reservedRange */
|
8498 | reservedRange?: (google.protobuf.EnumDescriptorProto.IEnumReservedRange[]|null);
|
8499 |
|
8500 | /** EnumDescriptorProto reservedName */
|
8501 | reservedName?: (string[]|null);
|
8502 | }
|
8503 |
|
8504 | /** Represents an EnumDescriptorProto. */
|
8505 | class EnumDescriptorProto implements IEnumDescriptorProto {
|
8506 |
|
8507 | /**
|
8508 | * Constructs a new EnumDescriptorProto.
|
8509 | * @param [properties] Properties to set
|
8510 | */
|
8511 | constructor(properties?: google.protobuf.IEnumDescriptorProto);
|
8512 |
|
8513 | /** EnumDescriptorProto name. */
|
8514 | public name: string;
|
8515 |
|
8516 | /** EnumDescriptorProto value. */
|
8517 | public value: google.protobuf.IEnumValueDescriptorProto[];
|
8518 |
|
8519 | /** EnumDescriptorProto options. */
|
8520 | public options?: (google.protobuf.IEnumOptions|null);
|
8521 |
|
8522 | /** EnumDescriptorProto reservedRange. */
|
8523 | public reservedRange: google.protobuf.EnumDescriptorProto.IEnumReservedRange[];
|
8524 |
|
8525 | /** EnumDescriptorProto reservedName. */
|
8526 | public reservedName: string[];
|
8527 |
|
8528 | /**
|
8529 | * Creates a new EnumDescriptorProto instance using the specified properties.
|
8530 | * @param [properties] Properties to set
|
8531 | * @returns EnumDescriptorProto instance
|
8532 | */
|
8533 | public static create(properties?: google.protobuf.IEnumDescriptorProto): google.protobuf.EnumDescriptorProto;
|
8534 |
|
8535 | /**
|
8536 | * Encodes the specified EnumDescriptorProto message. Does not implicitly { google.protobuf.EnumDescriptorProto.verify|verify} messages.
|
8537 | * message EnumDescriptorProto message or plain object to encode
|
8538 | * [writer] Writer to encode to
|
8539 | * Writer
|
8540 | */
|
8541 | public static encode(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
|
8542 |
|
8543 | /**
|
8544 | * Encodes the specified EnumDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages.
|
8545 | * @param message EnumDescriptorProto message or plain object to encode
|
8546 | * @param [writer] Writer to encode to
|
8547 | * @returns Writer
|
8548 | */
|
8549 | public static encodeDelimited(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
|
8550 |
|
8551 | /**
|
8552 | * Decodes an EnumDescriptorProto message from the specified reader or buffer.
|
8553 | * @param reader Reader or buffer to decode from
|
8554 | * @param [length] Message length if known beforehand
|
8555 | * @returns EnumDescriptorProto
|
8556 | * @throws {Error} If the payload is not a reader or valid buffer
|
8557 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
8558 | */
|
8559 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumDescriptorProto;
|
8560 |
|
8561 | /**
|
8562 | * Decodes an EnumDescriptorProto message from the specified reader or buffer, length delimited.
|
8563 | * @param reader Reader or buffer to decode from
|
8564 | * @returns EnumDescriptorProto
|
8565 | * @throws {Error} If the payload is not a reader or valid buffer
|
8566 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
8567 | */
|
8568 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumDescriptorProto;
|
8569 |
|
8570 | /**
|
8571 | * Verifies an EnumDescriptorProto message.
|
8572 | * @param message Plain object to verify
|
8573 | * @returns `null` if valid, otherwise the reason why it is not
|
8574 | */
|
8575 | public static verify(message: { [k: string]: any }): (string|null);
|
8576 |
|
8577 | /**
|
8578 | * Creates an EnumDescriptorProto message from a plain object. Also converts values to their respective internal types.
|
8579 | * @param object Plain object
|
8580 | * @returns EnumDescriptorProto
|
8581 | */
|
8582 | public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto;
|
8583 |
|
8584 | /**
|
8585 | * Creates a plain object from an EnumDescriptorProto message. Also converts values to other types if specified.
|
8586 | * @param message EnumDescriptorProto
|
8587 | * @param [options] Conversion options
|
8588 | * @returns Plain object
|
8589 | */
|
8590 | public static toObject(message: google.protobuf.EnumDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
8591 |
|
8592 | /**
|
8593 | * Converts this EnumDescriptorProto to JSON.
|
8594 | * @returns JSON object
|
8595 | */
|
8596 | public toJSON(): { [k: string]: any };
|
8597 | }
|
8598 |
|
8599 | namespace EnumDescriptorProto {
|
8600 |
|
8601 | /** Properties of an EnumReservedRange. */
|
8602 | interface IEnumReservedRange {
|
8603 |
|
8604 | /** EnumReservedRange start */
|
8605 | start?: (number|null);
|
8606 |
|
8607 | /** EnumReservedRange end */
|
8608 | end?: (number|null);
|
8609 | }
|
8610 |
|
8611 | /** Represents an EnumReservedRange. */
|
8612 | class EnumReservedRange implements IEnumReservedRange {
|
8613 |
|
8614 | /**
|
8615 | * Constructs a new EnumReservedRange.
|
8616 | * @param [properties] Properties to set
|
8617 | */
|
8618 | constructor(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange);
|
8619 |
|
8620 | /** EnumReservedRange start. */
|
8621 | public start: number;
|
8622 |
|
8623 | /** EnumReservedRange end. */
|
8624 | public end: number;
|
8625 |
|
8626 | /**
|
8627 | * Creates a new EnumReservedRange instance using the specified properties.
|
8628 | * @param [properties] Properties to set
|
8629 | * @returns EnumReservedRange instance
|
8630 | */
|
8631 | public static create(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange): google.protobuf.EnumDescriptorProto.EnumReservedRange;
|
8632 |
|
8633 | /**
|
8634 | * Encodes the specified EnumReservedRange message. Does not implicitly { google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages.
|
8635 | * message EnumReservedRange message or plain object to encode
|
8636 | * [writer] Writer to encode to
|
8637 | * Writer
|
8638 | */
|
8639 | public static encode(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
|
8640 |
|
8641 | /**
|
8642 | * Encodes the specified EnumReservedRange message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages.
|
8643 | * @param message EnumReservedRange message or plain object to encode
|
8644 | * @param [writer] Writer to encode to
|
8645 | * @returns Writer
|
8646 | */
|
8647 | public static encodeDelimited(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
|
8648 |
|
8649 | /**
|
8650 | * Decodes an EnumReservedRange message from the specified reader or buffer.
|
8651 | * @param reader Reader or buffer to decode from
|
8652 | * @param [length] Message length if known beforehand
|
8653 | * @returns EnumReservedRange
|
8654 | * @throws {Error} If the payload is not a reader or valid buffer
|
8655 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
8656 | */
|
8657 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumDescriptorProto.EnumReservedRange;
|
8658 |
|
8659 | /**
|
8660 | * Decodes an EnumReservedRange message from the specified reader or buffer, length delimited.
|
8661 | * @param reader Reader or buffer to decode from
|
8662 | * @returns EnumReservedRange
|
8663 | * @throws {Error} If the payload is not a reader or valid buffer
|
8664 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
8665 | */
|
8666 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumDescriptorProto.EnumReservedRange;
|
8667 |
|
8668 | /**
|
8669 | * Verifies an EnumReservedRange message.
|
8670 | * @param message Plain object to verify
|
8671 | * @returns `null` if valid, otherwise the reason why it is not
|
8672 | */
|
8673 | public static verify(message: { [k: string]: any }): (string|null);
|
8674 |
|
8675 | /**
|
8676 | * Creates an EnumReservedRange message from a plain object. Also converts values to their respective internal types.
|
8677 | * @param object Plain object
|
8678 | * @returns EnumReservedRange
|
8679 | */
|
8680 | public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto.EnumReservedRange;
|
8681 |
|
8682 | /**
|
8683 | * Creates a plain object from an EnumReservedRange message. Also converts values to other types if specified.
|
8684 | * @param message EnumReservedRange
|
8685 | * @param [options] Conversion options
|
8686 | * @returns Plain object
|
8687 | */
|
8688 | public static toObject(message: google.protobuf.EnumDescriptorProto.EnumReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
8689 |
|
8690 | /**
|
8691 | * Converts this EnumReservedRange to JSON.
|
8692 | * @returns JSON object
|
8693 | */
|
8694 | public toJSON(): { [k: string]: any };
|
8695 | }
|
8696 | }
|
8697 |
|
8698 | /** Properties of an EnumValueDescriptorProto. */
|
8699 | interface IEnumValueDescriptorProto {
|
8700 |
|
8701 | /** EnumValueDescriptorProto name */
|
8702 | name?: (string|null);
|
8703 |
|
8704 | /** EnumValueDescriptorProto number */
|
8705 | number?: (number|null);
|
8706 |
|
8707 | /** EnumValueDescriptorProto options */
|
8708 | options?: (google.protobuf.IEnumValueOptions|null);
|
8709 | }
|
8710 |
|
8711 | /** Represents an EnumValueDescriptorProto. */
|
8712 | class EnumValueDescriptorProto implements IEnumValueDescriptorProto {
|
8713 |
|
8714 | /**
|
8715 | * Constructs a new EnumValueDescriptorProto.
|
8716 | * @param [properties] Properties to set
|
8717 | */
|
8718 | constructor(properties?: google.protobuf.IEnumValueDescriptorProto);
|
8719 |
|
8720 | /** EnumValueDescriptorProto name. */
|
8721 | public name: string;
|
8722 |
|
8723 | /** EnumValueDescriptorProto number. */
|
8724 | public number: number;
|
8725 |
|
8726 | /** EnumValueDescriptorProto options. */
|
8727 | public options?: (google.protobuf.IEnumValueOptions|null);
|
8728 |
|
8729 | /**
|
8730 | * Creates a new EnumValueDescriptorProto instance using the specified properties.
|
8731 | * @param [properties] Properties to set
|
8732 | * @returns EnumValueDescriptorProto instance
|
8733 | */
|
8734 | public static create(properties?: google.protobuf.IEnumValueDescriptorProto): google.protobuf.EnumValueDescriptorProto;
|
8735 |
|
8736 | /**
|
8737 | * Encodes the specified EnumValueDescriptorProto message. Does not implicitly { google.protobuf.EnumValueDescriptorProto.verify|verify} messages.
|
8738 | * message EnumValueDescriptorProto message or plain object to encode
|
8739 | * [writer] Writer to encode to
|
8740 | * Writer
|
8741 | */
|
8742 | public static encode(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
|
8743 |
|
8744 | /**
|
8745 | * Encodes the specified EnumValueDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages.
|
8746 | * @param message EnumValueDescriptorProto message or plain object to encode
|
8747 | * @param [writer] Writer to encode to
|
8748 | * @returns Writer
|
8749 | */
|
8750 | public static encodeDelimited(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
|
8751 |
|
8752 | /**
|
8753 | * Decodes an EnumValueDescriptorProto message from the specified reader or buffer.
|
8754 | * @param reader Reader or buffer to decode from
|
8755 | * @param [length] Message length if known beforehand
|
8756 | * @returns EnumValueDescriptorProto
|
8757 | * @throws {Error} If the payload is not a reader or valid buffer
|
8758 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
8759 | */
|
8760 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueDescriptorProto;
|
8761 |
|
8762 | /**
|
8763 | * Decodes an EnumValueDescriptorProto message from the specified reader or buffer, length delimited.
|
8764 | * @param reader Reader or buffer to decode from
|
8765 | * @returns EnumValueDescriptorProto
|
8766 | * @throws {Error} If the payload is not a reader or valid buffer
|
8767 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
8768 | */
|
8769 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumValueDescriptorProto;
|
8770 |
|
8771 | /**
|
8772 | * Verifies an EnumValueDescriptorProto message.
|
8773 | * @param message Plain object to verify
|
8774 | * @returns `null` if valid, otherwise the reason why it is not
|
8775 | */
|
8776 | public static verify(message: { [k: string]: any }): (string|null);
|
8777 |
|
8778 | /**
|
8779 | * Creates an EnumValueDescriptorProto message from a plain object. Also converts values to their respective internal types.
|
8780 | * @param object Plain object
|
8781 | * @returns EnumValueDescriptorProto
|
8782 | */
|
8783 | public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueDescriptorProto;
|
8784 |
|
8785 | /**
|
8786 | * Creates a plain object from an EnumValueDescriptorProto message. Also converts values to other types if specified.
|
8787 | * @param message EnumValueDescriptorProto
|
8788 | * @param [options] Conversion options
|
8789 | * @returns Plain object
|
8790 | */
|
8791 | public static toObject(message: google.protobuf.EnumValueDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
8792 |
|
8793 | /**
|
8794 | * Converts this EnumValueDescriptorProto to JSON.
|
8795 | * @returns JSON object
|
8796 | */
|
8797 | public toJSON(): { [k: string]: any };
|
8798 | }
|
8799 |
|
8800 | /** Properties of a ServiceDescriptorProto. */
|
8801 | interface IServiceDescriptorProto {
|
8802 |
|
8803 | /** ServiceDescriptorProto name */
|
8804 | name?: (string|null);
|
8805 |
|
8806 | /** ServiceDescriptorProto method */
|
8807 | method?: (google.protobuf.IMethodDescriptorProto[]|null);
|
8808 |
|
8809 | /** ServiceDescriptorProto options */
|
8810 | options?: (google.protobuf.IServiceOptions|null);
|
8811 | }
|
8812 |
|
8813 | /** Represents a ServiceDescriptorProto. */
|
8814 | class ServiceDescriptorProto implements IServiceDescriptorProto {
|
8815 |
|
8816 | /**
|
8817 | * Constructs a new ServiceDescriptorProto.
|
8818 | * @param [properties] Properties to set
|
8819 | */
|
8820 | constructor(properties?: google.protobuf.IServiceDescriptorProto);
|
8821 |
|
8822 | /** ServiceDescriptorProto name. */
|
8823 | public name: string;
|
8824 |
|
8825 | /** ServiceDescriptorProto method. */
|
8826 | public method: google.protobuf.IMethodDescriptorProto[];
|
8827 |
|
8828 | /** ServiceDescriptorProto options. */
|
8829 | public options?: (google.protobuf.IServiceOptions|null);
|
8830 |
|
8831 | /**
|
8832 | * Creates a new ServiceDescriptorProto instance using the specified properties.
|
8833 | * @param [properties] Properties to set
|
8834 | * @returns ServiceDescriptorProto instance
|
8835 | */
|
8836 | public static create(properties?: google.protobuf.IServiceDescriptorProto): google.protobuf.ServiceDescriptorProto;
|
8837 |
|
8838 | /**
|
8839 | * Encodes the specified ServiceDescriptorProto message. Does not implicitly { google.protobuf.ServiceDescriptorProto.verify|verify} messages.
|
8840 | * message ServiceDescriptorProto message or plain object to encode
|
8841 | * [writer] Writer to encode to
|
8842 | * Writer
|
8843 | */
|
8844 | public static encode(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
|
8845 |
|
8846 | /**
|
8847 | * Encodes the specified ServiceDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages.
|
8848 | * @param message ServiceDescriptorProto message or plain object to encode
|
8849 | * @param [writer] Writer to encode to
|
8850 | * @returns Writer
|
8851 | */
|
8852 | public static encodeDelimited(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
|
8853 |
|
8854 | /**
|
8855 | * Decodes a ServiceDescriptorProto message from the specified reader or buffer.
|
8856 | * @param reader Reader or buffer to decode from
|
8857 | * @param [length] Message length if known beforehand
|
8858 | * @returns ServiceDescriptorProto
|
8859 | * @throws {Error} If the payload is not a reader or valid buffer
|
8860 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
8861 | */
|
8862 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceDescriptorProto;
|
8863 |
|
8864 | /**
|
8865 | * Decodes a ServiceDescriptorProto message from the specified reader or buffer, length delimited.
|
8866 | * @param reader Reader or buffer to decode from
|
8867 | * @returns ServiceDescriptorProto
|
8868 | * @throws {Error} If the payload is not a reader or valid buffer
|
8869 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
8870 | */
|
8871 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ServiceDescriptorProto;
|
8872 |
|
8873 | /**
|
8874 | * Verifies a ServiceDescriptorProto message.
|
8875 | * @param message Plain object to verify
|
8876 | * @returns `null` if valid, otherwise the reason why it is not
|
8877 | */
|
8878 | public static verify(message: { [k: string]: any }): (string|null);
|
8879 |
|
8880 | /**
|
8881 | * Creates a ServiceDescriptorProto message from a plain object. Also converts values to their respective internal types.
|
8882 | * @param object Plain object
|
8883 | * @returns ServiceDescriptorProto
|
8884 | */
|
8885 | public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceDescriptorProto;
|
8886 |
|
8887 | /**
|
8888 | * Creates a plain object from a ServiceDescriptorProto message. Also converts values to other types if specified.
|
8889 | * @param message ServiceDescriptorProto
|
8890 | * @param [options] Conversion options
|
8891 | * @returns Plain object
|
8892 | */
|
8893 | public static toObject(message: google.protobuf.ServiceDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
8894 |
|
8895 | /**
|
8896 | * Converts this ServiceDescriptorProto to JSON.
|
8897 | * @returns JSON object
|
8898 | */
|
8899 | public toJSON(): { [k: string]: any };
|
8900 | }
|
8901 |
|
8902 | /** Properties of a MethodDescriptorProto. */
|
8903 | interface IMethodDescriptorProto {
|
8904 |
|
8905 | /** MethodDescriptorProto name */
|
8906 | name?: (string|null);
|
8907 |
|
8908 | /** MethodDescriptorProto inputType */
|
8909 | inputType?: (string|null);
|
8910 |
|
8911 | /** MethodDescriptorProto outputType */
|
8912 | outputType?: (string|null);
|
8913 |
|
8914 | /** MethodDescriptorProto options */
|
8915 | options?: (google.protobuf.IMethodOptions|null);
|
8916 |
|
8917 | /** MethodDescriptorProto clientStreaming */
|
8918 | clientStreaming?: (boolean|null);
|
8919 |
|
8920 | /** MethodDescriptorProto serverStreaming */
|
8921 | serverStreaming?: (boolean|null);
|
8922 | }
|
8923 |
|
8924 | /** Represents a MethodDescriptorProto. */
|
8925 | class MethodDescriptorProto implements IMethodDescriptorProto {
|
8926 |
|
8927 | /**
|
8928 | * Constructs a new MethodDescriptorProto.
|
8929 | * @param [properties] Properties to set
|
8930 | */
|
8931 | constructor(properties?: google.protobuf.IMethodDescriptorProto);
|
8932 |
|
8933 | /** MethodDescriptorProto name. */
|
8934 | public name: string;
|
8935 |
|
8936 | /** MethodDescriptorProto inputType. */
|
8937 | public inputType: string;
|
8938 |
|
8939 | /** MethodDescriptorProto outputType. */
|
8940 | public outputType: string;
|
8941 |
|
8942 | /** MethodDescriptorProto options. */
|
8943 | public options?: (google.protobuf.IMethodOptions|null);
|
8944 |
|
8945 | /** MethodDescriptorProto clientStreaming. */
|
8946 | public clientStreaming: boolean;
|
8947 |
|
8948 | /** MethodDescriptorProto serverStreaming. */
|
8949 | public serverStreaming: boolean;
|
8950 |
|
8951 | /**
|
8952 | * Creates a new MethodDescriptorProto instance using the specified properties.
|
8953 | * @param [properties] Properties to set
|
8954 | * @returns MethodDescriptorProto instance
|
8955 | */
|
8956 | public static create(properties?: google.protobuf.IMethodDescriptorProto): google.protobuf.MethodDescriptorProto;
|
8957 |
|
8958 | /**
|
8959 | * Encodes the specified MethodDescriptorProto message. Does not implicitly { google.protobuf.MethodDescriptorProto.verify|verify} messages.
|
8960 | * message MethodDescriptorProto message or plain object to encode
|
8961 | * [writer] Writer to encode to
|
8962 | * Writer
|
8963 | */
|
8964 | public static encode(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
|
8965 |
|
8966 | /**
|
8967 | * Encodes the specified MethodDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages.
|
8968 | * @param message MethodDescriptorProto message or plain object to encode
|
8969 | * @param [writer] Writer to encode to
|
8970 | * @returns Writer
|
8971 | */
|
8972 | public static encodeDelimited(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
|
8973 |
|
8974 | /**
|
8975 | * Decodes a MethodDescriptorProto message from the specified reader or buffer.
|
8976 | * @param reader Reader or buffer to decode from
|
8977 | * @param [length] Message length if known beforehand
|
8978 | * @returns MethodDescriptorProto
|
8979 | * @throws {Error} If the payload is not a reader or valid buffer
|
8980 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
8981 | */
|
8982 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodDescriptorProto;
|
8983 |
|
8984 | /**
|
8985 | * Decodes a MethodDescriptorProto message from the specified reader or buffer, length delimited.
|
8986 | * @param reader Reader or buffer to decode from
|
8987 | * @returns MethodDescriptorProto
|
8988 | * @throws {Error} If the payload is not a reader or valid buffer
|
8989 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
8990 | */
|
8991 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MethodDescriptorProto;
|
8992 |
|
8993 | /**
|
8994 | * Verifies a MethodDescriptorProto message.
|
8995 | * @param message Plain object to verify
|
8996 | * @returns `null` if valid, otherwise the reason why it is not
|
8997 | */
|
8998 | public static verify(message: { [k: string]: any }): (string|null);
|
8999 |
|
9000 | /**
|
9001 | * Creates a MethodDescriptorProto message from a plain object. Also converts values to their respective internal types.
|
9002 | * @param object Plain object
|
9003 | * @returns MethodDescriptorProto
|
9004 | */
|
9005 | public static fromObject(object: { [k: string]: any }): google.protobuf.MethodDescriptorProto;
|
9006 |
|
9007 | /**
|
9008 | * Creates a plain object from a MethodDescriptorProto message. Also converts values to other types if specified.
|
9009 | * @param message MethodDescriptorProto
|
9010 | * @param [options] Conversion options
|
9011 | * @returns Plain object
|
9012 | */
|
9013 | public static toObject(message: google.protobuf.MethodDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
9014 |
|
9015 | /**
|
9016 | * Converts this MethodDescriptorProto to JSON.
|
9017 | * @returns JSON object
|
9018 | */
|
9019 | public toJSON(): { [k: string]: any };
|
9020 | }
|
9021 |
|
9022 | /** Properties of a FileOptions. */
|
9023 | interface IFileOptions {
|
9024 |
|
9025 | /** FileOptions javaPackage */
|
9026 | javaPackage?: (string|null);
|
9027 |
|
9028 | /** FileOptions javaOuterClassname */
|
9029 | javaOuterClassname?: (string|null);
|
9030 |
|
9031 | /** FileOptions javaMultipleFiles */
|
9032 | javaMultipleFiles?: (boolean|null);
|
9033 |
|
9034 | /** FileOptions javaGenerateEqualsAndHash */
|
9035 | javaGenerateEqualsAndHash?: (boolean|null);
|
9036 |
|
9037 | /** FileOptions javaStringCheckUtf8 */
|
9038 | javaStringCheckUtf8?: (boolean|null);
|
9039 |
|
9040 | /** FileOptions optimizeFor */
|
9041 | optimizeFor?: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode|null);
|
9042 |
|
9043 | /** FileOptions goPackage */
|
9044 | goPackage?: (string|null);
|
9045 |
|
9046 | /** FileOptions ccGenericServices */
|
9047 | ccGenericServices?: (boolean|null);
|
9048 |
|
9049 | /** FileOptions javaGenericServices */
|
9050 | javaGenericServices?: (boolean|null);
|
9051 |
|
9052 | /** FileOptions pyGenericServices */
|
9053 | pyGenericServices?: (boolean|null);
|
9054 |
|
9055 | /** FileOptions phpGenericServices */
|
9056 | phpGenericServices?: (boolean|null);
|
9057 |
|
9058 | /** FileOptions deprecated */
|
9059 | deprecated?: (boolean|null);
|
9060 |
|
9061 | /** FileOptions ccEnableArenas */
|
9062 | ccEnableArenas?: (boolean|null);
|
9063 |
|
9064 | /** FileOptions objcClassPrefix */
|
9065 | objcClassPrefix?: (string|null);
|
9066 |
|
9067 | /** FileOptions csharpNamespace */
|
9068 | csharpNamespace?: (string|null);
|
9069 |
|
9070 | /** FileOptions swiftPrefix */
|
9071 | swiftPrefix?: (string|null);
|
9072 |
|
9073 | /** FileOptions phpClassPrefix */
|
9074 | phpClassPrefix?: (string|null);
|
9075 |
|
9076 | /** FileOptions phpNamespace */
|
9077 | phpNamespace?: (string|null);
|
9078 |
|
9079 | /** FileOptions phpMetadataNamespace */
|
9080 | phpMetadataNamespace?: (string|null);
|
9081 |
|
9082 | /** FileOptions rubyPackage */
|
9083 | rubyPackage?: (string|null);
|
9084 |
|
9085 | /** FileOptions uninterpretedOption */
|
9086 | uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
|
9087 |
|
9088 | /** FileOptions .google.api.resourceDefinition */
|
9089 | ".google.api.resourceDefinition"?: (google.api.IResourceDescriptor[]|null);
|
9090 | }
|
9091 |
|
9092 | /** Represents a FileOptions. */
|
9093 | class FileOptions implements IFileOptions {
|
9094 |
|
9095 | /**
|
9096 | * Constructs a new FileOptions.
|
9097 | * @param [properties] Properties to set
|
9098 | */
|
9099 | constructor(properties?: google.protobuf.IFileOptions);
|
9100 |
|
9101 | /** FileOptions javaPackage. */
|
9102 | public javaPackage: string;
|
9103 |
|
9104 | /** FileOptions javaOuterClassname. */
|
9105 | public javaOuterClassname: string;
|
9106 |
|
9107 | /** FileOptions javaMultipleFiles. */
|
9108 | public javaMultipleFiles: boolean;
|
9109 |
|
9110 | /** FileOptions javaGenerateEqualsAndHash. */
|
9111 | public javaGenerateEqualsAndHash: boolean;
|
9112 |
|
9113 | /** FileOptions javaStringCheckUtf8. */
|
9114 | public javaStringCheckUtf8: boolean;
|
9115 |
|
9116 | /** FileOptions optimizeFor. */
|
9117 | public optimizeFor: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode);
|
9118 |
|
9119 | /** FileOptions goPackage. */
|
9120 | public goPackage: string;
|
9121 |
|
9122 | /** FileOptions ccGenericServices. */
|
9123 | public ccGenericServices: boolean;
|
9124 |
|
9125 | /** FileOptions javaGenericServices. */
|
9126 | public javaGenericServices: boolean;
|
9127 |
|
9128 | /** FileOptions pyGenericServices. */
|
9129 | public pyGenericServices: boolean;
|
9130 |
|
9131 | /** FileOptions phpGenericServices. */
|
9132 | public phpGenericServices: boolean;
|
9133 |
|
9134 | /** FileOptions deprecated. */
|
9135 | public deprecated: boolean;
|
9136 |
|
9137 | /** FileOptions ccEnableArenas. */
|
9138 | public ccEnableArenas: boolean;
|
9139 |
|
9140 | /** FileOptions objcClassPrefix. */
|
9141 | public objcClassPrefix: string;
|
9142 |
|
9143 | /** FileOptions csharpNamespace. */
|
9144 | public csharpNamespace: string;
|
9145 |
|
9146 | /** FileOptions swiftPrefix. */
|
9147 | public swiftPrefix: string;
|
9148 |
|
9149 | /** FileOptions phpClassPrefix. */
|
9150 | public phpClassPrefix: string;
|
9151 |
|
9152 | /** FileOptions phpNamespace. */
|
9153 | public phpNamespace: string;
|
9154 |
|
9155 | /** FileOptions phpMetadataNamespace. */
|
9156 | public phpMetadataNamespace: string;
|
9157 |
|
9158 | /** FileOptions rubyPackage. */
|
9159 | public rubyPackage: string;
|
9160 |
|
9161 | /** FileOptions uninterpretedOption. */
|
9162 | public uninterpretedOption: google.protobuf.IUninterpretedOption[];
|
9163 |
|
9164 | /**
|
9165 | * Creates a new FileOptions instance using the specified properties.
|
9166 | * @param [properties] Properties to set
|
9167 | * @returns FileOptions instance
|
9168 | */
|
9169 | public static create(properties?: google.protobuf.IFileOptions): google.protobuf.FileOptions;
|
9170 |
|
9171 | /**
|
9172 | * Encodes the specified FileOptions message. Does not implicitly { google.protobuf.FileOptions.verify|verify} messages.
|
9173 | * message FileOptions message or plain object to encode
|
9174 | * [writer] Writer to encode to
|
9175 | * Writer
|
9176 | */
|
9177 | public static encode(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer;
|
9178 |
|
9179 | /**
|
9180 | * Encodes the specified FileOptions message, length delimited. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages.
|
9181 | * @param message FileOptions message or plain object to encode
|
9182 | * @param [writer] Writer to encode to
|
9183 | * @returns Writer
|
9184 | */
|
9185 | public static encodeDelimited(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer;
|
9186 |
|
9187 | /**
|
9188 | * Decodes a FileOptions message from the specified reader or buffer.
|
9189 | * @param reader Reader or buffer to decode from
|
9190 | * @param [length] Message length if known beforehand
|
9191 | * @returns FileOptions
|
9192 | * @throws {Error} If the payload is not a reader or valid buffer
|
9193 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
9194 | */
|
9195 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileOptions;
|
9196 |
|
9197 | /**
|
9198 | * Decodes a FileOptions message from the specified reader or buffer, length delimited.
|
9199 | * @param reader Reader or buffer to decode from
|
9200 | * @returns FileOptions
|
9201 | * @throws {Error} If the payload is not a reader or valid buffer
|
9202 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
9203 | */
|
9204 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileOptions;
|
9205 |
|
9206 | /**
|
9207 | * Verifies a FileOptions message.
|
9208 | * @param message Plain object to verify
|
9209 | * @returns `null` if valid, otherwise the reason why it is not
|
9210 | */
|
9211 | public static verify(message: { [k: string]: any }): (string|null);
|
9212 |
|
9213 | /**
|
9214 | * Creates a FileOptions message from a plain object. Also converts values to their respective internal types.
|
9215 | * @param object Plain object
|
9216 | * @returns FileOptions
|
9217 | */
|
9218 | public static fromObject(object: { [k: string]: any }): google.protobuf.FileOptions;
|
9219 |
|
9220 | /**
|
9221 | * Creates a plain object from a FileOptions message. Also converts values to other types if specified.
|
9222 | * @param message FileOptions
|
9223 | * @param [options] Conversion options
|
9224 | * @returns Plain object
|
9225 | */
|
9226 | public static toObject(message: google.protobuf.FileOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
9227 |
|
9228 | /**
|
9229 | * Converts this FileOptions to JSON.
|
9230 | * @returns JSON object
|
9231 | */
|
9232 | public toJSON(): { [k: string]: any };
|
9233 | }
|
9234 |
|
9235 | namespace FileOptions {
|
9236 |
|
9237 | /** OptimizeMode enum. */
|
9238 | enum OptimizeMode {
|
9239 | SPEED = 1,
|
9240 | CODE_SIZE = 2,
|
9241 | LITE_RUNTIME = 3
|
9242 | }
|
9243 | }
|
9244 |
|
9245 | /** Properties of a MessageOptions. */
|
9246 | interface IMessageOptions {
|
9247 |
|
9248 | /** MessageOptions messageSetWireFormat */
|
9249 | messageSetWireFormat?: (boolean|null);
|
9250 |
|
9251 | /** MessageOptions noStandardDescriptorAccessor */
|
9252 | noStandardDescriptorAccessor?: (boolean|null);
|
9253 |
|
9254 | /** MessageOptions deprecated */
|
9255 | deprecated?: (boolean|null);
|
9256 |
|
9257 | /** MessageOptions mapEntry */
|
9258 | mapEntry?: (boolean|null);
|
9259 |
|
9260 | /** MessageOptions uninterpretedOption */
|
9261 | uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
|
9262 |
|
9263 | /** MessageOptions .google.api.resource */
|
9264 | ".google.api.resource"?: (google.api.IResourceDescriptor|null);
|
9265 | }
|
9266 |
|
9267 | /** Represents a MessageOptions. */
|
9268 | class MessageOptions implements IMessageOptions {
|
9269 |
|
9270 | /**
|
9271 | * Constructs a new MessageOptions.
|
9272 | * @param [properties] Properties to set
|
9273 | */
|
9274 | constructor(properties?: google.protobuf.IMessageOptions);
|
9275 |
|
9276 | /** MessageOptions messageSetWireFormat. */
|
9277 | public messageSetWireFormat: boolean;
|
9278 |
|
9279 | /** MessageOptions noStandardDescriptorAccessor. */
|
9280 | public noStandardDescriptorAccessor: boolean;
|
9281 |
|
9282 | /** MessageOptions deprecated. */
|
9283 | public deprecated: boolean;
|
9284 |
|
9285 | /** MessageOptions mapEntry. */
|
9286 | public mapEntry: boolean;
|
9287 |
|
9288 | /** MessageOptions uninterpretedOption. */
|
9289 | public uninterpretedOption: google.protobuf.IUninterpretedOption[];
|
9290 |
|
9291 | /**
|
9292 | * Creates a new MessageOptions instance using the specified properties.
|
9293 | * @param [properties] Properties to set
|
9294 | * @returns MessageOptions instance
|
9295 | */
|
9296 | public static create(properties?: google.protobuf.IMessageOptions): google.protobuf.MessageOptions;
|
9297 |
|
9298 | /**
|
9299 | * Encodes the specified MessageOptions message. Does not implicitly { google.protobuf.MessageOptions.verify|verify} messages.
|
9300 | * message MessageOptions message or plain object to encode
|
9301 | * [writer] Writer to encode to
|
9302 | * Writer
|
9303 | */
|
9304 | public static encode(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer;
|
9305 |
|
9306 | /**
|
9307 | * Encodes the specified MessageOptions message, length delimited. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages.
|
9308 | * @param message MessageOptions message or plain object to encode
|
9309 | * @param [writer] Writer to encode to
|
9310 | * @returns Writer
|
9311 | */
|
9312 | public static encodeDelimited(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer;
|
9313 |
|
9314 | /**
|
9315 | * Decodes a MessageOptions message from the specified reader or buffer.
|
9316 | * @param reader Reader or buffer to decode from
|
9317 | * @param [length] Message length if known beforehand
|
9318 | * @returns MessageOptions
|
9319 | * @throws {Error} If the payload is not a reader or valid buffer
|
9320 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
9321 | */
|
9322 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MessageOptions;
|
9323 |
|
9324 | /**
|
9325 | * Decodes a MessageOptions message from the specified reader or buffer, length delimited.
|
9326 | * @param reader Reader or buffer to decode from
|
9327 | * @returns MessageOptions
|
9328 | * @throws {Error} If the payload is not a reader or valid buffer
|
9329 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
9330 | */
|
9331 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MessageOptions;
|
9332 |
|
9333 | /**
|
9334 | * Verifies a MessageOptions message.
|
9335 | * @param message Plain object to verify
|
9336 | * @returns `null` if valid, otherwise the reason why it is not
|
9337 | */
|
9338 | public static verify(message: { [k: string]: any }): (string|null);
|
9339 |
|
9340 | /**
|
9341 | * Creates a MessageOptions message from a plain object. Also converts values to their respective internal types.
|
9342 | * @param object Plain object
|
9343 | * @returns MessageOptions
|
9344 | */
|
9345 | public static fromObject(object: { [k: string]: any }): google.protobuf.MessageOptions;
|
9346 |
|
9347 | /**
|
9348 | * Creates a plain object from a MessageOptions message. Also converts values to other types if specified.
|
9349 | * @param message MessageOptions
|
9350 | * @param [options] Conversion options
|
9351 | * @returns Plain object
|
9352 | */
|
9353 | public static toObject(message: google.protobuf.MessageOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
9354 |
|
9355 | /**
|
9356 | * Converts this MessageOptions to JSON.
|
9357 | * @returns JSON object
|
9358 | */
|
9359 | public toJSON(): { [k: string]: any };
|
9360 | }
|
9361 |
|
9362 | /** Properties of a FieldOptions. */
|
9363 | interface IFieldOptions {
|
9364 |
|
9365 | /** FieldOptions ctype */
|
9366 | ctype?: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType|null);
|
9367 |
|
9368 | /** FieldOptions packed */
|
9369 | packed?: (boolean|null);
|
9370 |
|
9371 | /** FieldOptions jstype */
|
9372 | jstype?: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType|null);
|
9373 |
|
9374 | /** FieldOptions lazy */
|
9375 | lazy?: (boolean|null);
|
9376 |
|
9377 | /** FieldOptions deprecated */
|
9378 | deprecated?: (boolean|null);
|
9379 |
|
9380 | /** FieldOptions weak */
|
9381 | weak?: (boolean|null);
|
9382 |
|
9383 | /** FieldOptions uninterpretedOption */
|
9384 | uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
|
9385 |
|
9386 | /** FieldOptions .google.api.fieldBehavior */
|
9387 | ".google.api.fieldBehavior"?: (google.api.FieldBehavior[]|null);
|
9388 |
|
9389 | /** FieldOptions .google.api.resourceReference */
|
9390 | ".google.api.resourceReference"?: (google.api.IResourceReference|null);
|
9391 | }
|
9392 |
|
9393 | /** Represents a FieldOptions. */
|
9394 | class FieldOptions implements IFieldOptions {
|
9395 |
|
9396 | /**
|
9397 | * Constructs a new FieldOptions.
|
9398 | * @param [properties] Properties to set
|
9399 | */
|
9400 | constructor(properties?: google.protobuf.IFieldOptions);
|
9401 |
|
9402 | /** FieldOptions ctype. */
|
9403 | public ctype: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType);
|
9404 |
|
9405 | /** FieldOptions packed. */
|
9406 | public packed: boolean;
|
9407 |
|
9408 | /** FieldOptions jstype. */
|
9409 | public jstype: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType);
|
9410 |
|
9411 | /** FieldOptions lazy. */
|
9412 | public lazy: boolean;
|
9413 |
|
9414 | /** FieldOptions deprecated. */
|
9415 | public deprecated: boolean;
|
9416 |
|
9417 | /** FieldOptions weak. */
|
9418 | public weak: boolean;
|
9419 |
|
9420 | /** FieldOptions uninterpretedOption. */
|
9421 | public uninterpretedOption: google.protobuf.IUninterpretedOption[];
|
9422 |
|
9423 | /**
|
9424 | * Creates a new FieldOptions instance using the specified properties.
|
9425 | * @param [properties] Properties to set
|
9426 | * @returns FieldOptions instance
|
9427 | */
|
9428 | public static create(properties?: google.protobuf.IFieldOptions): google.protobuf.FieldOptions;
|
9429 |
|
9430 | /**
|
9431 | * Encodes the specified FieldOptions message. Does not implicitly { google.protobuf.FieldOptions.verify|verify} messages.
|
9432 | * message FieldOptions message or plain object to encode
|
9433 | * [writer] Writer to encode to
|
9434 | * Writer
|
9435 | */
|
9436 | public static encode(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer;
|
9437 |
|
9438 | /**
|
9439 | * Encodes the specified FieldOptions message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages.
|
9440 | * @param message FieldOptions message or plain object to encode
|
9441 | * @param [writer] Writer to encode to
|
9442 | * @returns Writer
|
9443 | */
|
9444 | public static encodeDelimited(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer;
|
9445 |
|
9446 | /**
|
9447 | * Decodes a FieldOptions message from the specified reader or buffer.
|
9448 | * @param reader Reader or buffer to decode from
|
9449 | * @param [length] Message length if known beforehand
|
9450 | * @returns FieldOptions
|
9451 | * @throws {Error} If the payload is not a reader or valid buffer
|
9452 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
9453 | */
|
9454 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldOptions;
|
9455 |
|
9456 | /**
|
9457 | * Decodes a FieldOptions message from the specified reader or buffer, length delimited.
|
9458 | * @param reader Reader or buffer to decode from
|
9459 | * @returns FieldOptions
|
9460 | * @throws {Error} If the payload is not a reader or valid buffer
|
9461 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
9462 | */
|
9463 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldOptions;
|
9464 |
|
9465 | /**
|
9466 | * Verifies a FieldOptions message.
|
9467 | * @param message Plain object to verify
|
9468 | * @returns `null` if valid, otherwise the reason why it is not
|
9469 | */
|
9470 | public static verify(message: { [k: string]: any }): (string|null);
|
9471 |
|
9472 | /**
|
9473 | * Creates a FieldOptions message from a plain object. Also converts values to their respective internal types.
|
9474 | * @param object Plain object
|
9475 | * @returns FieldOptions
|
9476 | */
|
9477 | public static fromObject(object: { [k: string]: any }): google.protobuf.FieldOptions;
|
9478 |
|
9479 | /**
|
9480 | * Creates a plain object from a FieldOptions message. Also converts values to other types if specified.
|
9481 | * @param message FieldOptions
|
9482 | * @param [options] Conversion options
|
9483 | * @returns Plain object
|
9484 | */
|
9485 | public static toObject(message: google.protobuf.FieldOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
9486 |
|
9487 | /**
|
9488 | * Converts this FieldOptions to JSON.
|
9489 | * @returns JSON object
|
9490 | */
|
9491 | public toJSON(): { [k: string]: any };
|
9492 | }
|
9493 |
|
9494 | namespace FieldOptions {
|
9495 |
|
9496 | /** CType enum. */
|
9497 | enum CType {
|
9498 | STRING = 0,
|
9499 | CORD = 1,
|
9500 | STRING_PIECE = 2
|
9501 | }
|
9502 |
|
9503 | /** JSType enum. */
|
9504 | enum JSType {
|
9505 | JS_NORMAL = 0,
|
9506 | JS_STRING = 1,
|
9507 | JS_NUMBER = 2
|
9508 | }
|
9509 | }
|
9510 |
|
9511 | /** Properties of an OneofOptions. */
|
9512 | interface IOneofOptions {
|
9513 |
|
9514 | /** OneofOptions uninterpretedOption */
|
9515 | uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
|
9516 | }
|
9517 |
|
9518 | /** Represents an OneofOptions. */
|
9519 | class OneofOptions implements IOneofOptions {
|
9520 |
|
9521 | /**
|
9522 | * Constructs a new OneofOptions.
|
9523 | * @param [properties] Properties to set
|
9524 | */
|
9525 | constructor(properties?: google.protobuf.IOneofOptions);
|
9526 |
|
9527 | /** OneofOptions uninterpretedOption. */
|
9528 | public uninterpretedOption: google.protobuf.IUninterpretedOption[];
|
9529 |
|
9530 | /**
|
9531 | * Creates a new OneofOptions instance using the specified properties.
|
9532 | * @param [properties] Properties to set
|
9533 | * @returns OneofOptions instance
|
9534 | */
|
9535 | public static create(properties?: google.protobuf.IOneofOptions): google.protobuf.OneofOptions;
|
9536 |
|
9537 | /**
|
9538 | * Encodes the specified OneofOptions message. Does not implicitly { google.protobuf.OneofOptions.verify|verify} messages.
|
9539 | * message OneofOptions message or plain object to encode
|
9540 | * [writer] Writer to encode to
|
9541 | * Writer
|
9542 | */
|
9543 | public static encode(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer;
|
9544 |
|
9545 | /**
|
9546 | * Encodes the specified OneofOptions message, length delimited. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages.
|
9547 | * @param message OneofOptions message or plain object to encode
|
9548 | * @param [writer] Writer to encode to
|
9549 | * @returns Writer
|
9550 | */
|
9551 | public static encodeDelimited(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer;
|
9552 |
|
9553 | /**
|
9554 | * Decodes an OneofOptions message from the specified reader or buffer.
|
9555 | * @param reader Reader or buffer to decode from
|
9556 | * @param [length] Message length if known beforehand
|
9557 | * @returns OneofOptions
|
9558 | * @throws {Error} If the payload is not a reader or valid buffer
|
9559 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
9560 | */
|
9561 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofOptions;
|
9562 |
|
9563 | /**
|
9564 | * Decodes an OneofOptions message from the specified reader or buffer, length delimited.
|
9565 | * @param reader Reader or buffer to decode from
|
9566 | * @returns OneofOptions
|
9567 | * @throws {Error} If the payload is not a reader or valid buffer
|
9568 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
9569 | */
|
9570 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.OneofOptions;
|
9571 |
|
9572 | /**
|
9573 | * Verifies an OneofOptions message.
|
9574 | * @param message Plain object to verify
|
9575 | * @returns `null` if valid, otherwise the reason why it is not
|
9576 | */
|
9577 | public static verify(message: { [k: string]: any }): (string|null);
|
9578 |
|
9579 | /**
|
9580 | * Creates an OneofOptions message from a plain object. Also converts values to their respective internal types.
|
9581 | * @param object Plain object
|
9582 | * @returns OneofOptions
|
9583 | */
|
9584 | public static fromObject(object: { [k: string]: any }): google.protobuf.OneofOptions;
|
9585 |
|
9586 | /**
|
9587 | * Creates a plain object from an OneofOptions message. Also converts values to other types if specified.
|
9588 | * @param message OneofOptions
|
9589 | * @param [options] Conversion options
|
9590 | * @returns Plain object
|
9591 | */
|
9592 | public static toObject(message: google.protobuf.OneofOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
9593 |
|
9594 | /**
|
9595 | * Converts this OneofOptions to JSON.
|
9596 | * @returns JSON object
|
9597 | */
|
9598 | public toJSON(): { [k: string]: any };
|
9599 | }
|
9600 |
|
9601 | /** Properties of an EnumOptions. */
|
9602 | interface IEnumOptions {
|
9603 |
|
9604 | /** EnumOptions allowAlias */
|
9605 | allowAlias?: (boolean|null);
|
9606 |
|
9607 | /** EnumOptions deprecated */
|
9608 | deprecated?: (boolean|null);
|
9609 |
|
9610 | /** EnumOptions uninterpretedOption */
|
9611 | uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
|
9612 | }
|
9613 |
|
9614 | /** Represents an EnumOptions. */
|
9615 | class EnumOptions implements IEnumOptions {
|
9616 |
|
9617 | /**
|
9618 | * Constructs a new EnumOptions.
|
9619 | * @param [properties] Properties to set
|
9620 | */
|
9621 | constructor(properties?: google.protobuf.IEnumOptions);
|
9622 |
|
9623 | /** EnumOptions allowAlias. */
|
9624 | public allowAlias: boolean;
|
9625 |
|
9626 | /** EnumOptions deprecated. */
|
9627 | public deprecated: boolean;
|
9628 |
|
9629 | /** EnumOptions uninterpretedOption. */
|
9630 | public uninterpretedOption: google.protobuf.IUninterpretedOption[];
|
9631 |
|
9632 | /**
|
9633 | * Creates a new EnumOptions instance using the specified properties.
|
9634 | * @param [properties] Properties to set
|
9635 | * @returns EnumOptions instance
|
9636 | */
|
9637 | public static create(properties?: google.protobuf.IEnumOptions): google.protobuf.EnumOptions;
|
9638 |
|
9639 | /**
|
9640 | * Encodes the specified EnumOptions message. Does not implicitly { google.protobuf.EnumOptions.verify|verify} messages.
|
9641 | * message EnumOptions message or plain object to encode
|
9642 | * [writer] Writer to encode to
|
9643 | * Writer
|
9644 | */
|
9645 | public static encode(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer;
|
9646 |
|
9647 | /**
|
9648 | * Encodes the specified EnumOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages.
|
9649 | * @param message EnumOptions message or plain object to encode
|
9650 | * @param [writer] Writer to encode to
|
9651 | * @returns Writer
|
9652 | */
|
9653 | public static encodeDelimited(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer;
|
9654 |
|
9655 | /**
|
9656 | * Decodes an EnumOptions message from the specified reader or buffer.
|
9657 | * @param reader Reader or buffer to decode from
|
9658 | * @param [length] Message length if known beforehand
|
9659 | * @returns EnumOptions
|
9660 | * @throws {Error} If the payload is not a reader or valid buffer
|
9661 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
9662 | */
|
9663 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumOptions;
|
9664 |
|
9665 | /**
|
9666 | * Decodes an EnumOptions message from the specified reader or buffer, length delimited.
|
9667 | * @param reader Reader or buffer to decode from
|
9668 | * @returns EnumOptions
|
9669 | * @throws {Error} If the payload is not a reader or valid buffer
|
9670 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
9671 | */
|
9672 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumOptions;
|
9673 |
|
9674 | /**
|
9675 | * Verifies an EnumOptions message.
|
9676 | * @param message Plain object to verify
|
9677 | * @returns `null` if valid, otherwise the reason why it is not
|
9678 | */
|
9679 | public static verify(message: { [k: string]: any }): (string|null);
|
9680 |
|
9681 | /**
|
9682 | * Creates an EnumOptions message from a plain object. Also converts values to their respective internal types.
|
9683 | * @param object Plain object
|
9684 | * @returns EnumOptions
|
9685 | */
|
9686 | public static fromObject(object: { [k: string]: any }): google.protobuf.EnumOptions;
|
9687 |
|
9688 | /**
|
9689 | * Creates a plain object from an EnumOptions message. Also converts values to other types if specified.
|
9690 | * @param message EnumOptions
|
9691 | * @param [options] Conversion options
|
9692 | * @returns Plain object
|
9693 | */
|
9694 | public static toObject(message: google.protobuf.EnumOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
9695 |
|
9696 | /**
|
9697 | * Converts this EnumOptions to JSON.
|
9698 | * @returns JSON object
|
9699 | */
|
9700 | public toJSON(): { [k: string]: any };
|
9701 | }
|
9702 |
|
9703 | /** Properties of an EnumValueOptions. */
|
9704 | interface IEnumValueOptions {
|
9705 |
|
9706 | /** EnumValueOptions deprecated */
|
9707 | deprecated?: (boolean|null);
|
9708 |
|
9709 | /** EnumValueOptions uninterpretedOption */
|
9710 | uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
|
9711 | }
|
9712 |
|
9713 | /** Represents an EnumValueOptions. */
|
9714 | class EnumValueOptions implements IEnumValueOptions {
|
9715 |
|
9716 | /**
|
9717 | * Constructs a new EnumValueOptions.
|
9718 | * @param [properties] Properties to set
|
9719 | */
|
9720 | constructor(properties?: google.protobuf.IEnumValueOptions);
|
9721 |
|
9722 | /** EnumValueOptions deprecated. */
|
9723 | public deprecated: boolean;
|
9724 |
|
9725 | /** EnumValueOptions uninterpretedOption. */
|
9726 | public uninterpretedOption: google.protobuf.IUninterpretedOption[];
|
9727 |
|
9728 | /**
|
9729 | * Creates a new EnumValueOptions instance using the specified properties.
|
9730 | * @param [properties] Properties to set
|
9731 | * @returns EnumValueOptions instance
|
9732 | */
|
9733 | public static create(properties?: google.protobuf.IEnumValueOptions): google.protobuf.EnumValueOptions;
|
9734 |
|
9735 | /**
|
9736 | * Encodes the specified EnumValueOptions message. Does not implicitly { google.protobuf.EnumValueOptions.verify|verify} messages.
|
9737 | * message EnumValueOptions message or plain object to encode
|
9738 | * [writer] Writer to encode to
|
9739 | * Writer
|
9740 | */
|
9741 | public static encode(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer;
|
9742 |
|
9743 | /**
|
9744 | * Encodes the specified EnumValueOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages.
|
9745 | * @param message EnumValueOptions message or plain object to encode
|
9746 | * @param [writer] Writer to encode to
|
9747 | * @returns Writer
|
9748 | */
|
9749 | public static encodeDelimited(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer;
|
9750 |
|
9751 | /**
|
9752 | * Decodes an EnumValueOptions message from the specified reader or buffer.
|
9753 | * @param reader Reader or buffer to decode from
|
9754 | * @param [length] Message length if known beforehand
|
9755 | * @returns EnumValueOptions
|
9756 | * @throws {Error} If the payload is not a reader or valid buffer
|
9757 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
9758 | */
|
9759 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueOptions;
|
9760 |
|
9761 | /**
|
9762 | * Decodes an EnumValueOptions message from the specified reader or buffer, length delimited.
|
9763 | * @param reader Reader or buffer to decode from
|
9764 | * @returns EnumValueOptions
|
9765 | * @throws {Error} If the payload is not a reader or valid buffer
|
9766 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
9767 | */
|
9768 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumValueOptions;
|
9769 |
|
9770 | /**
|
9771 | * Verifies an EnumValueOptions message.
|
9772 | * @param message Plain object to verify
|
9773 | * @returns `null` if valid, otherwise the reason why it is not
|
9774 | */
|
9775 | public static verify(message: { [k: string]: any }): (string|null);
|
9776 |
|
9777 | /**
|
9778 | * Creates an EnumValueOptions message from a plain object. Also converts values to their respective internal types.
|
9779 | * @param object Plain object
|
9780 | * @returns EnumValueOptions
|
9781 | */
|
9782 | public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueOptions;
|
9783 |
|
9784 | /**
|
9785 | * Creates a plain object from an EnumValueOptions message. Also converts values to other types if specified.
|
9786 | * @param message EnumValueOptions
|
9787 | * @param [options] Conversion options
|
9788 | * @returns Plain object
|
9789 | */
|
9790 | public static toObject(message: google.protobuf.EnumValueOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
9791 |
|
9792 | /**
|
9793 | * Converts this EnumValueOptions to JSON.
|
9794 | * @returns JSON object
|
9795 | */
|
9796 | public toJSON(): { [k: string]: any };
|
9797 | }
|
9798 |
|
9799 | /** Properties of a ServiceOptions. */
|
9800 | interface IServiceOptions {
|
9801 |
|
9802 | /** ServiceOptions deprecated */
|
9803 | deprecated?: (boolean|null);
|
9804 |
|
9805 | /** ServiceOptions uninterpretedOption */
|
9806 | uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
|
9807 |
|
9808 | /** ServiceOptions .google.api.defaultHost */
|
9809 | ".google.api.defaultHost"?: (string|null);
|
9810 |
|
9811 | /** ServiceOptions .google.api.oauthScopes */
|
9812 | ".google.api.oauthScopes"?: (string|null);
|
9813 | }
|
9814 |
|
9815 | /** Represents a ServiceOptions. */
|
9816 | class ServiceOptions implements IServiceOptions {
|
9817 |
|
9818 | /**
|
9819 | * Constructs a new ServiceOptions.
|
9820 | * @param [properties] Properties to set
|
9821 | */
|
9822 | constructor(properties?: google.protobuf.IServiceOptions);
|
9823 |
|
9824 | /** ServiceOptions deprecated. */
|
9825 | public deprecated: boolean;
|
9826 |
|
9827 | /** ServiceOptions uninterpretedOption. */
|
9828 | public uninterpretedOption: google.protobuf.IUninterpretedOption[];
|
9829 |
|
9830 | /**
|
9831 | * Creates a new ServiceOptions instance using the specified properties.
|
9832 | * @param [properties] Properties to set
|
9833 | * @returns ServiceOptions instance
|
9834 | */
|
9835 | public static create(properties?: google.protobuf.IServiceOptions): google.protobuf.ServiceOptions;
|
9836 |
|
9837 | /**
|
9838 | * Encodes the specified ServiceOptions message. Does not implicitly { google.protobuf.ServiceOptions.verify|verify} messages.
|
9839 | * message ServiceOptions message or plain object to encode
|
9840 | * [writer] Writer to encode to
|
9841 | * Writer
|
9842 | */
|
9843 | public static encode(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer;
|
9844 |
|
9845 | /**
|
9846 | * Encodes the specified ServiceOptions message, length delimited. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages.
|
9847 | * @param message ServiceOptions message or plain object to encode
|
9848 | * @param [writer] Writer to encode to
|
9849 | * @returns Writer
|
9850 | */
|
9851 | public static encodeDelimited(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer;
|
9852 |
|
9853 | /**
|
9854 | * Decodes a ServiceOptions message from the specified reader or buffer.
|
9855 | * @param reader Reader or buffer to decode from
|
9856 | * @param [length] Message length if known beforehand
|
9857 | * @returns ServiceOptions
|
9858 | * @throws {Error} If the payload is not a reader or valid buffer
|
9859 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
9860 | */
|
9861 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceOptions;
|
9862 |
|
9863 | /**
|
9864 | * Decodes a ServiceOptions message from the specified reader or buffer, length delimited.
|
9865 | * @param reader Reader or buffer to decode from
|
9866 | * @returns ServiceOptions
|
9867 | * @throws {Error} If the payload is not a reader or valid buffer
|
9868 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
9869 | */
|
9870 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ServiceOptions;
|
9871 |
|
9872 | /**
|
9873 | * Verifies a ServiceOptions message.
|
9874 | * @param message Plain object to verify
|
9875 | * @returns `null` if valid, otherwise the reason why it is not
|
9876 | */
|
9877 | public static verify(message: { [k: string]: any }): (string|null);
|
9878 |
|
9879 | /**
|
9880 | * Creates a ServiceOptions message from a plain object. Also converts values to their respective internal types.
|
9881 | * @param object Plain object
|
9882 | * @returns ServiceOptions
|
9883 | */
|
9884 | public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceOptions;
|
9885 |
|
9886 | /**
|
9887 | * Creates a plain object from a ServiceOptions message. Also converts values to other types if specified.
|
9888 | * @param message ServiceOptions
|
9889 | * @param [options] Conversion options
|
9890 | * @returns Plain object
|
9891 | */
|
9892 | public static toObject(message: google.protobuf.ServiceOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
9893 |
|
9894 | /**
|
9895 | * Converts this ServiceOptions to JSON.
|
9896 | * @returns JSON object
|
9897 | */
|
9898 | public toJSON(): { [k: string]: any };
|
9899 | }
|
9900 |
|
9901 | /** Properties of a MethodOptions. */
|
9902 | interface IMethodOptions {
|
9903 |
|
9904 | /** MethodOptions deprecated */
|
9905 | deprecated?: (boolean|null);
|
9906 |
|
9907 | /** MethodOptions idempotencyLevel */
|
9908 | idempotencyLevel?: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel|null);
|
9909 |
|
9910 | /** MethodOptions uninterpretedOption */
|
9911 | uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
|
9912 |
|
9913 | /** MethodOptions .google.api.http */
|
9914 | ".google.api.http"?: (google.api.IHttpRule|null);
|
9915 |
|
9916 | /** MethodOptions .google.api.methodSignature */
|
9917 | ".google.api.methodSignature"?: (string[]|null);
|
9918 |
|
9919 | /** MethodOptions .google.longrunning.operationInfo */
|
9920 | ".google.longrunning.operationInfo"?: (google.longrunning.IOperationInfo|null);
|
9921 | }
|
9922 |
|
9923 | /** Represents a MethodOptions. */
|
9924 | class MethodOptions implements IMethodOptions {
|
9925 |
|
9926 | /**
|
9927 | * Constructs a new MethodOptions.
|
9928 | * @param [properties] Properties to set
|
9929 | */
|
9930 | constructor(properties?: google.protobuf.IMethodOptions);
|
9931 |
|
9932 | /** MethodOptions deprecated. */
|
9933 | public deprecated: boolean;
|
9934 |
|
9935 | /** MethodOptions idempotencyLevel. */
|
9936 | public idempotencyLevel: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel);
|
9937 |
|
9938 | /** MethodOptions uninterpretedOption. */
|
9939 | public uninterpretedOption: google.protobuf.IUninterpretedOption[];
|
9940 |
|
9941 | /**
|
9942 | * Creates a new MethodOptions instance using the specified properties.
|
9943 | * @param [properties] Properties to set
|
9944 | * @returns MethodOptions instance
|
9945 | */
|
9946 | public static create(properties?: google.protobuf.IMethodOptions): google.protobuf.MethodOptions;
|
9947 |
|
9948 | /**
|
9949 | * Encodes the specified MethodOptions message. Does not implicitly { google.protobuf.MethodOptions.verify|verify} messages.
|
9950 | * message MethodOptions message or plain object to encode
|
9951 | * [writer] Writer to encode to
|
9952 | * Writer
|
9953 | */
|
9954 | public static encode(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer;
|
9955 |
|
9956 | /**
|
9957 | * Encodes the specified MethodOptions message, length delimited. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages.
|
9958 | * @param message MethodOptions message or plain object to encode
|
9959 | * @param [writer] Writer to encode to
|
9960 | * @returns Writer
|
9961 | */
|
9962 | public static encodeDelimited(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer;
|
9963 |
|
9964 | /**
|
9965 | * Decodes a MethodOptions message from the specified reader or buffer.
|
9966 | * @param reader Reader or buffer to decode from
|
9967 | * @param [length] Message length if known beforehand
|
9968 | * @returns MethodOptions
|
9969 | * @throws {Error} If the payload is not a reader or valid buffer
|
9970 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
9971 | */
|
9972 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodOptions;
|
9973 |
|
9974 | /**
|
9975 | * Decodes a MethodOptions message from the specified reader or buffer, length delimited.
|
9976 | * @param reader Reader or buffer to decode from
|
9977 | * @returns MethodOptions
|
9978 | * @throws {Error} If the payload is not a reader or valid buffer
|
9979 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
9980 | */
|
9981 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MethodOptions;
|
9982 |
|
9983 | /**
|
9984 | * Verifies a MethodOptions message.
|
9985 | * @param message Plain object to verify
|
9986 | * @returns `null` if valid, otherwise the reason why it is not
|
9987 | */
|
9988 | public static verify(message: { [k: string]: any }): (string|null);
|
9989 |
|
9990 | /**
|
9991 | * Creates a MethodOptions message from a plain object. Also converts values to their respective internal types.
|
9992 | * @param object Plain object
|
9993 | * @returns MethodOptions
|
9994 | */
|
9995 | public static fromObject(object: { [k: string]: any }): google.protobuf.MethodOptions;
|
9996 |
|
9997 | /**
|
9998 | * Creates a plain object from a MethodOptions message. Also converts values to other types if specified.
|
9999 | * @param message MethodOptions
|
10000 | * @param [options] Conversion options
|
10001 | * @returns Plain object
|
10002 | */
|
10003 | public static toObject(message: google.protobuf.MethodOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
10004 |
|
10005 | /**
|
10006 | * Converts this MethodOptions to JSON.
|
10007 | * @returns JSON object
|
10008 | */
|
10009 | public toJSON(): { [k: string]: any };
|
10010 | }
|
10011 |
|
10012 | namespace MethodOptions {
|
10013 |
|
10014 | /** IdempotencyLevel enum. */
|
10015 | enum IdempotencyLevel {
|
10016 | IDEMPOTENCY_UNKNOWN = 0,
|
10017 | NO_SIDE_EFFECTS = 1,
|
10018 | IDEMPOTENT = 2
|
10019 | }
|
10020 | }
|
10021 |
|
10022 | /** Properties of an UninterpretedOption. */
|
10023 | interface IUninterpretedOption {
|
10024 |
|
10025 | /** UninterpretedOption name */
|
10026 | name?: (google.protobuf.UninterpretedOption.INamePart[]|null);
|
10027 |
|
10028 | /** UninterpretedOption identifierValue */
|
10029 | identifierValue?: (string|null);
|
10030 |
|
10031 | /** UninterpretedOption positiveIntValue */
|
10032 | positiveIntValue?: (number|Long|string|null);
|
10033 |
|
10034 | /** UninterpretedOption negativeIntValue */
|
10035 | negativeIntValue?: (number|Long|string|null);
|
10036 |
|
10037 | /** UninterpretedOption doubleValue */
|
10038 | doubleValue?: (number|null);
|
10039 |
|
10040 | /** UninterpretedOption stringValue */
|
10041 | stringValue?: (Uint8Array|string|null);
|
10042 |
|
10043 | /** UninterpretedOption aggregateValue */
|
10044 | aggregateValue?: (string|null);
|
10045 | }
|
10046 |
|
10047 | /** Represents an UninterpretedOption. */
|
10048 | class UninterpretedOption implements IUninterpretedOption {
|
10049 |
|
10050 | /**
|
10051 | * Constructs a new UninterpretedOption.
|
10052 | * @param [properties] Properties to set
|
10053 | */
|
10054 | constructor(properties?: google.protobuf.IUninterpretedOption);
|
10055 |
|
10056 | /** UninterpretedOption name. */
|
10057 | public name: google.protobuf.UninterpretedOption.INamePart[];
|
10058 |
|
10059 | /** UninterpretedOption identifierValue. */
|
10060 | public identifierValue: string;
|
10061 |
|
10062 | /** UninterpretedOption positiveIntValue. */
|
10063 | public positiveIntValue: (number|Long|string);
|
10064 |
|
10065 | /** UninterpretedOption negativeIntValue. */
|
10066 | public negativeIntValue: (number|Long|string);
|
10067 |
|
10068 | /** UninterpretedOption doubleValue. */
|
10069 | public doubleValue: number;
|
10070 |
|
10071 | /** UninterpretedOption stringValue. */
|
10072 | public stringValue: (Uint8Array|string);
|
10073 |
|
10074 | /** UninterpretedOption aggregateValue. */
|
10075 | public aggregateValue: string;
|
10076 |
|
10077 | /**
|
10078 | * Creates a new UninterpretedOption instance using the specified properties.
|
10079 | * @param [properties] Properties to set
|
10080 | * @returns UninterpretedOption instance
|
10081 | */
|
10082 | public static create(properties?: google.protobuf.IUninterpretedOption): google.protobuf.UninterpretedOption;
|
10083 |
|
10084 | /**
|
10085 | * Encodes the specified UninterpretedOption message. Does not implicitly { google.protobuf.UninterpretedOption.verify|verify} messages.
|
10086 | * message UninterpretedOption message or plain object to encode
|
10087 | * [writer] Writer to encode to
|
10088 | * Writer
|
10089 | */
|
10090 | public static encode(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer;
|
10091 |
|
10092 | /**
|
10093 | * Encodes the specified UninterpretedOption message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages.
|
10094 | * @param message UninterpretedOption message or plain object to encode
|
10095 | * @param [writer] Writer to encode to
|
10096 | * @returns Writer
|
10097 | */
|
10098 | public static encodeDelimited(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer;
|
10099 |
|
10100 | /**
|
10101 | * Decodes an UninterpretedOption message from the specified reader or buffer.
|
10102 | * @param reader Reader or buffer to decode from
|
10103 | * @param [length] Message length if known beforehand
|
10104 | * @returns UninterpretedOption
|
10105 | * @throws {Error} If the payload is not a reader or valid buffer
|
10106 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
10107 | */
|
10108 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption;
|
10109 |
|
10110 | /**
|
10111 | * Decodes an UninterpretedOption message from the specified reader or buffer, length delimited.
|
10112 | * @param reader Reader or buffer to decode from
|
10113 | * @returns UninterpretedOption
|
10114 | * @throws {Error} If the payload is not a reader or valid buffer
|
10115 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
10116 | */
|
10117 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UninterpretedOption;
|
10118 |
|
10119 | /**
|
10120 | * Verifies an UninterpretedOption message.
|
10121 | * @param message Plain object to verify
|
10122 | * @returns `null` if valid, otherwise the reason why it is not
|
10123 | */
|
10124 | public static verify(message: { [k: string]: any }): (string|null);
|
10125 |
|
10126 | /**
|
10127 | * Creates an UninterpretedOption message from a plain object. Also converts values to their respective internal types.
|
10128 | * @param object Plain object
|
10129 | * @returns UninterpretedOption
|
10130 | */
|
10131 | public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption;
|
10132 |
|
10133 | /**
|
10134 | * Creates a plain object from an UninterpretedOption message. Also converts values to other types if specified.
|
10135 | * @param message UninterpretedOption
|
10136 | * @param [options] Conversion options
|
10137 | * @returns Plain object
|
10138 | */
|
10139 | public static toObject(message: google.protobuf.UninterpretedOption, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
10140 |
|
10141 | /**
|
10142 | * Converts this UninterpretedOption to JSON.
|
10143 | * @returns JSON object
|
10144 | */
|
10145 | public toJSON(): { [k: string]: any };
|
10146 | }
|
10147 |
|
10148 | namespace UninterpretedOption {
|
10149 |
|
10150 | /** Properties of a NamePart. */
|
10151 | interface INamePart {
|
10152 |
|
10153 | /** NamePart namePart */
|
10154 | namePart: string;
|
10155 |
|
10156 | /** NamePart isExtension */
|
10157 | isExtension: boolean;
|
10158 | }
|
10159 |
|
10160 | /** Represents a NamePart. */
|
10161 | class NamePart implements INamePart {
|
10162 |
|
10163 | /**
|
10164 | * Constructs a new NamePart.
|
10165 | * @param [properties] Properties to set
|
10166 | */
|
10167 | constructor(properties?: google.protobuf.UninterpretedOption.INamePart);
|
10168 |
|
10169 | /** NamePart namePart. */
|
10170 | public namePart: string;
|
10171 |
|
10172 | /** NamePart isExtension. */
|
10173 | public isExtension: boolean;
|
10174 |
|
10175 | /**
|
10176 | * Creates a new NamePart instance using the specified properties.
|
10177 | * @param [properties] Properties to set
|
10178 | * @returns NamePart instance
|
10179 | */
|
10180 | public static create(properties?: google.protobuf.UninterpretedOption.INamePart): google.protobuf.UninterpretedOption.NamePart;
|
10181 |
|
10182 | /**
|
10183 | * Encodes the specified NamePart message. Does not implicitly { google.protobuf.UninterpretedOption.NamePart.verify|verify} messages.
|
10184 | * message NamePart message or plain object to encode
|
10185 | * [writer] Writer to encode to
|
10186 | * Writer
|
10187 | */
|
10188 | public static encode(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer;
|
10189 |
|
10190 | /**
|
10191 | * Encodes the specified NamePart message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages.
|
10192 | * @param message NamePart message or plain object to encode
|
10193 | * @param [writer] Writer to encode to
|
10194 | * @returns Writer
|
10195 | */
|
10196 | public static encodeDelimited(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer;
|
10197 |
|
10198 | /**
|
10199 | * Decodes a NamePart message from the specified reader or buffer.
|
10200 | * @param reader Reader or buffer to decode from
|
10201 | * @param [length] Message length if known beforehand
|
10202 | * @returns NamePart
|
10203 | * @throws {Error} If the payload is not a reader or valid buffer
|
10204 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
10205 | */
|
10206 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption.NamePart;
|
10207 |
|
10208 | /**
|
10209 | * Decodes a NamePart message from the specified reader or buffer, length delimited.
|
10210 | * @param reader Reader or buffer to decode from
|
10211 | * @returns NamePart
|
10212 | * @throws {Error} If the payload is not a reader or valid buffer
|
10213 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
10214 | */
|
10215 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UninterpretedOption.NamePart;
|
10216 |
|
10217 | /**
|
10218 | * Verifies a NamePart message.
|
10219 | * @param message Plain object to verify
|
10220 | * @returns `null` if valid, otherwise the reason why it is not
|
10221 | */
|
10222 | public static verify(message: { [k: string]: any }): (string|null);
|
10223 |
|
10224 | /**
|
10225 | * Creates a NamePart message from a plain object. Also converts values to their respective internal types.
|
10226 | * @param object Plain object
|
10227 | * @returns NamePart
|
10228 | */
|
10229 | public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption.NamePart;
|
10230 |
|
10231 | /**
|
10232 | * Creates a plain object from a NamePart message. Also converts values to other types if specified.
|
10233 | * @param message NamePart
|
10234 | * @param [options] Conversion options
|
10235 | * @returns Plain object
|
10236 | */
|
10237 | public static toObject(message: google.protobuf.UninterpretedOption.NamePart, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
10238 |
|
10239 | /**
|
10240 | * Converts this NamePart to JSON.
|
10241 | * @returns JSON object
|
10242 | */
|
10243 | public toJSON(): { [k: string]: any };
|
10244 | }
|
10245 | }
|
10246 |
|
10247 | /** Properties of a SourceCodeInfo. */
|
10248 | interface ISourceCodeInfo {
|
10249 |
|
10250 | /** SourceCodeInfo location */
|
10251 | location?: (google.protobuf.SourceCodeInfo.ILocation[]|null);
|
10252 | }
|
10253 |
|
10254 | /** Represents a SourceCodeInfo. */
|
10255 | class SourceCodeInfo implements ISourceCodeInfo {
|
10256 |
|
10257 | /**
|
10258 | * Constructs a new SourceCodeInfo.
|
10259 | * @param [properties] Properties to set
|
10260 | */
|
10261 | constructor(properties?: google.protobuf.ISourceCodeInfo);
|
10262 |
|
10263 | /** SourceCodeInfo location. */
|
10264 | public location: google.protobuf.SourceCodeInfo.ILocation[];
|
10265 |
|
10266 | /**
|
10267 | * Creates a new SourceCodeInfo instance using the specified properties.
|
10268 | * @param [properties] Properties to set
|
10269 | * @returns SourceCodeInfo instance
|
10270 | */
|
10271 | public static create(properties?: google.protobuf.ISourceCodeInfo): google.protobuf.SourceCodeInfo;
|
10272 |
|
10273 | /**
|
10274 | * Encodes the specified SourceCodeInfo message. Does not implicitly { google.protobuf.SourceCodeInfo.verify|verify} messages.
|
10275 | * message SourceCodeInfo message or plain object to encode
|
10276 | * [writer] Writer to encode to
|
10277 | * Writer
|
10278 | */
|
10279 | public static encode(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
|
10280 |
|
10281 | /**
|
10282 | * Encodes the specified SourceCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages.
|
10283 | * @param message SourceCodeInfo message or plain object to encode
|
10284 | * @param [writer] Writer to encode to
|
10285 | * @returns Writer
|
10286 | */
|
10287 | public static encodeDelimited(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
|
10288 |
|
10289 | /**
|
10290 | * Decodes a SourceCodeInfo message from the specified reader or buffer.
|
10291 | * @param reader Reader or buffer to decode from
|
10292 | * @param [length] Message length if known beforehand
|
10293 | * @returns SourceCodeInfo
|
10294 | * @throws {Error} If the payload is not a reader or valid buffer
|
10295 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
10296 | */
|
10297 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo;
|
10298 |
|
10299 | /**
|
10300 | * Decodes a SourceCodeInfo message from the specified reader or buffer, length delimited.
|
10301 | * @param reader Reader or buffer to decode from
|
10302 | * @returns SourceCodeInfo
|
10303 | * @throws {Error} If the payload is not a reader or valid buffer
|
10304 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
10305 | */
|
10306 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.SourceCodeInfo;
|
10307 |
|
10308 | /**
|
10309 | * Verifies a SourceCodeInfo message.
|
10310 | * @param message Plain object to verify
|
10311 | * @returns `null` if valid, otherwise the reason why it is not
|
10312 | */
|
10313 | public static verify(message: { [k: string]: any }): (string|null);
|
10314 |
|
10315 | /**
|
10316 | * Creates a SourceCodeInfo message from a plain object. Also converts values to their respective internal types.
|
10317 | * @param object Plain object
|
10318 | * @returns SourceCodeInfo
|
10319 | */
|
10320 | public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo;
|
10321 |
|
10322 | /**
|
10323 | * Creates a plain object from a SourceCodeInfo message. Also converts values to other types if specified.
|
10324 | * @param message SourceCodeInfo
|
10325 | * @param [options] Conversion options
|
10326 | * @returns Plain object
|
10327 | */
|
10328 | public static toObject(message: google.protobuf.SourceCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
10329 |
|
10330 | /**
|
10331 | * Converts this SourceCodeInfo to JSON.
|
10332 | * @returns JSON object
|
10333 | */
|
10334 | public toJSON(): { [k: string]: any };
|
10335 | }
|
10336 |
|
10337 | namespace SourceCodeInfo {
|
10338 |
|
10339 | /** Properties of a Location. */
|
10340 | interface ILocation {
|
10341 |
|
10342 | /** Location path */
|
10343 | path?: (number[]|null);
|
10344 |
|
10345 | /** Location span */
|
10346 | span?: (number[]|null);
|
10347 |
|
10348 | /** Location leadingComments */
|
10349 | leadingComments?: (string|null);
|
10350 |
|
10351 | /** Location trailingComments */
|
10352 | trailingComments?: (string|null);
|
10353 |
|
10354 | /** Location leadingDetachedComments */
|
10355 | leadingDetachedComments?: (string[]|null);
|
10356 | }
|
10357 |
|
10358 | /** Represents a Location. */
|
10359 | class Location implements ILocation {
|
10360 |
|
10361 | /**
|
10362 | * Constructs a new Location.
|
10363 | * @param [properties] Properties to set
|
10364 | */
|
10365 | constructor(properties?: google.protobuf.SourceCodeInfo.ILocation);
|
10366 |
|
10367 | /** Location path. */
|
10368 | public path: number[];
|
10369 |
|
10370 | /** Location span. */
|
10371 | public span: number[];
|
10372 |
|
10373 | /** Location leadingComments. */
|
10374 | public leadingComments: string;
|
10375 |
|
10376 | /** Location trailingComments. */
|
10377 | public trailingComments: string;
|
10378 |
|
10379 | /** Location leadingDetachedComments. */
|
10380 | public leadingDetachedComments: string[];
|
10381 |
|
10382 | /**
|
10383 | * Creates a new Location instance using the specified properties.
|
10384 | * @param [properties] Properties to set
|
10385 | * @returns Location instance
|
10386 | */
|
10387 | public static create(properties?: google.protobuf.SourceCodeInfo.ILocation): google.protobuf.SourceCodeInfo.Location;
|
10388 |
|
10389 | /**
|
10390 | * Encodes the specified Location message. Does not implicitly { google.protobuf.SourceCodeInfo.Location.verify|verify} messages.
|
10391 | * message Location message or plain object to encode
|
10392 | * [writer] Writer to encode to
|
10393 | * Writer
|
10394 | */
|
10395 | public static encode(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer;
|
10396 |
|
10397 | /**
|
10398 | * Encodes the specified Location message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages.
|
10399 | * @param message Location message or plain object to encode
|
10400 | * @param [writer] Writer to encode to
|
10401 | * @returns Writer
|
10402 | */
|
10403 | public static encodeDelimited(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer;
|
10404 |
|
10405 | /**
|
10406 | * Decodes a Location message from the specified reader or buffer.
|
10407 | * @param reader Reader or buffer to decode from
|
10408 | * @param [length] Message length if known beforehand
|
10409 | * @returns Location
|
10410 | * @throws {Error} If the payload is not a reader or valid buffer
|
10411 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
10412 | */
|
10413 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo.Location;
|
10414 |
|
10415 | /**
|
10416 | * Decodes a Location message from the specified reader or buffer, length delimited.
|
10417 | * @param reader Reader or buffer to decode from
|
10418 | * @returns Location
|
10419 | * @throws {Error} If the payload is not a reader or valid buffer
|
10420 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
10421 | */
|
10422 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.SourceCodeInfo.Location;
|
10423 |
|
10424 | /**
|
10425 | * Verifies a Location message.
|
10426 | * @param message Plain object to verify
|
10427 | * @returns `null` if valid, otherwise the reason why it is not
|
10428 | */
|
10429 | public static verify(message: { [k: string]: any }): (string|null);
|
10430 |
|
10431 | /**
|
10432 | * Creates a Location message from a plain object. Also converts values to their respective internal types.
|
10433 | * @param object Plain object
|
10434 | * @returns Location
|
10435 | */
|
10436 | public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo.Location;
|
10437 |
|
10438 | /**
|
10439 | * Creates a plain object from a Location message. Also converts values to other types if specified.
|
10440 | * @param message Location
|
10441 | * @param [options] Conversion options
|
10442 | * @returns Plain object
|
10443 | */
|
10444 | public static toObject(message: google.protobuf.SourceCodeInfo.Location, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
10445 |
|
10446 | /**
|
10447 | * Converts this Location to JSON.
|
10448 | * @returns JSON object
|
10449 | */
|
10450 | public toJSON(): { [k: string]: any };
|
10451 | }
|
10452 | }
|
10453 |
|
10454 | /** Properties of a GeneratedCodeInfo. */
|
10455 | interface IGeneratedCodeInfo {
|
10456 |
|
10457 | /** GeneratedCodeInfo annotation */
|
10458 | annotation?: (google.protobuf.GeneratedCodeInfo.IAnnotation[]|null);
|
10459 | }
|
10460 |
|
10461 | /** Represents a GeneratedCodeInfo. */
|
10462 | class GeneratedCodeInfo implements IGeneratedCodeInfo {
|
10463 |
|
10464 | /**
|
10465 | * Constructs a new GeneratedCodeInfo.
|
10466 | * @param [properties] Properties to set
|
10467 | */
|
10468 | constructor(properties?: google.protobuf.IGeneratedCodeInfo);
|
10469 |
|
10470 | /** GeneratedCodeInfo annotation. */
|
10471 | public annotation: google.protobuf.GeneratedCodeInfo.IAnnotation[];
|
10472 |
|
10473 | /**
|
10474 | * Creates a new GeneratedCodeInfo instance using the specified properties.
|
10475 | * @param [properties] Properties to set
|
10476 | * @returns GeneratedCodeInfo instance
|
10477 | */
|
10478 | public static create(properties?: google.protobuf.IGeneratedCodeInfo): google.protobuf.GeneratedCodeInfo;
|
10479 |
|
10480 | /**
|
10481 | * Encodes the specified GeneratedCodeInfo message. Does not implicitly { google.protobuf.GeneratedCodeInfo.verify|verify} messages.
|
10482 | * message GeneratedCodeInfo message or plain object to encode
|
10483 | * [writer] Writer to encode to
|
10484 | * Writer
|
10485 | */
|
10486 | public static encode(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
|
10487 |
|
10488 | /**
|
10489 | * Encodes the specified GeneratedCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages.
|
10490 | * @param message GeneratedCodeInfo message or plain object to encode
|
10491 | * @param [writer] Writer to encode to
|
10492 | * @returns Writer
|
10493 | */
|
10494 | public static encodeDelimited(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
|
10495 |
|
10496 | /**
|
10497 | * Decodes a GeneratedCodeInfo message from the specified reader or buffer.
|
10498 | * @param reader Reader or buffer to decode from
|
10499 | * @param [length] Message length if known beforehand
|
10500 | * @returns GeneratedCodeInfo
|
10501 | * @throws {Error} If the payload is not a reader or valid buffer
|
10502 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
10503 | */
|
10504 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo;
|
10505 |
|
10506 | /**
|
10507 | * Decodes a GeneratedCodeInfo message from the specified reader or buffer, length delimited.
|
10508 | * @param reader Reader or buffer to decode from
|
10509 | * @returns GeneratedCodeInfo
|
10510 | * @throws {Error} If the payload is not a reader or valid buffer
|
10511 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
10512 | */
|
10513 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.GeneratedCodeInfo;
|
10514 |
|
10515 | /**
|
10516 | * Verifies a GeneratedCodeInfo message.
|
10517 | * @param message Plain object to verify
|
10518 | * @returns `null` if valid, otherwise the reason why it is not
|
10519 | */
|
10520 | public static verify(message: { [k: string]: any }): (string|null);
|
10521 |
|
10522 | /**
|
10523 | * Creates a GeneratedCodeInfo message from a plain object. Also converts values to their respective internal types.
|
10524 | * @param object Plain object
|
10525 | * @returns GeneratedCodeInfo
|
10526 | */
|
10527 | public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo;
|
10528 |
|
10529 | /**
|
10530 | * Creates a plain object from a GeneratedCodeInfo message. Also converts values to other types if specified.
|
10531 | * @param message GeneratedCodeInfo
|
10532 | * @param [options] Conversion options
|
10533 | * @returns Plain object
|
10534 | */
|
10535 | public static toObject(message: google.protobuf.GeneratedCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
10536 |
|
10537 | /**
|
10538 | * Converts this GeneratedCodeInfo to JSON.
|
10539 | * @returns JSON object
|
10540 | */
|
10541 | public toJSON(): { [k: string]: any };
|
10542 | }
|
10543 |
|
10544 | namespace GeneratedCodeInfo {
|
10545 |
|
10546 | /** Properties of an Annotation. */
|
10547 | interface IAnnotation {
|
10548 |
|
10549 | /** Annotation path */
|
10550 | path?: (number[]|null);
|
10551 |
|
10552 | /** Annotation sourceFile */
|
10553 | sourceFile?: (string|null);
|
10554 |
|
10555 | /** Annotation begin */
|
10556 | begin?: (number|null);
|
10557 |
|
10558 | /** Annotation end */
|
10559 | end?: (number|null);
|
10560 | }
|
10561 |
|
10562 | /** Represents an Annotation. */
|
10563 | class Annotation implements IAnnotation {
|
10564 |
|
10565 | /**
|
10566 | * Constructs a new Annotation.
|
10567 | * @param [properties] Properties to set
|
10568 | */
|
10569 | constructor(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation);
|
10570 |
|
10571 | /** Annotation path. */
|
10572 | public path: number[];
|
10573 |
|
10574 | /** Annotation sourceFile. */
|
10575 | public sourceFile: string;
|
10576 |
|
10577 | /** Annotation begin. */
|
10578 | public begin: number;
|
10579 |
|
10580 | /** Annotation end. */
|
10581 | public end: number;
|
10582 |
|
10583 | /**
|
10584 | * Creates a new Annotation instance using the specified properties.
|
10585 | * @param [properties] Properties to set
|
10586 | * @returns Annotation instance
|
10587 | */
|
10588 | public static create(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation): google.protobuf.GeneratedCodeInfo.Annotation;
|
10589 |
|
10590 | /**
|
10591 | * Encodes the specified Annotation message. Does not implicitly { google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages.
|
10592 | * message Annotation message or plain object to encode
|
10593 | * [writer] Writer to encode to
|
10594 | * Writer
|
10595 | */
|
10596 | public static encode(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
|
10597 |
|
10598 | /**
|
10599 | * Encodes the specified Annotation message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages.
|
10600 | * @param message Annotation message or plain object to encode
|
10601 | * @param [writer] Writer to encode to
|
10602 | * @returns Writer
|
10603 | */
|
10604 | public static encodeDelimited(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
|
10605 |
|
10606 | /**
|
10607 | * Decodes an Annotation message from the specified reader or buffer.
|
10608 | * @param reader Reader or buffer to decode from
|
10609 | * @param [length] Message length if known beforehand
|
10610 | * @returns Annotation
|
10611 | * @throws {Error} If the payload is not a reader or valid buffer
|
10612 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
10613 | */
|
10614 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo.Annotation;
|
10615 |
|
10616 | /**
|
10617 | * Decodes an Annotation message from the specified reader or buffer, length delimited.
|
10618 | * @param reader Reader or buffer to decode from
|
10619 | * @returns Annotation
|
10620 | * @throws {Error} If the payload is not a reader or valid buffer
|
10621 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
10622 | */
|
10623 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.GeneratedCodeInfo.Annotation;
|
10624 |
|
10625 | /**
|
10626 | * Verifies an Annotation message.
|
10627 | * @param message Plain object to verify
|
10628 | * @returns `null` if valid, otherwise the reason why it is not
|
10629 | */
|
10630 | public static verify(message: { [k: string]: any }): (string|null);
|
10631 |
|
10632 | /**
|
10633 | * Creates an Annotation message from a plain object. Also converts values to their respective internal types.
|
10634 | * @param object Plain object
|
10635 | * @returns Annotation
|
10636 | */
|
10637 | public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo.Annotation;
|
10638 |
|
10639 | /**
|
10640 | * Creates a plain object from an Annotation message. Also converts values to other types if specified.
|
10641 | * @param message Annotation
|
10642 | * @param [options] Conversion options
|
10643 | * @returns Plain object
|
10644 | */
|
10645 | public static toObject(message: google.protobuf.GeneratedCodeInfo.Annotation, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
10646 |
|
10647 | /**
|
10648 | * Converts this Annotation to JSON.
|
10649 | * @returns JSON object
|
10650 | */
|
10651 | public toJSON(): { [k: string]: any };
|
10652 | }
|
10653 | }
|
10654 |
|
10655 | /** Properties of a Timestamp. */
|
10656 | interface ITimestamp {
|
10657 |
|
10658 | /** Timestamp seconds */
|
10659 | seconds?: (number|Long|string|null);
|
10660 |
|
10661 | /** Timestamp nanos */
|
10662 | nanos?: (number|null);
|
10663 | }
|
10664 |
|
10665 | /** Represents a Timestamp. */
|
10666 | class Timestamp implements ITimestamp {
|
10667 |
|
10668 | /**
|
10669 | * Constructs a new Timestamp.
|
10670 | * @param [properties] Properties to set
|
10671 | */
|
10672 | constructor(properties?: google.protobuf.ITimestamp);
|
10673 |
|
10674 | /** Timestamp seconds. */
|
10675 | public seconds: (number|Long|string);
|
10676 |
|
10677 | /** Timestamp nanos. */
|
10678 | public nanos: number;
|
10679 |
|
10680 | /**
|
10681 | * Creates a new Timestamp instance using the specified properties.
|
10682 | * @param [properties] Properties to set
|
10683 | * @returns Timestamp instance
|
10684 | */
|
10685 | public static create(properties?: google.protobuf.ITimestamp): google.protobuf.Timestamp;
|
10686 |
|
10687 | /**
|
10688 | * Encodes the specified Timestamp message. Does not implicitly { google.protobuf.Timestamp.verify|verify} messages.
|
10689 | * message Timestamp message or plain object to encode
|
10690 | * [writer] Writer to encode to
|
10691 | * Writer
|
10692 | */
|
10693 | public static encode(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer;
|
10694 |
|
10695 | /**
|
10696 | * Encodes the specified Timestamp message, length delimited. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages.
|
10697 | * @param message Timestamp message or plain object to encode
|
10698 | * @param [writer] Writer to encode to
|
10699 | * @returns Writer
|
10700 | */
|
10701 | public static encodeDelimited(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer;
|
10702 |
|
10703 | /**
|
10704 | * Decodes a Timestamp message from the specified reader or buffer.
|
10705 | * @param reader Reader or buffer to decode from
|
10706 | * @param [length] Message length if known beforehand
|
10707 | * @returns Timestamp
|
10708 | * @throws {Error} If the payload is not a reader or valid buffer
|
10709 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
10710 | */
|
10711 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Timestamp;
|
10712 |
|
10713 | /**
|
10714 | * Decodes a Timestamp message from the specified reader or buffer, length delimited.
|
10715 | * @param reader Reader or buffer to decode from
|
10716 | * @returns Timestamp
|
10717 | * @throws {Error} If the payload is not a reader or valid buffer
|
10718 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
10719 | */
|
10720 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Timestamp;
|
10721 |
|
10722 | /**
|
10723 | * Verifies a Timestamp message.
|
10724 | * @param message Plain object to verify
|
10725 | * @returns `null` if valid, otherwise the reason why it is not
|
10726 | */
|
10727 | public static verify(message: { [k: string]: any }): (string|null);
|
10728 |
|
10729 | /**
|
10730 | * Creates a Timestamp message from a plain object. Also converts values to their respective internal types.
|
10731 | * @param object Plain object
|
10732 | * @returns Timestamp
|
10733 | */
|
10734 | public static fromObject(object: { [k: string]: any }): google.protobuf.Timestamp;
|
10735 |
|
10736 | /**
|
10737 | * Creates a plain object from a Timestamp message. Also converts values to other types if specified.
|
10738 | * @param message Timestamp
|
10739 | * @param [options] Conversion options
|
10740 | * @returns Plain object
|
10741 | */
|
10742 | public static toObject(message: google.protobuf.Timestamp, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
10743 |
|
10744 | /**
|
10745 | * Converts this Timestamp to JSON.
|
10746 | * @returns JSON object
|
10747 | */
|
10748 | public toJSON(): { [k: string]: any };
|
10749 | }
|
10750 |
|
10751 | /** Properties of an Any. */
|
10752 | interface IAny {
|
10753 |
|
10754 | /** Any type_url */
|
10755 | type_url?: (string|null);
|
10756 |
|
10757 | /** Any value */
|
10758 | value?: (Uint8Array|string|null);
|
10759 | }
|
10760 |
|
10761 | /** Represents an Any. */
|
10762 | class Any implements IAny {
|
10763 |
|
10764 | /**
|
10765 | * Constructs a new Any.
|
10766 | * @param [properties] Properties to set
|
10767 | */
|
10768 | constructor(properties?: google.protobuf.IAny);
|
10769 |
|
10770 | /** Any type_url. */
|
10771 | public type_url: string;
|
10772 |
|
10773 | /** Any value. */
|
10774 | public value: (Uint8Array|string);
|
10775 |
|
10776 | /**
|
10777 | * Creates a new Any instance using the specified properties.
|
10778 | * @param [properties] Properties to set
|
10779 | * @returns Any instance
|
10780 | */
|
10781 | public static create(properties?: google.protobuf.IAny): google.protobuf.Any;
|
10782 |
|
10783 | /**
|
10784 | * Encodes the specified Any message. Does not implicitly { google.protobuf.Any.verify|verify} messages.
|
10785 | * message Any message or plain object to encode
|
10786 | * [writer] Writer to encode to
|
10787 | * Writer
|
10788 | */
|
10789 | public static encode(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer;
|
10790 |
|
10791 | /**
|
10792 | * Encodes the specified Any message, length delimited. Does not implicitly {@link google.protobuf.Any.verify|verify} messages.
|
10793 | * @param message Any message or plain object to encode
|
10794 | * @param [writer] Writer to encode to
|
10795 | * @returns Writer
|
10796 | */
|
10797 | public static encodeDelimited(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer;
|
10798 |
|
10799 | /**
|
10800 | * Decodes an Any message from the specified reader or buffer.
|
10801 | * @param reader Reader or buffer to decode from
|
10802 | * @param [length] Message length if known beforehand
|
10803 | * @returns Any
|
10804 | * @throws {Error} If the payload is not a reader or valid buffer
|
10805 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
10806 | */
|
10807 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Any;
|
10808 |
|
10809 | /**
|
10810 | * Decodes an Any message from the specified reader or buffer, length delimited.
|
10811 | * @param reader Reader or buffer to decode from
|
10812 | * @returns Any
|
10813 | * @throws {Error} If the payload is not a reader or valid buffer
|
10814 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
10815 | */
|
10816 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Any;
|
10817 |
|
10818 | /**
|
10819 | * Verifies an Any message.
|
10820 | * @param message Plain object to verify
|
10821 | * @returns `null` if valid, otherwise the reason why it is not
|
10822 | */
|
10823 | public static verify(message: { [k: string]: any }): (string|null);
|
10824 |
|
10825 | /**
|
10826 | * Creates an Any message from a plain object. Also converts values to their respective internal types.
|
10827 | * @param object Plain object
|
10828 | * @returns Any
|
10829 | */
|
10830 | public static fromObject(object: { [k: string]: any }): google.protobuf.Any;
|
10831 |
|
10832 | /**
|
10833 | * Creates a plain object from an Any message. Also converts values to other types if specified.
|
10834 | * @param message Any
|
10835 | * @param [options] Conversion options
|
10836 | * @returns Plain object
|
10837 | */
|
10838 | public static toObject(message: google.protobuf.Any, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
10839 |
|
10840 | /**
|
10841 | * Converts this Any to JSON.
|
10842 | * @returns JSON object
|
10843 | */
|
10844 | public toJSON(): { [k: string]: any };
|
10845 | }
|
10846 |
|
10847 | /** Properties of a Duration. */
|
10848 | interface IDuration {
|
10849 |
|
10850 | /** Duration seconds */
|
10851 | seconds?: (number|Long|string|null);
|
10852 |
|
10853 | /** Duration nanos */
|
10854 | nanos?: (number|null);
|
10855 | }
|
10856 |
|
10857 | /** Represents a Duration. */
|
10858 | class Duration implements IDuration {
|
10859 |
|
10860 | /**
|
10861 | * Constructs a new Duration.
|
10862 | * @param [properties] Properties to set
|
10863 | */
|
10864 | constructor(properties?: google.protobuf.IDuration);
|
10865 |
|
10866 | /** Duration seconds. */
|
10867 | public seconds: (number|Long|string);
|
10868 |
|
10869 | /** Duration nanos. */
|
10870 | public nanos: number;
|
10871 |
|
10872 | /**
|
10873 | * Creates a new Duration instance using the specified properties.
|
10874 | * @param [properties] Properties to set
|
10875 | * @returns Duration instance
|
10876 | */
|
10877 | public static create(properties?: google.protobuf.IDuration): google.protobuf.Duration;
|
10878 |
|
10879 | /**
|
10880 | * Encodes the specified Duration message. Does not implicitly { google.protobuf.Duration.verify|verify} messages.
|
10881 | * message Duration message or plain object to encode
|
10882 | * [writer] Writer to encode to
|
10883 | * Writer
|
10884 | */
|
10885 | public static encode(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer;
|
10886 |
|
10887 | /**
|
10888 | * Encodes the specified Duration message, length delimited. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages.
|
10889 | * @param message Duration message or plain object to encode
|
10890 | * @param [writer] Writer to encode to
|
10891 | * @returns Writer
|
10892 | */
|
10893 | public static encodeDelimited(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer;
|
10894 |
|
10895 | /**
|
10896 | * Decodes a Duration message from the specified reader or buffer.
|
10897 | * @param reader Reader or buffer to decode from
|
10898 | * @param [length] Message length if known beforehand
|
10899 | * @returns Duration
|
10900 | * @throws {Error} If the payload is not a reader or valid buffer
|
10901 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
10902 | */
|
10903 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Duration;
|
10904 |
|
10905 | /**
|
10906 | * Decodes a Duration message from the specified reader or buffer, length delimited.
|
10907 | * @param reader Reader or buffer to decode from
|
10908 | * @returns Duration
|
10909 | * @throws {Error} If the payload is not a reader or valid buffer
|
10910 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
10911 | */
|
10912 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Duration;
|
10913 |
|
10914 | /**
|
10915 | * Verifies a Duration message.
|
10916 | * @param message Plain object to verify
|
10917 | * @returns `null` if valid, otherwise the reason why it is not
|
10918 | */
|
10919 | public static verify(message: { [k: string]: any }): (string|null);
|
10920 |
|
10921 | /**
|
10922 | * Creates a Duration message from a plain object. Also converts values to their respective internal types.
|
10923 | * @param object Plain object
|
10924 | * @returns Duration
|
10925 | */
|
10926 | public static fromObject(object: { [k: string]: any }): google.protobuf.Duration;
|
10927 |
|
10928 | /**
|
10929 | * Creates a plain object from a Duration message. Also converts values to other types if specified.
|
10930 | * @param message Duration
|
10931 | * @param [options] Conversion options
|
10932 | * @returns Plain object
|
10933 | */
|
10934 | public static toObject(message: google.protobuf.Duration, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
10935 |
|
10936 | /**
|
10937 | * Converts this Duration to JSON.
|
10938 | * @returns JSON object
|
10939 | */
|
10940 | public toJSON(): { [k: string]: any };
|
10941 | }
|
10942 |
|
10943 | /** Properties of an Empty. */
|
10944 | interface IEmpty {
|
10945 | }
|
10946 |
|
10947 | /** Represents an Empty. */
|
10948 | class Empty implements IEmpty {
|
10949 |
|
10950 | /**
|
10951 | * Constructs a new Empty.
|
10952 | * @param [properties] Properties to set
|
10953 | */
|
10954 | constructor(properties?: google.protobuf.IEmpty);
|
10955 |
|
10956 | /**
|
10957 | * Creates a new Empty instance using the specified properties.
|
10958 | * @param [properties] Properties to set
|
10959 | * @returns Empty instance
|
10960 | */
|
10961 | public static create(properties?: google.protobuf.IEmpty): google.protobuf.Empty;
|
10962 |
|
10963 | /**
|
10964 | * Encodes the specified Empty message. Does not implicitly { google.protobuf.Empty.verify|verify} messages.
|
10965 | * message Empty message or plain object to encode
|
10966 | * [writer] Writer to encode to
|
10967 | * Writer
|
10968 | */
|
10969 | public static encode(message: google.protobuf.IEmpty, writer?: $protobuf.Writer): $protobuf.Writer;
|
10970 |
|
10971 | /**
|
10972 | * Encodes the specified Empty message, length delimited. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages.
|
10973 | * @param message Empty message or plain object to encode
|
10974 | * @param [writer] Writer to encode to
|
10975 | * @returns Writer
|
10976 | */
|
10977 | public static encodeDelimited(message: google.protobuf.IEmpty, writer?: $protobuf.Writer): $protobuf.Writer;
|
10978 |
|
10979 | /**
|
10980 | * Decodes an Empty message from the specified reader or buffer.
|
10981 | * @param reader Reader or buffer to decode from
|
10982 | * @param [length] Message length if known beforehand
|
10983 | * @returns Empty
|
10984 | * @throws {Error} If the payload is not a reader or valid buffer
|
10985 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
10986 | */
|
10987 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Empty;
|
10988 |
|
10989 | /**
|
10990 | * Decodes an Empty message from the specified reader or buffer, length delimited.
|
10991 | * @param reader Reader or buffer to decode from
|
10992 | * @returns Empty
|
10993 | * @throws {Error} If the payload is not a reader or valid buffer
|
10994 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
10995 | */
|
10996 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Empty;
|
10997 |
|
10998 | /**
|
10999 | * Verifies an Empty message.
|
11000 | * @param message Plain object to verify
|
11001 | * @returns `null` if valid, otherwise the reason why it is not
|
11002 | */
|
11003 | public static verify(message: { [k: string]: any }): (string|null);
|
11004 |
|
11005 | /**
|
11006 | * Creates an Empty message from a plain object. Also converts values to their respective internal types.
|
11007 | * @param object Plain object
|
11008 | * @returns Empty
|
11009 | */
|
11010 | public static fromObject(object: { [k: string]: any }): google.protobuf.Empty;
|
11011 |
|
11012 | /**
|
11013 | * Creates a plain object from an Empty message. Also converts values to other types if specified.
|
11014 | * @param message Empty
|
11015 | * @param [options] Conversion options
|
11016 | * @returns Plain object
|
11017 | */
|
11018 | public static toObject(message: google.protobuf.Empty, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
11019 |
|
11020 | /**
|
11021 | * Converts this Empty to JSON.
|
11022 | * @returns JSON object
|
11023 | */
|
11024 | public toJSON(): { [k: string]: any };
|
11025 | }
|
11026 |
|
11027 | /** Properties of a DoubleValue. */
|
11028 | interface IDoubleValue {
|
11029 |
|
11030 | /** DoubleValue value */
|
11031 | value?: (number|null);
|
11032 | }
|
11033 |
|
11034 | /** Represents a DoubleValue. */
|
11035 | class DoubleValue implements IDoubleValue {
|
11036 |
|
11037 | /**
|
11038 | * Constructs a new DoubleValue.
|
11039 | * @param [properties] Properties to set
|
11040 | */
|
11041 | constructor(properties?: google.protobuf.IDoubleValue);
|
11042 |
|
11043 | /** DoubleValue value. */
|
11044 | public value: number;
|
11045 |
|
11046 | /**
|
11047 | * Creates a new DoubleValue instance using the specified properties.
|
11048 | * @param [properties] Properties to set
|
11049 | * @returns DoubleValue instance
|
11050 | */
|
11051 | public static create(properties?: google.protobuf.IDoubleValue): google.protobuf.DoubleValue;
|
11052 |
|
11053 | /**
|
11054 | * Encodes the specified DoubleValue message. Does not implicitly { google.protobuf.DoubleValue.verify|verify} messages.
|
11055 | * message DoubleValue message or plain object to encode
|
11056 | * [writer] Writer to encode to
|
11057 | * Writer
|
11058 | */
|
11059 | public static encode(message: google.protobuf.IDoubleValue, writer?: $protobuf.Writer): $protobuf.Writer;
|
11060 |
|
11061 | /**
|
11062 | * Encodes the specified DoubleValue message, length delimited. Does not implicitly {@link google.protobuf.DoubleValue.verify|verify} messages.
|
11063 | * @param message DoubleValue message or plain object to encode
|
11064 | * @param [writer] Writer to encode to
|
11065 | * @returns Writer
|
11066 | */
|
11067 | public static encodeDelimited(message: google.protobuf.IDoubleValue, writer?: $protobuf.Writer): $protobuf.Writer;
|
11068 |
|
11069 | /**
|
11070 | * Decodes a DoubleValue message from the specified reader or buffer.
|
11071 | * @param reader Reader or buffer to decode from
|
11072 | * @param [length] Message length if known beforehand
|
11073 | * @returns DoubleValue
|
11074 | * @throws {Error} If the payload is not a reader or valid buffer
|
11075 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
11076 | */
|
11077 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DoubleValue;
|
11078 |
|
11079 | /**
|
11080 | * Decodes a DoubleValue message from the specified reader or buffer, length delimited.
|
11081 | * @param reader Reader or buffer to decode from
|
11082 | * @returns DoubleValue
|
11083 | * @throws {Error} If the payload is not a reader or valid buffer
|
11084 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
11085 | */
|
11086 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DoubleValue;
|
11087 |
|
11088 | /**
|
11089 | * Verifies a DoubleValue message.
|
11090 | * @param message Plain object to verify
|
11091 | * @returns `null` if valid, otherwise the reason why it is not
|
11092 | */
|
11093 | public static verify(message: { [k: string]: any }): (string|null);
|
11094 |
|
11095 | /**
|
11096 | * Creates a DoubleValue message from a plain object. Also converts values to their respective internal types.
|
11097 | * @param object Plain object
|
11098 | * @returns DoubleValue
|
11099 | */
|
11100 | public static fromObject(object: { [k: string]: any }): google.protobuf.DoubleValue;
|
11101 |
|
11102 | /**
|
11103 | * Creates a plain object from a DoubleValue message. Also converts values to other types if specified.
|
11104 | * @param message DoubleValue
|
11105 | * @param [options] Conversion options
|
11106 | * @returns Plain object
|
11107 | */
|
11108 | public static toObject(message: google.protobuf.DoubleValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
11109 |
|
11110 | /**
|
11111 | * Converts this DoubleValue to JSON.
|
11112 | * @returns JSON object
|
11113 | */
|
11114 | public toJSON(): { [k: string]: any };
|
11115 | }
|
11116 |
|
11117 | /** Properties of a FloatValue. */
|
11118 | interface IFloatValue {
|
11119 |
|
11120 | /** FloatValue value */
|
11121 | value?: (number|null);
|
11122 | }
|
11123 |
|
11124 | /** Represents a FloatValue. */
|
11125 | class FloatValue implements IFloatValue {
|
11126 |
|
11127 | /**
|
11128 | * Constructs a new FloatValue.
|
11129 | * @param [properties] Properties to set
|
11130 | */
|
11131 | constructor(properties?: google.protobuf.IFloatValue);
|
11132 |
|
11133 | /** FloatValue value. */
|
11134 | public value: number;
|
11135 |
|
11136 | /**
|
11137 | * Creates a new FloatValue instance using the specified properties.
|
11138 | * @param [properties] Properties to set
|
11139 | * @returns FloatValue instance
|
11140 | */
|
11141 | public static create(properties?: google.protobuf.IFloatValue): google.protobuf.FloatValue;
|
11142 |
|
11143 | /**
|
11144 | * Encodes the specified FloatValue message. Does not implicitly { google.protobuf.FloatValue.verify|verify} messages.
|
11145 | * message FloatValue message or plain object to encode
|
11146 | * [writer] Writer to encode to
|
11147 | * Writer
|
11148 | */
|
11149 | public static encode(message: google.protobuf.IFloatValue, writer?: $protobuf.Writer): $protobuf.Writer;
|
11150 |
|
11151 | /**
|
11152 | * Encodes the specified FloatValue message, length delimited. Does not implicitly {@link google.protobuf.FloatValue.verify|verify} messages.
|
11153 | * @param message FloatValue message or plain object to encode
|
11154 | * @param [writer] Writer to encode to
|
11155 | * @returns Writer
|
11156 | */
|
11157 | public static encodeDelimited(message: google.protobuf.IFloatValue, writer?: $protobuf.Writer): $protobuf.Writer;
|
11158 |
|
11159 | /**
|
11160 | * Decodes a FloatValue message from the specified reader or buffer.
|
11161 | * @param reader Reader or buffer to decode from
|
11162 | * @param [length] Message length if known beforehand
|
11163 | * @returns FloatValue
|
11164 | * @throws {Error} If the payload is not a reader or valid buffer
|
11165 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
11166 | */
|
11167 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FloatValue;
|
11168 |
|
11169 | /**
|
11170 | * Decodes a FloatValue message from the specified reader or buffer, length delimited.
|
11171 | * @param reader Reader or buffer to decode from
|
11172 | * @returns FloatValue
|
11173 | * @throws {Error} If the payload is not a reader or valid buffer
|
11174 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
11175 | */
|
11176 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FloatValue;
|
11177 |
|
11178 | /**
|
11179 | * Verifies a FloatValue message.
|
11180 | * @param message Plain object to verify
|
11181 | * @returns `null` if valid, otherwise the reason why it is not
|
11182 | */
|
11183 | public static verify(message: { [k: string]: any }): (string|null);
|
11184 |
|
11185 | /**
|
11186 | * Creates a FloatValue message from a plain object. Also converts values to their respective internal types.
|
11187 | * @param object Plain object
|
11188 | * @returns FloatValue
|
11189 | */
|
11190 | public static fromObject(object: { [k: string]: any }): google.protobuf.FloatValue;
|
11191 |
|
11192 | /**
|
11193 | * Creates a plain object from a FloatValue message. Also converts values to other types if specified.
|
11194 | * @param message FloatValue
|
11195 | * @param [options] Conversion options
|
11196 | * @returns Plain object
|
11197 | */
|
11198 | public static toObject(message: google.protobuf.FloatValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
11199 |
|
11200 | /**
|
11201 | * Converts this FloatValue to JSON.
|
11202 | * @returns JSON object
|
11203 | */
|
11204 | public toJSON(): { [k: string]: any };
|
11205 | }
|
11206 |
|
11207 | /** Properties of an Int64Value. */
|
11208 | interface IInt64Value {
|
11209 |
|
11210 | /** Int64Value value */
|
11211 | value?: (number|Long|string|null);
|
11212 | }
|
11213 |
|
11214 | /** Represents an Int64Value. */
|
11215 | class Int64Value implements IInt64Value {
|
11216 |
|
11217 | /**
|
11218 | * Constructs a new Int64Value.
|
11219 | * @param [properties] Properties to set
|
11220 | */
|
11221 | constructor(properties?: google.protobuf.IInt64Value);
|
11222 |
|
11223 | /** Int64Value value. */
|
11224 | public value: (number|Long|string);
|
11225 |
|
11226 | /**
|
11227 | * Creates a new Int64Value instance using the specified properties.
|
11228 | * @param [properties] Properties to set
|
11229 | * @returns Int64Value instance
|
11230 | */
|
11231 | public static create(properties?: google.protobuf.IInt64Value): google.protobuf.Int64Value;
|
11232 |
|
11233 | /**
|
11234 | * Encodes the specified Int64Value message. Does not implicitly { google.protobuf.Int64Value.verify|verify} messages.
|
11235 | * message Int64Value message or plain object to encode
|
11236 | * [writer] Writer to encode to
|
11237 | * Writer
|
11238 | */
|
11239 | public static encode(message: google.protobuf.IInt64Value, writer?: $protobuf.Writer): $protobuf.Writer;
|
11240 |
|
11241 | /**
|
11242 | * Encodes the specified Int64Value message, length delimited. Does not implicitly {@link google.protobuf.Int64Value.verify|verify} messages.
|
11243 | * @param message Int64Value message or plain object to encode
|
11244 | * @param [writer] Writer to encode to
|
11245 | * @returns Writer
|
11246 | */
|
11247 | public static encodeDelimited(message: google.protobuf.IInt64Value, writer?: $protobuf.Writer): $protobuf.Writer;
|
11248 |
|
11249 | /**
|
11250 | * Decodes an Int64Value message from the specified reader or buffer.
|
11251 | * @param reader Reader or buffer to decode from
|
11252 | * @param [length] Message length if known beforehand
|
11253 | * @returns Int64Value
|
11254 | * @throws {Error} If the payload is not a reader or valid buffer
|
11255 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
11256 | */
|
11257 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Int64Value;
|
11258 |
|
11259 | /**
|
11260 | * Decodes an Int64Value message from the specified reader or buffer, length delimited.
|
11261 | * @param reader Reader or buffer to decode from
|
11262 | * @returns Int64Value
|
11263 | * @throws {Error} If the payload is not a reader or valid buffer
|
11264 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
11265 | */
|
11266 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Int64Value;
|
11267 |
|
11268 | /**
|
11269 | * Verifies an Int64Value message.
|
11270 | * @param message Plain object to verify
|
11271 | * @returns `null` if valid, otherwise the reason why it is not
|
11272 | */
|
11273 | public static verify(message: { [k: string]: any }): (string|null);
|
11274 |
|
11275 | /**
|
11276 | * Creates an Int64Value message from a plain object. Also converts values to their respective internal types.
|
11277 | * @param object Plain object
|
11278 | * @returns Int64Value
|
11279 | */
|
11280 | public static fromObject(object: { [k: string]: any }): google.protobuf.Int64Value;
|
11281 |
|
11282 | /**
|
11283 | * Creates a plain object from an Int64Value message. Also converts values to other types if specified.
|
11284 | * @param message Int64Value
|
11285 | * @param [options] Conversion options
|
11286 | * @returns Plain object
|
11287 | */
|
11288 | public static toObject(message: google.protobuf.Int64Value, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
11289 |
|
11290 | /**
|
11291 | * Converts this Int64Value to JSON.
|
11292 | * @returns JSON object
|
11293 | */
|
11294 | public toJSON(): { [k: string]: any };
|
11295 | }
|
11296 |
|
11297 | /** Properties of a UInt64Value. */
|
11298 | interface IUInt64Value {
|
11299 |
|
11300 | /** UInt64Value value */
|
11301 | value?: (number|Long|string|null);
|
11302 | }
|
11303 |
|
11304 | /** Represents a UInt64Value. */
|
11305 | class UInt64Value implements IUInt64Value {
|
11306 |
|
11307 | /**
|
11308 | * Constructs a new UInt64Value.
|
11309 | * @param [properties] Properties to set
|
11310 | */
|
11311 | constructor(properties?: google.protobuf.IUInt64Value);
|
11312 |
|
11313 | /** UInt64Value value. */
|
11314 | public value: (number|Long|string);
|
11315 |
|
11316 | /**
|
11317 | * Creates a new UInt64Value instance using the specified properties.
|
11318 | * @param [properties] Properties to set
|
11319 | * @returns UInt64Value instance
|
11320 | */
|
11321 | public static create(properties?: google.protobuf.IUInt64Value): google.protobuf.UInt64Value;
|
11322 |
|
11323 | /**
|
11324 | * Encodes the specified UInt64Value message. Does not implicitly { google.protobuf.UInt64Value.verify|verify} messages.
|
11325 | * message UInt64Value message or plain object to encode
|
11326 | * [writer] Writer to encode to
|
11327 | * Writer
|
11328 | */
|
11329 | public static encode(message: google.protobuf.IUInt64Value, writer?: $protobuf.Writer): $protobuf.Writer;
|
11330 |
|
11331 | /**
|
11332 | * Encodes the specified UInt64Value message, length delimited. Does not implicitly {@link google.protobuf.UInt64Value.verify|verify} messages.
|
11333 | * @param message UInt64Value message or plain object to encode
|
11334 | * @param [writer] Writer to encode to
|
11335 | * @returns Writer
|
11336 | */
|
11337 | public static encodeDelimited(message: google.protobuf.IUInt64Value, writer?: $protobuf.Writer): $protobuf.Writer;
|
11338 |
|
11339 | /**
|
11340 | * Decodes a UInt64Value message from the specified reader or buffer.
|
11341 | * @param reader Reader or buffer to decode from
|
11342 | * @param [length] Message length if known beforehand
|
11343 | * @returns UInt64Value
|
11344 | * @throws {Error} If the payload is not a reader or valid buffer
|
11345 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
11346 | */
|
11347 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UInt64Value;
|
11348 |
|
11349 | /**
|
11350 | * Decodes a UInt64Value message from the specified reader or buffer, length delimited.
|
11351 | * @param reader Reader or buffer to decode from
|
11352 | * @returns UInt64Value
|
11353 | * @throws {Error} If the payload is not a reader or valid buffer
|
11354 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
11355 | */
|
11356 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UInt64Value;
|
11357 |
|
11358 | /**
|
11359 | * Verifies a UInt64Value message.
|
11360 | * @param message Plain object to verify
|
11361 | * @returns `null` if valid, otherwise the reason why it is not
|
11362 | */
|
11363 | public static verify(message: { [k: string]: any }): (string|null);
|
11364 |
|
11365 | /**
|
11366 | * Creates a UInt64Value message from a plain object. Also converts values to their respective internal types.
|
11367 | * @param object Plain object
|
11368 | * @returns UInt64Value
|
11369 | */
|
11370 | public static fromObject(object: { [k: string]: any }): google.protobuf.UInt64Value;
|
11371 |
|
11372 | /**
|
11373 | * Creates a plain object from a UInt64Value message. Also converts values to other types if specified.
|
11374 | * @param message UInt64Value
|
11375 | * @param [options] Conversion options
|
11376 | * @returns Plain object
|
11377 | */
|
11378 | public static toObject(message: google.protobuf.UInt64Value, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
11379 |
|
11380 | /**
|
11381 | * Converts this UInt64Value to JSON.
|
11382 | * @returns JSON object
|
11383 | */
|
11384 | public toJSON(): { [k: string]: any };
|
11385 | }
|
11386 |
|
11387 | /** Properties of an Int32Value. */
|
11388 | interface IInt32Value {
|
11389 |
|
11390 | /** Int32Value value */
|
11391 | value?: (number|null);
|
11392 | }
|
11393 |
|
11394 | /** Represents an Int32Value. */
|
11395 | class Int32Value implements IInt32Value {
|
11396 |
|
11397 | /**
|
11398 | * Constructs a new Int32Value.
|
11399 | * @param [properties] Properties to set
|
11400 | */
|
11401 | constructor(properties?: google.protobuf.IInt32Value);
|
11402 |
|
11403 | /** Int32Value value. */
|
11404 | public value: number;
|
11405 |
|
11406 | /**
|
11407 | * Creates a new Int32Value instance using the specified properties.
|
11408 | * @param [properties] Properties to set
|
11409 | * @returns Int32Value instance
|
11410 | */
|
11411 | public static create(properties?: google.protobuf.IInt32Value): google.protobuf.Int32Value;
|
11412 |
|
11413 | /**
|
11414 | * Encodes the specified Int32Value message. Does not implicitly { google.protobuf.Int32Value.verify|verify} messages.
|
11415 | * message Int32Value message or plain object to encode
|
11416 | * [writer] Writer to encode to
|
11417 | * Writer
|
11418 | */
|
11419 | public static encode(message: google.protobuf.IInt32Value, writer?: $protobuf.Writer): $protobuf.Writer;
|
11420 |
|
11421 | /**
|
11422 | * Encodes the specified Int32Value message, length delimited. Does not implicitly {@link google.protobuf.Int32Value.verify|verify} messages.
|
11423 | * @param message Int32Value message or plain object to encode
|
11424 | * @param [writer] Writer to encode to
|
11425 | * @returns Writer
|
11426 | */
|
11427 | public static encodeDelimited(message: google.protobuf.IInt32Value, writer?: $protobuf.Writer): $protobuf.Writer;
|
11428 |
|
11429 | /**
|
11430 | * Decodes an Int32Value message from the specified reader or buffer.
|
11431 | * @param reader Reader or buffer to decode from
|
11432 | * @param [length] Message length if known beforehand
|
11433 | * @returns Int32Value
|
11434 | * @throws {Error} If the payload is not a reader or valid buffer
|
11435 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
11436 | */
|
11437 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Int32Value;
|
11438 |
|
11439 | /**
|
11440 | * Decodes an Int32Value message from the specified reader or buffer, length delimited.
|
11441 | * @param reader Reader or buffer to decode from
|
11442 | * @returns Int32Value
|
11443 | * @throws {Error} If the payload is not a reader or valid buffer
|
11444 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
11445 | */
|
11446 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Int32Value;
|
11447 |
|
11448 | /**
|
11449 | * Verifies an Int32Value message.
|
11450 | * @param message Plain object to verify
|
11451 | * @returns `null` if valid, otherwise the reason why it is not
|
11452 | */
|
11453 | public static verify(message: { [k: string]: any }): (string|null);
|
11454 |
|
11455 | /**
|
11456 | * Creates an Int32Value message from a plain object. Also converts values to their respective internal types.
|
11457 | * @param object Plain object
|
11458 | * @returns Int32Value
|
11459 | */
|
11460 | public static fromObject(object: { [k: string]: any }): google.protobuf.Int32Value;
|
11461 |
|
11462 | /**
|
11463 | * Creates a plain object from an Int32Value message. Also converts values to other types if specified.
|
11464 | * @param message Int32Value
|
11465 | * @param [options] Conversion options
|
11466 | * @returns Plain object
|
11467 | */
|
11468 | public static toObject(message: google.protobuf.Int32Value, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
11469 |
|
11470 | /**
|
11471 | * Converts this Int32Value to JSON.
|
11472 | * @returns JSON object
|
11473 | */
|
11474 | public toJSON(): { [k: string]: any };
|
11475 | }
|
11476 |
|
11477 | /** Properties of a UInt32Value. */
|
11478 | interface IUInt32Value {
|
11479 |
|
11480 | /** UInt32Value value */
|
11481 | value?: (number|null);
|
11482 | }
|
11483 |
|
11484 | /** Represents a UInt32Value. */
|
11485 | class UInt32Value implements IUInt32Value {
|
11486 |
|
11487 | /**
|
11488 | * Constructs a new UInt32Value.
|
11489 | * @param [properties] Properties to set
|
11490 | */
|
11491 | constructor(properties?: google.protobuf.IUInt32Value);
|
11492 |
|
11493 | /** UInt32Value value. */
|
11494 | public value: number;
|
11495 |
|
11496 | /**
|
11497 | * Creates a new UInt32Value instance using the specified properties.
|
11498 | * @param [properties] Properties to set
|
11499 | * @returns UInt32Value instance
|
11500 | */
|
11501 | public static create(properties?: google.protobuf.IUInt32Value): google.protobuf.UInt32Value;
|
11502 |
|
11503 | /**
|
11504 | * Encodes the specified UInt32Value message. Does not implicitly { google.protobuf.UInt32Value.verify|verify} messages.
|
11505 | * message UInt32Value message or plain object to encode
|
11506 | * [writer] Writer to encode to
|
11507 | * Writer
|
11508 | */
|
11509 | public static encode(message: google.protobuf.IUInt32Value, writer?: $protobuf.Writer): $protobuf.Writer;
|
11510 |
|
11511 | /**
|
11512 | * Encodes the specified UInt32Value message, length delimited. Does not implicitly {@link google.protobuf.UInt32Value.verify|verify} messages.
|
11513 | * @param message UInt32Value message or plain object to encode
|
11514 | * @param [writer] Writer to encode to
|
11515 | * @returns Writer
|
11516 | */
|
11517 | public static encodeDelimited(message: google.protobuf.IUInt32Value, writer?: $protobuf.Writer): $protobuf.Writer;
|
11518 |
|
11519 | /**
|
11520 | * Decodes a UInt32Value message from the specified reader or buffer.
|
11521 | * @param reader Reader or buffer to decode from
|
11522 | * @param [length] Message length if known beforehand
|
11523 | * @returns UInt32Value
|
11524 | * @throws {Error} If the payload is not a reader or valid buffer
|
11525 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
11526 | */
|
11527 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UInt32Value;
|
11528 |
|
11529 | /**
|
11530 | * Decodes a UInt32Value message from the specified reader or buffer, length delimited.
|
11531 | * @param reader Reader or buffer to decode from
|
11532 | * @returns UInt32Value
|
11533 | * @throws {Error} If the payload is not a reader or valid buffer
|
11534 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
11535 | */
|
11536 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UInt32Value;
|
11537 |
|
11538 | /**
|
11539 | * Verifies a UInt32Value message.
|
11540 | * @param message Plain object to verify
|
11541 | * @returns `null` if valid, otherwise the reason why it is not
|
11542 | */
|
11543 | public static verify(message: { [k: string]: any }): (string|null);
|
11544 |
|
11545 | /**
|
11546 | * Creates a UInt32Value message from a plain object. Also converts values to their respective internal types.
|
11547 | * @param object Plain object
|
11548 | * @returns UInt32Value
|
11549 | */
|
11550 | public static fromObject(object: { [k: string]: any }): google.protobuf.UInt32Value;
|
11551 |
|
11552 | /**
|
11553 | * Creates a plain object from a UInt32Value message. Also converts values to other types if specified.
|
11554 | * @param message UInt32Value
|
11555 | * @param [options] Conversion options
|
11556 | * @returns Plain object
|
11557 | */
|
11558 | public static toObject(message: google.protobuf.UInt32Value, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
11559 |
|
11560 | /**
|
11561 | * Converts this UInt32Value to JSON.
|
11562 | * @returns JSON object
|
11563 | */
|
11564 | public toJSON(): { [k: string]: any };
|
11565 | }
|
11566 |
|
11567 | /** Properties of a BoolValue. */
|
11568 | interface IBoolValue {
|
11569 |
|
11570 | /** BoolValue value */
|
11571 | value?: (boolean|null);
|
11572 | }
|
11573 |
|
11574 | /** Represents a BoolValue. */
|
11575 | class BoolValue implements IBoolValue {
|
11576 |
|
11577 | /**
|
11578 | * Constructs a new BoolValue.
|
11579 | * @param [properties] Properties to set
|
11580 | */
|
11581 | constructor(properties?: google.protobuf.IBoolValue);
|
11582 |
|
11583 | /** BoolValue value. */
|
11584 | public value: boolean;
|
11585 |
|
11586 | /**
|
11587 | * Creates a new BoolValue instance using the specified properties.
|
11588 | * @param [properties] Properties to set
|
11589 | * @returns BoolValue instance
|
11590 | */
|
11591 | public static create(properties?: google.protobuf.IBoolValue): google.protobuf.BoolValue;
|
11592 |
|
11593 | /**
|
11594 | * Encodes the specified BoolValue message. Does not implicitly { google.protobuf.BoolValue.verify|verify} messages.
|
11595 | * message BoolValue message or plain object to encode
|
11596 | * [writer] Writer to encode to
|
11597 | * Writer
|
11598 | */
|
11599 | public static encode(message: google.protobuf.IBoolValue, writer?: $protobuf.Writer): $protobuf.Writer;
|
11600 |
|
11601 | /**
|
11602 | * Encodes the specified BoolValue message, length delimited. Does not implicitly {@link google.protobuf.BoolValue.verify|verify} messages.
|
11603 | * @param message BoolValue message or plain object to encode
|
11604 | * @param [writer] Writer to encode to
|
11605 | * @returns Writer
|
11606 | */
|
11607 | public static encodeDelimited(message: google.protobuf.IBoolValue, writer?: $protobuf.Writer): $protobuf.Writer;
|
11608 |
|
11609 | /**
|
11610 | * Decodes a BoolValue message from the specified reader or buffer.
|
11611 | * @param reader Reader or buffer to decode from
|
11612 | * @param [length] Message length if known beforehand
|
11613 | * @returns BoolValue
|
11614 | * @throws {Error} If the payload is not a reader or valid buffer
|
11615 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
11616 | */
|
11617 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.BoolValue;
|
11618 |
|
11619 | /**
|
11620 | * Decodes a BoolValue message from the specified reader or buffer, length delimited.
|
11621 | * @param reader Reader or buffer to decode from
|
11622 | * @returns BoolValue
|
11623 | * @throws {Error} If the payload is not a reader or valid buffer
|
11624 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
11625 | */
|
11626 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.BoolValue;
|
11627 |
|
11628 | /**
|
11629 | * Verifies a BoolValue message.
|
11630 | * @param message Plain object to verify
|
11631 | * @returns `null` if valid, otherwise the reason why it is not
|
11632 | */
|
11633 | public static verify(message: { [k: string]: any }): (string|null);
|
11634 |
|
11635 | /**
|
11636 | * Creates a BoolValue message from a plain object. Also converts values to their respective internal types.
|
11637 | * @param object Plain object
|
11638 | * @returns BoolValue
|
11639 | */
|
11640 | public static fromObject(object: { [k: string]: any }): google.protobuf.BoolValue;
|
11641 |
|
11642 | /**
|
11643 | * Creates a plain object from a BoolValue message. Also converts values to other types if specified.
|
11644 | * @param message BoolValue
|
11645 | * @param [options] Conversion options
|
11646 | * @returns Plain object
|
11647 | */
|
11648 | public static toObject(message: google.protobuf.BoolValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
11649 |
|
11650 | /**
|
11651 | * Converts this BoolValue to JSON.
|
11652 | * @returns JSON object
|
11653 | */
|
11654 | public toJSON(): { [k: string]: any };
|
11655 | }
|
11656 |
|
11657 | /** Properties of a StringValue. */
|
11658 | interface IStringValue {
|
11659 |
|
11660 | /** StringValue value */
|
11661 | value?: (string|null);
|
11662 | }
|
11663 |
|
11664 | /** Represents a StringValue. */
|
11665 | class StringValue implements IStringValue {
|
11666 |
|
11667 | /**
|
11668 | * Constructs a new StringValue.
|
11669 | * @param [properties] Properties to set
|
11670 | */
|
11671 | constructor(properties?: google.protobuf.IStringValue);
|
11672 |
|
11673 | /** StringValue value. */
|
11674 | public value: string;
|
11675 |
|
11676 | /**
|
11677 | * Creates a new StringValue instance using the specified properties.
|
11678 | * @param [properties] Properties to set
|
11679 | * @returns StringValue instance
|
11680 | */
|
11681 | public static create(properties?: google.protobuf.IStringValue): google.protobuf.StringValue;
|
11682 |
|
11683 | /**
|
11684 | * Encodes the specified StringValue message. Does not implicitly { google.protobuf.StringValue.verify|verify} messages.
|
11685 | * message StringValue message or plain object to encode
|
11686 | * [writer] Writer to encode to
|
11687 | * Writer
|
11688 | */
|
11689 | public static encode(message: google.protobuf.IStringValue, writer?: $protobuf.Writer): $protobuf.Writer;
|
11690 |
|
11691 | /**
|
11692 | * Encodes the specified StringValue message, length delimited. Does not implicitly {@link google.protobuf.StringValue.verify|verify} messages.
|
11693 | * @param message StringValue message or plain object to encode
|
11694 | * @param [writer] Writer to encode to
|
11695 | * @returns Writer
|
11696 | */
|
11697 | public static encodeDelimited(message: google.protobuf.IStringValue, writer?: $protobuf.Writer): $protobuf.Writer;
|
11698 |
|
11699 | /**
|
11700 | * Decodes a StringValue message from the specified reader or buffer.
|
11701 | * @param reader Reader or buffer to decode from
|
11702 | * @param [length] Message length if known beforehand
|
11703 | * @returns StringValue
|
11704 | * @throws {Error} If the payload is not a reader or valid buffer
|
11705 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
11706 | */
|
11707 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.StringValue;
|
11708 |
|
11709 | /**
|
11710 | * Decodes a StringValue message from the specified reader or buffer, length delimited.
|
11711 | * @param reader Reader or buffer to decode from
|
11712 | * @returns StringValue
|
11713 | * @throws {Error} If the payload is not a reader or valid buffer
|
11714 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
11715 | */
|
11716 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.StringValue;
|
11717 |
|
11718 | /**
|
11719 | * Verifies a StringValue message.
|
11720 | * @param message Plain object to verify
|
11721 | * @returns `null` if valid, otherwise the reason why it is not
|
11722 | */
|
11723 | public static verify(message: { [k: string]: any }): (string|null);
|
11724 |
|
11725 | /**
|
11726 | * Creates a StringValue message from a plain object. Also converts values to their respective internal types.
|
11727 | * @param object Plain object
|
11728 | * @returns StringValue
|
11729 | */
|
11730 | public static fromObject(object: { [k: string]: any }): google.protobuf.StringValue;
|
11731 |
|
11732 | /**
|
11733 | * Creates a plain object from a StringValue message. Also converts values to other types if specified.
|
11734 | * @param message StringValue
|
11735 | * @param [options] Conversion options
|
11736 | * @returns Plain object
|
11737 | */
|
11738 | public static toObject(message: google.protobuf.StringValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
11739 |
|
11740 | /**
|
11741 | * Converts this StringValue to JSON.
|
11742 | * @returns JSON object
|
11743 | */
|
11744 | public toJSON(): { [k: string]: any };
|
11745 | }
|
11746 |
|
11747 | /** Properties of a BytesValue. */
|
11748 | interface IBytesValue {
|
11749 |
|
11750 | /** BytesValue value */
|
11751 | value?: (Uint8Array|string|null);
|
11752 | }
|
11753 |
|
11754 | /** Represents a BytesValue. */
|
11755 | class BytesValue implements IBytesValue {
|
11756 |
|
11757 | /**
|
11758 | * Constructs a new BytesValue.
|
11759 | * @param [properties] Properties to set
|
11760 | */
|
11761 | constructor(properties?: google.protobuf.IBytesValue);
|
11762 |
|
11763 | /** BytesValue value. */
|
11764 | public value: (Uint8Array|string);
|
11765 |
|
11766 | /**
|
11767 | * Creates a new BytesValue instance using the specified properties.
|
11768 | * @param [properties] Properties to set
|
11769 | * @returns BytesValue instance
|
11770 | */
|
11771 | public static create(properties?: google.protobuf.IBytesValue): google.protobuf.BytesValue;
|
11772 |
|
11773 | /**
|
11774 | * Encodes the specified BytesValue message. Does not implicitly { google.protobuf.BytesValue.verify|verify} messages.
|
11775 | * message BytesValue message or plain object to encode
|
11776 | * [writer] Writer to encode to
|
11777 | * Writer
|
11778 | */
|
11779 | public static encode(message: google.protobuf.IBytesValue, writer?: $protobuf.Writer): $protobuf.Writer;
|
11780 |
|
11781 | /**
|
11782 | * Encodes the specified BytesValue message, length delimited. Does not implicitly {@link google.protobuf.BytesValue.verify|verify} messages.
|
11783 | * @param message BytesValue message or plain object to encode
|
11784 | * @param [writer] Writer to encode to
|
11785 | * @returns Writer
|
11786 | */
|
11787 | public static encodeDelimited(message: google.protobuf.IBytesValue, writer?: $protobuf.Writer): $protobuf.Writer;
|
11788 |
|
11789 | /**
|
11790 | * Decodes a BytesValue message from the specified reader or buffer.
|
11791 | * @param reader Reader or buffer to decode from
|
11792 | * @param [length] Message length if known beforehand
|
11793 | * @returns BytesValue
|
11794 | * @throws {Error} If the payload is not a reader or valid buffer
|
11795 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
11796 | */
|
11797 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.BytesValue;
|
11798 |
|
11799 | /**
|
11800 | * Decodes a BytesValue message from the specified reader or buffer, length delimited.
|
11801 | * @param reader Reader or buffer to decode from
|
11802 | * @returns BytesValue
|
11803 | * @throws {Error} If the payload is not a reader or valid buffer
|
11804 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
11805 | */
|
11806 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.BytesValue;
|
11807 |
|
11808 | /**
|
11809 | * Verifies a BytesValue message.
|
11810 | * @param message Plain object to verify
|
11811 | * @returns `null` if valid, otherwise the reason why it is not
|
11812 | */
|
11813 | public static verify(message: { [k: string]: any }): (string|null);
|
11814 |
|
11815 | /**
|
11816 | * Creates a BytesValue message from a plain object. Also converts values to their respective internal types.
|
11817 | * @param object Plain object
|
11818 | * @returns BytesValue
|
11819 | */
|
11820 | public static fromObject(object: { [k: string]: any }): google.protobuf.BytesValue;
|
11821 |
|
11822 | /**
|
11823 | * Creates a plain object from a BytesValue message. Also converts values to other types if specified.
|
11824 | * @param message BytesValue
|
11825 | * @param [options] Conversion options
|
11826 | * @returns Plain object
|
11827 | */
|
11828 | public static toObject(message: google.protobuf.BytesValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
11829 |
|
11830 | /**
|
11831 | * Converts this BytesValue to JSON.
|
11832 | * @returns JSON object
|
11833 | */
|
11834 | public toJSON(): { [k: string]: any };
|
11835 | }
|
11836 |
|
11837 | /** Properties of a FieldMask. */
|
11838 | interface IFieldMask {
|
11839 |
|
11840 | /** FieldMask paths */
|
11841 | paths?: (string[]|null);
|
11842 | }
|
11843 |
|
11844 | /** Represents a FieldMask. */
|
11845 | class FieldMask implements IFieldMask {
|
11846 |
|
11847 | /**
|
11848 | * Constructs a new FieldMask.
|
11849 | * @param [properties] Properties to set
|
11850 | */
|
11851 | constructor(properties?: google.protobuf.IFieldMask);
|
11852 |
|
11853 | /** FieldMask paths. */
|
11854 | public paths: string[];
|
11855 |
|
11856 | /**
|
11857 | * Creates a new FieldMask instance using the specified properties.
|
11858 | * @param [properties] Properties to set
|
11859 | * @returns FieldMask instance
|
11860 | */
|
11861 | public static create(properties?: google.protobuf.IFieldMask): google.protobuf.FieldMask;
|
11862 |
|
11863 | /**
|
11864 | * Encodes the specified FieldMask message. Does not implicitly { google.protobuf.FieldMask.verify|verify} messages.
|
11865 | * message FieldMask message or plain object to encode
|
11866 | * [writer] Writer to encode to
|
11867 | * Writer
|
11868 | */
|
11869 | public static encode(message: google.protobuf.IFieldMask, writer?: $protobuf.Writer): $protobuf.Writer;
|
11870 |
|
11871 | /**
|
11872 | * Encodes the specified FieldMask message, length delimited. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages.
|
11873 | * @param message FieldMask message or plain object to encode
|
11874 | * @param [writer] Writer to encode to
|
11875 | * @returns Writer
|
11876 | */
|
11877 | public static encodeDelimited(message: google.protobuf.IFieldMask, writer?: $protobuf.Writer): $protobuf.Writer;
|
11878 |
|
11879 | /**
|
11880 | * Decodes a FieldMask message from the specified reader or buffer.
|
11881 | * @param reader Reader or buffer to decode from
|
11882 | * @param [length] Message length if known beforehand
|
11883 | * @returns FieldMask
|
11884 | * @throws {Error} If the payload is not a reader or valid buffer
|
11885 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
11886 | */
|
11887 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldMask;
|
11888 |
|
11889 | /**
|
11890 | * Decodes a FieldMask message from the specified reader or buffer, length delimited.
|
11891 | * @param reader Reader or buffer to decode from
|
11892 | * @returns FieldMask
|
11893 | * @throws {Error} If the payload is not a reader or valid buffer
|
11894 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
11895 | */
|
11896 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldMask;
|
11897 |
|
11898 | /**
|
11899 | * Verifies a FieldMask message.
|
11900 | * @param message Plain object to verify
|
11901 | * @returns `null` if valid, otherwise the reason why it is not
|
11902 | */
|
11903 | public static verify(message: { [k: string]: any }): (string|null);
|
11904 |
|
11905 | /**
|
11906 | * Creates a FieldMask message from a plain object. Also converts values to their respective internal types.
|
11907 | * @param object Plain object
|
11908 | * @returns FieldMask
|
11909 | */
|
11910 | public static fromObject(object: { [k: string]: any }): google.protobuf.FieldMask;
|
11911 |
|
11912 | /**
|
11913 | * Creates a plain object from a FieldMask message. Also converts values to other types if specified.
|
11914 | * @param message FieldMask
|
11915 | * @param [options] Conversion options
|
11916 | * @returns Plain object
|
11917 | */
|
11918 | public static toObject(message: google.protobuf.FieldMask, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
11919 |
|
11920 | /**
|
11921 | * Converts this FieldMask to JSON.
|
11922 | * @returns JSON object
|
11923 | */
|
11924 | public toJSON(): { [k: string]: any };
|
11925 | }
|
11926 | }
|
11927 |
|
11928 | /** Namespace longrunning. */
|
11929 | namespace longrunning {
|
11930 |
|
11931 | /** Represents an Operations */
|
11932 | class Operations extends $protobuf.rpc.Service {
|
11933 |
|
11934 | /**
|
11935 | * Constructs a new Operations service.
|
11936 | * @param rpcImpl RPC implementation
|
11937 | * @param [requestDelimited=false] Whether requests are length-delimited
|
11938 | * @param [responseDelimited=false] Whether responses are length-delimited
|
11939 | */
|
11940 | constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
|
11941 |
|
11942 | /**
|
11943 | * Creates new Operations service using the specified rpc implementation.
|
11944 | * @param rpcImpl RPC implementation
|
11945 | * @param [requestDelimited=false] Whether requests are length-delimited
|
11946 | * @param [responseDelimited=false] Whether responses are length-delimited
|
11947 | * @returns RPC service. Useful where requests and/or responses are streamed.
|
11948 | */
|
11949 | public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Operations;
|
11950 |
|
11951 | /**
|
11952 | * Calls ListOperations.
|
11953 | * @param request ListOperationsRequest message or plain object
|
11954 | * @param callback Node-style callback called with the error, if any, and ListOperationsResponse
|
11955 | */
|
11956 | public listOperations(request: google.longrunning.IListOperationsRequest, callback: google.longrunning.Operations.ListOperationsCallback): void;
|
11957 |
|
11958 | /**
|
11959 | * Calls ListOperations.
|
11960 | * @param request ListOperationsRequest message or plain object
|
11961 | * @returns Promise
|
11962 | */
|
11963 | public listOperations(request: google.longrunning.IListOperationsRequest): Promise<google.longrunning.ListOperationsResponse>;
|
11964 |
|
11965 | /**
|
11966 | * Calls GetOperation.
|
11967 | * @param request GetOperationRequest message or plain object
|
11968 | * @param callback Node-style callback called with the error, if any, and Operation
|
11969 | */
|
11970 | public getOperation(request: google.longrunning.IGetOperationRequest, callback: google.longrunning.Operations.GetOperationCallback): void;
|
11971 |
|
11972 | /**
|
11973 | * Calls GetOperation.
|
11974 | * @param request GetOperationRequest message or plain object
|
11975 | * @returns Promise
|
11976 | */
|
11977 | public getOperation(request: google.longrunning.IGetOperationRequest): Promise<google.longrunning.Operation>;
|
11978 |
|
11979 | /**
|
11980 | * Calls DeleteOperation.
|
11981 | * @param request DeleteOperationRequest message or plain object
|
11982 | * @param callback Node-style callback called with the error, if any, and Empty
|
11983 | */
|
11984 | public deleteOperation(request: google.longrunning.IDeleteOperationRequest, callback: google.longrunning.Operations.DeleteOperationCallback): void;
|
11985 |
|
11986 | /**
|
11987 | * Calls DeleteOperation.
|
11988 | * @param request DeleteOperationRequest message or plain object
|
11989 | * @returns Promise
|
11990 | */
|
11991 | public deleteOperation(request: google.longrunning.IDeleteOperationRequest): Promise<google.protobuf.Empty>;
|
11992 |
|
11993 | /**
|
11994 | * Calls CancelOperation.
|
11995 | * @param request CancelOperationRequest message or plain object
|
11996 | * @param callback Node-style callback called with the error, if any, and Empty
|
11997 | */
|
11998 | public cancelOperation(request: google.longrunning.ICancelOperationRequest, callback: google.longrunning.Operations.CancelOperationCallback): void;
|
11999 |
|
12000 | /**
|
12001 | * Calls CancelOperation.
|
12002 | * @param request CancelOperationRequest message or plain object
|
12003 | * @returns Promise
|
12004 | */
|
12005 | public cancelOperation(request: google.longrunning.ICancelOperationRequest): Promise<google.protobuf.Empty>;
|
12006 |
|
12007 | /**
|
12008 | * Calls WaitOperation.
|
12009 | * @param request WaitOperationRequest message or plain object
|
12010 | * @param callback Node-style callback called with the error, if any, and Operation
|
12011 | */
|
12012 | public waitOperation(request: google.longrunning.IWaitOperationRequest, callback: google.longrunning.Operations.WaitOperationCallback): void;
|
12013 |
|
12014 | /**
|
12015 | * Calls WaitOperation.
|
12016 | * @param request WaitOperationRequest message or plain object
|
12017 | * @returns Promise
|
12018 | */
|
12019 | public waitOperation(request: google.longrunning.IWaitOperationRequest): Promise<google.longrunning.Operation>;
|
12020 | }
|
12021 |
|
12022 | namespace Operations {
|
12023 |
|
12024 | /**
|
12025 | * Callback as used by {@link google.longrunning.Operations#listOperations}.
|
12026 | * @param error Error, if any
|
12027 | * @param [response] ListOperationsResponse
|
12028 | */
|
12029 | type ListOperationsCallback = (error: (Error|null), response?: google.longrunning.ListOperationsResponse) => void;
|
12030 |
|
12031 | /**
|
12032 | * Callback as used by {@link google.longrunning.Operations#getOperation}.
|
12033 | * @param error Error, if any
|
12034 | * @param [response] Operation
|
12035 | */
|
12036 | type GetOperationCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
|
12037 |
|
12038 | /**
|
12039 | * Callback as used by {@link google.longrunning.Operations#deleteOperation}.
|
12040 | * @param error Error, if any
|
12041 | * @param [response] Empty
|
12042 | */
|
12043 | type DeleteOperationCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
|
12044 |
|
12045 | /**
|
12046 | * Callback as used by {@link google.longrunning.Operations#cancelOperation}.
|
12047 | * @param error Error, if any
|
12048 | * @param [response] Empty
|
12049 | */
|
12050 | type CancelOperationCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
|
12051 |
|
12052 | /**
|
12053 | * Callback as used by {@link google.longrunning.Operations#waitOperation}.
|
12054 | * @param error Error, if any
|
12055 | * @param [response] Operation
|
12056 | */
|
12057 | type WaitOperationCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
|
12058 | }
|
12059 |
|
12060 | /** Properties of an Operation. */
|
12061 | interface IOperation {
|
12062 |
|
12063 | /** Operation name */
|
12064 | name?: (string|null);
|
12065 |
|
12066 | /** Operation metadata */
|
12067 | metadata?: (google.protobuf.IAny|null);
|
12068 |
|
12069 | /** Operation done */
|
12070 | done?: (boolean|null);
|
12071 |
|
12072 | /** Operation error */
|
12073 | error?: (google.rpc.IStatus|null);
|
12074 |
|
12075 | /** Operation response */
|
12076 | response?: (google.protobuf.IAny|null);
|
12077 | }
|
12078 |
|
12079 | /** Represents an Operation. */
|
12080 | class Operation implements IOperation {
|
12081 |
|
12082 | /**
|
12083 | * Constructs a new Operation.
|
12084 | * @param [properties] Properties to set
|
12085 | */
|
12086 | constructor(properties?: google.longrunning.IOperation);
|
12087 |
|
12088 | /** Operation name. */
|
12089 | public name: string;
|
12090 |
|
12091 | /** Operation metadata. */
|
12092 | public metadata?: (google.protobuf.IAny|null);
|
12093 |
|
12094 | /** Operation done. */
|
12095 | public done: boolean;
|
12096 |
|
12097 | /** Operation error. */
|
12098 | public error?: (google.rpc.IStatus|null);
|
12099 |
|
12100 | /** Operation response. */
|
12101 | public response?: (google.protobuf.IAny|null);
|
12102 |
|
12103 | /** Operation result. */
|
12104 | public result?: ("error"|"response");
|
12105 |
|
12106 | /**
|
12107 | * Creates a new Operation instance using the specified properties.
|
12108 | * @param [properties] Properties to set
|
12109 | * @returns Operation instance
|
12110 | */
|
12111 | public static create(properties?: google.longrunning.IOperation): google.longrunning.Operation;
|
12112 |
|
12113 | /**
|
12114 | * Encodes the specified Operation message. Does not implicitly { google.longrunning.Operation.verify|verify} messages.
|
12115 | * message Operation message or plain object to encode
|
12116 | * [writer] Writer to encode to
|
12117 | * Writer
|
12118 | */
|
12119 | public static encode(message: google.longrunning.IOperation, writer?: $protobuf.Writer): $protobuf.Writer;
|
12120 |
|
12121 | /**
|
12122 | * Encodes the specified Operation message, length delimited. Does not implicitly {@link google.longrunning.Operation.verify|verify} messages.
|
12123 | * @param message Operation message or plain object to encode
|
12124 | * @param [writer] Writer to encode to
|
12125 | * @returns Writer
|
12126 | */
|
12127 | public static encodeDelimited(message: google.longrunning.IOperation, writer?: $protobuf.Writer): $protobuf.Writer;
|
12128 |
|
12129 | /**
|
12130 | * Decodes an Operation message from the specified reader or buffer.
|
12131 | * @param reader Reader or buffer to decode from
|
12132 | * @param [length] Message length if known beforehand
|
12133 | * @returns Operation
|
12134 | * @throws {Error} If the payload is not a reader or valid buffer
|
12135 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
12136 | */
|
12137 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.Operation;
|
12138 |
|
12139 | /**
|
12140 | * Decodes an Operation message from the specified reader or buffer, length delimited.
|
12141 | * @param reader Reader or buffer to decode from
|
12142 | * @returns Operation
|
12143 | * @throws {Error} If the payload is not a reader or valid buffer
|
12144 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
12145 | */
|
12146 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.Operation;
|
12147 |
|
12148 | /**
|
12149 | * Verifies an Operation message.
|
12150 | * @param message Plain object to verify
|
12151 | * @returns `null` if valid, otherwise the reason why it is not
|
12152 | */
|
12153 | public static verify(message: { [k: string]: any }): (string|null);
|
12154 |
|
12155 | /**
|
12156 | * Creates an Operation message from a plain object. Also converts values to their respective internal types.
|
12157 | * @param object Plain object
|
12158 | * @returns Operation
|
12159 | */
|
12160 | public static fromObject(object: { [k: string]: any }): google.longrunning.Operation;
|
12161 |
|
12162 | /**
|
12163 | * Creates a plain object from an Operation message. Also converts values to other types if specified.
|
12164 | * @param message Operation
|
12165 | * @param [options] Conversion options
|
12166 | * @returns Plain object
|
12167 | */
|
12168 | public static toObject(message: google.longrunning.Operation, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
12169 |
|
12170 | /**
|
12171 | * Converts this Operation to JSON.
|
12172 | * @returns JSON object
|
12173 | */
|
12174 | public toJSON(): { [k: string]: any };
|
12175 | }
|
12176 |
|
12177 | /** Properties of a GetOperationRequest. */
|
12178 | interface IGetOperationRequest {
|
12179 |
|
12180 | /** GetOperationRequest name */
|
12181 | name?: (string|null);
|
12182 | }
|
12183 |
|
12184 | /** Represents a GetOperationRequest. */
|
12185 | class GetOperationRequest implements IGetOperationRequest {
|
12186 |
|
12187 | /**
|
12188 | * Constructs a new GetOperationRequest.
|
12189 | * @param [properties] Properties to set
|
12190 | */
|
12191 | constructor(properties?: google.longrunning.IGetOperationRequest);
|
12192 |
|
12193 | /** GetOperationRequest name. */
|
12194 | public name: string;
|
12195 |
|
12196 | /**
|
12197 | * Creates a new GetOperationRequest instance using the specified properties.
|
12198 | * @param [properties] Properties to set
|
12199 | * @returns GetOperationRequest instance
|
12200 | */
|
12201 | public static create(properties?: google.longrunning.IGetOperationRequest): google.longrunning.GetOperationRequest;
|
12202 |
|
12203 | /**
|
12204 | * Encodes the specified GetOperationRequest message. Does not implicitly { google.longrunning.GetOperationRequest.verify|verify} messages.
|
12205 | * message GetOperationRequest message or plain object to encode
|
12206 | * [writer] Writer to encode to
|
12207 | * Writer
|
12208 | */
|
12209 | public static encode(message: google.longrunning.IGetOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
12210 |
|
12211 | /**
|
12212 | * Encodes the specified GetOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.GetOperationRequest.verify|verify} messages.
|
12213 | * @param message GetOperationRequest message or plain object to encode
|
12214 | * @param [writer] Writer to encode to
|
12215 | * @returns Writer
|
12216 | */
|
12217 | public static encodeDelimited(message: google.longrunning.IGetOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
12218 |
|
12219 | /**
|
12220 | * Decodes a GetOperationRequest message from the specified reader or buffer.
|
12221 | * @param reader Reader or buffer to decode from
|
12222 | * @param [length] Message length if known beforehand
|
12223 | * @returns GetOperationRequest
|
12224 | * @throws {Error} If the payload is not a reader or valid buffer
|
12225 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
12226 | */
|
12227 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.GetOperationRequest;
|
12228 |
|
12229 | /**
|
12230 | * Decodes a GetOperationRequest message from the specified reader or buffer, length delimited.
|
12231 | * @param reader Reader or buffer to decode from
|
12232 | * @returns GetOperationRequest
|
12233 | * @throws {Error} If the payload is not a reader or valid buffer
|
12234 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
12235 | */
|
12236 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.GetOperationRequest;
|
12237 |
|
12238 | /**
|
12239 | * Verifies a GetOperationRequest message.
|
12240 | * @param message Plain object to verify
|
12241 | * @returns `null` if valid, otherwise the reason why it is not
|
12242 | */
|
12243 | public static verify(message: { [k: string]: any }): (string|null);
|
12244 |
|
12245 | /**
|
12246 | * Creates a GetOperationRequest message from a plain object. Also converts values to their respective internal types.
|
12247 | * @param object Plain object
|
12248 | * @returns GetOperationRequest
|
12249 | */
|
12250 | public static fromObject(object: { [k: string]: any }): google.longrunning.GetOperationRequest;
|
12251 |
|
12252 | /**
|
12253 | * Creates a plain object from a GetOperationRequest message. Also converts values to other types if specified.
|
12254 | * @param message GetOperationRequest
|
12255 | * @param [options] Conversion options
|
12256 | * @returns Plain object
|
12257 | */
|
12258 | public static toObject(message: google.longrunning.GetOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
12259 |
|
12260 | /**
|
12261 | * Converts this GetOperationRequest to JSON.
|
12262 | * @returns JSON object
|
12263 | */
|
12264 | public toJSON(): { [k: string]: any };
|
12265 | }
|
12266 |
|
12267 | /** Properties of a ListOperationsRequest. */
|
12268 | interface IListOperationsRequest {
|
12269 |
|
12270 | /** ListOperationsRequest name */
|
12271 | name?: (string|null);
|
12272 |
|
12273 | /** ListOperationsRequest filter */
|
12274 | filter?: (string|null);
|
12275 |
|
12276 | /** ListOperationsRequest pageSize */
|
12277 | pageSize?: (number|null);
|
12278 |
|
12279 | /** ListOperationsRequest pageToken */
|
12280 | pageToken?: (string|null);
|
12281 | }
|
12282 |
|
12283 | /** Represents a ListOperationsRequest. */
|
12284 | class ListOperationsRequest implements IListOperationsRequest {
|
12285 |
|
12286 | /**
|
12287 | * Constructs a new ListOperationsRequest.
|
12288 | * @param [properties] Properties to set
|
12289 | */
|
12290 | constructor(properties?: google.longrunning.IListOperationsRequest);
|
12291 |
|
12292 | /** ListOperationsRequest name. */
|
12293 | public name: string;
|
12294 |
|
12295 | /** ListOperationsRequest filter. */
|
12296 | public filter: string;
|
12297 |
|
12298 | /** ListOperationsRequest pageSize. */
|
12299 | public pageSize: number;
|
12300 |
|
12301 | /** ListOperationsRequest pageToken. */
|
12302 | public pageToken: string;
|
12303 |
|
12304 | /**
|
12305 | * Creates a new ListOperationsRequest instance using the specified properties.
|
12306 | * @param [properties] Properties to set
|
12307 | * @returns ListOperationsRequest instance
|
12308 | */
|
12309 | public static create(properties?: google.longrunning.IListOperationsRequest): google.longrunning.ListOperationsRequest;
|
12310 |
|
12311 | /**
|
12312 | * Encodes the specified ListOperationsRequest message. Does not implicitly { google.longrunning.ListOperationsRequest.verify|verify} messages.
|
12313 | * message ListOperationsRequest message or plain object to encode
|
12314 | * [writer] Writer to encode to
|
12315 | * Writer
|
12316 | */
|
12317 | public static encode(message: google.longrunning.IListOperationsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
12318 |
|
12319 | /**
|
12320 | * Encodes the specified ListOperationsRequest message, length delimited. Does not implicitly {@link google.longrunning.ListOperationsRequest.verify|verify} messages.
|
12321 | * @param message ListOperationsRequest message or plain object to encode
|
12322 | * @param [writer] Writer to encode to
|
12323 | * @returns Writer
|
12324 | */
|
12325 | public static encodeDelimited(message: google.longrunning.IListOperationsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
12326 |
|
12327 | /**
|
12328 | * Decodes a ListOperationsRequest message from the specified reader or buffer.
|
12329 | * @param reader Reader or buffer to decode from
|
12330 | * @param [length] Message length if known beforehand
|
12331 | * @returns ListOperationsRequest
|
12332 | * @throws {Error} If the payload is not a reader or valid buffer
|
12333 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
12334 | */
|
12335 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.ListOperationsRequest;
|
12336 |
|
12337 | /**
|
12338 | * Decodes a ListOperationsRequest message from the specified reader or buffer, length delimited.
|
12339 | * @param reader Reader or buffer to decode from
|
12340 | * @returns ListOperationsRequest
|
12341 | * @throws {Error} If the payload is not a reader or valid buffer
|
12342 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
12343 | */
|
12344 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.ListOperationsRequest;
|
12345 |
|
12346 | /**
|
12347 | * Verifies a ListOperationsRequest message.
|
12348 | * @param message Plain object to verify
|
12349 | * @returns `null` if valid, otherwise the reason why it is not
|
12350 | */
|
12351 | public static verify(message: { [k: string]: any }): (string|null);
|
12352 |
|
12353 | /**
|
12354 | * Creates a ListOperationsRequest message from a plain object. Also converts values to their respective internal types.
|
12355 | * @param object Plain object
|
12356 | * @returns ListOperationsRequest
|
12357 | */
|
12358 | public static fromObject(object: { [k: string]: any }): google.longrunning.ListOperationsRequest;
|
12359 |
|
12360 | /**
|
12361 | * Creates a plain object from a ListOperationsRequest message. Also converts values to other types if specified.
|
12362 | * @param message ListOperationsRequest
|
12363 | * @param [options] Conversion options
|
12364 | * @returns Plain object
|
12365 | */
|
12366 | public static toObject(message: google.longrunning.ListOperationsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
12367 |
|
12368 | /**
|
12369 | * Converts this ListOperationsRequest to JSON.
|
12370 | * @returns JSON object
|
12371 | */
|
12372 | public toJSON(): { [k: string]: any };
|
12373 | }
|
12374 |
|
12375 | /** Properties of a ListOperationsResponse. */
|
12376 | interface IListOperationsResponse {
|
12377 |
|
12378 | /** ListOperationsResponse operations */
|
12379 | operations?: (google.longrunning.IOperation[]|null);
|
12380 |
|
12381 | /** ListOperationsResponse nextPageToken */
|
12382 | nextPageToken?: (string|null);
|
12383 | }
|
12384 |
|
12385 | /** Represents a ListOperationsResponse. */
|
12386 | class ListOperationsResponse implements IListOperationsResponse {
|
12387 |
|
12388 | /**
|
12389 | * Constructs a new ListOperationsResponse.
|
12390 | * @param [properties] Properties to set
|
12391 | */
|
12392 | constructor(properties?: google.longrunning.IListOperationsResponse);
|
12393 |
|
12394 | /** ListOperationsResponse operations. */
|
12395 | public operations: google.longrunning.IOperation[];
|
12396 |
|
12397 | /** ListOperationsResponse nextPageToken. */
|
12398 | public nextPageToken: string;
|
12399 |
|
12400 | /**
|
12401 | * Creates a new ListOperationsResponse instance using the specified properties.
|
12402 | * @param [properties] Properties to set
|
12403 | * @returns ListOperationsResponse instance
|
12404 | */
|
12405 | public static create(properties?: google.longrunning.IListOperationsResponse): google.longrunning.ListOperationsResponse;
|
12406 |
|
12407 | /**
|
12408 | * Encodes the specified ListOperationsResponse message. Does not implicitly { google.longrunning.ListOperationsResponse.verify|verify} messages.
|
12409 | * message ListOperationsResponse message or plain object to encode
|
12410 | * [writer] Writer to encode to
|
12411 | * Writer
|
12412 | */
|
12413 | public static encode(message: google.longrunning.IListOperationsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
12414 |
|
12415 | /**
|
12416 | * Encodes the specified ListOperationsResponse message, length delimited. Does not implicitly {@link google.longrunning.ListOperationsResponse.verify|verify} messages.
|
12417 | * @param message ListOperationsResponse message or plain object to encode
|
12418 | * @param [writer] Writer to encode to
|
12419 | * @returns Writer
|
12420 | */
|
12421 | public static encodeDelimited(message: google.longrunning.IListOperationsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
12422 |
|
12423 | /**
|
12424 | * Decodes a ListOperationsResponse message from the specified reader or buffer.
|
12425 | * @param reader Reader or buffer to decode from
|
12426 | * @param [length] Message length if known beforehand
|
12427 | * @returns ListOperationsResponse
|
12428 | * @throws {Error} If the payload is not a reader or valid buffer
|
12429 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
12430 | */
|
12431 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.ListOperationsResponse;
|
12432 |
|
12433 | /**
|
12434 | * Decodes a ListOperationsResponse message from the specified reader or buffer, length delimited.
|
12435 | * @param reader Reader or buffer to decode from
|
12436 | * @returns ListOperationsResponse
|
12437 | * @throws {Error} If the payload is not a reader or valid buffer
|
12438 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
12439 | */
|
12440 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.ListOperationsResponse;
|
12441 |
|
12442 | /**
|
12443 | * Verifies a ListOperationsResponse message.
|
12444 | * @param message Plain object to verify
|
12445 | * @returns `null` if valid, otherwise the reason why it is not
|
12446 | */
|
12447 | public static verify(message: { [k: string]: any }): (string|null);
|
12448 |
|
12449 | /**
|
12450 | * Creates a ListOperationsResponse message from a plain object. Also converts values to their respective internal types.
|
12451 | * @param object Plain object
|
12452 | * @returns ListOperationsResponse
|
12453 | */
|
12454 | public static fromObject(object: { [k: string]: any }): google.longrunning.ListOperationsResponse;
|
12455 |
|
12456 | /**
|
12457 | * Creates a plain object from a ListOperationsResponse message. Also converts values to other types if specified.
|
12458 | * @param message ListOperationsResponse
|
12459 | * @param [options] Conversion options
|
12460 | * @returns Plain object
|
12461 | */
|
12462 | public static toObject(message: google.longrunning.ListOperationsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
12463 |
|
12464 | /**
|
12465 | * Converts this ListOperationsResponse to JSON.
|
12466 | * @returns JSON object
|
12467 | */
|
12468 | public toJSON(): { [k: string]: any };
|
12469 | }
|
12470 |
|
12471 | /** Properties of a CancelOperationRequest. */
|
12472 | interface ICancelOperationRequest {
|
12473 |
|
12474 | /** CancelOperationRequest name */
|
12475 | name?: (string|null);
|
12476 | }
|
12477 |
|
12478 | /** Represents a CancelOperationRequest. */
|
12479 | class CancelOperationRequest implements ICancelOperationRequest {
|
12480 |
|
12481 | /**
|
12482 | * Constructs a new CancelOperationRequest.
|
12483 | * @param [properties] Properties to set
|
12484 | */
|
12485 | constructor(properties?: google.longrunning.ICancelOperationRequest);
|
12486 |
|
12487 | /** CancelOperationRequest name. */
|
12488 | public name: string;
|
12489 |
|
12490 | /**
|
12491 | * Creates a new CancelOperationRequest instance using the specified properties.
|
12492 | * @param [properties] Properties to set
|
12493 | * @returns CancelOperationRequest instance
|
12494 | */
|
12495 | public static create(properties?: google.longrunning.ICancelOperationRequest): google.longrunning.CancelOperationRequest;
|
12496 |
|
12497 | /**
|
12498 | * Encodes the specified CancelOperationRequest message. Does not implicitly { google.longrunning.CancelOperationRequest.verify|verify} messages.
|
12499 | * message CancelOperationRequest message or plain object to encode
|
12500 | * [writer] Writer to encode to
|
12501 | * Writer
|
12502 | */
|
12503 | public static encode(message: google.longrunning.ICancelOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
12504 |
|
12505 | /**
|
12506 | * Encodes the specified CancelOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.CancelOperationRequest.verify|verify} messages.
|
12507 | * @param message CancelOperationRequest message or plain object to encode
|
12508 | * @param [writer] Writer to encode to
|
12509 | * @returns Writer
|
12510 | */
|
12511 | public static encodeDelimited(message: google.longrunning.ICancelOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
12512 |
|
12513 | /**
|
12514 | * Decodes a CancelOperationRequest message from the specified reader or buffer.
|
12515 | * @param reader Reader or buffer to decode from
|
12516 | * @param [length] Message length if known beforehand
|
12517 | * @returns CancelOperationRequest
|
12518 | * @throws {Error} If the payload is not a reader or valid buffer
|
12519 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
12520 | */
|
12521 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.CancelOperationRequest;
|
12522 |
|
12523 | /**
|
12524 | * Decodes a CancelOperationRequest message from the specified reader or buffer, length delimited.
|
12525 | * @param reader Reader or buffer to decode from
|
12526 | * @returns CancelOperationRequest
|
12527 | * @throws {Error} If the payload is not a reader or valid buffer
|
12528 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
12529 | */
|
12530 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.CancelOperationRequest;
|
12531 |
|
12532 | /**
|
12533 | * Verifies a CancelOperationRequest message.
|
12534 | * @param message Plain object to verify
|
12535 | * @returns `null` if valid, otherwise the reason why it is not
|
12536 | */
|
12537 | public static verify(message: { [k: string]: any }): (string|null);
|
12538 |
|
12539 | /**
|
12540 | * Creates a CancelOperationRequest message from a plain object. Also converts values to their respective internal types.
|
12541 | * @param object Plain object
|
12542 | * @returns CancelOperationRequest
|
12543 | */
|
12544 | public static fromObject(object: { [k: string]: any }): google.longrunning.CancelOperationRequest;
|
12545 |
|
12546 | /**
|
12547 | * Creates a plain object from a CancelOperationRequest message. Also converts values to other types if specified.
|
12548 | * @param message CancelOperationRequest
|
12549 | * @param [options] Conversion options
|
12550 | * @returns Plain object
|
12551 | */
|
12552 | public static toObject(message: google.longrunning.CancelOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
12553 |
|
12554 | /**
|
12555 | * Converts this CancelOperationRequest to JSON.
|
12556 | * @returns JSON object
|
12557 | */
|
12558 | public toJSON(): { [k: string]: any };
|
12559 | }
|
12560 |
|
12561 | /** Properties of a DeleteOperationRequest. */
|
12562 | interface IDeleteOperationRequest {
|
12563 |
|
12564 | /** DeleteOperationRequest name */
|
12565 | name?: (string|null);
|
12566 | }
|
12567 |
|
12568 | /** Represents a DeleteOperationRequest. */
|
12569 | class DeleteOperationRequest implements IDeleteOperationRequest {
|
12570 |
|
12571 | /**
|
12572 | * Constructs a new DeleteOperationRequest.
|
12573 | * @param [properties] Properties to set
|
12574 | */
|
12575 | constructor(properties?: google.longrunning.IDeleteOperationRequest);
|
12576 |
|
12577 | /** DeleteOperationRequest name. */
|
12578 | public name: string;
|
12579 |
|
12580 | /**
|
12581 | * Creates a new DeleteOperationRequest instance using the specified properties.
|
12582 | * @param [properties] Properties to set
|
12583 | * @returns DeleteOperationRequest instance
|
12584 | */
|
12585 | public static create(properties?: google.longrunning.IDeleteOperationRequest): google.longrunning.DeleteOperationRequest;
|
12586 |
|
12587 | /**
|
12588 | * Encodes the specified DeleteOperationRequest message. Does not implicitly { google.longrunning.DeleteOperationRequest.verify|verify} messages.
|
12589 | * message DeleteOperationRequest message or plain object to encode
|
12590 | * [writer] Writer to encode to
|
12591 | * Writer
|
12592 | */
|
12593 | public static encode(message: google.longrunning.IDeleteOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
12594 |
|
12595 | /**
|
12596 | * Encodes the specified DeleteOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.DeleteOperationRequest.verify|verify} messages.
|
12597 | * @param message DeleteOperationRequest message or plain object to encode
|
12598 | * @param [writer] Writer to encode to
|
12599 | * @returns Writer
|
12600 | */
|
12601 | public static encodeDelimited(message: google.longrunning.IDeleteOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
12602 |
|
12603 | /**
|
12604 | * Decodes a DeleteOperationRequest message from the specified reader or buffer.
|
12605 | * @param reader Reader or buffer to decode from
|
12606 | * @param [length] Message length if known beforehand
|
12607 | * @returns DeleteOperationRequest
|
12608 | * @throws {Error} If the payload is not a reader or valid buffer
|
12609 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
12610 | */
|
12611 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.DeleteOperationRequest;
|
12612 |
|
12613 | /**
|
12614 | * Decodes a DeleteOperationRequest message from the specified reader or buffer, length delimited.
|
12615 | * @param reader Reader or buffer to decode from
|
12616 | * @returns DeleteOperationRequest
|
12617 | * @throws {Error} If the payload is not a reader or valid buffer
|
12618 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
12619 | */
|
12620 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.DeleteOperationRequest;
|
12621 |
|
12622 | /**
|
12623 | * Verifies a DeleteOperationRequest message.
|
12624 | * @param message Plain object to verify
|
12625 | * @returns `null` if valid, otherwise the reason why it is not
|
12626 | */
|
12627 | public static verify(message: { [k: string]: any }): (string|null);
|
12628 |
|
12629 | /**
|
12630 | * Creates a DeleteOperationRequest message from a plain object. Also converts values to their respective internal types.
|
12631 | * @param object Plain object
|
12632 | * @returns DeleteOperationRequest
|
12633 | */
|
12634 | public static fromObject(object: { [k: string]: any }): google.longrunning.DeleteOperationRequest;
|
12635 |
|
12636 | /**
|
12637 | * Creates a plain object from a DeleteOperationRequest message. Also converts values to other types if specified.
|
12638 | * @param message DeleteOperationRequest
|
12639 | * @param [options] Conversion options
|
12640 | * @returns Plain object
|
12641 | */
|
12642 | public static toObject(message: google.longrunning.DeleteOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
12643 |
|
12644 | /**
|
12645 | * Converts this DeleteOperationRequest to JSON.
|
12646 | * @returns JSON object
|
12647 | */
|
12648 | public toJSON(): { [k: string]: any };
|
12649 | }
|
12650 |
|
12651 | /** Properties of a WaitOperationRequest. */
|
12652 | interface IWaitOperationRequest {
|
12653 |
|
12654 | /** WaitOperationRequest name */
|
12655 | name?: (string|null);
|
12656 |
|
12657 | /** WaitOperationRequest timeout */
|
12658 | timeout?: (google.protobuf.IDuration|null);
|
12659 | }
|
12660 |
|
12661 | /** Represents a WaitOperationRequest. */
|
12662 | class WaitOperationRequest implements IWaitOperationRequest {
|
12663 |
|
12664 | /**
|
12665 | * Constructs a new WaitOperationRequest.
|
12666 | * @param [properties] Properties to set
|
12667 | */
|
12668 | constructor(properties?: google.longrunning.IWaitOperationRequest);
|
12669 |
|
12670 | /** WaitOperationRequest name. */
|
12671 | public name: string;
|
12672 |
|
12673 | /** WaitOperationRequest timeout. */
|
12674 | public timeout?: (google.protobuf.IDuration|null);
|
12675 |
|
12676 | /**
|
12677 | * Creates a new WaitOperationRequest instance using the specified properties.
|
12678 | * @param [properties] Properties to set
|
12679 | * @returns WaitOperationRequest instance
|
12680 | */
|
12681 | public static create(properties?: google.longrunning.IWaitOperationRequest): google.longrunning.WaitOperationRequest;
|
12682 |
|
12683 | /**
|
12684 | * Encodes the specified WaitOperationRequest message. Does not implicitly { google.longrunning.WaitOperationRequest.verify|verify} messages.
|
12685 | * message WaitOperationRequest message or plain object to encode
|
12686 | * [writer] Writer to encode to
|
12687 | * Writer
|
12688 | */
|
12689 | public static encode(message: google.longrunning.IWaitOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
12690 |
|
12691 | /**
|
12692 | * Encodes the specified WaitOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.WaitOperationRequest.verify|verify} messages.
|
12693 | * @param message WaitOperationRequest message or plain object to encode
|
12694 | * @param [writer] Writer to encode to
|
12695 | * @returns Writer
|
12696 | */
|
12697 | public static encodeDelimited(message: google.longrunning.IWaitOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
12698 |
|
12699 | /**
|
12700 | * Decodes a WaitOperationRequest message from the specified reader or buffer.
|
12701 | * @param reader Reader or buffer to decode from
|
12702 | * @param [length] Message length if known beforehand
|
12703 | * @returns WaitOperationRequest
|
12704 | * @throws {Error} If the payload is not a reader or valid buffer
|
12705 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
12706 | */
|
12707 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.WaitOperationRequest;
|
12708 |
|
12709 | /**
|
12710 | * Decodes a WaitOperationRequest message from the specified reader or buffer, length delimited.
|
12711 | * @param reader Reader or buffer to decode from
|
12712 | * @returns WaitOperationRequest
|
12713 | * @throws {Error} If the payload is not a reader or valid buffer
|
12714 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
12715 | */
|
12716 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.WaitOperationRequest;
|
12717 |
|
12718 | /**
|
12719 | * Verifies a WaitOperationRequest message.
|
12720 | * @param message Plain object to verify
|
12721 | * @returns `null` if valid, otherwise the reason why it is not
|
12722 | */
|
12723 | public static verify(message: { [k: string]: any }): (string|null);
|
12724 |
|
12725 | /**
|
12726 | * Creates a WaitOperationRequest message from a plain object. Also converts values to their respective internal types.
|
12727 | * @param object Plain object
|
12728 | * @returns WaitOperationRequest
|
12729 | */
|
12730 | public static fromObject(object: { [k: string]: any }): google.longrunning.WaitOperationRequest;
|
12731 |
|
12732 | /**
|
12733 | * Creates a plain object from a WaitOperationRequest message. Also converts values to other types if specified.
|
12734 | * @param message WaitOperationRequest
|
12735 | * @param [options] Conversion options
|
12736 | * @returns Plain object
|
12737 | */
|
12738 | public static toObject(message: google.longrunning.WaitOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
12739 |
|
12740 | /**
|
12741 | * Converts this WaitOperationRequest to JSON.
|
12742 | * @returns JSON object
|
12743 | */
|
12744 | public toJSON(): { [k: string]: any };
|
12745 | }
|
12746 |
|
12747 | /** Properties of an OperationInfo. */
|
12748 | interface IOperationInfo {
|
12749 |
|
12750 | /** OperationInfo responseType */
|
12751 | responseType?: (string|null);
|
12752 |
|
12753 | /** OperationInfo metadataType */
|
12754 | metadataType?: (string|null);
|
12755 | }
|
12756 |
|
12757 | /** Represents an OperationInfo. */
|
12758 | class OperationInfo implements IOperationInfo {
|
12759 |
|
12760 | /**
|
12761 | * Constructs a new OperationInfo.
|
12762 | * @param [properties] Properties to set
|
12763 | */
|
12764 | constructor(properties?: google.longrunning.IOperationInfo);
|
12765 |
|
12766 | /** OperationInfo responseType. */
|
12767 | public responseType: string;
|
12768 |
|
12769 | /** OperationInfo metadataType. */
|
12770 | public metadataType: string;
|
12771 |
|
12772 | /**
|
12773 | * Creates a new OperationInfo instance using the specified properties.
|
12774 | * @param [properties] Properties to set
|
12775 | * @returns OperationInfo instance
|
12776 | */
|
12777 | public static create(properties?: google.longrunning.IOperationInfo): google.longrunning.OperationInfo;
|
12778 |
|
12779 | /**
|
12780 | * Encodes the specified OperationInfo message. Does not implicitly { google.longrunning.OperationInfo.verify|verify} messages.
|
12781 | * message OperationInfo message or plain object to encode
|
12782 | * [writer] Writer to encode to
|
12783 | * Writer
|
12784 | */
|
12785 | public static encode(message: google.longrunning.IOperationInfo, writer?: $protobuf.Writer): $protobuf.Writer;
|
12786 |
|
12787 | /**
|
12788 | * Encodes the specified OperationInfo message, length delimited. Does not implicitly {@link google.longrunning.OperationInfo.verify|verify} messages.
|
12789 | * @param message OperationInfo message or plain object to encode
|
12790 | * @param [writer] Writer to encode to
|
12791 | * @returns Writer
|
12792 | */
|
12793 | public static encodeDelimited(message: google.longrunning.IOperationInfo, writer?: $protobuf.Writer): $protobuf.Writer;
|
12794 |
|
12795 | /**
|
12796 | * Decodes an OperationInfo message from the specified reader or buffer.
|
12797 | * @param reader Reader or buffer to decode from
|
12798 | * @param [length] Message length if known beforehand
|
12799 | * @returns OperationInfo
|
12800 | * @throws {Error} If the payload is not a reader or valid buffer
|
12801 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
12802 | */
|
12803 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.OperationInfo;
|
12804 |
|
12805 | /**
|
12806 | * Decodes an OperationInfo message from the specified reader or buffer, length delimited.
|
12807 | * @param reader Reader or buffer to decode from
|
12808 | * @returns OperationInfo
|
12809 | * @throws {Error} If the payload is not a reader or valid buffer
|
12810 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
12811 | */
|
12812 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.OperationInfo;
|
12813 |
|
12814 | /**
|
12815 | * Verifies an OperationInfo message.
|
12816 | * @param message Plain object to verify
|
12817 | * @returns `null` if valid, otherwise the reason why it is not
|
12818 | */
|
12819 | public static verify(message: { [k: string]: any }): (string|null);
|
12820 |
|
12821 | /**
|
12822 | * Creates an OperationInfo message from a plain object. Also converts values to their respective internal types.
|
12823 | * @param object Plain object
|
12824 | * @returns OperationInfo
|
12825 | */
|
12826 | public static fromObject(object: { [k: string]: any }): google.longrunning.OperationInfo;
|
12827 |
|
12828 | /**
|
12829 | * Creates a plain object from an OperationInfo message. Also converts values to other types if specified.
|
12830 | * @param message OperationInfo
|
12831 | * @param [options] Conversion options
|
12832 | * @returns Plain object
|
12833 | */
|
12834 | public static toObject(message: google.longrunning.OperationInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
12835 |
|
12836 | /**
|
12837 | * Converts this OperationInfo to JSON.
|
12838 | * @returns JSON object
|
12839 | */
|
12840 | public toJSON(): { [k: string]: any };
|
12841 | }
|
12842 | }
|
12843 |
|
12844 | /** Namespace rpc. */
|
12845 | namespace rpc {
|
12846 |
|
12847 | /** Properties of a Status. */
|
12848 | interface IStatus {
|
12849 |
|
12850 | /** Status code */
|
12851 | code?: (number|null);
|
12852 |
|
12853 | /** Status message */
|
12854 | message?: (string|null);
|
12855 |
|
12856 | /** Status details */
|
12857 | details?: (google.protobuf.IAny[]|null);
|
12858 | }
|
12859 |
|
12860 | /** Represents a Status. */
|
12861 | class Status implements IStatus {
|
12862 |
|
12863 | /**
|
12864 | * Constructs a new Status.
|
12865 | * @param [properties] Properties to set
|
12866 | */
|
12867 | constructor(properties?: google.rpc.IStatus);
|
12868 |
|
12869 | /** Status code. */
|
12870 | public code: number;
|
12871 |
|
12872 | /** Status message. */
|
12873 | public message: string;
|
12874 |
|
12875 | /** Status details. */
|
12876 | public details: google.protobuf.IAny[];
|
12877 |
|
12878 | /**
|
12879 | * Creates a new Status instance using the specified properties.
|
12880 | * @param [properties] Properties to set
|
12881 | * @returns Status instance
|
12882 | */
|
12883 | public static create(properties?: google.rpc.IStatus): google.rpc.Status;
|
12884 |
|
12885 | /**
|
12886 | * Encodes the specified Status message. Does not implicitly { google.rpc.Status.verify|verify} messages.
|
12887 | * message Status message or plain object to encode
|
12888 | * [writer] Writer to encode to
|
12889 | * Writer
|
12890 | */
|
12891 | public static encode(message: google.rpc.IStatus, writer?: $protobuf.Writer): $protobuf.Writer;
|
12892 |
|
12893 | /**
|
12894 | * Encodes the specified Status message, length delimited. Does not implicitly {@link google.rpc.Status.verify|verify} messages.
|
12895 | * @param message Status message or plain object to encode
|
12896 | * @param [writer] Writer to encode to
|
12897 | * @returns Writer
|
12898 | */
|
12899 | public static encodeDelimited(message: google.rpc.IStatus, writer?: $protobuf.Writer): $protobuf.Writer;
|
12900 |
|
12901 | /**
|
12902 | * Decodes a Status message from the specified reader or buffer.
|
12903 | * @param reader Reader or buffer to decode from
|
12904 | * @param [length] Message length if known beforehand
|
12905 | * @returns Status
|
12906 | * @throws {Error} If the payload is not a reader or valid buffer
|
12907 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
12908 | */
|
12909 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.rpc.Status;
|
12910 |
|
12911 | /**
|
12912 | * Decodes a Status message from the specified reader or buffer, length delimited.
|
12913 | * @param reader Reader or buffer to decode from
|
12914 | * @returns Status
|
12915 | * @throws {Error} If the payload is not a reader or valid buffer
|
12916 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
12917 | */
|
12918 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.rpc.Status;
|
12919 |
|
12920 | /**
|
12921 | * Verifies a Status message.
|
12922 | * @param message Plain object to verify
|
12923 | * @returns `null` if valid, otherwise the reason why it is not
|
12924 | */
|
12925 | public static verify(message: { [k: string]: any }): (string|null);
|
12926 |
|
12927 | /**
|
12928 | * Creates a Status message from a plain object. Also converts values to their respective internal types.
|
12929 | * @param object Plain object
|
12930 | * @returns Status
|
12931 | */
|
12932 | public static fromObject(object: { [k: string]: any }): google.rpc.Status;
|
12933 |
|
12934 | /**
|
12935 | * Creates a plain object from a Status message. Also converts values to other types if specified.
|
12936 | * @param message Status
|
12937 | * @param [options] Conversion options
|
12938 | * @returns Plain object
|
12939 | */
|
12940 | public static toObject(message: google.rpc.Status, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
12941 |
|
12942 | /**
|
12943 | * Converts this Status to JSON.
|
12944 | * @returns JSON object
|
12945 | */
|
12946 | public toJSON(): { [k: string]: any };
|
12947 | }
|
12948 | }
|
12949 | }
|