1 | // Copyright 2021 Google LLC
|
2 | //
|
3 | // Licensed under the Apache License, Version 2.0 (the "License");
|
4 | // you may not use this file except in compliance with the License.
|
5 | // You may obtain a copy of the License at
|
6 | //
|
7 | // http://www.apache.org/licenses/LICENSE-2.0
|
8 | //
|
9 | // Unless required by applicable law or agreed to in writing, software
|
10 | // distributed under the License is distributed on an "AS IS" BASIS,
|
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12 | // See the License for the specific language governing permissions and
|
13 | // limitations under the License.
|
14 |
|
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 |
|
222 | /** Represents a LongRunningRecognizeRequest. */
|
223 | class LongRunningRecognizeRequest implements ILongRunningRecognizeRequest {
|
224 |
|
225 | /**
|
226 | * Constructs a new LongRunningRecognizeRequest.
|
227 | * @param [properties] Properties to set
|
228 | */
|
229 | constructor(properties?: google.cloud.speech.v1.ILongRunningRecognizeRequest);
|
230 |
|
231 | /** LongRunningRecognizeRequest config. */
|
232 | public config?: (google.cloud.speech.v1.IRecognitionConfig|null);
|
233 |
|
234 | /** LongRunningRecognizeRequest audio. */
|
235 | public audio?: (google.cloud.speech.v1.IRecognitionAudio|null);
|
236 |
|
237 | /**
|
238 | * Creates a new LongRunningRecognizeRequest instance using the specified properties.
|
239 | * @param [properties] Properties to set
|
240 | * @returns LongRunningRecognizeRequest instance
|
241 | */
|
242 | public static create(properties?: google.cloud.speech.v1.ILongRunningRecognizeRequest): google.cloud.speech.v1.LongRunningRecognizeRequest;
|
243 |
|
244 | /**
|
245 | * Encodes the specified LongRunningRecognizeRequest message. Does not implicitly { google.cloud.speech.v1.LongRunningRecognizeRequest.verify|verify} messages.
|
246 | * message LongRunningRecognizeRequest message or plain object to encode
|
247 | * [writer] Writer to encode to
|
248 | * Writer
|
249 | */
|
250 | public static encode(message: google.cloud.speech.v1.ILongRunningRecognizeRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
251 |
|
252 | /**
|
253 | * Encodes the specified LongRunningRecognizeRequest message, length delimited. Does not implicitly {@link google.cloud.speech.v1.LongRunningRecognizeRequest.verify|verify} messages.
|
254 | * @param message LongRunningRecognizeRequest message or plain object to encode
|
255 | * @param [writer] Writer to encode to
|
256 | * @returns Writer
|
257 | */
|
258 | public static encodeDelimited(message: google.cloud.speech.v1.ILongRunningRecognizeRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
259 |
|
260 | /**
|
261 | * Decodes a LongRunningRecognizeRequest message from the specified reader or buffer.
|
262 | * @param reader Reader or buffer to decode from
|
263 | * @param [length] Message length if known beforehand
|
264 | * @returns LongRunningRecognizeRequest
|
265 | * @throws {Error} If the payload is not a reader or valid buffer
|
266 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
267 | */
|
268 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1.LongRunningRecognizeRequest;
|
269 |
|
270 | /**
|
271 | * Decodes a LongRunningRecognizeRequest message from the specified reader or buffer, length delimited.
|
272 | * @param reader Reader or buffer to decode from
|
273 | * @returns LongRunningRecognizeRequest
|
274 | * @throws {Error} If the payload is not a reader or valid buffer
|
275 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
276 | */
|
277 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1.LongRunningRecognizeRequest;
|
278 |
|
279 | /**
|
280 | * Verifies a LongRunningRecognizeRequest message.
|
281 | * @param message Plain object to verify
|
282 | * @returns `null` if valid, otherwise the reason why it is not
|
283 | */
|
284 | public static verify(message: { [k: string]: any }): (string|null);
|
285 |
|
286 | /**
|
287 | * Creates a LongRunningRecognizeRequest message from a plain object. Also converts values to their respective internal types.
|
288 | * @param object Plain object
|
289 | * @returns LongRunningRecognizeRequest
|
290 | */
|
291 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1.LongRunningRecognizeRequest;
|
292 |
|
293 | /**
|
294 | * Creates a plain object from a LongRunningRecognizeRequest message. Also converts values to other types if specified.
|
295 | * @param message LongRunningRecognizeRequest
|
296 | * @param [options] Conversion options
|
297 | * @returns Plain object
|
298 | */
|
299 | public static toObject(message: google.cloud.speech.v1.LongRunningRecognizeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
300 |
|
301 | /**
|
302 | * Converts this LongRunningRecognizeRequest to JSON.
|
303 | * @returns JSON object
|
304 | */
|
305 | public toJSON(): { [k: string]: any };
|
306 | }
|
307 |
|
308 | /** Properties of a StreamingRecognizeRequest. */
|
309 | interface IStreamingRecognizeRequest {
|
310 |
|
311 | /** StreamingRecognizeRequest streamingConfig */
|
312 | streamingConfig?: (google.cloud.speech.v1.IStreamingRecognitionConfig|null);
|
313 |
|
314 | /** StreamingRecognizeRequest audioContent */
|
315 | audioContent?: (Uint8Array|string|null);
|
316 | }
|
317 |
|
318 | /** Represents a StreamingRecognizeRequest. */
|
319 | class StreamingRecognizeRequest implements IStreamingRecognizeRequest {
|
320 |
|
321 | /**
|
322 | * Constructs a new StreamingRecognizeRequest.
|
323 | * @param [properties] Properties to set
|
324 | */
|
325 | constructor(properties?: google.cloud.speech.v1.IStreamingRecognizeRequest);
|
326 |
|
327 | /** StreamingRecognizeRequest streamingConfig. */
|
328 | public streamingConfig?: (google.cloud.speech.v1.IStreamingRecognitionConfig|null);
|
329 |
|
330 | /** StreamingRecognizeRequest audioContent. */
|
331 | public audioContent?: (Uint8Array|string|null);
|
332 |
|
333 | /** StreamingRecognizeRequest streamingRequest. */
|
334 | public streamingRequest?: ("streamingConfig"|"audioContent");
|
335 |
|
336 | /**
|
337 | * Creates a new StreamingRecognizeRequest instance using the specified properties.
|
338 | * @param [properties] Properties to set
|
339 | * @returns StreamingRecognizeRequest instance
|
340 | */
|
341 | public static create(properties?: google.cloud.speech.v1.IStreamingRecognizeRequest): google.cloud.speech.v1.StreamingRecognizeRequest;
|
342 |
|
343 | /**
|
344 | * Encodes the specified StreamingRecognizeRequest message. Does not implicitly { google.cloud.speech.v1.StreamingRecognizeRequest.verify|verify} messages.
|
345 | * message StreamingRecognizeRequest message or plain object to encode
|
346 | * [writer] Writer to encode to
|
347 | * Writer
|
348 | */
|
349 | public static encode(message: google.cloud.speech.v1.IStreamingRecognizeRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
350 |
|
351 | /**
|
352 | * Encodes the specified StreamingRecognizeRequest message, length delimited. Does not implicitly {@link google.cloud.speech.v1.StreamingRecognizeRequest.verify|verify} messages.
|
353 | * @param message StreamingRecognizeRequest message or plain object to encode
|
354 | * @param [writer] Writer to encode to
|
355 | * @returns Writer
|
356 | */
|
357 | public static encodeDelimited(message: google.cloud.speech.v1.IStreamingRecognizeRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
358 |
|
359 | /**
|
360 | * Decodes a StreamingRecognizeRequest message from the specified reader or buffer.
|
361 | * @param reader Reader or buffer to decode from
|
362 | * @param [length] Message length if known beforehand
|
363 | * @returns StreamingRecognizeRequest
|
364 | * @throws {Error} If the payload is not a reader or valid buffer
|
365 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
366 | */
|
367 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1.StreamingRecognizeRequest;
|
368 |
|
369 | /**
|
370 | * Decodes a StreamingRecognizeRequest message from the specified reader or buffer, length delimited.
|
371 | * @param reader Reader or buffer to decode from
|
372 | * @returns StreamingRecognizeRequest
|
373 | * @throws {Error} If the payload is not a reader or valid buffer
|
374 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
375 | */
|
376 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1.StreamingRecognizeRequest;
|
377 |
|
378 | /**
|
379 | * Verifies a StreamingRecognizeRequest message.
|
380 | * @param message Plain object to verify
|
381 | * @returns `null` if valid, otherwise the reason why it is not
|
382 | */
|
383 | public static verify(message: { [k: string]: any }): (string|null);
|
384 |
|
385 | /**
|
386 | * Creates a StreamingRecognizeRequest message from a plain object. Also converts values to their respective internal types.
|
387 | * @param object Plain object
|
388 | * @returns StreamingRecognizeRequest
|
389 | */
|
390 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1.StreamingRecognizeRequest;
|
391 |
|
392 | /**
|
393 | * Creates a plain object from a StreamingRecognizeRequest message. Also converts values to other types if specified.
|
394 | * @param message StreamingRecognizeRequest
|
395 | * @param [options] Conversion options
|
396 | * @returns Plain object
|
397 | */
|
398 | public static toObject(message: google.cloud.speech.v1.StreamingRecognizeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
399 |
|
400 | /**
|
401 | * Converts this StreamingRecognizeRequest to JSON.
|
402 | * @returns JSON object
|
403 | */
|
404 | public toJSON(): { [k: string]: any };
|
405 | }
|
406 |
|
407 | /** Properties of a StreamingRecognitionConfig. */
|
408 | interface IStreamingRecognitionConfig {
|
409 |
|
410 | /** StreamingRecognitionConfig config */
|
411 | config?: (google.cloud.speech.v1.IRecognitionConfig|null);
|
412 |
|
413 | /** StreamingRecognitionConfig singleUtterance */
|
414 | singleUtterance?: (boolean|null);
|
415 |
|
416 | /** StreamingRecognitionConfig interimResults */
|
417 | interimResults?: (boolean|null);
|
418 | }
|
419 |
|
420 | /** Represents a StreamingRecognitionConfig. */
|
421 | class StreamingRecognitionConfig implements IStreamingRecognitionConfig {
|
422 |
|
423 | /**
|
424 | * Constructs a new StreamingRecognitionConfig.
|
425 | * @param [properties] Properties to set
|
426 | */
|
427 | constructor(properties?: google.cloud.speech.v1.IStreamingRecognitionConfig);
|
428 |
|
429 | /** StreamingRecognitionConfig config. */
|
430 | public config?: (google.cloud.speech.v1.IRecognitionConfig|null);
|
431 |
|
432 | /** StreamingRecognitionConfig singleUtterance. */
|
433 | public singleUtterance: boolean;
|
434 |
|
435 | /** StreamingRecognitionConfig interimResults. */
|
436 | public interimResults: boolean;
|
437 |
|
438 | /**
|
439 | * Creates a new StreamingRecognitionConfig instance using the specified properties.
|
440 | * @param [properties] Properties to set
|
441 | * @returns StreamingRecognitionConfig instance
|
442 | */
|
443 | public static create(properties?: google.cloud.speech.v1.IStreamingRecognitionConfig): google.cloud.speech.v1.StreamingRecognitionConfig;
|
444 |
|
445 | /**
|
446 | * Encodes the specified StreamingRecognitionConfig message. Does not implicitly { google.cloud.speech.v1.StreamingRecognitionConfig.verify|verify} messages.
|
447 | * message StreamingRecognitionConfig message or plain object to encode
|
448 | * [writer] Writer to encode to
|
449 | * Writer
|
450 | */
|
451 | public static encode(message: google.cloud.speech.v1.IStreamingRecognitionConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
452 |
|
453 | /**
|
454 | * Encodes the specified StreamingRecognitionConfig message, length delimited. Does not implicitly {@link google.cloud.speech.v1.StreamingRecognitionConfig.verify|verify} messages.
|
455 | * @param message StreamingRecognitionConfig message or plain object to encode
|
456 | * @param [writer] Writer to encode to
|
457 | * @returns Writer
|
458 | */
|
459 | public static encodeDelimited(message: google.cloud.speech.v1.IStreamingRecognitionConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
460 |
|
461 | /**
|
462 | * Decodes a StreamingRecognitionConfig message from the specified reader or buffer.
|
463 | * @param reader Reader or buffer to decode from
|
464 | * @param [length] Message length if known beforehand
|
465 | * @returns StreamingRecognitionConfig
|
466 | * @throws {Error} If the payload is not a reader or valid buffer
|
467 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
468 | */
|
469 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1.StreamingRecognitionConfig;
|
470 |
|
471 | /**
|
472 | * Decodes a StreamingRecognitionConfig message from the specified reader or buffer, length delimited.
|
473 | * @param reader Reader or buffer to decode from
|
474 | * @returns StreamingRecognitionConfig
|
475 | * @throws {Error} If the payload is not a reader or valid buffer
|
476 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
477 | */
|
478 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1.StreamingRecognitionConfig;
|
479 |
|
480 | /**
|
481 | * Verifies a StreamingRecognitionConfig message.
|
482 | * @param message Plain object to verify
|
483 | * @returns `null` if valid, otherwise the reason why it is not
|
484 | */
|
485 | public static verify(message: { [k: string]: any }): (string|null);
|
486 |
|
487 | /**
|
488 | * Creates a StreamingRecognitionConfig message from a plain object. Also converts values to their respective internal types.
|
489 | * @param object Plain object
|
490 | * @returns StreamingRecognitionConfig
|
491 | */
|
492 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1.StreamingRecognitionConfig;
|
493 |
|
494 | /**
|
495 | * Creates a plain object from a StreamingRecognitionConfig message. Also converts values to other types if specified.
|
496 | * @param message StreamingRecognitionConfig
|
497 | * @param [options] Conversion options
|
498 | * @returns Plain object
|
499 | */
|
500 | public static toObject(message: google.cloud.speech.v1.StreamingRecognitionConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
501 |
|
502 | /**
|
503 | * Converts this StreamingRecognitionConfig to JSON.
|
504 | * @returns JSON object
|
505 | */
|
506 | public toJSON(): { [k: string]: any };
|
507 | }
|
508 |
|
509 | /** Properties of a RecognitionConfig. */
|
510 | interface IRecognitionConfig {
|
511 |
|
512 | /** RecognitionConfig encoding */
|
513 | encoding?: (google.cloud.speech.v1.RecognitionConfig.AudioEncoding|keyof typeof google.cloud.speech.v1.RecognitionConfig.AudioEncoding|null);
|
514 |
|
515 | /** RecognitionConfig sampleRateHertz */
|
516 | sampleRateHertz?: (number|null);
|
517 |
|
518 | /** RecognitionConfig audioChannelCount */
|
519 | audioChannelCount?: (number|null);
|
520 |
|
521 | /** RecognitionConfig enableSeparateRecognitionPerChannel */
|
522 | enableSeparateRecognitionPerChannel?: (boolean|null);
|
523 |
|
524 | /** RecognitionConfig languageCode */
|
525 | languageCode?: (string|null);
|
526 |
|
527 | /** RecognitionConfig maxAlternatives */
|
528 | maxAlternatives?: (number|null);
|
529 |
|
530 | /** RecognitionConfig profanityFilter */
|
531 | profanityFilter?: (boolean|null);
|
532 |
|
533 | /** RecognitionConfig speechContexts */
|
534 | speechContexts?: (google.cloud.speech.v1.ISpeechContext[]|null);
|
535 |
|
536 | /** RecognitionConfig enableWordTimeOffsets */
|
537 | enableWordTimeOffsets?: (boolean|null);
|
538 |
|
539 | /** RecognitionConfig enableAutomaticPunctuation */
|
540 | enableAutomaticPunctuation?: (boolean|null);
|
541 |
|
542 | /** RecognitionConfig diarizationConfig */
|
543 | diarizationConfig?: (google.cloud.speech.v1.ISpeakerDiarizationConfig|null);
|
544 |
|
545 | /** RecognitionConfig metadata */
|
546 | metadata?: (google.cloud.speech.v1.IRecognitionMetadata|null);
|
547 |
|
548 | /** RecognitionConfig model */
|
549 | model?: (string|null);
|
550 |
|
551 | /** RecognitionConfig useEnhanced */
|
552 | useEnhanced?: (boolean|null);
|
553 | }
|
554 |
|
555 | /** Represents a RecognitionConfig. */
|
556 | class RecognitionConfig implements IRecognitionConfig {
|
557 |
|
558 | /**
|
559 | * Constructs a new RecognitionConfig.
|
560 | * @param [properties] Properties to set
|
561 | */
|
562 | constructor(properties?: google.cloud.speech.v1.IRecognitionConfig);
|
563 |
|
564 | /** RecognitionConfig encoding. */
|
565 | public encoding: (google.cloud.speech.v1.RecognitionConfig.AudioEncoding|keyof typeof google.cloud.speech.v1.RecognitionConfig.AudioEncoding);
|
566 |
|
567 | /** RecognitionConfig sampleRateHertz. */
|
568 | public sampleRateHertz: number;
|
569 |
|
570 | /** RecognitionConfig audioChannelCount. */
|
571 | public audioChannelCount: number;
|
572 |
|
573 | /** RecognitionConfig enableSeparateRecognitionPerChannel. */
|
574 | public enableSeparateRecognitionPerChannel: boolean;
|
575 |
|
576 | /** RecognitionConfig languageCode. */
|
577 | public languageCode: string;
|
578 |
|
579 | /** RecognitionConfig maxAlternatives. */
|
580 | public maxAlternatives: number;
|
581 |
|
582 | /** RecognitionConfig profanityFilter. */
|
583 | public profanityFilter: boolean;
|
584 |
|
585 | /** RecognitionConfig speechContexts. */
|
586 | public speechContexts: google.cloud.speech.v1.ISpeechContext[];
|
587 |
|
588 | /** RecognitionConfig enableWordTimeOffsets. */
|
589 | public enableWordTimeOffsets: boolean;
|
590 |
|
591 | /** RecognitionConfig enableAutomaticPunctuation. */
|
592 | public enableAutomaticPunctuation: boolean;
|
593 |
|
594 | /** RecognitionConfig diarizationConfig. */
|
595 | public diarizationConfig?: (google.cloud.speech.v1.ISpeakerDiarizationConfig|null);
|
596 |
|
597 | /** RecognitionConfig metadata. */
|
598 | public metadata?: (google.cloud.speech.v1.IRecognitionMetadata|null);
|
599 |
|
600 | /** RecognitionConfig model. */
|
601 | public model: string;
|
602 |
|
603 | /** RecognitionConfig useEnhanced. */
|
604 | public useEnhanced: boolean;
|
605 |
|
606 | /**
|
607 | * Creates a new RecognitionConfig instance using the specified properties.
|
608 | * @param [properties] Properties to set
|
609 | * @returns RecognitionConfig instance
|
610 | */
|
611 | public static create(properties?: google.cloud.speech.v1.IRecognitionConfig): google.cloud.speech.v1.RecognitionConfig;
|
612 |
|
613 | /**
|
614 | * Encodes the specified RecognitionConfig message. Does not implicitly { google.cloud.speech.v1.RecognitionConfig.verify|verify} messages.
|
615 | * message RecognitionConfig message or plain object to encode
|
616 | * [writer] Writer to encode to
|
617 | * Writer
|
618 | */
|
619 | public static encode(message: google.cloud.speech.v1.IRecognitionConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
620 |
|
621 | /**
|
622 | * Encodes the specified RecognitionConfig message, length delimited. Does not implicitly {@link google.cloud.speech.v1.RecognitionConfig.verify|verify} messages.
|
623 | * @param message RecognitionConfig message or plain object to encode
|
624 | * @param [writer] Writer to encode to
|
625 | * @returns Writer
|
626 | */
|
627 | public static encodeDelimited(message: google.cloud.speech.v1.IRecognitionConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
628 |
|
629 | /**
|
630 | * Decodes a RecognitionConfig message from the specified reader or buffer.
|
631 | * @param reader Reader or buffer to decode from
|
632 | * @param [length] Message length if known beforehand
|
633 | * @returns RecognitionConfig
|
634 | * @throws {Error} If the payload is not a reader or valid buffer
|
635 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
636 | */
|
637 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1.RecognitionConfig;
|
638 |
|
639 | /**
|
640 | * Decodes a RecognitionConfig message from the specified reader or buffer, length delimited.
|
641 | * @param reader Reader or buffer to decode from
|
642 | * @returns RecognitionConfig
|
643 | * @throws {Error} If the payload is not a reader or valid buffer
|
644 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
645 | */
|
646 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1.RecognitionConfig;
|
647 |
|
648 | /**
|
649 | * Verifies a RecognitionConfig message.
|
650 | * @param message Plain object to verify
|
651 | * @returns `null` if valid, otherwise the reason why it is not
|
652 | */
|
653 | public static verify(message: { [k: string]: any }): (string|null);
|
654 |
|
655 | /**
|
656 | * Creates a RecognitionConfig message from a plain object. Also converts values to their respective internal types.
|
657 | * @param object Plain object
|
658 | * @returns RecognitionConfig
|
659 | */
|
660 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1.RecognitionConfig;
|
661 |
|
662 | /**
|
663 | * Creates a plain object from a RecognitionConfig message. Also converts values to other types if specified.
|
664 | * @param message RecognitionConfig
|
665 | * @param [options] Conversion options
|
666 | * @returns Plain object
|
667 | */
|
668 | public static toObject(message: google.cloud.speech.v1.RecognitionConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
669 |
|
670 | /**
|
671 | * Converts this RecognitionConfig to JSON.
|
672 | * @returns JSON object
|
673 | */
|
674 | public toJSON(): { [k: string]: any };
|
675 | }
|
676 |
|
677 | namespace RecognitionConfig {
|
678 |
|
679 | /** AudioEncoding enum. */
|
680 | enum AudioEncoding {
|
681 | ENCODING_UNSPECIFIED = 0,
|
682 | LINEAR16 = 1,
|
683 | FLAC = 2,
|
684 | MULAW = 3,
|
685 | AMR = 4,
|
686 | AMR_WB = 5,
|
687 | OGG_OPUS = 6,
|
688 | SPEEX_WITH_HEADER_BYTE = 7
|
689 | }
|
690 | }
|
691 |
|
692 | /** Properties of a SpeakerDiarizationConfig. */
|
693 | interface ISpeakerDiarizationConfig {
|
694 |
|
695 | /** SpeakerDiarizationConfig enableSpeakerDiarization */
|
696 | enableSpeakerDiarization?: (boolean|null);
|
697 |
|
698 | /** SpeakerDiarizationConfig minSpeakerCount */
|
699 | minSpeakerCount?: (number|null);
|
700 |
|
701 | /** SpeakerDiarizationConfig maxSpeakerCount */
|
702 | maxSpeakerCount?: (number|null);
|
703 |
|
704 | /** SpeakerDiarizationConfig speakerTag */
|
705 | speakerTag?: (number|null);
|
706 | }
|
707 |
|
708 | /** Represents a SpeakerDiarizationConfig. */
|
709 | class SpeakerDiarizationConfig implements ISpeakerDiarizationConfig {
|
710 |
|
711 | /**
|
712 | * Constructs a new SpeakerDiarizationConfig.
|
713 | * @param [properties] Properties to set
|
714 | */
|
715 | constructor(properties?: google.cloud.speech.v1.ISpeakerDiarizationConfig);
|
716 |
|
717 | /** SpeakerDiarizationConfig enableSpeakerDiarization. */
|
718 | public enableSpeakerDiarization: boolean;
|
719 |
|
720 | /** SpeakerDiarizationConfig minSpeakerCount. */
|
721 | public minSpeakerCount: number;
|
722 |
|
723 | /** SpeakerDiarizationConfig maxSpeakerCount. */
|
724 | public maxSpeakerCount: number;
|
725 |
|
726 | /** SpeakerDiarizationConfig speakerTag. */
|
727 | public speakerTag: number;
|
728 |
|
729 | /**
|
730 | * Creates a new SpeakerDiarizationConfig instance using the specified properties.
|
731 | * @param [properties] Properties to set
|
732 | * @returns SpeakerDiarizationConfig instance
|
733 | */
|
734 | public static create(properties?: google.cloud.speech.v1.ISpeakerDiarizationConfig): google.cloud.speech.v1.SpeakerDiarizationConfig;
|
735 |
|
736 | /**
|
737 | * Encodes the specified SpeakerDiarizationConfig message. Does not implicitly { google.cloud.speech.v1.SpeakerDiarizationConfig.verify|verify} messages.
|
738 | * message SpeakerDiarizationConfig message or plain object to encode
|
739 | * [writer] Writer to encode to
|
740 | * Writer
|
741 | */
|
742 | public static encode(message: google.cloud.speech.v1.ISpeakerDiarizationConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
743 |
|
744 | /**
|
745 | * Encodes the specified SpeakerDiarizationConfig message, length delimited. Does not implicitly {@link google.cloud.speech.v1.SpeakerDiarizationConfig.verify|verify} messages.
|
746 | * @param message SpeakerDiarizationConfig message or plain object to encode
|
747 | * @param [writer] Writer to encode to
|
748 | * @returns Writer
|
749 | */
|
750 | public static encodeDelimited(message: google.cloud.speech.v1.ISpeakerDiarizationConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
751 |
|
752 | /**
|
753 | * Decodes a SpeakerDiarizationConfig message from the specified reader or buffer.
|
754 | * @param reader Reader or buffer to decode from
|
755 | * @param [length] Message length if known beforehand
|
756 | * @returns SpeakerDiarizationConfig
|
757 | * @throws {Error} If the payload is not a reader or valid buffer
|
758 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
759 | */
|
760 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1.SpeakerDiarizationConfig;
|
761 |
|
762 | /**
|
763 | * Decodes a SpeakerDiarizationConfig message from the specified reader or buffer, length delimited.
|
764 | * @param reader Reader or buffer to decode from
|
765 | * @returns SpeakerDiarizationConfig
|
766 | * @throws {Error} If the payload is not a reader or valid buffer
|
767 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
768 | */
|
769 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1.SpeakerDiarizationConfig;
|
770 |
|
771 | /**
|
772 | * Verifies a SpeakerDiarizationConfig message.
|
773 | * @param message Plain object to verify
|
774 | * @returns `null` if valid, otherwise the reason why it is not
|
775 | */
|
776 | public static verify(message: { [k: string]: any }): (string|null);
|
777 |
|
778 | /**
|
779 | * Creates a SpeakerDiarizationConfig message from a plain object. Also converts values to their respective internal types.
|
780 | * @param object Plain object
|
781 | * @returns SpeakerDiarizationConfig
|
782 | */
|
783 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1.SpeakerDiarizationConfig;
|
784 |
|
785 | /**
|
786 | * Creates a plain object from a SpeakerDiarizationConfig message. Also converts values to other types if specified.
|
787 | * @param message SpeakerDiarizationConfig
|
788 | * @param [options] Conversion options
|
789 | * @returns Plain object
|
790 | */
|
791 | public static toObject(message: google.cloud.speech.v1.SpeakerDiarizationConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
792 |
|
793 | /**
|
794 | * Converts this SpeakerDiarizationConfig to JSON.
|
795 | * @returns JSON object
|
796 | */
|
797 | public toJSON(): { [k: string]: any };
|
798 | }
|
799 |
|
800 | /** Properties of a RecognitionMetadata. */
|
801 | interface IRecognitionMetadata {
|
802 |
|
803 | /** RecognitionMetadata interactionType */
|
804 | interactionType?: (google.cloud.speech.v1.RecognitionMetadata.InteractionType|keyof typeof google.cloud.speech.v1.RecognitionMetadata.InteractionType|null);
|
805 |
|
806 | /** RecognitionMetadata industryNaicsCodeOfAudio */
|
807 | industryNaicsCodeOfAudio?: (number|null);
|
808 |
|
809 | /** RecognitionMetadata microphoneDistance */
|
810 | microphoneDistance?: (google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance|keyof typeof google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance|null);
|
811 |
|
812 | /** RecognitionMetadata originalMediaType */
|
813 | originalMediaType?: (google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType|keyof typeof google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType|null);
|
814 |
|
815 | /** RecognitionMetadata recordingDeviceType */
|
816 | recordingDeviceType?: (google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType|keyof typeof google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType|null);
|
817 |
|
818 | /** RecognitionMetadata recordingDeviceName */
|
819 | recordingDeviceName?: (string|null);
|
820 |
|
821 | /** RecognitionMetadata originalMimeType */
|
822 | originalMimeType?: (string|null);
|
823 |
|
824 | /** RecognitionMetadata audioTopic */
|
825 | audioTopic?: (string|null);
|
826 | }
|
827 |
|
828 | /** Represents a RecognitionMetadata. */
|
829 | class RecognitionMetadata implements IRecognitionMetadata {
|
830 |
|
831 | /**
|
832 | * Constructs a new RecognitionMetadata.
|
833 | * @param [properties] Properties to set
|
834 | */
|
835 | constructor(properties?: google.cloud.speech.v1.IRecognitionMetadata);
|
836 |
|
837 | /** RecognitionMetadata interactionType. */
|
838 | public interactionType: (google.cloud.speech.v1.RecognitionMetadata.InteractionType|keyof typeof google.cloud.speech.v1.RecognitionMetadata.InteractionType);
|
839 |
|
840 | /** RecognitionMetadata industryNaicsCodeOfAudio. */
|
841 | public industryNaicsCodeOfAudio: number;
|
842 |
|
843 | /** RecognitionMetadata microphoneDistance. */
|
844 | public microphoneDistance: (google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance|keyof typeof google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance);
|
845 |
|
846 | /** RecognitionMetadata originalMediaType. */
|
847 | public originalMediaType: (google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType|keyof typeof google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType);
|
848 |
|
849 | /** RecognitionMetadata recordingDeviceType. */
|
850 | public recordingDeviceType: (google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType|keyof typeof google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType);
|
851 |
|
852 | /** RecognitionMetadata recordingDeviceName. */
|
853 | public recordingDeviceName: string;
|
854 |
|
855 | /** RecognitionMetadata originalMimeType. */
|
856 | public originalMimeType: string;
|
857 |
|
858 | /** RecognitionMetadata audioTopic. */
|
859 | public audioTopic: string;
|
860 |
|
861 | /**
|
862 | * Creates a new RecognitionMetadata instance using the specified properties.
|
863 | * @param [properties] Properties to set
|
864 | * @returns RecognitionMetadata instance
|
865 | */
|
866 | public static create(properties?: google.cloud.speech.v1.IRecognitionMetadata): google.cloud.speech.v1.RecognitionMetadata;
|
867 |
|
868 | /**
|
869 | * Encodes the specified RecognitionMetadata message. Does not implicitly { google.cloud.speech.v1.RecognitionMetadata.verify|verify} messages.
|
870 | * message RecognitionMetadata message or plain object to encode
|
871 | * [writer] Writer to encode to
|
872 | * Writer
|
873 | */
|
874 | public static encode(message: google.cloud.speech.v1.IRecognitionMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
|
875 |
|
876 | /**
|
877 | * Encodes the specified RecognitionMetadata message, length delimited. Does not implicitly {@link google.cloud.speech.v1.RecognitionMetadata.verify|verify} messages.
|
878 | * @param message RecognitionMetadata message or plain object to encode
|
879 | * @param [writer] Writer to encode to
|
880 | * @returns Writer
|
881 | */
|
882 | public static encodeDelimited(message: google.cloud.speech.v1.IRecognitionMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
|
883 |
|
884 | /**
|
885 | * Decodes a RecognitionMetadata message from the specified reader or buffer.
|
886 | * @param reader Reader or buffer to decode from
|
887 | * @param [length] Message length if known beforehand
|
888 | * @returns RecognitionMetadata
|
889 | * @throws {Error} If the payload is not a reader or valid buffer
|
890 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
891 | */
|
892 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1.RecognitionMetadata;
|
893 |
|
894 | /**
|
895 | * Decodes a RecognitionMetadata message from the specified reader or buffer, length delimited.
|
896 | * @param reader Reader or buffer to decode from
|
897 | * @returns RecognitionMetadata
|
898 | * @throws {Error} If the payload is not a reader or valid buffer
|
899 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
900 | */
|
901 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1.RecognitionMetadata;
|
902 |
|
903 | /**
|
904 | * Verifies a RecognitionMetadata message.
|
905 | * @param message Plain object to verify
|
906 | * @returns `null` if valid, otherwise the reason why it is not
|
907 | */
|
908 | public static verify(message: { [k: string]: any }): (string|null);
|
909 |
|
910 | /**
|
911 | * Creates a RecognitionMetadata message from a plain object. Also converts values to their respective internal types.
|
912 | * @param object Plain object
|
913 | * @returns RecognitionMetadata
|
914 | */
|
915 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1.RecognitionMetadata;
|
916 |
|
917 | /**
|
918 | * Creates a plain object from a RecognitionMetadata message. Also converts values to other types if specified.
|
919 | * @param message RecognitionMetadata
|
920 | * @param [options] Conversion options
|
921 | * @returns Plain object
|
922 | */
|
923 | public static toObject(message: google.cloud.speech.v1.RecognitionMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
924 |
|
925 | /**
|
926 | * Converts this RecognitionMetadata to JSON.
|
927 | * @returns JSON object
|
928 | */
|
929 | public toJSON(): { [k: string]: any };
|
930 | }
|
931 |
|
932 | namespace RecognitionMetadata {
|
933 |
|
934 | /** InteractionType enum. */
|
935 | enum InteractionType {
|
936 | INTERACTION_TYPE_UNSPECIFIED = 0,
|
937 | DISCUSSION = 1,
|
938 | PRESENTATION = 2,
|
939 | PHONE_CALL = 3,
|
940 | VOICEMAIL = 4,
|
941 | PROFESSIONALLY_PRODUCED = 5,
|
942 | VOICE_SEARCH = 6,
|
943 | VOICE_COMMAND = 7,
|
944 | DICTATION = 8
|
945 | }
|
946 |
|
947 | /** MicrophoneDistance enum. */
|
948 | enum MicrophoneDistance {
|
949 | MICROPHONE_DISTANCE_UNSPECIFIED = 0,
|
950 | NEARFIELD = 1,
|
951 | MIDFIELD = 2,
|
952 | FARFIELD = 3
|
953 | }
|
954 |
|
955 | /** OriginalMediaType enum. */
|
956 | enum OriginalMediaType {
|
957 | ORIGINAL_MEDIA_TYPE_UNSPECIFIED = 0,
|
958 | AUDIO = 1,
|
959 | VIDEO = 2
|
960 | }
|
961 |
|
962 | /** RecordingDeviceType enum. */
|
963 | enum RecordingDeviceType {
|
964 | RECORDING_DEVICE_TYPE_UNSPECIFIED = 0,
|
965 | SMARTPHONE = 1,
|
966 | PC = 2,
|
967 | PHONE_LINE = 3,
|
968 | VEHICLE = 4,
|
969 | OTHER_OUTDOOR_DEVICE = 5,
|
970 | OTHER_INDOOR_DEVICE = 6
|
971 | }
|
972 | }
|
973 |
|
974 | /** Properties of a SpeechContext. */
|
975 | interface ISpeechContext {
|
976 |
|
977 | /** SpeechContext phrases */
|
978 | phrases?: (string[]|null);
|
979 | }
|
980 |
|
981 | /** Represents a SpeechContext. */
|
982 | class SpeechContext implements ISpeechContext {
|
983 |
|
984 | /**
|
985 | * Constructs a new SpeechContext.
|
986 | * @param [properties] Properties to set
|
987 | */
|
988 | constructor(properties?: google.cloud.speech.v1.ISpeechContext);
|
989 |
|
990 | /** SpeechContext phrases. */
|
991 | public phrases: string[];
|
992 |
|
993 | /**
|
994 | * Creates a new SpeechContext instance using the specified properties.
|
995 | * @param [properties] Properties to set
|
996 | * @returns SpeechContext instance
|
997 | */
|
998 | public static create(properties?: google.cloud.speech.v1.ISpeechContext): google.cloud.speech.v1.SpeechContext;
|
999 |
|
1000 | /**
|
1001 | * Encodes the specified SpeechContext message. Does not implicitly { google.cloud.speech.v1.SpeechContext.verify|verify} messages.
|
1002 | * message SpeechContext message or plain object to encode
|
1003 | * [writer] Writer to encode to
|
1004 | * Writer
|
1005 | */
|
1006 | public static encode(message: google.cloud.speech.v1.ISpeechContext, writer?: $protobuf.Writer): $protobuf.Writer;
|
1007 |
|
1008 | /**
|
1009 | * Encodes the specified SpeechContext message, length delimited. Does not implicitly {@link google.cloud.speech.v1.SpeechContext.verify|verify} messages.
|
1010 | * @param message SpeechContext message or plain object to encode
|
1011 | * @param [writer] Writer to encode to
|
1012 | * @returns Writer
|
1013 | */
|
1014 | public static encodeDelimited(message: google.cloud.speech.v1.ISpeechContext, writer?: $protobuf.Writer): $protobuf.Writer;
|
1015 |
|
1016 | /**
|
1017 | * Decodes a SpeechContext message from the specified reader or buffer.
|
1018 | * @param reader Reader or buffer to decode from
|
1019 | * @param [length] Message length if known beforehand
|
1020 | * @returns SpeechContext
|
1021 | * @throws {Error} If the payload is not a reader or valid buffer
|
1022 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1023 | */
|
1024 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1.SpeechContext;
|
1025 |
|
1026 | /**
|
1027 | * Decodes a SpeechContext message from the specified reader or buffer, length delimited.
|
1028 | * @param reader Reader or buffer to decode from
|
1029 | * @returns SpeechContext
|
1030 | * @throws {Error} If the payload is not a reader or valid buffer
|
1031 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1032 | */
|
1033 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1.SpeechContext;
|
1034 |
|
1035 | /**
|
1036 | * Verifies a SpeechContext message.
|
1037 | * @param message Plain object to verify
|
1038 | * @returns `null` if valid, otherwise the reason why it is not
|
1039 | */
|
1040 | public static verify(message: { [k: string]: any }): (string|null);
|
1041 |
|
1042 | /**
|
1043 | * Creates a SpeechContext message from a plain object. Also converts values to their respective internal types.
|
1044 | * @param object Plain object
|
1045 | * @returns SpeechContext
|
1046 | */
|
1047 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1.SpeechContext;
|
1048 |
|
1049 | /**
|
1050 | * Creates a plain object from a SpeechContext message. Also converts values to other types if specified.
|
1051 | * @param message SpeechContext
|
1052 | * @param [options] Conversion options
|
1053 | * @returns Plain object
|
1054 | */
|
1055 | public static toObject(message: google.cloud.speech.v1.SpeechContext, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
1056 |
|
1057 | /**
|
1058 | * Converts this SpeechContext to JSON.
|
1059 | * @returns JSON object
|
1060 | */
|
1061 | public toJSON(): { [k: string]: any };
|
1062 | }
|
1063 |
|
1064 | /** Properties of a RecognitionAudio. */
|
1065 | interface IRecognitionAudio {
|
1066 |
|
1067 | /** RecognitionAudio content */
|
1068 | content?: (Uint8Array|string|null);
|
1069 |
|
1070 | /** RecognitionAudio uri */
|
1071 | uri?: (string|null);
|
1072 | }
|
1073 |
|
1074 | /** Represents a RecognitionAudio. */
|
1075 | class RecognitionAudio implements IRecognitionAudio {
|
1076 |
|
1077 | /**
|
1078 | * Constructs a new RecognitionAudio.
|
1079 | * @param [properties] Properties to set
|
1080 | */
|
1081 | constructor(properties?: google.cloud.speech.v1.IRecognitionAudio);
|
1082 |
|
1083 | /** RecognitionAudio content. */
|
1084 | public content?: (Uint8Array|string|null);
|
1085 |
|
1086 | /** RecognitionAudio uri. */
|
1087 | public uri?: (string|null);
|
1088 |
|
1089 | /** RecognitionAudio audioSource. */
|
1090 | public audioSource?: ("content"|"uri");
|
1091 |
|
1092 | /**
|
1093 | * Creates a new RecognitionAudio instance using the specified properties.
|
1094 | * @param [properties] Properties to set
|
1095 | * @returns RecognitionAudio instance
|
1096 | */
|
1097 | public static create(properties?: google.cloud.speech.v1.IRecognitionAudio): google.cloud.speech.v1.RecognitionAudio;
|
1098 |
|
1099 | /**
|
1100 | * Encodes the specified RecognitionAudio message. Does not implicitly { google.cloud.speech.v1.RecognitionAudio.verify|verify} messages.
|
1101 | * message RecognitionAudio message or plain object to encode
|
1102 | * [writer] Writer to encode to
|
1103 | * Writer
|
1104 | */
|
1105 | public static encode(message: google.cloud.speech.v1.IRecognitionAudio, writer?: $protobuf.Writer): $protobuf.Writer;
|
1106 |
|
1107 | /**
|
1108 | * Encodes the specified RecognitionAudio message, length delimited. Does not implicitly {@link google.cloud.speech.v1.RecognitionAudio.verify|verify} messages.
|
1109 | * @param message RecognitionAudio message or plain object to encode
|
1110 | * @param [writer] Writer to encode to
|
1111 | * @returns Writer
|
1112 | */
|
1113 | public static encodeDelimited(message: google.cloud.speech.v1.IRecognitionAudio, writer?: $protobuf.Writer): $protobuf.Writer;
|
1114 |
|
1115 | /**
|
1116 | * Decodes a RecognitionAudio message from the specified reader or buffer.
|
1117 | * @param reader Reader or buffer to decode from
|
1118 | * @param [length] Message length if known beforehand
|
1119 | * @returns RecognitionAudio
|
1120 | * @throws {Error} If the payload is not a reader or valid buffer
|
1121 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1122 | */
|
1123 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1.RecognitionAudio;
|
1124 |
|
1125 | /**
|
1126 | * Decodes a RecognitionAudio message from the specified reader or buffer, length delimited.
|
1127 | * @param reader Reader or buffer to decode from
|
1128 | * @returns RecognitionAudio
|
1129 | * @throws {Error} If the payload is not a reader or valid buffer
|
1130 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1131 | */
|
1132 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1.RecognitionAudio;
|
1133 |
|
1134 | /**
|
1135 | * Verifies a RecognitionAudio message.
|
1136 | * @param message Plain object to verify
|
1137 | * @returns `null` if valid, otherwise the reason why it is not
|
1138 | */
|
1139 | public static verify(message: { [k: string]: any }): (string|null);
|
1140 |
|
1141 | /**
|
1142 | * Creates a RecognitionAudio message from a plain object. Also converts values to their respective internal types.
|
1143 | * @param object Plain object
|
1144 | * @returns RecognitionAudio
|
1145 | */
|
1146 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1.RecognitionAudio;
|
1147 |
|
1148 | /**
|
1149 | * Creates a plain object from a RecognitionAudio message. Also converts values to other types if specified.
|
1150 | * @param message RecognitionAudio
|
1151 | * @param [options] Conversion options
|
1152 | * @returns Plain object
|
1153 | */
|
1154 | public static toObject(message: google.cloud.speech.v1.RecognitionAudio, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
1155 |
|
1156 | /**
|
1157 | * Converts this RecognitionAudio to JSON.
|
1158 | * @returns JSON object
|
1159 | */
|
1160 | public toJSON(): { [k: string]: any };
|
1161 | }
|
1162 |
|
1163 | /** Properties of a RecognizeResponse. */
|
1164 | interface IRecognizeResponse {
|
1165 |
|
1166 | /** RecognizeResponse results */
|
1167 | results?: (google.cloud.speech.v1.ISpeechRecognitionResult[]|null);
|
1168 | }
|
1169 |
|
1170 | /** Represents a RecognizeResponse. */
|
1171 | class RecognizeResponse implements IRecognizeResponse {
|
1172 |
|
1173 | /**
|
1174 | * Constructs a new RecognizeResponse.
|
1175 | * @param [properties] Properties to set
|
1176 | */
|
1177 | constructor(properties?: google.cloud.speech.v1.IRecognizeResponse);
|
1178 |
|
1179 | /** RecognizeResponse results. */
|
1180 | public results: google.cloud.speech.v1.ISpeechRecognitionResult[];
|
1181 |
|
1182 | /**
|
1183 | * Creates a new RecognizeResponse instance using the specified properties.
|
1184 | * @param [properties] Properties to set
|
1185 | * @returns RecognizeResponse instance
|
1186 | */
|
1187 | public static create(properties?: google.cloud.speech.v1.IRecognizeResponse): google.cloud.speech.v1.RecognizeResponse;
|
1188 |
|
1189 | /**
|
1190 | * Encodes the specified RecognizeResponse message. Does not implicitly { google.cloud.speech.v1.RecognizeResponse.verify|verify} messages.
|
1191 | * message RecognizeResponse message or plain object to encode
|
1192 | * [writer] Writer to encode to
|
1193 | * Writer
|
1194 | */
|
1195 | public static encode(message: google.cloud.speech.v1.IRecognizeResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
1196 |
|
1197 | /**
|
1198 | * Encodes the specified RecognizeResponse message, length delimited. Does not implicitly {@link google.cloud.speech.v1.RecognizeResponse.verify|verify} messages.
|
1199 | * @param message RecognizeResponse message or plain object to encode
|
1200 | * @param [writer] Writer to encode to
|
1201 | * @returns Writer
|
1202 | */
|
1203 | public static encodeDelimited(message: google.cloud.speech.v1.IRecognizeResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
1204 |
|
1205 | /**
|
1206 | * Decodes a RecognizeResponse message from the specified reader or buffer.
|
1207 | * @param reader Reader or buffer to decode from
|
1208 | * @param [length] Message length if known beforehand
|
1209 | * @returns RecognizeResponse
|
1210 | * @throws {Error} If the payload is not a reader or valid buffer
|
1211 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1212 | */
|
1213 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1.RecognizeResponse;
|
1214 |
|
1215 | /**
|
1216 | * Decodes a RecognizeResponse message from the specified reader or buffer, length delimited.
|
1217 | * @param reader Reader or buffer to decode from
|
1218 | * @returns RecognizeResponse
|
1219 | * @throws {Error} If the payload is not a reader or valid buffer
|
1220 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1221 | */
|
1222 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1.RecognizeResponse;
|
1223 |
|
1224 | /**
|
1225 | * Verifies a RecognizeResponse message.
|
1226 | * @param message Plain object to verify
|
1227 | * @returns `null` if valid, otherwise the reason why it is not
|
1228 | */
|
1229 | public static verify(message: { [k: string]: any }): (string|null);
|
1230 |
|
1231 | /**
|
1232 | * Creates a RecognizeResponse message from a plain object. Also converts values to their respective internal types.
|
1233 | * @param object Plain object
|
1234 | * @returns RecognizeResponse
|
1235 | */
|
1236 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1.RecognizeResponse;
|
1237 |
|
1238 | /**
|
1239 | * Creates a plain object from a RecognizeResponse message. Also converts values to other types if specified.
|
1240 | * @param message RecognizeResponse
|
1241 | * @param [options] Conversion options
|
1242 | * @returns Plain object
|
1243 | */
|
1244 | public static toObject(message: google.cloud.speech.v1.RecognizeResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
1245 |
|
1246 | /**
|
1247 | * Converts this RecognizeResponse to JSON.
|
1248 | * @returns JSON object
|
1249 | */
|
1250 | public toJSON(): { [k: string]: any };
|
1251 | }
|
1252 |
|
1253 | /** Properties of a LongRunningRecognizeResponse. */
|
1254 | interface ILongRunningRecognizeResponse {
|
1255 |
|
1256 | /** LongRunningRecognizeResponse results */
|
1257 | results?: (google.cloud.speech.v1.ISpeechRecognitionResult[]|null);
|
1258 | }
|
1259 |
|
1260 | /** Represents a LongRunningRecognizeResponse. */
|
1261 | class LongRunningRecognizeResponse implements ILongRunningRecognizeResponse {
|
1262 |
|
1263 | /**
|
1264 | * Constructs a new LongRunningRecognizeResponse.
|
1265 | * @param [properties] Properties to set
|
1266 | */
|
1267 | constructor(properties?: google.cloud.speech.v1.ILongRunningRecognizeResponse);
|
1268 |
|
1269 | /** LongRunningRecognizeResponse results. */
|
1270 | public results: google.cloud.speech.v1.ISpeechRecognitionResult[];
|
1271 |
|
1272 | /**
|
1273 | * Creates a new LongRunningRecognizeResponse instance using the specified properties.
|
1274 | * @param [properties] Properties to set
|
1275 | * @returns LongRunningRecognizeResponse instance
|
1276 | */
|
1277 | public static create(properties?: google.cloud.speech.v1.ILongRunningRecognizeResponse): google.cloud.speech.v1.LongRunningRecognizeResponse;
|
1278 |
|
1279 | /**
|
1280 | * Encodes the specified LongRunningRecognizeResponse message. Does not implicitly { google.cloud.speech.v1.LongRunningRecognizeResponse.verify|verify} messages.
|
1281 | * message LongRunningRecognizeResponse message or plain object to encode
|
1282 | * [writer] Writer to encode to
|
1283 | * Writer
|
1284 | */
|
1285 | public static encode(message: google.cloud.speech.v1.ILongRunningRecognizeResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
1286 |
|
1287 | /**
|
1288 | * Encodes the specified LongRunningRecognizeResponse message, length delimited. Does not implicitly {@link google.cloud.speech.v1.LongRunningRecognizeResponse.verify|verify} messages.
|
1289 | * @param message LongRunningRecognizeResponse message or plain object to encode
|
1290 | * @param [writer] Writer to encode to
|
1291 | * @returns Writer
|
1292 | */
|
1293 | public static encodeDelimited(message: google.cloud.speech.v1.ILongRunningRecognizeResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
1294 |
|
1295 | /**
|
1296 | * Decodes a LongRunningRecognizeResponse message from the specified reader or buffer.
|
1297 | * @param reader Reader or buffer to decode from
|
1298 | * @param [length] Message length if known beforehand
|
1299 | * @returns LongRunningRecognizeResponse
|
1300 | * @throws {Error} If the payload is not a reader or valid buffer
|
1301 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1302 | */
|
1303 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1.LongRunningRecognizeResponse;
|
1304 |
|
1305 | /**
|
1306 | * Decodes a LongRunningRecognizeResponse message from the specified reader or buffer, length delimited.
|
1307 | * @param reader Reader or buffer to decode from
|
1308 | * @returns LongRunningRecognizeResponse
|
1309 | * @throws {Error} If the payload is not a reader or valid buffer
|
1310 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1311 | */
|
1312 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1.LongRunningRecognizeResponse;
|
1313 |
|
1314 | /**
|
1315 | * Verifies a LongRunningRecognizeResponse message.
|
1316 | * @param message Plain object to verify
|
1317 | * @returns `null` if valid, otherwise the reason why it is not
|
1318 | */
|
1319 | public static verify(message: { [k: string]: any }): (string|null);
|
1320 |
|
1321 | /**
|
1322 | * Creates a LongRunningRecognizeResponse message from a plain object. Also converts values to their respective internal types.
|
1323 | * @param object Plain object
|
1324 | * @returns LongRunningRecognizeResponse
|
1325 | */
|
1326 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1.LongRunningRecognizeResponse;
|
1327 |
|
1328 | /**
|
1329 | * Creates a plain object from a LongRunningRecognizeResponse message. Also converts values to other types if specified.
|
1330 | * @param message LongRunningRecognizeResponse
|
1331 | * @param [options] Conversion options
|
1332 | * @returns Plain object
|
1333 | */
|
1334 | public static toObject(message: google.cloud.speech.v1.LongRunningRecognizeResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
1335 |
|
1336 | /**
|
1337 | * Converts this LongRunningRecognizeResponse to JSON.
|
1338 | * @returns JSON object
|
1339 | */
|
1340 | public toJSON(): { [k: string]: any };
|
1341 | }
|
1342 |
|
1343 | /** Properties of a LongRunningRecognizeMetadata. */
|
1344 | interface ILongRunningRecognizeMetadata {
|
1345 |
|
1346 | /** LongRunningRecognizeMetadata progressPercent */
|
1347 | progressPercent?: (number|null);
|
1348 |
|
1349 | /** LongRunningRecognizeMetadata startTime */
|
1350 | startTime?: (google.protobuf.ITimestamp|null);
|
1351 |
|
1352 | /** LongRunningRecognizeMetadata lastUpdateTime */
|
1353 | lastUpdateTime?: (google.protobuf.ITimestamp|null);
|
1354 | }
|
1355 |
|
1356 | /** Represents a LongRunningRecognizeMetadata. */
|
1357 | class LongRunningRecognizeMetadata implements ILongRunningRecognizeMetadata {
|
1358 |
|
1359 | /**
|
1360 | * Constructs a new LongRunningRecognizeMetadata.
|
1361 | * @param [properties] Properties to set
|
1362 | */
|
1363 | constructor(properties?: google.cloud.speech.v1.ILongRunningRecognizeMetadata);
|
1364 |
|
1365 | /** LongRunningRecognizeMetadata progressPercent. */
|
1366 | public progressPercent: number;
|
1367 |
|
1368 | /** LongRunningRecognizeMetadata startTime. */
|
1369 | public startTime?: (google.protobuf.ITimestamp|null);
|
1370 |
|
1371 | /** LongRunningRecognizeMetadata lastUpdateTime. */
|
1372 | public lastUpdateTime?: (google.protobuf.ITimestamp|null);
|
1373 |
|
1374 | /**
|
1375 | * Creates a new LongRunningRecognizeMetadata instance using the specified properties.
|
1376 | * @param [properties] Properties to set
|
1377 | * @returns LongRunningRecognizeMetadata instance
|
1378 | */
|
1379 | public static create(properties?: google.cloud.speech.v1.ILongRunningRecognizeMetadata): google.cloud.speech.v1.LongRunningRecognizeMetadata;
|
1380 |
|
1381 | /**
|
1382 | * Encodes the specified LongRunningRecognizeMetadata message. Does not implicitly { google.cloud.speech.v1.LongRunningRecognizeMetadata.verify|verify} messages.
|
1383 | * message LongRunningRecognizeMetadata message or plain object to encode
|
1384 | * [writer] Writer to encode to
|
1385 | * Writer
|
1386 | */
|
1387 | public static encode(message: google.cloud.speech.v1.ILongRunningRecognizeMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
|
1388 |
|
1389 | /**
|
1390 | * Encodes the specified LongRunningRecognizeMetadata message, length delimited. Does not implicitly {@link google.cloud.speech.v1.LongRunningRecognizeMetadata.verify|verify} messages.
|
1391 | * @param message LongRunningRecognizeMetadata message or plain object to encode
|
1392 | * @param [writer] Writer to encode to
|
1393 | * @returns Writer
|
1394 | */
|
1395 | public static encodeDelimited(message: google.cloud.speech.v1.ILongRunningRecognizeMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
|
1396 |
|
1397 | /**
|
1398 | * Decodes a LongRunningRecognizeMetadata message from the specified reader or buffer.
|
1399 | * @param reader Reader or buffer to decode from
|
1400 | * @param [length] Message length if known beforehand
|
1401 | * @returns LongRunningRecognizeMetadata
|
1402 | * @throws {Error} If the payload is not a reader or valid buffer
|
1403 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1404 | */
|
1405 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1.LongRunningRecognizeMetadata;
|
1406 |
|
1407 | /**
|
1408 | * Decodes a LongRunningRecognizeMetadata message from the specified reader or buffer, length delimited.
|
1409 | * @param reader Reader or buffer to decode from
|
1410 | * @returns LongRunningRecognizeMetadata
|
1411 | * @throws {Error} If the payload is not a reader or valid buffer
|
1412 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1413 | */
|
1414 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1.LongRunningRecognizeMetadata;
|
1415 |
|
1416 | /**
|
1417 | * Verifies a LongRunningRecognizeMetadata message.
|
1418 | * @param message Plain object to verify
|
1419 | * @returns `null` if valid, otherwise the reason why it is not
|
1420 | */
|
1421 | public static verify(message: { [k: string]: any }): (string|null);
|
1422 |
|
1423 | /**
|
1424 | * Creates a LongRunningRecognizeMetadata message from a plain object. Also converts values to their respective internal types.
|
1425 | * @param object Plain object
|
1426 | * @returns LongRunningRecognizeMetadata
|
1427 | */
|
1428 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1.LongRunningRecognizeMetadata;
|
1429 |
|
1430 | /**
|
1431 | * Creates a plain object from a LongRunningRecognizeMetadata message. Also converts values to other types if specified.
|
1432 | * @param message LongRunningRecognizeMetadata
|
1433 | * @param [options] Conversion options
|
1434 | * @returns Plain object
|
1435 | */
|
1436 | public static toObject(message: google.cloud.speech.v1.LongRunningRecognizeMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
1437 |
|
1438 | /**
|
1439 | * Converts this LongRunningRecognizeMetadata to JSON.
|
1440 | * @returns JSON object
|
1441 | */
|
1442 | public toJSON(): { [k: string]: any };
|
1443 | }
|
1444 |
|
1445 | /** Properties of a StreamingRecognizeResponse. */
|
1446 | interface IStreamingRecognizeResponse {
|
1447 |
|
1448 | /** StreamingRecognizeResponse error */
|
1449 | error?: (google.rpc.IStatus|null);
|
1450 |
|
1451 | /** StreamingRecognizeResponse results */
|
1452 | results?: (google.cloud.speech.v1.IStreamingRecognitionResult[]|null);
|
1453 |
|
1454 | /** StreamingRecognizeResponse speechEventType */
|
1455 | speechEventType?: (google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType|keyof typeof google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType|null);
|
1456 | }
|
1457 |
|
1458 | /** Represents a StreamingRecognizeResponse. */
|
1459 | class StreamingRecognizeResponse implements IStreamingRecognizeResponse {
|
1460 |
|
1461 | /**
|
1462 | * Constructs a new StreamingRecognizeResponse.
|
1463 | * @param [properties] Properties to set
|
1464 | */
|
1465 | constructor(properties?: google.cloud.speech.v1.IStreamingRecognizeResponse);
|
1466 |
|
1467 | /** StreamingRecognizeResponse error. */
|
1468 | public error?: (google.rpc.IStatus|null);
|
1469 |
|
1470 | /** StreamingRecognizeResponse results. */
|
1471 | public results: google.cloud.speech.v1.IStreamingRecognitionResult[];
|
1472 |
|
1473 | /** StreamingRecognizeResponse speechEventType. */
|
1474 | public speechEventType: (google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType|keyof typeof google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType);
|
1475 |
|
1476 | /**
|
1477 | * Creates a new StreamingRecognizeResponse instance using the specified properties.
|
1478 | * @param [properties] Properties to set
|
1479 | * @returns StreamingRecognizeResponse instance
|
1480 | */
|
1481 | public static create(properties?: google.cloud.speech.v1.IStreamingRecognizeResponse): google.cloud.speech.v1.StreamingRecognizeResponse;
|
1482 |
|
1483 | /**
|
1484 | * Encodes the specified StreamingRecognizeResponse message. Does not implicitly { google.cloud.speech.v1.StreamingRecognizeResponse.verify|verify} messages.
|
1485 | * message StreamingRecognizeResponse message or plain object to encode
|
1486 | * [writer] Writer to encode to
|
1487 | * Writer
|
1488 | */
|
1489 | public static encode(message: google.cloud.speech.v1.IStreamingRecognizeResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
1490 |
|
1491 | /**
|
1492 | * Encodes the specified StreamingRecognizeResponse message, length delimited. Does not implicitly {@link google.cloud.speech.v1.StreamingRecognizeResponse.verify|verify} messages.
|
1493 | * @param message StreamingRecognizeResponse message or plain object to encode
|
1494 | * @param [writer] Writer to encode to
|
1495 | * @returns Writer
|
1496 | */
|
1497 | public static encodeDelimited(message: google.cloud.speech.v1.IStreamingRecognizeResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
1498 |
|
1499 | /**
|
1500 | * Decodes a StreamingRecognizeResponse message from the specified reader or buffer.
|
1501 | * @param reader Reader or buffer to decode from
|
1502 | * @param [length] Message length if known beforehand
|
1503 | * @returns StreamingRecognizeResponse
|
1504 | * @throws {Error} If the payload is not a reader or valid buffer
|
1505 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1506 | */
|
1507 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1.StreamingRecognizeResponse;
|
1508 |
|
1509 | /**
|
1510 | * Decodes a StreamingRecognizeResponse message from the specified reader or buffer, length delimited.
|
1511 | * @param reader Reader or buffer to decode from
|
1512 | * @returns StreamingRecognizeResponse
|
1513 | * @throws {Error} If the payload is not a reader or valid buffer
|
1514 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1515 | */
|
1516 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1.StreamingRecognizeResponse;
|
1517 |
|
1518 | /**
|
1519 | * Verifies a StreamingRecognizeResponse message.
|
1520 | * @param message Plain object to verify
|
1521 | * @returns `null` if valid, otherwise the reason why it is not
|
1522 | */
|
1523 | public static verify(message: { [k: string]: any }): (string|null);
|
1524 |
|
1525 | /**
|
1526 | * Creates a StreamingRecognizeResponse message from a plain object. Also converts values to their respective internal types.
|
1527 | * @param object Plain object
|
1528 | * @returns StreamingRecognizeResponse
|
1529 | */
|
1530 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1.StreamingRecognizeResponse;
|
1531 |
|
1532 | /**
|
1533 | * Creates a plain object from a StreamingRecognizeResponse message. Also converts values to other types if specified.
|
1534 | * @param message StreamingRecognizeResponse
|
1535 | * @param [options] Conversion options
|
1536 | * @returns Plain object
|
1537 | */
|
1538 | public static toObject(message: google.cloud.speech.v1.StreamingRecognizeResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
1539 |
|
1540 | /**
|
1541 | * Converts this StreamingRecognizeResponse to JSON.
|
1542 | * @returns JSON object
|
1543 | */
|
1544 | public toJSON(): { [k: string]: any };
|
1545 | }
|
1546 |
|
1547 | namespace StreamingRecognizeResponse {
|
1548 |
|
1549 | /** SpeechEventType enum. */
|
1550 | enum SpeechEventType {
|
1551 | SPEECH_EVENT_UNSPECIFIED = 0,
|
1552 | END_OF_SINGLE_UTTERANCE = 1
|
1553 | }
|
1554 | }
|
1555 |
|
1556 | /** Properties of a StreamingRecognitionResult. */
|
1557 | interface IStreamingRecognitionResult {
|
1558 |
|
1559 | /** StreamingRecognitionResult alternatives */
|
1560 | alternatives?: (google.cloud.speech.v1.ISpeechRecognitionAlternative[]|null);
|
1561 |
|
1562 | /** StreamingRecognitionResult isFinal */
|
1563 | isFinal?: (boolean|null);
|
1564 |
|
1565 | /** StreamingRecognitionResult stability */
|
1566 | stability?: (number|null);
|
1567 |
|
1568 | /** StreamingRecognitionResult resultEndTime */
|
1569 | resultEndTime?: (google.protobuf.IDuration|null);
|
1570 |
|
1571 | /** StreamingRecognitionResult channelTag */
|
1572 | channelTag?: (number|null);
|
1573 |
|
1574 | /** StreamingRecognitionResult languageCode */
|
1575 | languageCode?: (string|null);
|
1576 | }
|
1577 |
|
1578 | /** Represents a StreamingRecognitionResult. */
|
1579 | class StreamingRecognitionResult implements IStreamingRecognitionResult {
|
1580 |
|
1581 | /**
|
1582 | * Constructs a new StreamingRecognitionResult.
|
1583 | * @param [properties] Properties to set
|
1584 | */
|
1585 | constructor(properties?: google.cloud.speech.v1.IStreamingRecognitionResult);
|
1586 |
|
1587 | /** StreamingRecognitionResult alternatives. */
|
1588 | public alternatives: google.cloud.speech.v1.ISpeechRecognitionAlternative[];
|
1589 |
|
1590 | /** StreamingRecognitionResult isFinal. */
|
1591 | public isFinal: boolean;
|
1592 |
|
1593 | /** StreamingRecognitionResult stability. */
|
1594 | public stability: number;
|
1595 |
|
1596 | /** StreamingRecognitionResult resultEndTime. */
|
1597 | public resultEndTime?: (google.protobuf.IDuration|null);
|
1598 |
|
1599 | /** StreamingRecognitionResult channelTag. */
|
1600 | public channelTag: number;
|
1601 |
|
1602 | /** StreamingRecognitionResult languageCode. */
|
1603 | public languageCode: string;
|
1604 |
|
1605 | /**
|
1606 | * Creates a new StreamingRecognitionResult instance using the specified properties.
|
1607 | * @param [properties] Properties to set
|
1608 | * @returns StreamingRecognitionResult instance
|
1609 | */
|
1610 | public static create(properties?: google.cloud.speech.v1.IStreamingRecognitionResult): google.cloud.speech.v1.StreamingRecognitionResult;
|
1611 |
|
1612 | /**
|
1613 | * Encodes the specified StreamingRecognitionResult message. Does not implicitly { google.cloud.speech.v1.StreamingRecognitionResult.verify|verify} messages.
|
1614 | * message StreamingRecognitionResult message or plain object to encode
|
1615 | * [writer] Writer to encode to
|
1616 | * Writer
|
1617 | */
|
1618 | public static encode(message: google.cloud.speech.v1.IStreamingRecognitionResult, writer?: $protobuf.Writer): $protobuf.Writer;
|
1619 |
|
1620 | /**
|
1621 | * Encodes the specified StreamingRecognitionResult message, length delimited. Does not implicitly {@link google.cloud.speech.v1.StreamingRecognitionResult.verify|verify} messages.
|
1622 | * @param message StreamingRecognitionResult message or plain object to encode
|
1623 | * @param [writer] Writer to encode to
|
1624 | * @returns Writer
|
1625 | */
|
1626 | public static encodeDelimited(message: google.cloud.speech.v1.IStreamingRecognitionResult, writer?: $protobuf.Writer): $protobuf.Writer;
|
1627 |
|
1628 | /**
|
1629 | * Decodes a StreamingRecognitionResult message from the specified reader or buffer.
|
1630 | * @param reader Reader or buffer to decode from
|
1631 | * @param [length] Message length if known beforehand
|
1632 | * @returns StreamingRecognitionResult
|
1633 | * @throws {Error} If the payload is not a reader or valid buffer
|
1634 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1635 | */
|
1636 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1.StreamingRecognitionResult;
|
1637 |
|
1638 | /**
|
1639 | * Decodes a StreamingRecognitionResult message from the specified reader or buffer, length delimited.
|
1640 | * @param reader Reader or buffer to decode from
|
1641 | * @returns StreamingRecognitionResult
|
1642 | * @throws {Error} If the payload is not a reader or valid buffer
|
1643 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1644 | */
|
1645 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1.StreamingRecognitionResult;
|
1646 |
|
1647 | /**
|
1648 | * Verifies a StreamingRecognitionResult message.
|
1649 | * @param message Plain object to verify
|
1650 | * @returns `null` if valid, otherwise the reason why it is not
|
1651 | */
|
1652 | public static verify(message: { [k: string]: any }): (string|null);
|
1653 |
|
1654 | /**
|
1655 | * Creates a StreamingRecognitionResult message from a plain object. Also converts values to their respective internal types.
|
1656 | * @param object Plain object
|
1657 | * @returns StreamingRecognitionResult
|
1658 | */
|
1659 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1.StreamingRecognitionResult;
|
1660 |
|
1661 | /**
|
1662 | * Creates a plain object from a StreamingRecognitionResult message. Also converts values to other types if specified.
|
1663 | * @param message StreamingRecognitionResult
|
1664 | * @param [options] Conversion options
|
1665 | * @returns Plain object
|
1666 | */
|
1667 | public static toObject(message: google.cloud.speech.v1.StreamingRecognitionResult, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
1668 |
|
1669 | /**
|
1670 | * Converts this StreamingRecognitionResult to JSON.
|
1671 | * @returns JSON object
|
1672 | */
|
1673 | public toJSON(): { [k: string]: any };
|
1674 | }
|
1675 |
|
1676 | /** Properties of a SpeechRecognitionResult. */
|
1677 | interface ISpeechRecognitionResult {
|
1678 |
|
1679 | /** SpeechRecognitionResult alternatives */
|
1680 | alternatives?: (google.cloud.speech.v1.ISpeechRecognitionAlternative[]|null);
|
1681 |
|
1682 | /** SpeechRecognitionResult channelTag */
|
1683 | channelTag?: (number|null);
|
1684 | }
|
1685 |
|
1686 | /** Represents a SpeechRecognitionResult. */
|
1687 | class SpeechRecognitionResult implements ISpeechRecognitionResult {
|
1688 |
|
1689 | /**
|
1690 | * Constructs a new SpeechRecognitionResult.
|
1691 | * @param [properties] Properties to set
|
1692 | */
|
1693 | constructor(properties?: google.cloud.speech.v1.ISpeechRecognitionResult);
|
1694 |
|
1695 | /** SpeechRecognitionResult alternatives. */
|
1696 | public alternatives: google.cloud.speech.v1.ISpeechRecognitionAlternative[];
|
1697 |
|
1698 | /** SpeechRecognitionResult channelTag. */
|
1699 | public channelTag: number;
|
1700 |
|
1701 | /**
|
1702 | * Creates a new SpeechRecognitionResult instance using the specified properties.
|
1703 | * @param [properties] Properties to set
|
1704 | * @returns SpeechRecognitionResult instance
|
1705 | */
|
1706 | public static create(properties?: google.cloud.speech.v1.ISpeechRecognitionResult): google.cloud.speech.v1.SpeechRecognitionResult;
|
1707 |
|
1708 | /**
|
1709 | * Encodes the specified SpeechRecognitionResult message. Does not implicitly { google.cloud.speech.v1.SpeechRecognitionResult.verify|verify} messages.
|
1710 | * message SpeechRecognitionResult message or plain object to encode
|
1711 | * [writer] Writer to encode to
|
1712 | * Writer
|
1713 | */
|
1714 | public static encode(message: google.cloud.speech.v1.ISpeechRecognitionResult, writer?: $protobuf.Writer): $protobuf.Writer;
|
1715 |
|
1716 | /**
|
1717 | * Encodes the specified SpeechRecognitionResult message, length delimited. Does not implicitly {@link google.cloud.speech.v1.SpeechRecognitionResult.verify|verify} messages.
|
1718 | * @param message SpeechRecognitionResult message or plain object to encode
|
1719 | * @param [writer] Writer to encode to
|
1720 | * @returns Writer
|
1721 | */
|
1722 | public static encodeDelimited(message: google.cloud.speech.v1.ISpeechRecognitionResult, writer?: $protobuf.Writer): $protobuf.Writer;
|
1723 |
|
1724 | /**
|
1725 | * Decodes a SpeechRecognitionResult message from the specified reader or buffer.
|
1726 | * @param reader Reader or buffer to decode from
|
1727 | * @param [length] Message length if known beforehand
|
1728 | * @returns SpeechRecognitionResult
|
1729 | * @throws {Error} If the payload is not a reader or valid buffer
|
1730 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1731 | */
|
1732 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1.SpeechRecognitionResult;
|
1733 |
|
1734 | /**
|
1735 | * Decodes a SpeechRecognitionResult message from the specified reader or buffer, length delimited.
|
1736 | * @param reader Reader or buffer to decode from
|
1737 | * @returns SpeechRecognitionResult
|
1738 | * @throws {Error} If the payload is not a reader or valid buffer
|
1739 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1740 | */
|
1741 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1.SpeechRecognitionResult;
|
1742 |
|
1743 | /**
|
1744 | * Verifies a SpeechRecognitionResult message.
|
1745 | * @param message Plain object to verify
|
1746 | * @returns `null` if valid, otherwise the reason why it is not
|
1747 | */
|
1748 | public static verify(message: { [k: string]: any }): (string|null);
|
1749 |
|
1750 | /**
|
1751 | * Creates a SpeechRecognitionResult message from a plain object. Also converts values to their respective internal types.
|
1752 | * @param object Plain object
|
1753 | * @returns SpeechRecognitionResult
|
1754 | */
|
1755 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1.SpeechRecognitionResult;
|
1756 |
|
1757 | /**
|
1758 | * Creates a plain object from a SpeechRecognitionResult message. Also converts values to other types if specified.
|
1759 | * @param message SpeechRecognitionResult
|
1760 | * @param [options] Conversion options
|
1761 | * @returns Plain object
|
1762 | */
|
1763 | public static toObject(message: google.cloud.speech.v1.SpeechRecognitionResult, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
1764 |
|
1765 | /**
|
1766 | * Converts this SpeechRecognitionResult to JSON.
|
1767 | * @returns JSON object
|
1768 | */
|
1769 | public toJSON(): { [k: string]: any };
|
1770 | }
|
1771 |
|
1772 | /** Properties of a SpeechRecognitionAlternative. */
|
1773 | interface ISpeechRecognitionAlternative {
|
1774 |
|
1775 | /** SpeechRecognitionAlternative transcript */
|
1776 | transcript?: (string|null);
|
1777 |
|
1778 | /** SpeechRecognitionAlternative confidence */
|
1779 | confidence?: (number|null);
|
1780 |
|
1781 | /** SpeechRecognitionAlternative words */
|
1782 | words?: (google.cloud.speech.v1.IWordInfo[]|null);
|
1783 | }
|
1784 |
|
1785 | /** Represents a SpeechRecognitionAlternative. */
|
1786 | class SpeechRecognitionAlternative implements ISpeechRecognitionAlternative {
|
1787 |
|
1788 | /**
|
1789 | * Constructs a new SpeechRecognitionAlternative.
|
1790 | * @param [properties] Properties to set
|
1791 | */
|
1792 | constructor(properties?: google.cloud.speech.v1.ISpeechRecognitionAlternative);
|
1793 |
|
1794 | /** SpeechRecognitionAlternative transcript. */
|
1795 | public transcript: string;
|
1796 |
|
1797 | /** SpeechRecognitionAlternative confidence. */
|
1798 | public confidence: number;
|
1799 |
|
1800 | /** SpeechRecognitionAlternative words. */
|
1801 | public words: google.cloud.speech.v1.IWordInfo[];
|
1802 |
|
1803 | /**
|
1804 | * Creates a new SpeechRecognitionAlternative instance using the specified properties.
|
1805 | * @param [properties] Properties to set
|
1806 | * @returns SpeechRecognitionAlternative instance
|
1807 | */
|
1808 | public static create(properties?: google.cloud.speech.v1.ISpeechRecognitionAlternative): google.cloud.speech.v1.SpeechRecognitionAlternative;
|
1809 |
|
1810 | /**
|
1811 | * Encodes the specified SpeechRecognitionAlternative message. Does not implicitly { google.cloud.speech.v1.SpeechRecognitionAlternative.verify|verify} messages.
|
1812 | * message SpeechRecognitionAlternative message or plain object to encode
|
1813 | * [writer] Writer to encode to
|
1814 | * Writer
|
1815 | */
|
1816 | public static encode(message: google.cloud.speech.v1.ISpeechRecognitionAlternative, writer?: $protobuf.Writer): $protobuf.Writer;
|
1817 |
|
1818 | /**
|
1819 | * Encodes the specified SpeechRecognitionAlternative message, length delimited. Does not implicitly {@link google.cloud.speech.v1.SpeechRecognitionAlternative.verify|verify} messages.
|
1820 | * @param message SpeechRecognitionAlternative message or plain object to encode
|
1821 | * @param [writer] Writer to encode to
|
1822 | * @returns Writer
|
1823 | */
|
1824 | public static encodeDelimited(message: google.cloud.speech.v1.ISpeechRecognitionAlternative, writer?: $protobuf.Writer): $protobuf.Writer;
|
1825 |
|
1826 | /**
|
1827 | * Decodes a SpeechRecognitionAlternative message from the specified reader or buffer.
|
1828 | * @param reader Reader or buffer to decode from
|
1829 | * @param [length] Message length if known beforehand
|
1830 | * @returns SpeechRecognitionAlternative
|
1831 | * @throws {Error} If the payload is not a reader or valid buffer
|
1832 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1833 | */
|
1834 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1.SpeechRecognitionAlternative;
|
1835 |
|
1836 | /**
|
1837 | * Decodes a SpeechRecognitionAlternative message from the specified reader or buffer, length delimited.
|
1838 | * @param reader Reader or buffer to decode from
|
1839 | * @returns SpeechRecognitionAlternative
|
1840 | * @throws {Error} If the payload is not a reader or valid buffer
|
1841 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1842 | */
|
1843 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1.SpeechRecognitionAlternative;
|
1844 |
|
1845 | /**
|
1846 | * Verifies a SpeechRecognitionAlternative message.
|
1847 | * @param message Plain object to verify
|
1848 | * @returns `null` if valid, otherwise the reason why it is not
|
1849 | */
|
1850 | public static verify(message: { [k: string]: any }): (string|null);
|
1851 |
|
1852 | /**
|
1853 | * Creates a SpeechRecognitionAlternative message from a plain object. Also converts values to their respective internal types.
|
1854 | * @param object Plain object
|
1855 | * @returns SpeechRecognitionAlternative
|
1856 | */
|
1857 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1.SpeechRecognitionAlternative;
|
1858 |
|
1859 | /**
|
1860 | * Creates a plain object from a SpeechRecognitionAlternative message. Also converts values to other types if specified.
|
1861 | * @param message SpeechRecognitionAlternative
|
1862 | * @param [options] Conversion options
|
1863 | * @returns Plain object
|
1864 | */
|
1865 | public static toObject(message: google.cloud.speech.v1.SpeechRecognitionAlternative, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
1866 |
|
1867 | /**
|
1868 | * Converts this SpeechRecognitionAlternative to JSON.
|
1869 | * @returns JSON object
|
1870 | */
|
1871 | public toJSON(): { [k: string]: any };
|
1872 | }
|
1873 |
|
1874 | /** Properties of a WordInfo. */
|
1875 | interface IWordInfo {
|
1876 |
|
1877 | /** WordInfo startTime */
|
1878 | startTime?: (google.protobuf.IDuration|null);
|
1879 |
|
1880 | /** WordInfo endTime */
|
1881 | endTime?: (google.protobuf.IDuration|null);
|
1882 |
|
1883 | /** WordInfo word */
|
1884 | word?: (string|null);
|
1885 |
|
1886 | /** WordInfo speakerTag */
|
1887 | speakerTag?: (number|null);
|
1888 | }
|
1889 |
|
1890 | /** Represents a WordInfo. */
|
1891 | class WordInfo implements IWordInfo {
|
1892 |
|
1893 | /**
|
1894 | * Constructs a new WordInfo.
|
1895 | * @param [properties] Properties to set
|
1896 | */
|
1897 | constructor(properties?: google.cloud.speech.v1.IWordInfo);
|
1898 |
|
1899 | /** WordInfo startTime. */
|
1900 | public startTime?: (google.protobuf.IDuration|null);
|
1901 |
|
1902 | /** WordInfo endTime. */
|
1903 | public endTime?: (google.protobuf.IDuration|null);
|
1904 |
|
1905 | /** WordInfo word. */
|
1906 | public word: string;
|
1907 |
|
1908 | /** WordInfo speakerTag. */
|
1909 | public speakerTag: number;
|
1910 |
|
1911 | /**
|
1912 | * Creates a new WordInfo instance using the specified properties.
|
1913 | * @param [properties] Properties to set
|
1914 | * @returns WordInfo instance
|
1915 | */
|
1916 | public static create(properties?: google.cloud.speech.v1.IWordInfo): google.cloud.speech.v1.WordInfo;
|
1917 |
|
1918 | /**
|
1919 | * Encodes the specified WordInfo message. Does not implicitly { google.cloud.speech.v1.WordInfo.verify|verify} messages.
|
1920 | * message WordInfo message or plain object to encode
|
1921 | * [writer] Writer to encode to
|
1922 | * Writer
|
1923 | */
|
1924 | public static encode(message: google.cloud.speech.v1.IWordInfo, writer?: $protobuf.Writer): $protobuf.Writer;
|
1925 |
|
1926 | /**
|
1927 | * Encodes the specified WordInfo message, length delimited. Does not implicitly {@link google.cloud.speech.v1.WordInfo.verify|verify} messages.
|
1928 | * @param message WordInfo message or plain object to encode
|
1929 | * @param [writer] Writer to encode to
|
1930 | * @returns Writer
|
1931 | */
|
1932 | public static encodeDelimited(message: google.cloud.speech.v1.IWordInfo, writer?: $protobuf.Writer): $protobuf.Writer;
|
1933 |
|
1934 | /**
|
1935 | * Decodes a WordInfo message from the specified reader or buffer.
|
1936 | * @param reader Reader or buffer to decode from
|
1937 | * @param [length] Message length if known beforehand
|
1938 | * @returns WordInfo
|
1939 | * @throws {Error} If the payload is not a reader or valid buffer
|
1940 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1941 | */
|
1942 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1.WordInfo;
|
1943 |
|
1944 | /**
|
1945 | * Decodes a WordInfo message from the specified reader or buffer, length delimited.
|
1946 | * @param reader Reader or buffer to decode from
|
1947 | * @returns WordInfo
|
1948 | * @throws {Error} If the payload is not a reader or valid buffer
|
1949 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1950 | */
|
1951 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1.WordInfo;
|
1952 |
|
1953 | /**
|
1954 | * Verifies a WordInfo message.
|
1955 | * @param message Plain object to verify
|
1956 | * @returns `null` if valid, otherwise the reason why it is not
|
1957 | */
|
1958 | public static verify(message: { [k: string]: any }): (string|null);
|
1959 |
|
1960 | /**
|
1961 | * Creates a WordInfo message from a plain object. Also converts values to their respective internal types.
|
1962 | * @param object Plain object
|
1963 | * @returns WordInfo
|
1964 | */
|
1965 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1.WordInfo;
|
1966 |
|
1967 | /**
|
1968 | * Creates a plain object from a WordInfo message. Also converts values to other types if specified.
|
1969 | * @param message WordInfo
|
1970 | * @param [options] Conversion options
|
1971 | * @returns Plain object
|
1972 | */
|
1973 | public static toObject(message: google.cloud.speech.v1.WordInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
1974 |
|
1975 | /**
|
1976 | * Converts this WordInfo to JSON.
|
1977 | * @returns JSON object
|
1978 | */
|
1979 | public toJSON(): { [k: string]: any };
|
1980 | }
|
1981 | }
|
1982 |
|
1983 | /** Namespace v1p1beta1. */
|
1984 | namespace v1p1beta1 {
|
1985 |
|
1986 | /** Represents a Speech */
|
1987 | class Speech extends $protobuf.rpc.Service {
|
1988 |
|
1989 | /**
|
1990 | * Constructs a new Speech service.
|
1991 | * @param rpcImpl RPC implementation
|
1992 | * @param [requestDelimited=false] Whether requests are length-delimited
|
1993 | * @param [responseDelimited=false] Whether responses are length-delimited
|
1994 | */
|
1995 | constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
|
1996 |
|
1997 | /**
|
1998 | * Creates new Speech service using the specified rpc implementation.
|
1999 | * @param rpcImpl RPC implementation
|
2000 | * @param [requestDelimited=false] Whether requests are length-delimited
|
2001 | * @param [responseDelimited=false] Whether responses are length-delimited
|
2002 | * @returns RPC service. Useful where requests and/or responses are streamed.
|
2003 | */
|
2004 | public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Speech;
|
2005 |
|
2006 | /**
|
2007 | * Calls Recognize.
|
2008 | * @param request RecognizeRequest message or plain object
|
2009 | * @param callback Node-style callback called with the error, if any, and RecognizeResponse
|
2010 | */
|
2011 | public recognize(request: google.cloud.speech.v1p1beta1.IRecognizeRequest, callback: google.cloud.speech.v1p1beta1.Speech.RecognizeCallback): void;
|
2012 |
|
2013 | /**
|
2014 | * Calls Recognize.
|
2015 | * @param request RecognizeRequest message or plain object
|
2016 | * @returns Promise
|
2017 | */
|
2018 | public recognize(request: google.cloud.speech.v1p1beta1.IRecognizeRequest): Promise<google.cloud.speech.v1p1beta1.RecognizeResponse>;
|
2019 |
|
2020 | /**
|
2021 | * Calls LongRunningRecognize.
|
2022 | * @param request LongRunningRecognizeRequest message or plain object
|
2023 | * @param callback Node-style callback called with the error, if any, and Operation
|
2024 | */
|
2025 | public longRunningRecognize(request: google.cloud.speech.v1p1beta1.ILongRunningRecognizeRequest, callback: google.cloud.speech.v1p1beta1.Speech.LongRunningRecognizeCallback): void;
|
2026 |
|
2027 | /**
|
2028 | * Calls LongRunningRecognize.
|
2029 | * @param request LongRunningRecognizeRequest message or plain object
|
2030 | * @returns Promise
|
2031 | */
|
2032 | public longRunningRecognize(request: google.cloud.speech.v1p1beta1.ILongRunningRecognizeRequest): Promise<google.longrunning.Operation>;
|
2033 |
|
2034 | /**
|
2035 | * Calls StreamingRecognize.
|
2036 | * @param request StreamingRecognizeRequest message or plain object
|
2037 | * @param callback Node-style callback called with the error, if any, and StreamingRecognizeResponse
|
2038 | */
|
2039 | public streamingRecognize(request: google.cloud.speech.v1p1beta1.IStreamingRecognizeRequest, callback: google.cloud.speech.v1p1beta1.Speech.StreamingRecognizeCallback): void;
|
2040 |
|
2041 | /**
|
2042 | * Calls StreamingRecognize.
|
2043 | * @param request StreamingRecognizeRequest message or plain object
|
2044 | * @returns Promise
|
2045 | */
|
2046 | public streamingRecognize(request: google.cloud.speech.v1p1beta1.IStreamingRecognizeRequest): Promise<google.cloud.speech.v1p1beta1.StreamingRecognizeResponse>;
|
2047 | }
|
2048 |
|
2049 | namespace Speech {
|
2050 |
|
2051 | /**
|
2052 | * Callback as used by {@link google.cloud.speech.v1p1beta1.Speech#recognize}.
|
2053 | * @param error Error, if any
|
2054 | * @param [response] RecognizeResponse
|
2055 | */
|
2056 | type RecognizeCallback = (error: (Error|null), response?: google.cloud.speech.v1p1beta1.RecognizeResponse) => void;
|
2057 |
|
2058 | /**
|
2059 | * Callback as used by {@link google.cloud.speech.v1p1beta1.Speech#longRunningRecognize}.
|
2060 | * @param error Error, if any
|
2061 | * @param [response] Operation
|
2062 | */
|
2063 | type LongRunningRecognizeCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
|
2064 |
|
2065 | /**
|
2066 | * Callback as used by {@link google.cloud.speech.v1p1beta1.Speech#streamingRecognize}.
|
2067 | * @param error Error, if any
|
2068 | * @param [response] StreamingRecognizeResponse
|
2069 | */
|
2070 | type StreamingRecognizeCallback = (error: (Error|null), response?: google.cloud.speech.v1p1beta1.StreamingRecognizeResponse) => void;
|
2071 | }
|
2072 |
|
2073 | /** Properties of a RecognizeRequest. */
|
2074 | interface IRecognizeRequest {
|
2075 |
|
2076 | /** RecognizeRequest config */
|
2077 | config?: (google.cloud.speech.v1p1beta1.IRecognitionConfig|null);
|
2078 |
|
2079 | /** RecognizeRequest audio */
|
2080 | audio?: (google.cloud.speech.v1p1beta1.IRecognitionAudio|null);
|
2081 | }
|
2082 |
|
2083 | /** Represents a RecognizeRequest. */
|
2084 | class RecognizeRequest implements IRecognizeRequest {
|
2085 |
|
2086 | /**
|
2087 | * Constructs a new RecognizeRequest.
|
2088 | * @param [properties] Properties to set
|
2089 | */
|
2090 | constructor(properties?: google.cloud.speech.v1p1beta1.IRecognizeRequest);
|
2091 |
|
2092 | /** RecognizeRequest config. */
|
2093 | public config?: (google.cloud.speech.v1p1beta1.IRecognitionConfig|null);
|
2094 |
|
2095 | /** RecognizeRequest audio. */
|
2096 | public audio?: (google.cloud.speech.v1p1beta1.IRecognitionAudio|null);
|
2097 |
|
2098 | /**
|
2099 | * Creates a new RecognizeRequest instance using the specified properties.
|
2100 | * @param [properties] Properties to set
|
2101 | * @returns RecognizeRequest instance
|
2102 | */
|
2103 | public static create(properties?: google.cloud.speech.v1p1beta1.IRecognizeRequest): google.cloud.speech.v1p1beta1.RecognizeRequest;
|
2104 |
|
2105 | /**
|
2106 | * Encodes the specified RecognizeRequest message. Does not implicitly { google.cloud.speech.v1p1beta1.RecognizeRequest.verify|verify} messages.
|
2107 | * message RecognizeRequest message or plain object to encode
|
2108 | * [writer] Writer to encode to
|
2109 | * Writer
|
2110 | */
|
2111 | public static encode(message: google.cloud.speech.v1p1beta1.IRecognizeRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
2112 |
|
2113 | /**
|
2114 | * Encodes the specified RecognizeRequest message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.RecognizeRequest.verify|verify} messages.
|
2115 | * @param message RecognizeRequest message or plain object to encode
|
2116 | * @param [writer] Writer to encode to
|
2117 | * @returns Writer
|
2118 | */
|
2119 | public static encodeDelimited(message: google.cloud.speech.v1p1beta1.IRecognizeRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
2120 |
|
2121 | /**
|
2122 | * Decodes a RecognizeRequest message from the specified reader or buffer.
|
2123 | * @param reader Reader or buffer to decode from
|
2124 | * @param [length] Message length if known beforehand
|
2125 | * @returns RecognizeRequest
|
2126 | * @throws {Error} If the payload is not a reader or valid buffer
|
2127 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
2128 | */
|
2129 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.RecognizeRequest;
|
2130 |
|
2131 | /**
|
2132 | * Decodes a RecognizeRequest message from the specified reader or buffer, length delimited.
|
2133 | * @param reader Reader or buffer to decode from
|
2134 | * @returns RecognizeRequest
|
2135 | * @throws {Error} If the payload is not a reader or valid buffer
|
2136 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
2137 | */
|
2138 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.RecognizeRequest;
|
2139 |
|
2140 | /**
|
2141 | * Verifies a RecognizeRequest message.
|
2142 | * @param message Plain object to verify
|
2143 | * @returns `null` if valid, otherwise the reason why it is not
|
2144 | */
|
2145 | public static verify(message: { [k: string]: any }): (string|null);
|
2146 |
|
2147 | /**
|
2148 | * Creates a RecognizeRequest message from a plain object. Also converts values to their respective internal types.
|
2149 | * @param object Plain object
|
2150 | * @returns RecognizeRequest
|
2151 | */
|
2152 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.RecognizeRequest;
|
2153 |
|
2154 | /**
|
2155 | * Creates a plain object from a RecognizeRequest message. Also converts values to other types if specified.
|
2156 | * @param message RecognizeRequest
|
2157 | * @param [options] Conversion options
|
2158 | * @returns Plain object
|
2159 | */
|
2160 | public static toObject(message: google.cloud.speech.v1p1beta1.RecognizeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
2161 |
|
2162 | /**
|
2163 | * Converts this RecognizeRequest to JSON.
|
2164 | * @returns JSON object
|
2165 | */
|
2166 | public toJSON(): { [k: string]: any };
|
2167 | }
|
2168 |
|
2169 | /** Properties of a LongRunningRecognizeRequest. */
|
2170 | interface ILongRunningRecognizeRequest {
|
2171 |
|
2172 | /** LongRunningRecognizeRequest config */
|
2173 | config?: (google.cloud.speech.v1p1beta1.IRecognitionConfig|null);
|
2174 |
|
2175 | /** LongRunningRecognizeRequest audio */
|
2176 | audio?: (google.cloud.speech.v1p1beta1.IRecognitionAudio|null);
|
2177 |
|
2178 | /** LongRunningRecognizeRequest outputConfig */
|
2179 | outputConfig?: (google.cloud.speech.v1p1beta1.ITranscriptOutputConfig|null);
|
2180 | }
|
2181 |
|
2182 | /** Represents a LongRunningRecognizeRequest. */
|
2183 | class LongRunningRecognizeRequest implements ILongRunningRecognizeRequest {
|
2184 |
|
2185 | /**
|
2186 | * Constructs a new LongRunningRecognizeRequest.
|
2187 | * @param [properties] Properties to set
|
2188 | */
|
2189 | constructor(properties?: google.cloud.speech.v1p1beta1.ILongRunningRecognizeRequest);
|
2190 |
|
2191 | /** LongRunningRecognizeRequest config. */
|
2192 | public config?: (google.cloud.speech.v1p1beta1.IRecognitionConfig|null);
|
2193 |
|
2194 | /** LongRunningRecognizeRequest audio. */
|
2195 | public audio?: (google.cloud.speech.v1p1beta1.IRecognitionAudio|null);
|
2196 |
|
2197 | /** LongRunningRecognizeRequest outputConfig. */
|
2198 | public outputConfig?: (google.cloud.speech.v1p1beta1.ITranscriptOutputConfig|null);
|
2199 |
|
2200 | /**
|
2201 | * Creates a new LongRunningRecognizeRequest instance using the specified properties.
|
2202 | * @param [properties] Properties to set
|
2203 | * @returns LongRunningRecognizeRequest instance
|
2204 | */
|
2205 | public static create(properties?: google.cloud.speech.v1p1beta1.ILongRunningRecognizeRequest): google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest;
|
2206 |
|
2207 | /**
|
2208 | * Encodes the specified LongRunningRecognizeRequest message. Does not implicitly { google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest.verify|verify} messages.
|
2209 | * message LongRunningRecognizeRequest message or plain object to encode
|
2210 | * [writer] Writer to encode to
|
2211 | * Writer
|
2212 | */
|
2213 | public static encode(message: google.cloud.speech.v1p1beta1.ILongRunningRecognizeRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
2214 |
|
2215 | /**
|
2216 | * Encodes the specified LongRunningRecognizeRequest message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest.verify|verify} messages.
|
2217 | * @param message LongRunningRecognizeRequest message or plain object to encode
|
2218 | * @param [writer] Writer to encode to
|
2219 | * @returns Writer
|
2220 | */
|
2221 | public static encodeDelimited(message: google.cloud.speech.v1p1beta1.ILongRunningRecognizeRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
2222 |
|
2223 | /**
|
2224 | * Decodes a LongRunningRecognizeRequest message from the specified reader or buffer.
|
2225 | * @param reader Reader or buffer to decode from
|
2226 | * @param [length] Message length if known beforehand
|
2227 | * @returns LongRunningRecognizeRequest
|
2228 | * @throws {Error} If the payload is not a reader or valid buffer
|
2229 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
2230 | */
|
2231 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest;
|
2232 |
|
2233 | /**
|
2234 | * Decodes a LongRunningRecognizeRequest message from the specified reader or buffer, length delimited.
|
2235 | * @param reader Reader or buffer to decode from
|
2236 | * @returns LongRunningRecognizeRequest
|
2237 | * @throws {Error} If the payload is not a reader or valid buffer
|
2238 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
2239 | */
|
2240 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest;
|
2241 |
|
2242 | /**
|
2243 | * Verifies a LongRunningRecognizeRequest message.
|
2244 | * @param message Plain object to verify
|
2245 | * @returns `null` if valid, otherwise the reason why it is not
|
2246 | */
|
2247 | public static verify(message: { [k: string]: any }): (string|null);
|
2248 |
|
2249 | /**
|
2250 | * Creates a LongRunningRecognizeRequest message from a plain object. Also converts values to their respective internal types.
|
2251 | * @param object Plain object
|
2252 | * @returns LongRunningRecognizeRequest
|
2253 | */
|
2254 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest;
|
2255 |
|
2256 | /**
|
2257 | * Creates a plain object from a LongRunningRecognizeRequest message. Also converts values to other types if specified.
|
2258 | * @param message LongRunningRecognizeRequest
|
2259 | * @param [options] Conversion options
|
2260 | * @returns Plain object
|
2261 | */
|
2262 | public static toObject(message: google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
2263 |
|
2264 | /**
|
2265 | * Converts this LongRunningRecognizeRequest to JSON.
|
2266 | * @returns JSON object
|
2267 | */
|
2268 | public toJSON(): { [k: string]: any };
|
2269 | }
|
2270 |
|
2271 | /** Properties of a TranscriptOutputConfig. */
|
2272 | interface ITranscriptOutputConfig {
|
2273 |
|
2274 | /** TranscriptOutputConfig gcsUri */
|
2275 | gcsUri?: (string|null);
|
2276 | }
|
2277 |
|
2278 | /** Represents a TranscriptOutputConfig. */
|
2279 | class TranscriptOutputConfig implements ITranscriptOutputConfig {
|
2280 |
|
2281 | /**
|
2282 | * Constructs a new TranscriptOutputConfig.
|
2283 | * @param [properties] Properties to set
|
2284 | */
|
2285 | constructor(properties?: google.cloud.speech.v1p1beta1.ITranscriptOutputConfig);
|
2286 |
|
2287 | /** TranscriptOutputConfig gcsUri. */
|
2288 | public gcsUri?: (string|null);
|
2289 |
|
2290 | /** TranscriptOutputConfig outputType. */
|
2291 | public outputType?: "gcsUri";
|
2292 |
|
2293 | /**
|
2294 | * Creates a new TranscriptOutputConfig instance using the specified properties.
|
2295 | * @param [properties] Properties to set
|
2296 | * @returns TranscriptOutputConfig instance
|
2297 | */
|
2298 | public static create(properties?: google.cloud.speech.v1p1beta1.ITranscriptOutputConfig): google.cloud.speech.v1p1beta1.TranscriptOutputConfig;
|
2299 |
|
2300 | /**
|
2301 | * Encodes the specified TranscriptOutputConfig message. Does not implicitly { google.cloud.speech.v1p1beta1.TranscriptOutputConfig.verify|verify} messages.
|
2302 | * message TranscriptOutputConfig message or plain object to encode
|
2303 | * [writer] Writer to encode to
|
2304 | * Writer
|
2305 | */
|
2306 | public static encode(message: google.cloud.speech.v1p1beta1.ITranscriptOutputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
2307 |
|
2308 | /**
|
2309 | * Encodes the specified TranscriptOutputConfig message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.TranscriptOutputConfig.verify|verify} messages.
|
2310 | * @param message TranscriptOutputConfig message or plain object to encode
|
2311 | * @param [writer] Writer to encode to
|
2312 | * @returns Writer
|
2313 | */
|
2314 | public static encodeDelimited(message: google.cloud.speech.v1p1beta1.ITranscriptOutputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
2315 |
|
2316 | /**
|
2317 | * Decodes a TranscriptOutputConfig message from the specified reader or buffer.
|
2318 | * @param reader Reader or buffer to decode from
|
2319 | * @param [length] Message length if known beforehand
|
2320 | * @returns TranscriptOutputConfig
|
2321 | * @throws {Error} If the payload is not a reader or valid buffer
|
2322 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
2323 | */
|
2324 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.TranscriptOutputConfig;
|
2325 |
|
2326 | /**
|
2327 | * Decodes a TranscriptOutputConfig message from the specified reader or buffer, length delimited.
|
2328 | * @param reader Reader or buffer to decode from
|
2329 | * @returns TranscriptOutputConfig
|
2330 | * @throws {Error} If the payload is not a reader or valid buffer
|
2331 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
2332 | */
|
2333 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.TranscriptOutputConfig;
|
2334 |
|
2335 | /**
|
2336 | * Verifies a TranscriptOutputConfig message.
|
2337 | * @param message Plain object to verify
|
2338 | * @returns `null` if valid, otherwise the reason why it is not
|
2339 | */
|
2340 | public static verify(message: { [k: string]: any }): (string|null);
|
2341 |
|
2342 | /**
|
2343 | * Creates a TranscriptOutputConfig message from a plain object. Also converts values to their respective internal types.
|
2344 | * @param object Plain object
|
2345 | * @returns TranscriptOutputConfig
|
2346 | */
|
2347 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.TranscriptOutputConfig;
|
2348 |
|
2349 | /**
|
2350 | * Creates a plain object from a TranscriptOutputConfig message. Also converts values to other types if specified.
|
2351 | * @param message TranscriptOutputConfig
|
2352 | * @param [options] Conversion options
|
2353 | * @returns Plain object
|
2354 | */
|
2355 | public static toObject(message: google.cloud.speech.v1p1beta1.TranscriptOutputConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
2356 |
|
2357 | /**
|
2358 | * Converts this TranscriptOutputConfig to JSON.
|
2359 | * @returns JSON object
|
2360 | */
|
2361 | public toJSON(): { [k: string]: any };
|
2362 | }
|
2363 |
|
2364 | /** Properties of a StreamingRecognizeRequest. */
|
2365 | interface IStreamingRecognizeRequest {
|
2366 |
|
2367 | /** StreamingRecognizeRequest streamingConfig */
|
2368 | streamingConfig?: (google.cloud.speech.v1p1beta1.IStreamingRecognitionConfig|null);
|
2369 |
|
2370 | /** StreamingRecognizeRequest audioContent */
|
2371 | audioContent?: (Uint8Array|string|null);
|
2372 | }
|
2373 |
|
2374 | /** Represents a StreamingRecognizeRequest. */
|
2375 | class StreamingRecognizeRequest implements IStreamingRecognizeRequest {
|
2376 |
|
2377 | /**
|
2378 | * Constructs a new StreamingRecognizeRequest.
|
2379 | * @param [properties] Properties to set
|
2380 | */
|
2381 | constructor(properties?: google.cloud.speech.v1p1beta1.IStreamingRecognizeRequest);
|
2382 |
|
2383 | /** StreamingRecognizeRequest streamingConfig. */
|
2384 | public streamingConfig?: (google.cloud.speech.v1p1beta1.IStreamingRecognitionConfig|null);
|
2385 |
|
2386 | /** StreamingRecognizeRequest audioContent. */
|
2387 | public audioContent?: (Uint8Array|string|null);
|
2388 |
|
2389 | /** StreamingRecognizeRequest streamingRequest. */
|
2390 | public streamingRequest?: ("streamingConfig"|"audioContent");
|
2391 |
|
2392 | /**
|
2393 | * Creates a new StreamingRecognizeRequest instance using the specified properties.
|
2394 | * @param [properties] Properties to set
|
2395 | * @returns StreamingRecognizeRequest instance
|
2396 | */
|
2397 | public static create(properties?: google.cloud.speech.v1p1beta1.IStreamingRecognizeRequest): google.cloud.speech.v1p1beta1.StreamingRecognizeRequest;
|
2398 |
|
2399 | /**
|
2400 | * Encodes the specified StreamingRecognizeRequest message. Does not implicitly { google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.verify|verify} messages.
|
2401 | * message StreamingRecognizeRequest message or plain object to encode
|
2402 | * [writer] Writer to encode to
|
2403 | * Writer
|
2404 | */
|
2405 | public static encode(message: google.cloud.speech.v1p1beta1.IStreamingRecognizeRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
2406 |
|
2407 | /**
|
2408 | * Encodes the specified StreamingRecognizeRequest message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.verify|verify} messages.
|
2409 | * @param message StreamingRecognizeRequest message or plain object to encode
|
2410 | * @param [writer] Writer to encode to
|
2411 | * @returns Writer
|
2412 | */
|
2413 | public static encodeDelimited(message: google.cloud.speech.v1p1beta1.IStreamingRecognizeRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
2414 |
|
2415 | /**
|
2416 | * Decodes a StreamingRecognizeRequest message from the specified reader or buffer.
|
2417 | * @param reader Reader or buffer to decode from
|
2418 | * @param [length] Message length if known beforehand
|
2419 | * @returns StreamingRecognizeRequest
|
2420 | * @throws {Error} If the payload is not a reader or valid buffer
|
2421 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
2422 | */
|
2423 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.StreamingRecognizeRequest;
|
2424 |
|
2425 | /**
|
2426 | * Decodes a StreamingRecognizeRequest message from the specified reader or buffer, length delimited.
|
2427 | * @param reader Reader or buffer to decode from
|
2428 | * @returns StreamingRecognizeRequest
|
2429 | * @throws {Error} If the payload is not a reader or valid buffer
|
2430 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
2431 | */
|
2432 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.StreamingRecognizeRequest;
|
2433 |
|
2434 | /**
|
2435 | * Verifies a StreamingRecognizeRequest message.
|
2436 | * @param message Plain object to verify
|
2437 | * @returns `null` if valid, otherwise the reason why it is not
|
2438 | */
|
2439 | public static verify(message: { [k: string]: any }): (string|null);
|
2440 |
|
2441 | /**
|
2442 | * Creates a StreamingRecognizeRequest message from a plain object. Also converts values to their respective internal types.
|
2443 | * @param object Plain object
|
2444 | * @returns StreamingRecognizeRequest
|
2445 | */
|
2446 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.StreamingRecognizeRequest;
|
2447 |
|
2448 | /**
|
2449 | * Creates a plain object from a StreamingRecognizeRequest message. Also converts values to other types if specified.
|
2450 | * @param message StreamingRecognizeRequest
|
2451 | * @param [options] Conversion options
|
2452 | * @returns Plain object
|
2453 | */
|
2454 | public static toObject(message: google.cloud.speech.v1p1beta1.StreamingRecognizeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
2455 |
|
2456 | /**
|
2457 | * Converts this StreamingRecognizeRequest to JSON.
|
2458 | * @returns JSON object
|
2459 | */
|
2460 | public toJSON(): { [k: string]: any };
|
2461 | }
|
2462 |
|
2463 | /** Properties of a StreamingRecognitionConfig. */
|
2464 | interface IStreamingRecognitionConfig {
|
2465 |
|
2466 | /** StreamingRecognitionConfig config */
|
2467 | config?: (google.cloud.speech.v1p1beta1.IRecognitionConfig|null);
|
2468 |
|
2469 | /** StreamingRecognitionConfig singleUtterance */
|
2470 | singleUtterance?: (boolean|null);
|
2471 |
|
2472 | /** StreamingRecognitionConfig interimResults */
|
2473 | interimResults?: (boolean|null);
|
2474 | }
|
2475 |
|
2476 | /** Represents a StreamingRecognitionConfig. */
|
2477 | class StreamingRecognitionConfig implements IStreamingRecognitionConfig {
|
2478 |
|
2479 | /**
|
2480 | * Constructs a new StreamingRecognitionConfig.
|
2481 | * @param [properties] Properties to set
|
2482 | */
|
2483 | constructor(properties?: google.cloud.speech.v1p1beta1.IStreamingRecognitionConfig);
|
2484 |
|
2485 | /** StreamingRecognitionConfig config. */
|
2486 | public config?: (google.cloud.speech.v1p1beta1.IRecognitionConfig|null);
|
2487 |
|
2488 | /** StreamingRecognitionConfig singleUtterance. */
|
2489 | public singleUtterance: boolean;
|
2490 |
|
2491 | /** StreamingRecognitionConfig interimResults. */
|
2492 | public interimResults: boolean;
|
2493 |
|
2494 | /**
|
2495 | * Creates a new StreamingRecognitionConfig instance using the specified properties.
|
2496 | * @param [properties] Properties to set
|
2497 | * @returns StreamingRecognitionConfig instance
|
2498 | */
|
2499 | public static create(properties?: google.cloud.speech.v1p1beta1.IStreamingRecognitionConfig): google.cloud.speech.v1p1beta1.StreamingRecognitionConfig;
|
2500 |
|
2501 | /**
|
2502 | * Encodes the specified StreamingRecognitionConfig message. Does not implicitly { google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.verify|verify} messages.
|
2503 | * message StreamingRecognitionConfig message or plain object to encode
|
2504 | * [writer] Writer to encode to
|
2505 | * Writer
|
2506 | */
|
2507 | public static encode(message: google.cloud.speech.v1p1beta1.IStreamingRecognitionConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
2508 |
|
2509 | /**
|
2510 | * Encodes the specified StreamingRecognitionConfig message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.verify|verify} messages.
|
2511 | * @param message StreamingRecognitionConfig message or plain object to encode
|
2512 | * @param [writer] Writer to encode to
|
2513 | * @returns Writer
|
2514 | */
|
2515 | public static encodeDelimited(message: google.cloud.speech.v1p1beta1.IStreamingRecognitionConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
2516 |
|
2517 | /**
|
2518 | * Decodes a StreamingRecognitionConfig message from the specified reader or buffer.
|
2519 | * @param reader Reader or buffer to decode from
|
2520 | * @param [length] Message length if known beforehand
|
2521 | * @returns StreamingRecognitionConfig
|
2522 | * @throws {Error} If the payload is not a reader or valid buffer
|
2523 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
2524 | */
|
2525 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.StreamingRecognitionConfig;
|
2526 |
|
2527 | /**
|
2528 | * Decodes a StreamingRecognitionConfig message from the specified reader or buffer, length delimited.
|
2529 | * @param reader Reader or buffer to decode from
|
2530 | * @returns StreamingRecognitionConfig
|
2531 | * @throws {Error} If the payload is not a reader or valid buffer
|
2532 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
2533 | */
|
2534 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.StreamingRecognitionConfig;
|
2535 |
|
2536 | /**
|
2537 | * Verifies a StreamingRecognitionConfig message.
|
2538 | * @param message Plain object to verify
|
2539 | * @returns `null` if valid, otherwise the reason why it is not
|
2540 | */
|
2541 | public static verify(message: { [k: string]: any }): (string|null);
|
2542 |
|
2543 | /**
|
2544 | * Creates a StreamingRecognitionConfig message from a plain object. Also converts values to their respective internal types.
|
2545 | * @param object Plain object
|
2546 | * @returns StreamingRecognitionConfig
|
2547 | */
|
2548 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.StreamingRecognitionConfig;
|
2549 |
|
2550 | /**
|
2551 | * Creates a plain object from a StreamingRecognitionConfig message. Also converts values to other types if specified.
|
2552 | * @param message StreamingRecognitionConfig
|
2553 | * @param [options] Conversion options
|
2554 | * @returns Plain object
|
2555 | */
|
2556 | public static toObject(message: google.cloud.speech.v1p1beta1.StreamingRecognitionConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
2557 |
|
2558 | /**
|
2559 | * Converts this StreamingRecognitionConfig to JSON.
|
2560 | * @returns JSON object
|
2561 | */
|
2562 | public toJSON(): { [k: string]: any };
|
2563 | }
|
2564 |
|
2565 | /** Properties of a RecognitionConfig. */
|
2566 | interface IRecognitionConfig {
|
2567 |
|
2568 | /** RecognitionConfig encoding */
|
2569 | encoding?: (google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding|keyof typeof google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding|null);
|
2570 |
|
2571 | /** RecognitionConfig sampleRateHertz */
|
2572 | sampleRateHertz?: (number|null);
|
2573 |
|
2574 | /** RecognitionConfig audioChannelCount */
|
2575 | audioChannelCount?: (number|null);
|
2576 |
|
2577 | /** RecognitionConfig enableSeparateRecognitionPerChannel */
|
2578 | enableSeparateRecognitionPerChannel?: (boolean|null);
|
2579 |
|
2580 | /** RecognitionConfig languageCode */
|
2581 | languageCode?: (string|null);
|
2582 |
|
2583 | /** RecognitionConfig alternativeLanguageCodes */
|
2584 | alternativeLanguageCodes?: (string[]|null);
|
2585 |
|
2586 | /** RecognitionConfig maxAlternatives */
|
2587 | maxAlternatives?: (number|null);
|
2588 |
|
2589 | /** RecognitionConfig profanityFilter */
|
2590 | profanityFilter?: (boolean|null);
|
2591 |
|
2592 | /** RecognitionConfig adaptation */
|
2593 | adaptation?: (google.cloud.speech.v1p1beta1.ISpeechAdaptation|null);
|
2594 |
|
2595 | /** RecognitionConfig speechContexts */
|
2596 | speechContexts?: (google.cloud.speech.v1p1beta1.ISpeechContext[]|null);
|
2597 |
|
2598 | /** RecognitionConfig enableWordTimeOffsets */
|
2599 | enableWordTimeOffsets?: (boolean|null);
|
2600 |
|
2601 | /** RecognitionConfig enableWordConfidence */
|
2602 | enableWordConfidence?: (boolean|null);
|
2603 |
|
2604 | /** RecognitionConfig enableAutomaticPunctuation */
|
2605 | enableAutomaticPunctuation?: (boolean|null);
|
2606 |
|
2607 | /** RecognitionConfig enableSpokenPunctuation */
|
2608 | enableSpokenPunctuation?: (google.protobuf.IBoolValue|null);
|
2609 |
|
2610 | /** RecognitionConfig enableSpokenEmojis */
|
2611 | enableSpokenEmojis?: (google.protobuf.IBoolValue|null);
|
2612 |
|
2613 | /** RecognitionConfig enableSpeakerDiarization */
|
2614 | enableSpeakerDiarization?: (boolean|null);
|
2615 |
|
2616 | /** RecognitionConfig diarizationSpeakerCount */
|
2617 | diarizationSpeakerCount?: (number|null);
|
2618 |
|
2619 | /** RecognitionConfig diarizationConfig */
|
2620 | diarizationConfig?: (google.cloud.speech.v1p1beta1.ISpeakerDiarizationConfig|null);
|
2621 |
|
2622 | /** RecognitionConfig metadata */
|
2623 | metadata?: (google.cloud.speech.v1p1beta1.IRecognitionMetadata|null);
|
2624 |
|
2625 | /** RecognitionConfig model */
|
2626 | model?: (string|null);
|
2627 |
|
2628 | /** RecognitionConfig useEnhanced */
|
2629 | useEnhanced?: (boolean|null);
|
2630 | }
|
2631 |
|
2632 | /** Represents a RecognitionConfig. */
|
2633 | class RecognitionConfig implements IRecognitionConfig {
|
2634 |
|
2635 | /**
|
2636 | * Constructs a new RecognitionConfig.
|
2637 | * @param [properties] Properties to set
|
2638 | */
|
2639 | constructor(properties?: google.cloud.speech.v1p1beta1.IRecognitionConfig);
|
2640 |
|
2641 | /** RecognitionConfig encoding. */
|
2642 | public encoding: (google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding|keyof typeof google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding);
|
2643 |
|
2644 | /** RecognitionConfig sampleRateHertz. */
|
2645 | public sampleRateHertz: number;
|
2646 |
|
2647 | /** RecognitionConfig audioChannelCount. */
|
2648 | public audioChannelCount: number;
|
2649 |
|
2650 | /** RecognitionConfig enableSeparateRecognitionPerChannel. */
|
2651 | public enableSeparateRecognitionPerChannel: boolean;
|
2652 |
|
2653 | /** RecognitionConfig languageCode. */
|
2654 | public languageCode: string;
|
2655 |
|
2656 | /** RecognitionConfig alternativeLanguageCodes. */
|
2657 | public alternativeLanguageCodes: string[];
|
2658 |
|
2659 | /** RecognitionConfig maxAlternatives. */
|
2660 | public maxAlternatives: number;
|
2661 |
|
2662 | /** RecognitionConfig profanityFilter. */
|
2663 | public profanityFilter: boolean;
|
2664 |
|
2665 | /** RecognitionConfig adaptation. */
|
2666 | public adaptation?: (google.cloud.speech.v1p1beta1.ISpeechAdaptation|null);
|
2667 |
|
2668 | /** RecognitionConfig speechContexts. */
|
2669 | public speechContexts: google.cloud.speech.v1p1beta1.ISpeechContext[];
|
2670 |
|
2671 | /** RecognitionConfig enableWordTimeOffsets. */
|
2672 | public enableWordTimeOffsets: boolean;
|
2673 |
|
2674 | /** RecognitionConfig enableWordConfidence. */
|
2675 | public enableWordConfidence: boolean;
|
2676 |
|
2677 | /** RecognitionConfig enableAutomaticPunctuation. */
|
2678 | public enableAutomaticPunctuation: boolean;
|
2679 |
|
2680 | /** RecognitionConfig enableSpokenPunctuation. */
|
2681 | public enableSpokenPunctuation?: (google.protobuf.IBoolValue|null);
|
2682 |
|
2683 | /** RecognitionConfig enableSpokenEmojis. */
|
2684 | public enableSpokenEmojis?: (google.protobuf.IBoolValue|null);
|
2685 |
|
2686 | /** RecognitionConfig enableSpeakerDiarization. */
|
2687 | public enableSpeakerDiarization: boolean;
|
2688 |
|
2689 | /** RecognitionConfig diarizationSpeakerCount. */
|
2690 | public diarizationSpeakerCount: number;
|
2691 |
|
2692 | /** RecognitionConfig diarizationConfig. */
|
2693 | public diarizationConfig?: (google.cloud.speech.v1p1beta1.ISpeakerDiarizationConfig|null);
|
2694 |
|
2695 | /** RecognitionConfig metadata. */
|
2696 | public metadata?: (google.cloud.speech.v1p1beta1.IRecognitionMetadata|null);
|
2697 |
|
2698 | /** RecognitionConfig model. */
|
2699 | public model: string;
|
2700 |
|
2701 | /** RecognitionConfig useEnhanced. */
|
2702 | public useEnhanced: boolean;
|
2703 |
|
2704 | /**
|
2705 | * Creates a new RecognitionConfig instance using the specified properties.
|
2706 | * @param [properties] Properties to set
|
2707 | * @returns RecognitionConfig instance
|
2708 | */
|
2709 | public static create(properties?: google.cloud.speech.v1p1beta1.IRecognitionConfig): google.cloud.speech.v1p1beta1.RecognitionConfig;
|
2710 |
|
2711 | /**
|
2712 | * Encodes the specified RecognitionConfig message. Does not implicitly { google.cloud.speech.v1p1beta1.RecognitionConfig.verify|verify} messages.
|
2713 | * message RecognitionConfig message or plain object to encode
|
2714 | * [writer] Writer to encode to
|
2715 | * Writer
|
2716 | */
|
2717 | public static encode(message: google.cloud.speech.v1p1beta1.IRecognitionConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
2718 |
|
2719 | /**
|
2720 | * Encodes the specified RecognitionConfig message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.RecognitionConfig.verify|verify} messages.
|
2721 | * @param message RecognitionConfig message or plain object to encode
|
2722 | * @param [writer] Writer to encode to
|
2723 | * @returns Writer
|
2724 | */
|
2725 | public static encodeDelimited(message: google.cloud.speech.v1p1beta1.IRecognitionConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
2726 |
|
2727 | /**
|
2728 | * Decodes a RecognitionConfig message from the specified reader or buffer.
|
2729 | * @param reader Reader or buffer to decode from
|
2730 | * @param [length] Message length if known beforehand
|
2731 | * @returns RecognitionConfig
|
2732 | * @throws {Error} If the payload is not a reader or valid buffer
|
2733 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
2734 | */
|
2735 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.RecognitionConfig;
|
2736 |
|
2737 | /**
|
2738 | * Decodes a RecognitionConfig message from the specified reader or buffer, length delimited.
|
2739 | * @param reader Reader or buffer to decode from
|
2740 | * @returns RecognitionConfig
|
2741 | * @throws {Error} If the payload is not a reader or valid buffer
|
2742 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
2743 | */
|
2744 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.RecognitionConfig;
|
2745 |
|
2746 | /**
|
2747 | * Verifies a RecognitionConfig message.
|
2748 | * @param message Plain object to verify
|
2749 | * @returns `null` if valid, otherwise the reason why it is not
|
2750 | */
|
2751 | public static verify(message: { [k: string]: any }): (string|null);
|
2752 |
|
2753 | /**
|
2754 | * Creates a RecognitionConfig message from a plain object. Also converts values to their respective internal types.
|
2755 | * @param object Plain object
|
2756 | * @returns RecognitionConfig
|
2757 | */
|
2758 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.RecognitionConfig;
|
2759 |
|
2760 | /**
|
2761 | * Creates a plain object from a RecognitionConfig message. Also converts values to other types if specified.
|
2762 | * @param message RecognitionConfig
|
2763 | * @param [options] Conversion options
|
2764 | * @returns Plain object
|
2765 | */
|
2766 | public static toObject(message: google.cloud.speech.v1p1beta1.RecognitionConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
2767 |
|
2768 | /**
|
2769 | * Converts this RecognitionConfig to JSON.
|
2770 | * @returns JSON object
|
2771 | */
|
2772 | public toJSON(): { [k: string]: any };
|
2773 | }
|
2774 |
|
2775 | namespace RecognitionConfig {
|
2776 |
|
2777 | /** AudioEncoding enum. */
|
2778 | enum AudioEncoding {
|
2779 | ENCODING_UNSPECIFIED = 0,
|
2780 | LINEAR16 = 1,
|
2781 | FLAC = 2,
|
2782 | MULAW = 3,
|
2783 | AMR = 4,
|
2784 | AMR_WB = 5,
|
2785 | OGG_OPUS = 6,
|
2786 | SPEEX_WITH_HEADER_BYTE = 7,
|
2787 | MP3 = 8,
|
2788 | WEBM_OPUS = 9
|
2789 | }
|
2790 | }
|
2791 |
|
2792 | /** Properties of a SpeakerDiarizationConfig. */
|
2793 | interface ISpeakerDiarizationConfig {
|
2794 |
|
2795 | /** SpeakerDiarizationConfig enableSpeakerDiarization */
|
2796 | enableSpeakerDiarization?: (boolean|null);
|
2797 |
|
2798 | /** SpeakerDiarizationConfig minSpeakerCount */
|
2799 | minSpeakerCount?: (number|null);
|
2800 |
|
2801 | /** SpeakerDiarizationConfig maxSpeakerCount */
|
2802 | maxSpeakerCount?: (number|null);
|
2803 |
|
2804 | /** SpeakerDiarizationConfig speakerTag */
|
2805 | speakerTag?: (number|null);
|
2806 | }
|
2807 |
|
2808 | /** Represents a SpeakerDiarizationConfig. */
|
2809 | class SpeakerDiarizationConfig implements ISpeakerDiarizationConfig {
|
2810 |
|
2811 | /**
|
2812 | * Constructs a new SpeakerDiarizationConfig.
|
2813 | * @param [properties] Properties to set
|
2814 | */
|
2815 | constructor(properties?: google.cloud.speech.v1p1beta1.ISpeakerDiarizationConfig);
|
2816 |
|
2817 | /** SpeakerDiarizationConfig enableSpeakerDiarization. */
|
2818 | public enableSpeakerDiarization: boolean;
|
2819 |
|
2820 | /** SpeakerDiarizationConfig minSpeakerCount. */
|
2821 | public minSpeakerCount: number;
|
2822 |
|
2823 | /** SpeakerDiarizationConfig maxSpeakerCount. */
|
2824 | public maxSpeakerCount: number;
|
2825 |
|
2826 | /** SpeakerDiarizationConfig speakerTag. */
|
2827 | public speakerTag: number;
|
2828 |
|
2829 | /**
|
2830 | * Creates a new SpeakerDiarizationConfig instance using the specified properties.
|
2831 | * @param [properties] Properties to set
|
2832 | * @returns SpeakerDiarizationConfig instance
|
2833 | */
|
2834 | public static create(properties?: google.cloud.speech.v1p1beta1.ISpeakerDiarizationConfig): google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig;
|
2835 |
|
2836 | /**
|
2837 | * Encodes the specified SpeakerDiarizationConfig message. Does not implicitly { google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.verify|verify} messages.
|
2838 | * message SpeakerDiarizationConfig message or plain object to encode
|
2839 | * [writer] Writer to encode to
|
2840 | * Writer
|
2841 | */
|
2842 | public static encode(message: google.cloud.speech.v1p1beta1.ISpeakerDiarizationConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
2843 |
|
2844 | /**
|
2845 | * Encodes the specified SpeakerDiarizationConfig message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.verify|verify} messages.
|
2846 | * @param message SpeakerDiarizationConfig message or plain object to encode
|
2847 | * @param [writer] Writer to encode to
|
2848 | * @returns Writer
|
2849 | */
|
2850 | public static encodeDelimited(message: google.cloud.speech.v1p1beta1.ISpeakerDiarizationConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
2851 |
|
2852 | /**
|
2853 | * Decodes a SpeakerDiarizationConfig message from the specified reader or buffer.
|
2854 | * @param reader Reader or buffer to decode from
|
2855 | * @param [length] Message length if known beforehand
|
2856 | * @returns SpeakerDiarizationConfig
|
2857 | * @throws {Error} If the payload is not a reader or valid buffer
|
2858 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
2859 | */
|
2860 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig;
|
2861 |
|
2862 | /**
|
2863 | * Decodes a SpeakerDiarizationConfig message from the specified reader or buffer, length delimited.
|
2864 | * @param reader Reader or buffer to decode from
|
2865 | * @returns SpeakerDiarizationConfig
|
2866 | * @throws {Error} If the payload is not a reader or valid buffer
|
2867 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
2868 | */
|
2869 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig;
|
2870 |
|
2871 | /**
|
2872 | * Verifies a SpeakerDiarizationConfig message.
|
2873 | * @param message Plain object to verify
|
2874 | * @returns `null` if valid, otherwise the reason why it is not
|
2875 | */
|
2876 | public static verify(message: { [k: string]: any }): (string|null);
|
2877 |
|
2878 | /**
|
2879 | * Creates a SpeakerDiarizationConfig message from a plain object. Also converts values to their respective internal types.
|
2880 | * @param object Plain object
|
2881 | * @returns SpeakerDiarizationConfig
|
2882 | */
|
2883 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig;
|
2884 |
|
2885 | /**
|
2886 | * Creates a plain object from a SpeakerDiarizationConfig message. Also converts values to other types if specified.
|
2887 | * @param message SpeakerDiarizationConfig
|
2888 | * @param [options] Conversion options
|
2889 | * @returns Plain object
|
2890 | */
|
2891 | public static toObject(message: google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
2892 |
|
2893 | /**
|
2894 | * Converts this SpeakerDiarizationConfig to JSON.
|
2895 | * @returns JSON object
|
2896 | */
|
2897 | public toJSON(): { [k: string]: any };
|
2898 | }
|
2899 |
|
2900 | /** Properties of a RecognitionMetadata. */
|
2901 | interface IRecognitionMetadata {
|
2902 |
|
2903 | /** RecognitionMetadata interactionType */
|
2904 | interactionType?: (google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType|keyof typeof google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType|null);
|
2905 |
|
2906 | /** RecognitionMetadata industryNaicsCodeOfAudio */
|
2907 | industryNaicsCodeOfAudio?: (number|null);
|
2908 |
|
2909 | /** RecognitionMetadata microphoneDistance */
|
2910 | microphoneDistance?: (google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance|keyof typeof google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance|null);
|
2911 |
|
2912 | /** RecognitionMetadata originalMediaType */
|
2913 | originalMediaType?: (google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType|keyof typeof google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType|null);
|
2914 |
|
2915 | /** RecognitionMetadata recordingDeviceType */
|
2916 | recordingDeviceType?: (google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType|keyof typeof google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType|null);
|
2917 |
|
2918 | /** RecognitionMetadata recordingDeviceName */
|
2919 | recordingDeviceName?: (string|null);
|
2920 |
|
2921 | /** RecognitionMetadata originalMimeType */
|
2922 | originalMimeType?: (string|null);
|
2923 |
|
2924 | /** RecognitionMetadata obfuscatedId */
|
2925 | obfuscatedId?: (number|Long|string|null);
|
2926 |
|
2927 | /** RecognitionMetadata audioTopic */
|
2928 | audioTopic?: (string|null);
|
2929 | }
|
2930 |
|
2931 | /** Represents a RecognitionMetadata. */
|
2932 | class RecognitionMetadata implements IRecognitionMetadata {
|
2933 |
|
2934 | /**
|
2935 | * Constructs a new RecognitionMetadata.
|
2936 | * @param [properties] Properties to set
|
2937 | */
|
2938 | constructor(properties?: google.cloud.speech.v1p1beta1.IRecognitionMetadata);
|
2939 |
|
2940 | /** RecognitionMetadata interactionType. */
|
2941 | public interactionType: (google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType|keyof typeof google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType);
|
2942 |
|
2943 | /** RecognitionMetadata industryNaicsCodeOfAudio. */
|
2944 | public industryNaicsCodeOfAudio: number;
|
2945 |
|
2946 | /** RecognitionMetadata microphoneDistance. */
|
2947 | public microphoneDistance: (google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance|keyof typeof google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance);
|
2948 |
|
2949 | /** RecognitionMetadata originalMediaType. */
|
2950 | public originalMediaType: (google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType|keyof typeof google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType);
|
2951 |
|
2952 | /** RecognitionMetadata recordingDeviceType. */
|
2953 | public recordingDeviceType: (google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType|keyof typeof google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType);
|
2954 |
|
2955 | /** RecognitionMetadata recordingDeviceName. */
|
2956 | public recordingDeviceName: string;
|
2957 |
|
2958 | /** RecognitionMetadata originalMimeType. */
|
2959 | public originalMimeType: string;
|
2960 |
|
2961 | /** RecognitionMetadata obfuscatedId. */
|
2962 | public obfuscatedId: (number|Long|string);
|
2963 |
|
2964 | /** RecognitionMetadata audioTopic. */
|
2965 | public audioTopic: string;
|
2966 |
|
2967 | /**
|
2968 | * Creates a new RecognitionMetadata instance using the specified properties.
|
2969 | * @param [properties] Properties to set
|
2970 | * @returns RecognitionMetadata instance
|
2971 | */
|
2972 | public static create(properties?: google.cloud.speech.v1p1beta1.IRecognitionMetadata): google.cloud.speech.v1p1beta1.RecognitionMetadata;
|
2973 |
|
2974 | /**
|
2975 | * Encodes the specified RecognitionMetadata message. Does not implicitly { google.cloud.speech.v1p1beta1.RecognitionMetadata.verify|verify} messages.
|
2976 | * message RecognitionMetadata message or plain object to encode
|
2977 | * [writer] Writer to encode to
|
2978 | * Writer
|
2979 | */
|
2980 | public static encode(message: google.cloud.speech.v1p1beta1.IRecognitionMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
|
2981 |
|
2982 | /**
|
2983 | * Encodes the specified RecognitionMetadata message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.RecognitionMetadata.verify|verify} messages.
|
2984 | * @param message RecognitionMetadata message or plain object to encode
|
2985 | * @param [writer] Writer to encode to
|
2986 | * @returns Writer
|
2987 | */
|
2988 | public static encodeDelimited(message: google.cloud.speech.v1p1beta1.IRecognitionMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
|
2989 |
|
2990 | /**
|
2991 | * Decodes a RecognitionMetadata message from the specified reader or buffer.
|
2992 | * @param reader Reader or buffer to decode from
|
2993 | * @param [length] Message length if known beforehand
|
2994 | * @returns RecognitionMetadata
|
2995 | * @throws {Error} If the payload is not a reader or valid buffer
|
2996 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
2997 | */
|
2998 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.RecognitionMetadata;
|
2999 |
|
3000 | /**
|
3001 | * Decodes a RecognitionMetadata message from the specified reader or buffer, length delimited.
|
3002 | * @param reader Reader or buffer to decode from
|
3003 | * @returns RecognitionMetadata
|
3004 | * @throws {Error} If the payload is not a reader or valid buffer
|
3005 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
3006 | */
|
3007 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.RecognitionMetadata;
|
3008 |
|
3009 | /**
|
3010 | * Verifies a RecognitionMetadata message.
|
3011 | * @param message Plain object to verify
|
3012 | * @returns `null` if valid, otherwise the reason why it is not
|
3013 | */
|
3014 | public static verify(message: { [k: string]: any }): (string|null);
|
3015 |
|
3016 | /**
|
3017 | * Creates a RecognitionMetadata message from a plain object. Also converts values to their respective internal types.
|
3018 | * @param object Plain object
|
3019 | * @returns RecognitionMetadata
|
3020 | */
|
3021 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.RecognitionMetadata;
|
3022 |
|
3023 | /**
|
3024 | * Creates a plain object from a RecognitionMetadata message. Also converts values to other types if specified.
|
3025 | * @param message RecognitionMetadata
|
3026 | * @param [options] Conversion options
|
3027 | * @returns Plain object
|
3028 | */
|
3029 | public static toObject(message: google.cloud.speech.v1p1beta1.RecognitionMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
3030 |
|
3031 | /**
|
3032 | * Converts this RecognitionMetadata to JSON.
|
3033 | * @returns JSON object
|
3034 | */
|
3035 | public toJSON(): { [k: string]: any };
|
3036 | }
|
3037 |
|
3038 | namespace RecognitionMetadata {
|
3039 |
|
3040 | /** InteractionType enum. */
|
3041 | enum InteractionType {
|
3042 | INTERACTION_TYPE_UNSPECIFIED = 0,
|
3043 | DISCUSSION = 1,
|
3044 | PRESENTATION = 2,
|
3045 | PHONE_CALL = 3,
|
3046 | VOICEMAIL = 4,
|
3047 | PROFESSIONALLY_PRODUCED = 5,
|
3048 | VOICE_SEARCH = 6,
|
3049 | VOICE_COMMAND = 7,
|
3050 | DICTATION = 8
|
3051 | }
|
3052 |
|
3053 | /** MicrophoneDistance enum. */
|
3054 | enum MicrophoneDistance {
|
3055 | MICROPHONE_DISTANCE_UNSPECIFIED = 0,
|
3056 | NEARFIELD = 1,
|
3057 | MIDFIELD = 2,
|
3058 | FARFIELD = 3
|
3059 | }
|
3060 |
|
3061 | /** OriginalMediaType enum. */
|
3062 | enum OriginalMediaType {
|
3063 | ORIGINAL_MEDIA_TYPE_UNSPECIFIED = 0,
|
3064 | AUDIO = 1,
|
3065 | VIDEO = 2
|
3066 | }
|
3067 |
|
3068 | /** RecordingDeviceType enum. */
|
3069 | enum RecordingDeviceType {
|
3070 | RECORDING_DEVICE_TYPE_UNSPECIFIED = 0,
|
3071 | SMARTPHONE = 1,
|
3072 | PC = 2,
|
3073 | PHONE_LINE = 3,
|
3074 | VEHICLE = 4,
|
3075 | OTHER_OUTDOOR_DEVICE = 5,
|
3076 | OTHER_INDOOR_DEVICE = 6
|
3077 | }
|
3078 | }
|
3079 |
|
3080 | /** Properties of a SpeechContext. */
|
3081 | interface ISpeechContext {
|
3082 |
|
3083 | /** SpeechContext phrases */
|
3084 | phrases?: (string[]|null);
|
3085 |
|
3086 | /** SpeechContext boost */
|
3087 | boost?: (number|null);
|
3088 | }
|
3089 |
|
3090 | /** Represents a SpeechContext. */
|
3091 | class SpeechContext implements ISpeechContext {
|
3092 |
|
3093 | /**
|
3094 | * Constructs a new SpeechContext.
|
3095 | * @param [properties] Properties to set
|
3096 | */
|
3097 | constructor(properties?: google.cloud.speech.v1p1beta1.ISpeechContext);
|
3098 |
|
3099 | /** SpeechContext phrases. */
|
3100 | public phrases: string[];
|
3101 |
|
3102 | /** SpeechContext boost. */
|
3103 | public boost: number;
|
3104 |
|
3105 | /**
|
3106 | * Creates a new SpeechContext instance using the specified properties.
|
3107 | * @param [properties] Properties to set
|
3108 | * @returns SpeechContext instance
|
3109 | */
|
3110 | public static create(properties?: google.cloud.speech.v1p1beta1.ISpeechContext): google.cloud.speech.v1p1beta1.SpeechContext;
|
3111 |
|
3112 | /**
|
3113 | * Encodes the specified SpeechContext message. Does not implicitly { google.cloud.speech.v1p1beta1.SpeechContext.verify|verify} messages.
|
3114 | * message SpeechContext message or plain object to encode
|
3115 | * [writer] Writer to encode to
|
3116 | * Writer
|
3117 | */
|
3118 | public static encode(message: google.cloud.speech.v1p1beta1.ISpeechContext, writer?: $protobuf.Writer): $protobuf.Writer;
|
3119 |
|
3120 | /**
|
3121 | * Encodes the specified SpeechContext message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.SpeechContext.verify|verify} messages.
|
3122 | * @param message SpeechContext message or plain object to encode
|
3123 | * @param [writer] Writer to encode to
|
3124 | * @returns Writer
|
3125 | */
|
3126 | public static encodeDelimited(message: google.cloud.speech.v1p1beta1.ISpeechContext, writer?: $protobuf.Writer): $protobuf.Writer;
|
3127 |
|
3128 | /**
|
3129 | * Decodes a SpeechContext message from the specified reader or buffer.
|
3130 | * @param reader Reader or buffer to decode from
|
3131 | * @param [length] Message length if known beforehand
|
3132 | * @returns SpeechContext
|
3133 | * @throws {Error} If the payload is not a reader or valid buffer
|
3134 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
3135 | */
|
3136 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.SpeechContext;
|
3137 |
|
3138 | /**
|
3139 | * Decodes a SpeechContext message from the specified reader or buffer, length delimited.
|
3140 | * @param reader Reader or buffer to decode from
|
3141 | * @returns SpeechContext
|
3142 | * @throws {Error} If the payload is not a reader or valid buffer
|
3143 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
3144 | */
|
3145 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.SpeechContext;
|
3146 |
|
3147 | /**
|
3148 | * Verifies a SpeechContext message.
|
3149 | * @param message Plain object to verify
|
3150 | * @returns `null` if valid, otherwise the reason why it is not
|
3151 | */
|
3152 | public static verify(message: { [k: string]: any }): (string|null);
|
3153 |
|
3154 | /**
|
3155 | * Creates a SpeechContext message from a plain object. Also converts values to their respective internal types.
|
3156 | * @param object Plain object
|
3157 | * @returns SpeechContext
|
3158 | */
|
3159 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.SpeechContext;
|
3160 |
|
3161 | /**
|
3162 | * Creates a plain object from a SpeechContext message. Also converts values to other types if specified.
|
3163 | * @param message SpeechContext
|
3164 | * @param [options] Conversion options
|
3165 | * @returns Plain object
|
3166 | */
|
3167 | public static toObject(message: google.cloud.speech.v1p1beta1.SpeechContext, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
3168 |
|
3169 | /**
|
3170 | * Converts this SpeechContext to JSON.
|
3171 | * @returns JSON object
|
3172 | */
|
3173 | public toJSON(): { [k: string]: any };
|
3174 | }
|
3175 |
|
3176 | /** Properties of a RecognitionAudio. */
|
3177 | interface IRecognitionAudio {
|
3178 |
|
3179 | /** RecognitionAudio content */
|
3180 | content?: (Uint8Array|string|null);
|
3181 |
|
3182 | /** RecognitionAudio uri */
|
3183 | uri?: (string|null);
|
3184 | }
|
3185 |
|
3186 | /** Represents a RecognitionAudio. */
|
3187 | class RecognitionAudio implements IRecognitionAudio {
|
3188 |
|
3189 | /**
|
3190 | * Constructs a new RecognitionAudio.
|
3191 | * @param [properties] Properties to set
|
3192 | */
|
3193 | constructor(properties?: google.cloud.speech.v1p1beta1.IRecognitionAudio);
|
3194 |
|
3195 | /** RecognitionAudio content. */
|
3196 | public content?: (Uint8Array|string|null);
|
3197 |
|
3198 | /** RecognitionAudio uri. */
|
3199 | public uri?: (string|null);
|
3200 |
|
3201 | /** RecognitionAudio audioSource. */
|
3202 | public audioSource?: ("content"|"uri");
|
3203 |
|
3204 | /**
|
3205 | * Creates a new RecognitionAudio instance using the specified properties.
|
3206 | * @param [properties] Properties to set
|
3207 | * @returns RecognitionAudio instance
|
3208 | */
|
3209 | public static create(properties?: google.cloud.speech.v1p1beta1.IRecognitionAudio): google.cloud.speech.v1p1beta1.RecognitionAudio;
|
3210 |
|
3211 | /**
|
3212 | * Encodes the specified RecognitionAudio message. Does not implicitly { google.cloud.speech.v1p1beta1.RecognitionAudio.verify|verify} messages.
|
3213 | * message RecognitionAudio message or plain object to encode
|
3214 | * [writer] Writer to encode to
|
3215 | * Writer
|
3216 | */
|
3217 | public static encode(message: google.cloud.speech.v1p1beta1.IRecognitionAudio, writer?: $protobuf.Writer): $protobuf.Writer;
|
3218 |
|
3219 | /**
|
3220 | * Encodes the specified RecognitionAudio message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.RecognitionAudio.verify|verify} messages.
|
3221 | * @param message RecognitionAudio message or plain object to encode
|
3222 | * @param [writer] Writer to encode to
|
3223 | * @returns Writer
|
3224 | */
|
3225 | public static encodeDelimited(message: google.cloud.speech.v1p1beta1.IRecognitionAudio, writer?: $protobuf.Writer): $protobuf.Writer;
|
3226 |
|
3227 | /**
|
3228 | * Decodes a RecognitionAudio message from the specified reader or buffer.
|
3229 | * @param reader Reader or buffer to decode from
|
3230 | * @param [length] Message length if known beforehand
|
3231 | * @returns RecognitionAudio
|
3232 | * @throws {Error} If the payload is not a reader or valid buffer
|
3233 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
3234 | */
|
3235 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.RecognitionAudio;
|
3236 |
|
3237 | /**
|
3238 | * Decodes a RecognitionAudio message from the specified reader or buffer, length delimited.
|
3239 | * @param reader Reader or buffer to decode from
|
3240 | * @returns RecognitionAudio
|
3241 | * @throws {Error} If the payload is not a reader or valid buffer
|
3242 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
3243 | */
|
3244 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.RecognitionAudio;
|
3245 |
|
3246 | /**
|
3247 | * Verifies a RecognitionAudio message.
|
3248 | * @param message Plain object to verify
|
3249 | * @returns `null` if valid, otherwise the reason why it is not
|
3250 | */
|
3251 | public static verify(message: { [k: string]: any }): (string|null);
|
3252 |
|
3253 | /**
|
3254 | * Creates a RecognitionAudio message from a plain object. Also converts values to their respective internal types.
|
3255 | * @param object Plain object
|
3256 | * @returns RecognitionAudio
|
3257 | */
|
3258 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.RecognitionAudio;
|
3259 |
|
3260 | /**
|
3261 | * Creates a plain object from a RecognitionAudio message. Also converts values to other types if specified.
|
3262 | * @param message RecognitionAudio
|
3263 | * @param [options] Conversion options
|
3264 | * @returns Plain object
|
3265 | */
|
3266 | public static toObject(message: google.cloud.speech.v1p1beta1.RecognitionAudio, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
3267 |
|
3268 | /**
|
3269 | * Converts this RecognitionAudio to JSON.
|
3270 | * @returns JSON object
|
3271 | */
|
3272 | public toJSON(): { [k: string]: any };
|
3273 | }
|
3274 |
|
3275 | /** Properties of a RecognizeResponse. */
|
3276 | interface IRecognizeResponse {
|
3277 |
|
3278 | /** RecognizeResponse results */
|
3279 | results?: (google.cloud.speech.v1p1beta1.ISpeechRecognitionResult[]|null);
|
3280 | }
|
3281 |
|
3282 | /** Represents a RecognizeResponse. */
|
3283 | class RecognizeResponse implements IRecognizeResponse {
|
3284 |
|
3285 | /**
|
3286 | * Constructs a new RecognizeResponse.
|
3287 | * @param [properties] Properties to set
|
3288 | */
|
3289 | constructor(properties?: google.cloud.speech.v1p1beta1.IRecognizeResponse);
|
3290 |
|
3291 | /** RecognizeResponse results. */
|
3292 | public results: google.cloud.speech.v1p1beta1.ISpeechRecognitionResult[];
|
3293 |
|
3294 | /**
|
3295 | * Creates a new RecognizeResponse instance using the specified properties.
|
3296 | * @param [properties] Properties to set
|
3297 | * @returns RecognizeResponse instance
|
3298 | */
|
3299 | public static create(properties?: google.cloud.speech.v1p1beta1.IRecognizeResponse): google.cloud.speech.v1p1beta1.RecognizeResponse;
|
3300 |
|
3301 | /**
|
3302 | * Encodes the specified RecognizeResponse message. Does not implicitly { google.cloud.speech.v1p1beta1.RecognizeResponse.verify|verify} messages.
|
3303 | * message RecognizeResponse message or plain object to encode
|
3304 | * [writer] Writer to encode to
|
3305 | * Writer
|
3306 | */
|
3307 | public static encode(message: google.cloud.speech.v1p1beta1.IRecognizeResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
3308 |
|
3309 | /**
|
3310 | * Encodes the specified RecognizeResponse message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.RecognizeResponse.verify|verify} messages.
|
3311 | * @param message RecognizeResponse message or plain object to encode
|
3312 | * @param [writer] Writer to encode to
|
3313 | * @returns Writer
|
3314 | */
|
3315 | public static encodeDelimited(message: google.cloud.speech.v1p1beta1.IRecognizeResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
3316 |
|
3317 | /**
|
3318 | * Decodes a RecognizeResponse message from the specified reader or buffer.
|
3319 | * @param reader Reader or buffer to decode from
|
3320 | * @param [length] Message length if known beforehand
|
3321 | * @returns RecognizeResponse
|
3322 | * @throws {Error} If the payload is not a reader or valid buffer
|
3323 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
3324 | */
|
3325 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.RecognizeResponse;
|
3326 |
|
3327 | /**
|
3328 | * Decodes a RecognizeResponse message from the specified reader or buffer, length delimited.
|
3329 | * @param reader Reader or buffer to decode from
|
3330 | * @returns RecognizeResponse
|
3331 | * @throws {Error} If the payload is not a reader or valid buffer
|
3332 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
3333 | */
|
3334 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.RecognizeResponse;
|
3335 |
|
3336 | /**
|
3337 | * Verifies a RecognizeResponse message.
|
3338 | * @param message Plain object to verify
|
3339 | * @returns `null` if valid, otherwise the reason why it is not
|
3340 | */
|
3341 | public static verify(message: { [k: string]: any }): (string|null);
|
3342 |
|
3343 | /**
|
3344 | * Creates a RecognizeResponse message from a plain object. Also converts values to their respective internal types.
|
3345 | * @param object Plain object
|
3346 | * @returns RecognizeResponse
|
3347 | */
|
3348 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.RecognizeResponse;
|
3349 |
|
3350 | /**
|
3351 | * Creates a plain object from a RecognizeResponse message. Also converts values to other types if specified.
|
3352 | * @param message RecognizeResponse
|
3353 | * @param [options] Conversion options
|
3354 | * @returns Plain object
|
3355 | */
|
3356 | public static toObject(message: google.cloud.speech.v1p1beta1.RecognizeResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
3357 |
|
3358 | /**
|
3359 | * Converts this RecognizeResponse to JSON.
|
3360 | * @returns JSON object
|
3361 | */
|
3362 | public toJSON(): { [k: string]: any };
|
3363 | }
|
3364 |
|
3365 | /** Properties of a LongRunningRecognizeResponse. */
|
3366 | interface ILongRunningRecognizeResponse {
|
3367 |
|
3368 | /** LongRunningRecognizeResponse results */
|
3369 | results?: (google.cloud.speech.v1p1beta1.ISpeechRecognitionResult[]|null);
|
3370 |
|
3371 | /** LongRunningRecognizeResponse outputConfig */
|
3372 | outputConfig?: (google.cloud.speech.v1p1beta1.ITranscriptOutputConfig|null);
|
3373 |
|
3374 | /** LongRunningRecognizeResponse outputError */
|
3375 | outputError?: (google.rpc.IStatus|null);
|
3376 | }
|
3377 |
|
3378 | /** Represents a LongRunningRecognizeResponse. */
|
3379 | class LongRunningRecognizeResponse implements ILongRunningRecognizeResponse {
|
3380 |
|
3381 | /**
|
3382 | * Constructs a new LongRunningRecognizeResponse.
|
3383 | * @param [properties] Properties to set
|
3384 | */
|
3385 | constructor(properties?: google.cloud.speech.v1p1beta1.ILongRunningRecognizeResponse);
|
3386 |
|
3387 | /** LongRunningRecognizeResponse results. */
|
3388 | public results: google.cloud.speech.v1p1beta1.ISpeechRecognitionResult[];
|
3389 |
|
3390 | /** LongRunningRecognizeResponse outputConfig. */
|
3391 | public outputConfig?: (google.cloud.speech.v1p1beta1.ITranscriptOutputConfig|null);
|
3392 |
|
3393 | /** LongRunningRecognizeResponse outputError. */
|
3394 | public outputError?: (google.rpc.IStatus|null);
|
3395 |
|
3396 | /**
|
3397 | * Creates a new LongRunningRecognizeResponse instance using the specified properties.
|
3398 | * @param [properties] Properties to set
|
3399 | * @returns LongRunningRecognizeResponse instance
|
3400 | */
|
3401 | public static create(properties?: google.cloud.speech.v1p1beta1.ILongRunningRecognizeResponse): google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse;
|
3402 |
|
3403 | /**
|
3404 | * Encodes the specified LongRunningRecognizeResponse message. Does not implicitly { google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse.verify|verify} messages.
|
3405 | * message LongRunningRecognizeResponse message or plain object to encode
|
3406 | * [writer] Writer to encode to
|
3407 | * Writer
|
3408 | */
|
3409 | public static encode(message: google.cloud.speech.v1p1beta1.ILongRunningRecognizeResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
3410 |
|
3411 | /**
|
3412 | * Encodes the specified LongRunningRecognizeResponse message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse.verify|verify} messages.
|
3413 | * @param message LongRunningRecognizeResponse message or plain object to encode
|
3414 | * @param [writer] Writer to encode to
|
3415 | * @returns Writer
|
3416 | */
|
3417 | public static encodeDelimited(message: google.cloud.speech.v1p1beta1.ILongRunningRecognizeResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
3418 |
|
3419 | /**
|
3420 | * Decodes a LongRunningRecognizeResponse message from the specified reader or buffer.
|
3421 | * @param reader Reader or buffer to decode from
|
3422 | * @param [length] Message length if known beforehand
|
3423 | * @returns LongRunningRecognizeResponse
|
3424 | * @throws {Error} If the payload is not a reader or valid buffer
|
3425 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
3426 | */
|
3427 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse;
|
3428 |
|
3429 | /**
|
3430 | * Decodes a LongRunningRecognizeResponse message from the specified reader or buffer, length delimited.
|
3431 | * @param reader Reader or buffer to decode from
|
3432 | * @returns LongRunningRecognizeResponse
|
3433 | * @throws {Error} If the payload is not a reader or valid buffer
|
3434 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
3435 | */
|
3436 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse;
|
3437 |
|
3438 | /**
|
3439 | * Verifies a LongRunningRecognizeResponse message.
|
3440 | * @param message Plain object to verify
|
3441 | * @returns `null` if valid, otherwise the reason why it is not
|
3442 | */
|
3443 | public static verify(message: { [k: string]: any }): (string|null);
|
3444 |
|
3445 | /**
|
3446 | * Creates a LongRunningRecognizeResponse message from a plain object. Also converts values to their respective internal types.
|
3447 | * @param object Plain object
|
3448 | * @returns LongRunningRecognizeResponse
|
3449 | */
|
3450 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse;
|
3451 |
|
3452 | /**
|
3453 | * Creates a plain object from a LongRunningRecognizeResponse message. Also converts values to other types if specified.
|
3454 | * @param message LongRunningRecognizeResponse
|
3455 | * @param [options] Conversion options
|
3456 | * @returns Plain object
|
3457 | */
|
3458 | public static toObject(message: google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
3459 |
|
3460 | /**
|
3461 | * Converts this LongRunningRecognizeResponse to JSON.
|
3462 | * @returns JSON object
|
3463 | */
|
3464 | public toJSON(): { [k: string]: any };
|
3465 | }
|
3466 |
|
3467 | /** Properties of a LongRunningRecognizeMetadata. */
|
3468 | interface ILongRunningRecognizeMetadata {
|
3469 |
|
3470 | /** LongRunningRecognizeMetadata progressPercent */
|
3471 | progressPercent?: (number|null);
|
3472 |
|
3473 | /** LongRunningRecognizeMetadata startTime */
|
3474 | startTime?: (google.protobuf.ITimestamp|null);
|
3475 |
|
3476 | /** LongRunningRecognizeMetadata lastUpdateTime */
|
3477 | lastUpdateTime?: (google.protobuf.ITimestamp|null);
|
3478 |
|
3479 | /** LongRunningRecognizeMetadata uri */
|
3480 | uri?: (string|null);
|
3481 |
|
3482 | /** LongRunningRecognizeMetadata outputConfig */
|
3483 | outputConfig?: (google.cloud.speech.v1p1beta1.ITranscriptOutputConfig|null);
|
3484 | }
|
3485 |
|
3486 | /** Represents a LongRunningRecognizeMetadata. */
|
3487 | class LongRunningRecognizeMetadata implements ILongRunningRecognizeMetadata {
|
3488 |
|
3489 | /**
|
3490 | * Constructs a new LongRunningRecognizeMetadata.
|
3491 | * @param [properties] Properties to set
|
3492 | */
|
3493 | constructor(properties?: google.cloud.speech.v1p1beta1.ILongRunningRecognizeMetadata);
|
3494 |
|
3495 | /** LongRunningRecognizeMetadata progressPercent. */
|
3496 | public progressPercent: number;
|
3497 |
|
3498 | /** LongRunningRecognizeMetadata startTime. */
|
3499 | public startTime?: (google.protobuf.ITimestamp|null);
|
3500 |
|
3501 | /** LongRunningRecognizeMetadata lastUpdateTime. */
|
3502 | public lastUpdateTime?: (google.protobuf.ITimestamp|null);
|
3503 |
|
3504 | /** LongRunningRecognizeMetadata uri. */
|
3505 | public uri: string;
|
3506 |
|
3507 | /** LongRunningRecognizeMetadata outputConfig. */
|
3508 | public outputConfig?: (google.cloud.speech.v1p1beta1.ITranscriptOutputConfig|null);
|
3509 |
|
3510 | /**
|
3511 | * Creates a new LongRunningRecognizeMetadata instance using the specified properties.
|
3512 | * @param [properties] Properties to set
|
3513 | * @returns LongRunningRecognizeMetadata instance
|
3514 | */
|
3515 | public static create(properties?: google.cloud.speech.v1p1beta1.ILongRunningRecognizeMetadata): google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata;
|
3516 |
|
3517 | /**
|
3518 | * Encodes the specified LongRunningRecognizeMetadata message. Does not implicitly { google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata.verify|verify} messages.
|
3519 | * message LongRunningRecognizeMetadata message or plain object to encode
|
3520 | * [writer] Writer to encode to
|
3521 | * Writer
|
3522 | */
|
3523 | public static encode(message: google.cloud.speech.v1p1beta1.ILongRunningRecognizeMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
|
3524 |
|
3525 | /**
|
3526 | * Encodes the specified LongRunningRecognizeMetadata message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata.verify|verify} messages.
|
3527 | * @param message LongRunningRecognizeMetadata message or plain object to encode
|
3528 | * @param [writer] Writer to encode to
|
3529 | * @returns Writer
|
3530 | */
|
3531 | public static encodeDelimited(message: google.cloud.speech.v1p1beta1.ILongRunningRecognizeMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
|
3532 |
|
3533 | /**
|
3534 | * Decodes a LongRunningRecognizeMetadata message from the specified reader or buffer.
|
3535 | * @param reader Reader or buffer to decode from
|
3536 | * @param [length] Message length if known beforehand
|
3537 | * @returns LongRunningRecognizeMetadata
|
3538 | * @throws {Error} If the payload is not a reader or valid buffer
|
3539 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
3540 | */
|
3541 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata;
|
3542 |
|
3543 | /**
|
3544 | * Decodes a LongRunningRecognizeMetadata message from the specified reader or buffer, length delimited.
|
3545 | * @param reader Reader or buffer to decode from
|
3546 | * @returns LongRunningRecognizeMetadata
|
3547 | * @throws {Error} If the payload is not a reader or valid buffer
|
3548 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
3549 | */
|
3550 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata;
|
3551 |
|
3552 | /**
|
3553 | * Verifies a LongRunningRecognizeMetadata message.
|
3554 | * @param message Plain object to verify
|
3555 | * @returns `null` if valid, otherwise the reason why it is not
|
3556 | */
|
3557 | public static verify(message: { [k: string]: any }): (string|null);
|
3558 |
|
3559 | /**
|
3560 | * Creates a LongRunningRecognizeMetadata message from a plain object. Also converts values to their respective internal types.
|
3561 | * @param object Plain object
|
3562 | * @returns LongRunningRecognizeMetadata
|
3563 | */
|
3564 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata;
|
3565 |
|
3566 | /**
|
3567 | * Creates a plain object from a LongRunningRecognizeMetadata message. Also converts values to other types if specified.
|
3568 | * @param message LongRunningRecognizeMetadata
|
3569 | * @param [options] Conversion options
|
3570 | * @returns Plain object
|
3571 | */
|
3572 | public static toObject(message: google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
3573 |
|
3574 | /**
|
3575 | * Converts this LongRunningRecognizeMetadata to JSON.
|
3576 | * @returns JSON object
|
3577 | */
|
3578 | public toJSON(): { [k: string]: any };
|
3579 | }
|
3580 |
|
3581 | /** Properties of a StreamingRecognizeResponse. */
|
3582 | interface IStreamingRecognizeResponse {
|
3583 |
|
3584 | /** StreamingRecognizeResponse error */
|
3585 | error?: (google.rpc.IStatus|null);
|
3586 |
|
3587 | /** StreamingRecognizeResponse results */
|
3588 | results?: (google.cloud.speech.v1p1beta1.IStreamingRecognitionResult[]|null);
|
3589 |
|
3590 | /** StreamingRecognizeResponse speechEventType */
|
3591 | speechEventType?: (google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType|keyof typeof google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType|null);
|
3592 | }
|
3593 |
|
3594 | /** Represents a StreamingRecognizeResponse. */
|
3595 | class StreamingRecognizeResponse implements IStreamingRecognizeResponse {
|
3596 |
|
3597 | /**
|
3598 | * Constructs a new StreamingRecognizeResponse.
|
3599 | * @param [properties] Properties to set
|
3600 | */
|
3601 | constructor(properties?: google.cloud.speech.v1p1beta1.IStreamingRecognizeResponse);
|
3602 |
|
3603 | /** StreamingRecognizeResponse error. */
|
3604 | public error?: (google.rpc.IStatus|null);
|
3605 |
|
3606 | /** StreamingRecognizeResponse results. */
|
3607 | public results: google.cloud.speech.v1p1beta1.IStreamingRecognitionResult[];
|
3608 |
|
3609 | /** StreamingRecognizeResponse speechEventType. */
|
3610 | public speechEventType: (google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType|keyof typeof google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType);
|
3611 |
|
3612 | /**
|
3613 | * Creates a new StreamingRecognizeResponse instance using the specified properties.
|
3614 | * @param [properties] Properties to set
|
3615 | * @returns StreamingRecognizeResponse instance
|
3616 | */
|
3617 | public static create(properties?: google.cloud.speech.v1p1beta1.IStreamingRecognizeResponse): google.cloud.speech.v1p1beta1.StreamingRecognizeResponse;
|
3618 |
|
3619 | /**
|
3620 | * Encodes the specified StreamingRecognizeResponse message. Does not implicitly { google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.verify|verify} messages.
|
3621 | * message StreamingRecognizeResponse message or plain object to encode
|
3622 | * [writer] Writer to encode to
|
3623 | * Writer
|
3624 | */
|
3625 | public static encode(message: google.cloud.speech.v1p1beta1.IStreamingRecognizeResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
3626 |
|
3627 | /**
|
3628 | * Encodes the specified StreamingRecognizeResponse message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.verify|verify} messages.
|
3629 | * @param message StreamingRecognizeResponse message or plain object to encode
|
3630 | * @param [writer] Writer to encode to
|
3631 | * @returns Writer
|
3632 | */
|
3633 | public static encodeDelimited(message: google.cloud.speech.v1p1beta1.IStreamingRecognizeResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
3634 |
|
3635 | /**
|
3636 | * Decodes a StreamingRecognizeResponse message from the specified reader or buffer.
|
3637 | * @param reader Reader or buffer to decode from
|
3638 | * @param [length] Message length if known beforehand
|
3639 | * @returns StreamingRecognizeResponse
|
3640 | * @throws {Error} If the payload is not a reader or valid buffer
|
3641 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
3642 | */
|
3643 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.StreamingRecognizeResponse;
|
3644 |
|
3645 | /**
|
3646 | * Decodes a StreamingRecognizeResponse message from the specified reader or buffer, length delimited.
|
3647 | * @param reader Reader or buffer to decode from
|
3648 | * @returns StreamingRecognizeResponse
|
3649 | * @throws {Error} If the payload is not a reader or valid buffer
|
3650 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
3651 | */
|
3652 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.StreamingRecognizeResponse;
|
3653 |
|
3654 | /**
|
3655 | * Verifies a StreamingRecognizeResponse message.
|
3656 | * @param message Plain object to verify
|
3657 | * @returns `null` if valid, otherwise the reason why it is not
|
3658 | */
|
3659 | public static verify(message: { [k: string]: any }): (string|null);
|
3660 |
|
3661 | /**
|
3662 | * Creates a StreamingRecognizeResponse message from a plain object. Also converts values to their respective internal types.
|
3663 | * @param object Plain object
|
3664 | * @returns StreamingRecognizeResponse
|
3665 | */
|
3666 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.StreamingRecognizeResponse;
|
3667 |
|
3668 | /**
|
3669 | * Creates a plain object from a StreamingRecognizeResponse message. Also converts values to other types if specified.
|
3670 | * @param message StreamingRecognizeResponse
|
3671 | * @param [options] Conversion options
|
3672 | * @returns Plain object
|
3673 | */
|
3674 | public static toObject(message: google.cloud.speech.v1p1beta1.StreamingRecognizeResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
3675 |
|
3676 | /**
|
3677 | * Converts this StreamingRecognizeResponse to JSON.
|
3678 | * @returns JSON object
|
3679 | */
|
3680 | public toJSON(): { [k: string]: any };
|
3681 | }
|
3682 |
|
3683 | namespace StreamingRecognizeResponse {
|
3684 |
|
3685 | /** SpeechEventType enum. */
|
3686 | enum SpeechEventType {
|
3687 | SPEECH_EVENT_UNSPECIFIED = 0,
|
3688 | END_OF_SINGLE_UTTERANCE = 1
|
3689 | }
|
3690 | }
|
3691 |
|
3692 | /** Properties of a StreamingRecognitionResult. */
|
3693 | interface IStreamingRecognitionResult {
|
3694 |
|
3695 | /** StreamingRecognitionResult alternatives */
|
3696 | alternatives?: (google.cloud.speech.v1p1beta1.ISpeechRecognitionAlternative[]|null);
|
3697 |
|
3698 | /** StreamingRecognitionResult isFinal */
|
3699 | isFinal?: (boolean|null);
|
3700 |
|
3701 | /** StreamingRecognitionResult stability */
|
3702 | stability?: (number|null);
|
3703 |
|
3704 | /** StreamingRecognitionResult resultEndTime */
|
3705 | resultEndTime?: (google.protobuf.IDuration|null);
|
3706 |
|
3707 | /** StreamingRecognitionResult channelTag */
|
3708 | channelTag?: (number|null);
|
3709 |
|
3710 | /** StreamingRecognitionResult languageCode */
|
3711 | languageCode?: (string|null);
|
3712 | }
|
3713 |
|
3714 | /** Represents a StreamingRecognitionResult. */
|
3715 | class StreamingRecognitionResult implements IStreamingRecognitionResult {
|
3716 |
|
3717 | /**
|
3718 | * Constructs a new StreamingRecognitionResult.
|
3719 | * @param [properties] Properties to set
|
3720 | */
|
3721 | constructor(properties?: google.cloud.speech.v1p1beta1.IStreamingRecognitionResult);
|
3722 |
|
3723 | /** StreamingRecognitionResult alternatives. */
|
3724 | public alternatives: google.cloud.speech.v1p1beta1.ISpeechRecognitionAlternative[];
|
3725 |
|
3726 | /** StreamingRecognitionResult isFinal. */
|
3727 | public isFinal: boolean;
|
3728 |
|
3729 | /** StreamingRecognitionResult stability. */
|
3730 | public stability: number;
|
3731 |
|
3732 | /** StreamingRecognitionResult resultEndTime. */
|
3733 | public resultEndTime?: (google.protobuf.IDuration|null);
|
3734 |
|
3735 | /** StreamingRecognitionResult channelTag. */
|
3736 | public channelTag: number;
|
3737 |
|
3738 | /** StreamingRecognitionResult languageCode. */
|
3739 | public languageCode: string;
|
3740 |
|
3741 | /**
|
3742 | * Creates a new StreamingRecognitionResult instance using the specified properties.
|
3743 | * @param [properties] Properties to set
|
3744 | * @returns StreamingRecognitionResult instance
|
3745 | */
|
3746 | public static create(properties?: google.cloud.speech.v1p1beta1.IStreamingRecognitionResult): google.cloud.speech.v1p1beta1.StreamingRecognitionResult;
|
3747 |
|
3748 | /**
|
3749 | * Encodes the specified StreamingRecognitionResult message. Does not implicitly { google.cloud.speech.v1p1beta1.StreamingRecognitionResult.verify|verify} messages.
|
3750 | * message StreamingRecognitionResult message or plain object to encode
|
3751 | * [writer] Writer to encode to
|
3752 | * Writer
|
3753 | */
|
3754 | public static encode(message: google.cloud.speech.v1p1beta1.IStreamingRecognitionResult, writer?: $protobuf.Writer): $protobuf.Writer;
|
3755 |
|
3756 | /**
|
3757 | * Encodes the specified StreamingRecognitionResult message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.StreamingRecognitionResult.verify|verify} messages.
|
3758 | * @param message StreamingRecognitionResult message or plain object to encode
|
3759 | * @param [writer] Writer to encode to
|
3760 | * @returns Writer
|
3761 | */
|
3762 | public static encodeDelimited(message: google.cloud.speech.v1p1beta1.IStreamingRecognitionResult, writer?: $protobuf.Writer): $protobuf.Writer;
|
3763 |
|
3764 | /**
|
3765 | * Decodes a StreamingRecognitionResult message from the specified reader or buffer.
|
3766 | * @param reader Reader or buffer to decode from
|
3767 | * @param [length] Message length if known beforehand
|
3768 | * @returns StreamingRecognitionResult
|
3769 | * @throws {Error} If the payload is not a reader or valid buffer
|
3770 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
3771 | */
|
3772 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.StreamingRecognitionResult;
|
3773 |
|
3774 | /**
|
3775 | * Decodes a StreamingRecognitionResult message from the specified reader or buffer, length delimited.
|
3776 | * @param reader Reader or buffer to decode from
|
3777 | * @returns StreamingRecognitionResult
|
3778 | * @throws {Error} If the payload is not a reader or valid buffer
|
3779 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
3780 | */
|
3781 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.StreamingRecognitionResult;
|
3782 |
|
3783 | /**
|
3784 | * Verifies a StreamingRecognitionResult message.
|
3785 | * @param message Plain object to verify
|
3786 | * @returns `null` if valid, otherwise the reason why it is not
|
3787 | */
|
3788 | public static verify(message: { [k: string]: any }): (string|null);
|
3789 |
|
3790 | /**
|
3791 | * Creates a StreamingRecognitionResult message from a plain object. Also converts values to their respective internal types.
|
3792 | * @param object Plain object
|
3793 | * @returns StreamingRecognitionResult
|
3794 | */
|
3795 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.StreamingRecognitionResult;
|
3796 |
|
3797 | /**
|
3798 | * Creates a plain object from a StreamingRecognitionResult message. Also converts values to other types if specified.
|
3799 | * @param message StreamingRecognitionResult
|
3800 | * @param [options] Conversion options
|
3801 | * @returns Plain object
|
3802 | */
|
3803 | public static toObject(message: google.cloud.speech.v1p1beta1.StreamingRecognitionResult, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
3804 |
|
3805 | /**
|
3806 | * Converts this StreamingRecognitionResult to JSON.
|
3807 | * @returns JSON object
|
3808 | */
|
3809 | public toJSON(): { [k: string]: any };
|
3810 | }
|
3811 |
|
3812 | /** Properties of a SpeechRecognitionResult. */
|
3813 | interface ISpeechRecognitionResult {
|
3814 |
|
3815 | /** SpeechRecognitionResult alternatives */
|
3816 | alternatives?: (google.cloud.speech.v1p1beta1.ISpeechRecognitionAlternative[]|null);
|
3817 |
|
3818 | /** SpeechRecognitionResult channelTag */
|
3819 | channelTag?: (number|null);
|
3820 |
|
3821 | /** SpeechRecognitionResult languageCode */
|
3822 | languageCode?: (string|null);
|
3823 | }
|
3824 |
|
3825 | /** Represents a SpeechRecognitionResult. */
|
3826 | class SpeechRecognitionResult implements ISpeechRecognitionResult {
|
3827 |
|
3828 | /**
|
3829 | * Constructs a new SpeechRecognitionResult.
|
3830 | * @param [properties] Properties to set
|
3831 | */
|
3832 | constructor(properties?: google.cloud.speech.v1p1beta1.ISpeechRecognitionResult);
|
3833 |
|
3834 | /** SpeechRecognitionResult alternatives. */
|
3835 | public alternatives: google.cloud.speech.v1p1beta1.ISpeechRecognitionAlternative[];
|
3836 |
|
3837 | /** SpeechRecognitionResult channelTag. */
|
3838 | public channelTag: number;
|
3839 |
|
3840 | /** SpeechRecognitionResult languageCode. */
|
3841 | public languageCode: string;
|
3842 |
|
3843 | /**
|
3844 | * Creates a new SpeechRecognitionResult instance using the specified properties.
|
3845 | * @param [properties] Properties to set
|
3846 | * @returns SpeechRecognitionResult instance
|
3847 | */
|
3848 | public static create(properties?: google.cloud.speech.v1p1beta1.ISpeechRecognitionResult): google.cloud.speech.v1p1beta1.SpeechRecognitionResult;
|
3849 |
|
3850 | /**
|
3851 | * Encodes the specified SpeechRecognitionResult message. Does not implicitly { google.cloud.speech.v1p1beta1.SpeechRecognitionResult.verify|verify} messages.
|
3852 | * message SpeechRecognitionResult message or plain object to encode
|
3853 | * [writer] Writer to encode to
|
3854 | * Writer
|
3855 | */
|
3856 | public static encode(message: google.cloud.speech.v1p1beta1.ISpeechRecognitionResult, writer?: $protobuf.Writer): $protobuf.Writer;
|
3857 |
|
3858 | /**
|
3859 | * Encodes the specified SpeechRecognitionResult message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.SpeechRecognitionResult.verify|verify} messages.
|
3860 | * @param message SpeechRecognitionResult message or plain object to encode
|
3861 | * @param [writer] Writer to encode to
|
3862 | * @returns Writer
|
3863 | */
|
3864 | public static encodeDelimited(message: google.cloud.speech.v1p1beta1.ISpeechRecognitionResult, writer?: $protobuf.Writer): $protobuf.Writer;
|
3865 |
|
3866 | /**
|
3867 | * Decodes a SpeechRecognitionResult message from the specified reader or buffer.
|
3868 | * @param reader Reader or buffer to decode from
|
3869 | * @param [length] Message length if known beforehand
|
3870 | * @returns SpeechRecognitionResult
|
3871 | * @throws {Error} If the payload is not a reader or valid buffer
|
3872 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
3873 | */
|
3874 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.SpeechRecognitionResult;
|
3875 |
|
3876 | /**
|
3877 | * Decodes a SpeechRecognitionResult message from the specified reader or buffer, length delimited.
|
3878 | * @param reader Reader or buffer to decode from
|
3879 | * @returns SpeechRecognitionResult
|
3880 | * @throws {Error} If the payload is not a reader or valid buffer
|
3881 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
3882 | */
|
3883 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.SpeechRecognitionResult;
|
3884 |
|
3885 | /**
|
3886 | * Verifies a SpeechRecognitionResult message.
|
3887 | * @param message Plain object to verify
|
3888 | * @returns `null` if valid, otherwise the reason why it is not
|
3889 | */
|
3890 | public static verify(message: { [k: string]: any }): (string|null);
|
3891 |
|
3892 | /**
|
3893 | * Creates a SpeechRecognitionResult message from a plain object. Also converts values to their respective internal types.
|
3894 | * @param object Plain object
|
3895 | * @returns SpeechRecognitionResult
|
3896 | */
|
3897 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.SpeechRecognitionResult;
|
3898 |
|
3899 | /**
|
3900 | * Creates a plain object from a SpeechRecognitionResult message. Also converts values to other types if specified.
|
3901 | * @param message SpeechRecognitionResult
|
3902 | * @param [options] Conversion options
|
3903 | * @returns Plain object
|
3904 | */
|
3905 | public static toObject(message: google.cloud.speech.v1p1beta1.SpeechRecognitionResult, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
3906 |
|
3907 | /**
|
3908 | * Converts this SpeechRecognitionResult to JSON.
|
3909 | * @returns JSON object
|
3910 | */
|
3911 | public toJSON(): { [k: string]: any };
|
3912 | }
|
3913 |
|
3914 | /** Properties of a SpeechRecognitionAlternative. */
|
3915 | interface ISpeechRecognitionAlternative {
|
3916 |
|
3917 | /** SpeechRecognitionAlternative transcript */
|
3918 | transcript?: (string|null);
|
3919 |
|
3920 | /** SpeechRecognitionAlternative confidence */
|
3921 | confidence?: (number|null);
|
3922 |
|
3923 | /** SpeechRecognitionAlternative words */
|
3924 | words?: (google.cloud.speech.v1p1beta1.IWordInfo[]|null);
|
3925 | }
|
3926 |
|
3927 | /** Represents a SpeechRecognitionAlternative. */
|
3928 | class SpeechRecognitionAlternative implements ISpeechRecognitionAlternative {
|
3929 |
|
3930 | /**
|
3931 | * Constructs a new SpeechRecognitionAlternative.
|
3932 | * @param [properties] Properties to set
|
3933 | */
|
3934 | constructor(properties?: google.cloud.speech.v1p1beta1.ISpeechRecognitionAlternative);
|
3935 |
|
3936 | /** SpeechRecognitionAlternative transcript. */
|
3937 | public transcript: string;
|
3938 |
|
3939 | /** SpeechRecognitionAlternative confidence. */
|
3940 | public confidence: number;
|
3941 |
|
3942 | /** SpeechRecognitionAlternative words. */
|
3943 | public words: google.cloud.speech.v1p1beta1.IWordInfo[];
|
3944 |
|
3945 | /**
|
3946 | * Creates a new SpeechRecognitionAlternative instance using the specified properties.
|
3947 | * @param [properties] Properties to set
|
3948 | * @returns SpeechRecognitionAlternative instance
|
3949 | */
|
3950 | public static create(properties?: google.cloud.speech.v1p1beta1.ISpeechRecognitionAlternative): google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative;
|
3951 |
|
3952 | /**
|
3953 | * Encodes the specified SpeechRecognitionAlternative message. Does not implicitly { google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.verify|verify} messages.
|
3954 | * message SpeechRecognitionAlternative message or plain object to encode
|
3955 | * [writer] Writer to encode to
|
3956 | * Writer
|
3957 | */
|
3958 | public static encode(message: google.cloud.speech.v1p1beta1.ISpeechRecognitionAlternative, writer?: $protobuf.Writer): $protobuf.Writer;
|
3959 |
|
3960 | /**
|
3961 | * Encodes the specified SpeechRecognitionAlternative message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.verify|verify} messages.
|
3962 | * @param message SpeechRecognitionAlternative message or plain object to encode
|
3963 | * @param [writer] Writer to encode to
|
3964 | * @returns Writer
|
3965 | */
|
3966 | public static encodeDelimited(message: google.cloud.speech.v1p1beta1.ISpeechRecognitionAlternative, writer?: $protobuf.Writer): $protobuf.Writer;
|
3967 |
|
3968 | /**
|
3969 | * Decodes a SpeechRecognitionAlternative message from the specified reader or buffer.
|
3970 | * @param reader Reader or buffer to decode from
|
3971 | * @param [length] Message length if known beforehand
|
3972 | * @returns SpeechRecognitionAlternative
|
3973 | * @throws {Error} If the payload is not a reader or valid buffer
|
3974 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
3975 | */
|
3976 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative;
|
3977 |
|
3978 | /**
|
3979 | * Decodes a SpeechRecognitionAlternative message from the specified reader or buffer, length delimited.
|
3980 | * @param reader Reader or buffer to decode from
|
3981 | * @returns SpeechRecognitionAlternative
|
3982 | * @throws {Error} If the payload is not a reader or valid buffer
|
3983 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
3984 | */
|
3985 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative;
|
3986 |
|
3987 | /**
|
3988 | * Verifies a SpeechRecognitionAlternative message.
|
3989 | * @param message Plain object to verify
|
3990 | * @returns `null` if valid, otherwise the reason why it is not
|
3991 | */
|
3992 | public static verify(message: { [k: string]: any }): (string|null);
|
3993 |
|
3994 | /**
|
3995 | * Creates a SpeechRecognitionAlternative message from a plain object. Also converts values to their respective internal types.
|
3996 | * @param object Plain object
|
3997 | * @returns SpeechRecognitionAlternative
|
3998 | */
|
3999 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative;
|
4000 |
|
4001 | /**
|
4002 | * Creates a plain object from a SpeechRecognitionAlternative message. Also converts values to other types if specified.
|
4003 | * @param message SpeechRecognitionAlternative
|
4004 | * @param [options] Conversion options
|
4005 | * @returns Plain object
|
4006 | */
|
4007 | public static toObject(message: google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
4008 |
|
4009 | /**
|
4010 | * Converts this SpeechRecognitionAlternative to JSON.
|
4011 | * @returns JSON object
|
4012 | */
|
4013 | public toJSON(): { [k: string]: any };
|
4014 | }
|
4015 |
|
4016 | /** Properties of a WordInfo. */
|
4017 | interface IWordInfo {
|
4018 |
|
4019 | /** WordInfo startTime */
|
4020 | startTime?: (google.protobuf.IDuration|null);
|
4021 |
|
4022 | /** WordInfo endTime */
|
4023 | endTime?: (google.protobuf.IDuration|null);
|
4024 |
|
4025 | /** WordInfo word */
|
4026 | word?: (string|null);
|
4027 |
|
4028 | /** WordInfo confidence */
|
4029 | confidence?: (number|null);
|
4030 |
|
4031 | /** WordInfo speakerTag */
|
4032 | speakerTag?: (number|null);
|
4033 | }
|
4034 |
|
4035 | /** Represents a WordInfo. */
|
4036 | class WordInfo implements IWordInfo {
|
4037 |
|
4038 | /**
|
4039 | * Constructs a new WordInfo.
|
4040 | * @param [properties] Properties to set
|
4041 | */
|
4042 | constructor(properties?: google.cloud.speech.v1p1beta1.IWordInfo);
|
4043 |
|
4044 | /** WordInfo startTime. */
|
4045 | public startTime?: (google.protobuf.IDuration|null);
|
4046 |
|
4047 | /** WordInfo endTime. */
|
4048 | public endTime?: (google.protobuf.IDuration|null);
|
4049 |
|
4050 | /** WordInfo word. */
|
4051 | public word: string;
|
4052 |
|
4053 | /** WordInfo confidence. */
|
4054 | public confidence: number;
|
4055 |
|
4056 | /** WordInfo speakerTag. */
|
4057 | public speakerTag: number;
|
4058 |
|
4059 | /**
|
4060 | * Creates a new WordInfo instance using the specified properties.
|
4061 | * @param [properties] Properties to set
|
4062 | * @returns WordInfo instance
|
4063 | */
|
4064 | public static create(properties?: google.cloud.speech.v1p1beta1.IWordInfo): google.cloud.speech.v1p1beta1.WordInfo;
|
4065 |
|
4066 | /**
|
4067 | * Encodes the specified WordInfo message. Does not implicitly { google.cloud.speech.v1p1beta1.WordInfo.verify|verify} messages.
|
4068 | * message WordInfo message or plain object to encode
|
4069 | * [writer] Writer to encode to
|
4070 | * Writer
|
4071 | */
|
4072 | public static encode(message: google.cloud.speech.v1p1beta1.IWordInfo, writer?: $protobuf.Writer): $protobuf.Writer;
|
4073 |
|
4074 | /**
|
4075 | * Encodes the specified WordInfo message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.WordInfo.verify|verify} messages.
|
4076 | * @param message WordInfo message or plain object to encode
|
4077 | * @param [writer] Writer to encode to
|
4078 | * @returns Writer
|
4079 | */
|
4080 | public static encodeDelimited(message: google.cloud.speech.v1p1beta1.IWordInfo, writer?: $protobuf.Writer): $protobuf.Writer;
|
4081 |
|
4082 | /**
|
4083 | * Decodes a WordInfo message from the specified reader or buffer.
|
4084 | * @param reader Reader or buffer to decode from
|
4085 | * @param [length] Message length if known beforehand
|
4086 | * @returns WordInfo
|
4087 | * @throws {Error} If the payload is not a reader or valid buffer
|
4088 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
4089 | */
|
4090 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.WordInfo;
|
4091 |
|
4092 | /**
|
4093 | * Decodes a WordInfo message from the specified reader or buffer, length delimited.
|
4094 | * @param reader Reader or buffer to decode from
|
4095 | * @returns WordInfo
|
4096 | * @throws {Error} If the payload is not a reader or valid buffer
|
4097 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
4098 | */
|
4099 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.WordInfo;
|
4100 |
|
4101 | /**
|
4102 | * Verifies a WordInfo message.
|
4103 | * @param message Plain object to verify
|
4104 | * @returns `null` if valid, otherwise the reason why it is not
|
4105 | */
|
4106 | public static verify(message: { [k: string]: any }): (string|null);
|
4107 |
|
4108 | /**
|
4109 | * Creates a WordInfo message from a plain object. Also converts values to their respective internal types.
|
4110 | * @param object Plain object
|
4111 | * @returns WordInfo
|
4112 | */
|
4113 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.WordInfo;
|
4114 |
|
4115 | /**
|
4116 | * Creates a plain object from a WordInfo message. Also converts values to other types if specified.
|
4117 | * @param message WordInfo
|
4118 | * @param [options] Conversion options
|
4119 | * @returns Plain object
|
4120 | */
|
4121 | public static toObject(message: google.cloud.speech.v1p1beta1.WordInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
4122 |
|
4123 | /**
|
4124 | * Converts this WordInfo to JSON.
|
4125 | * @returns JSON object
|
4126 | */
|
4127 | public toJSON(): { [k: string]: any };
|
4128 | }
|
4129 |
|
4130 | /** Properties of a CustomClass. */
|
4131 | interface ICustomClass {
|
4132 |
|
4133 | /** CustomClass name */
|
4134 | name?: (string|null);
|
4135 |
|
4136 | /** CustomClass customClassId */
|
4137 | customClassId?: (string|null);
|
4138 |
|
4139 | /** CustomClass items */
|
4140 | items?: (google.cloud.speech.v1p1beta1.CustomClass.IClassItem[]|null);
|
4141 | }
|
4142 |
|
4143 | /** Represents a CustomClass. */
|
4144 | class CustomClass implements ICustomClass {
|
4145 |
|
4146 | /**
|
4147 | * Constructs a new CustomClass.
|
4148 | * @param [properties] Properties to set
|
4149 | */
|
4150 | constructor(properties?: google.cloud.speech.v1p1beta1.ICustomClass);
|
4151 |
|
4152 | /** CustomClass name. */
|
4153 | public name: string;
|
4154 |
|
4155 | /** CustomClass customClassId. */
|
4156 | public customClassId: string;
|
4157 |
|
4158 | /** CustomClass items. */
|
4159 | public items: google.cloud.speech.v1p1beta1.CustomClass.IClassItem[];
|
4160 |
|
4161 | /**
|
4162 | * Creates a new CustomClass instance using the specified properties.
|
4163 | * @param [properties] Properties to set
|
4164 | * @returns CustomClass instance
|
4165 | */
|
4166 | public static create(properties?: google.cloud.speech.v1p1beta1.ICustomClass): google.cloud.speech.v1p1beta1.CustomClass;
|
4167 |
|
4168 | /**
|
4169 | * Encodes the specified CustomClass message. Does not implicitly { google.cloud.speech.v1p1beta1.CustomClass.verify|verify} messages.
|
4170 | * message CustomClass message or plain object to encode
|
4171 | * [writer] Writer to encode to
|
4172 | * Writer
|
4173 | */
|
4174 | public static encode(message: google.cloud.speech.v1p1beta1.ICustomClass, writer?: $protobuf.Writer): $protobuf.Writer;
|
4175 |
|
4176 | /**
|
4177 | * Encodes the specified CustomClass message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.CustomClass.verify|verify} messages.
|
4178 | * @param message CustomClass message or plain object to encode
|
4179 | * @param [writer] Writer to encode to
|
4180 | * @returns Writer
|
4181 | */
|
4182 | public static encodeDelimited(message: google.cloud.speech.v1p1beta1.ICustomClass, writer?: $protobuf.Writer): $protobuf.Writer;
|
4183 |
|
4184 | /**
|
4185 | * Decodes a CustomClass message from the specified reader or buffer.
|
4186 | * @param reader Reader or buffer to decode from
|
4187 | * @param [length] Message length if known beforehand
|
4188 | * @returns CustomClass
|
4189 | * @throws {Error} If the payload is not a reader or valid buffer
|
4190 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
4191 | */
|
4192 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.CustomClass;
|
4193 |
|
4194 | /**
|
4195 | * Decodes a CustomClass message from the specified reader or buffer, length delimited.
|
4196 | * @param reader Reader or buffer to decode from
|
4197 | * @returns CustomClass
|
4198 | * @throws {Error} If the payload is not a reader or valid buffer
|
4199 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
4200 | */
|
4201 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.CustomClass;
|
4202 |
|
4203 | /**
|
4204 | * Verifies a CustomClass message.
|
4205 | * @param message Plain object to verify
|
4206 | * @returns `null` if valid, otherwise the reason why it is not
|
4207 | */
|
4208 | public static verify(message: { [k: string]: any }): (string|null);
|
4209 |
|
4210 | /**
|
4211 | * Creates a CustomClass message from a plain object. Also converts values to their respective internal types.
|
4212 | * @param object Plain object
|
4213 | * @returns CustomClass
|
4214 | */
|
4215 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.CustomClass;
|
4216 |
|
4217 | /**
|
4218 | * Creates a plain object from a CustomClass message. Also converts values to other types if specified.
|
4219 | * @param message CustomClass
|
4220 | * @param [options] Conversion options
|
4221 | * @returns Plain object
|
4222 | */
|
4223 | public static toObject(message: google.cloud.speech.v1p1beta1.CustomClass, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
4224 |
|
4225 | /**
|
4226 | * Converts this CustomClass to JSON.
|
4227 | * @returns JSON object
|
4228 | */
|
4229 | public toJSON(): { [k: string]: any };
|
4230 | }
|
4231 |
|
4232 | namespace CustomClass {
|
4233 |
|
4234 | /** Properties of a ClassItem. */
|
4235 | interface IClassItem {
|
4236 |
|
4237 | /** ClassItem value */
|
4238 | value?: (string|null);
|
4239 | }
|
4240 |
|
4241 | /** Represents a ClassItem. */
|
4242 | class ClassItem implements IClassItem {
|
4243 |
|
4244 | /**
|
4245 | * Constructs a new ClassItem.
|
4246 | * @param [properties] Properties to set
|
4247 | */
|
4248 | constructor(properties?: google.cloud.speech.v1p1beta1.CustomClass.IClassItem);
|
4249 |
|
4250 | /** ClassItem value. */
|
4251 | public value: string;
|
4252 |
|
4253 | /**
|
4254 | * Creates a new ClassItem instance using the specified properties.
|
4255 | * @param [properties] Properties to set
|
4256 | * @returns ClassItem instance
|
4257 | */
|
4258 | public static create(properties?: google.cloud.speech.v1p1beta1.CustomClass.IClassItem): google.cloud.speech.v1p1beta1.CustomClass.ClassItem;
|
4259 |
|
4260 | /**
|
4261 | * Encodes the specified ClassItem message. Does not implicitly { google.cloud.speech.v1p1beta1.CustomClass.ClassItem.verify|verify} messages.
|
4262 | * message ClassItem message or plain object to encode
|
4263 | * [writer] Writer to encode to
|
4264 | * Writer
|
4265 | */
|
4266 | public static encode(message: google.cloud.speech.v1p1beta1.CustomClass.IClassItem, writer?: $protobuf.Writer): $protobuf.Writer;
|
4267 |
|
4268 | /**
|
4269 | * Encodes the specified ClassItem message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.CustomClass.ClassItem.verify|verify} messages.
|
4270 | * @param message ClassItem message or plain object to encode
|
4271 | * @param [writer] Writer to encode to
|
4272 | * @returns Writer
|
4273 | */
|
4274 | public static encodeDelimited(message: google.cloud.speech.v1p1beta1.CustomClass.IClassItem, writer?: $protobuf.Writer): $protobuf.Writer;
|
4275 |
|
4276 | /**
|
4277 | * Decodes a ClassItem message from the specified reader or buffer.
|
4278 | * @param reader Reader or buffer to decode from
|
4279 | * @param [length] Message length if known beforehand
|
4280 | * @returns ClassItem
|
4281 | * @throws {Error} If the payload is not a reader or valid buffer
|
4282 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
4283 | */
|
4284 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.CustomClass.ClassItem;
|
4285 |
|
4286 | /**
|
4287 | * Decodes a ClassItem message from the specified reader or buffer, length delimited.
|
4288 | * @param reader Reader or buffer to decode from
|
4289 | * @returns ClassItem
|
4290 | * @throws {Error} If the payload is not a reader or valid buffer
|
4291 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
4292 | */
|
4293 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.CustomClass.ClassItem;
|
4294 |
|
4295 | /**
|
4296 | * Verifies a ClassItem message.
|
4297 | * @param message Plain object to verify
|
4298 | * @returns `null` if valid, otherwise the reason why it is not
|
4299 | */
|
4300 | public static verify(message: { [k: string]: any }): (string|null);
|
4301 |
|
4302 | /**
|
4303 | * Creates a ClassItem message from a plain object. Also converts values to their respective internal types.
|
4304 | * @param object Plain object
|
4305 | * @returns ClassItem
|
4306 | */
|
4307 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.CustomClass.ClassItem;
|
4308 |
|
4309 | /**
|
4310 | * Creates a plain object from a ClassItem message. Also converts values to other types if specified.
|
4311 | * @param message ClassItem
|
4312 | * @param [options] Conversion options
|
4313 | * @returns Plain object
|
4314 | */
|
4315 | public static toObject(message: google.cloud.speech.v1p1beta1.CustomClass.ClassItem, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
4316 |
|
4317 | /**
|
4318 | * Converts this ClassItem to JSON.
|
4319 | * @returns JSON object
|
4320 | */
|
4321 | public toJSON(): { [k: string]: any };
|
4322 | }
|
4323 | }
|
4324 |
|
4325 | /** Properties of a PhraseSet. */
|
4326 | interface IPhraseSet {
|
4327 |
|
4328 | /** PhraseSet name */
|
4329 | name?: (string|null);
|
4330 |
|
4331 | /** PhraseSet phrases */
|
4332 | phrases?: (google.cloud.speech.v1p1beta1.PhraseSet.IPhrase[]|null);
|
4333 |
|
4334 | /** PhraseSet boost */
|
4335 | boost?: (number|null);
|
4336 | }
|
4337 |
|
4338 | /** Represents a PhraseSet. */
|
4339 | class PhraseSet implements IPhraseSet {
|
4340 |
|
4341 | /**
|
4342 | * Constructs a new PhraseSet.
|
4343 | * @param [properties] Properties to set
|
4344 | */
|
4345 | constructor(properties?: google.cloud.speech.v1p1beta1.IPhraseSet);
|
4346 |
|
4347 | /** PhraseSet name. */
|
4348 | public name: string;
|
4349 |
|
4350 | /** PhraseSet phrases. */
|
4351 | public phrases: google.cloud.speech.v1p1beta1.PhraseSet.IPhrase[];
|
4352 |
|
4353 | /** PhraseSet boost. */
|
4354 | public boost: number;
|
4355 |
|
4356 | /**
|
4357 | * Creates a new PhraseSet instance using the specified properties.
|
4358 | * @param [properties] Properties to set
|
4359 | * @returns PhraseSet instance
|
4360 | */
|
4361 | public static create(properties?: google.cloud.speech.v1p1beta1.IPhraseSet): google.cloud.speech.v1p1beta1.PhraseSet;
|
4362 |
|
4363 | /**
|
4364 | * Encodes the specified PhraseSet message. Does not implicitly { google.cloud.speech.v1p1beta1.PhraseSet.verify|verify} messages.
|
4365 | * message PhraseSet message or plain object to encode
|
4366 | * [writer] Writer to encode to
|
4367 | * Writer
|
4368 | */
|
4369 | public static encode(message: google.cloud.speech.v1p1beta1.IPhraseSet, writer?: $protobuf.Writer): $protobuf.Writer;
|
4370 |
|
4371 | /**
|
4372 | * Encodes the specified PhraseSet message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.PhraseSet.verify|verify} messages.
|
4373 | * @param message PhraseSet message or plain object to encode
|
4374 | * @param [writer] Writer to encode to
|
4375 | * @returns Writer
|
4376 | */
|
4377 | public static encodeDelimited(message: google.cloud.speech.v1p1beta1.IPhraseSet, writer?: $protobuf.Writer): $protobuf.Writer;
|
4378 |
|
4379 | /**
|
4380 | * Decodes a PhraseSet message from the specified reader or buffer.
|
4381 | * @param reader Reader or buffer to decode from
|
4382 | * @param [length] Message length if known beforehand
|
4383 | * @returns PhraseSet
|
4384 | * @throws {Error} If the payload is not a reader or valid buffer
|
4385 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
4386 | */
|
4387 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.PhraseSet;
|
4388 |
|
4389 | /**
|
4390 | * Decodes a PhraseSet message from the specified reader or buffer, length delimited.
|
4391 | * @param reader Reader or buffer to decode from
|
4392 | * @returns PhraseSet
|
4393 | * @throws {Error} If the payload is not a reader or valid buffer
|
4394 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
4395 | */
|
4396 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.PhraseSet;
|
4397 |
|
4398 | /**
|
4399 | * Verifies a PhraseSet message.
|
4400 | * @param message Plain object to verify
|
4401 | * @returns `null` if valid, otherwise the reason why it is not
|
4402 | */
|
4403 | public static verify(message: { [k: string]: any }): (string|null);
|
4404 |
|
4405 | /**
|
4406 | * Creates a PhraseSet message from a plain object. Also converts values to their respective internal types.
|
4407 | * @param object Plain object
|
4408 | * @returns PhraseSet
|
4409 | */
|
4410 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.PhraseSet;
|
4411 |
|
4412 | /**
|
4413 | * Creates a plain object from a PhraseSet message. Also converts values to other types if specified.
|
4414 | * @param message PhraseSet
|
4415 | * @param [options] Conversion options
|
4416 | * @returns Plain object
|
4417 | */
|
4418 | public static toObject(message: google.cloud.speech.v1p1beta1.PhraseSet, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
4419 |
|
4420 | /**
|
4421 | * Converts this PhraseSet to JSON.
|
4422 | * @returns JSON object
|
4423 | */
|
4424 | public toJSON(): { [k: string]: any };
|
4425 | }
|
4426 |
|
4427 | namespace PhraseSet {
|
4428 |
|
4429 | /** Properties of a Phrase. */
|
4430 | interface IPhrase {
|
4431 |
|
4432 | /** Phrase value */
|
4433 | value?: (string|null);
|
4434 |
|
4435 | /** Phrase boost */
|
4436 | boost?: (number|null);
|
4437 | }
|
4438 |
|
4439 | /** Represents a Phrase. */
|
4440 | class Phrase implements IPhrase {
|
4441 |
|
4442 | /**
|
4443 | * Constructs a new Phrase.
|
4444 | * @param [properties] Properties to set
|
4445 | */
|
4446 | constructor(properties?: google.cloud.speech.v1p1beta1.PhraseSet.IPhrase);
|
4447 |
|
4448 | /** Phrase value. */
|
4449 | public value: string;
|
4450 |
|
4451 | /** Phrase boost. */
|
4452 | public boost: number;
|
4453 |
|
4454 | /**
|
4455 | * Creates a new Phrase instance using the specified properties.
|
4456 | * @param [properties] Properties to set
|
4457 | * @returns Phrase instance
|
4458 | */
|
4459 | public static create(properties?: google.cloud.speech.v1p1beta1.PhraseSet.IPhrase): google.cloud.speech.v1p1beta1.PhraseSet.Phrase;
|
4460 |
|
4461 | /**
|
4462 | * Encodes the specified Phrase message. Does not implicitly { google.cloud.speech.v1p1beta1.PhraseSet.Phrase.verify|verify} messages.
|
4463 | * message Phrase message or plain object to encode
|
4464 | * [writer] Writer to encode to
|
4465 | * Writer
|
4466 | */
|
4467 | public static encode(message: google.cloud.speech.v1p1beta1.PhraseSet.IPhrase, writer?: $protobuf.Writer): $protobuf.Writer;
|
4468 |
|
4469 | /**
|
4470 | * Encodes the specified Phrase message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.PhraseSet.Phrase.verify|verify} messages.
|
4471 | * @param message Phrase message or plain object to encode
|
4472 | * @param [writer] Writer to encode to
|
4473 | * @returns Writer
|
4474 | */
|
4475 | public static encodeDelimited(message: google.cloud.speech.v1p1beta1.PhraseSet.IPhrase, writer?: $protobuf.Writer): $protobuf.Writer;
|
4476 |
|
4477 | /**
|
4478 | * Decodes a Phrase message from the specified reader or buffer.
|
4479 | * @param reader Reader or buffer to decode from
|
4480 | * @param [length] Message length if known beforehand
|
4481 | * @returns Phrase
|
4482 | * @throws {Error} If the payload is not a reader or valid buffer
|
4483 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
4484 | */
|
4485 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.PhraseSet.Phrase;
|
4486 |
|
4487 | /**
|
4488 | * Decodes a Phrase message from the specified reader or buffer, length delimited.
|
4489 | * @param reader Reader or buffer to decode from
|
4490 | * @returns Phrase
|
4491 | * @throws {Error} If the payload is not a reader or valid buffer
|
4492 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
4493 | */
|
4494 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.PhraseSet.Phrase;
|
4495 |
|
4496 | /**
|
4497 | * Verifies a Phrase message.
|
4498 | * @param message Plain object to verify
|
4499 | * @returns `null` if valid, otherwise the reason why it is not
|
4500 | */
|
4501 | public static verify(message: { [k: string]: any }): (string|null);
|
4502 |
|
4503 | /**
|
4504 | * Creates a Phrase message from a plain object. Also converts values to their respective internal types.
|
4505 | * @param object Plain object
|
4506 | * @returns Phrase
|
4507 | */
|
4508 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.PhraseSet.Phrase;
|
4509 |
|
4510 | /**
|
4511 | * Creates a plain object from a Phrase message. Also converts values to other types if specified.
|
4512 | * @param message Phrase
|
4513 | * @param [options] Conversion options
|
4514 | * @returns Plain object
|
4515 | */
|
4516 | public static toObject(message: google.cloud.speech.v1p1beta1.PhraseSet.Phrase, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
4517 |
|
4518 | /**
|
4519 | * Converts this Phrase to JSON.
|
4520 | * @returns JSON object
|
4521 | */
|
4522 | public toJSON(): { [k: string]: any };
|
4523 | }
|
4524 | }
|
4525 |
|
4526 | /** Properties of a SpeechAdaptation. */
|
4527 | interface ISpeechAdaptation {
|
4528 |
|
4529 | /** SpeechAdaptation phraseSets */
|
4530 | phraseSets?: (google.cloud.speech.v1p1beta1.IPhraseSet[]|null);
|
4531 |
|
4532 | /** SpeechAdaptation phraseSetReferences */
|
4533 | phraseSetReferences?: (string[]|null);
|
4534 |
|
4535 | /** SpeechAdaptation customClasses */
|
4536 | customClasses?: (google.cloud.speech.v1p1beta1.ICustomClass[]|null);
|
4537 | }
|
4538 |
|
4539 | /** Represents a SpeechAdaptation. */
|
4540 | class SpeechAdaptation implements ISpeechAdaptation {
|
4541 |
|
4542 | /**
|
4543 | * Constructs a new SpeechAdaptation.
|
4544 | * @param [properties] Properties to set
|
4545 | */
|
4546 | constructor(properties?: google.cloud.speech.v1p1beta1.ISpeechAdaptation);
|
4547 |
|
4548 | /** SpeechAdaptation phraseSets. */
|
4549 | public phraseSets: google.cloud.speech.v1p1beta1.IPhraseSet[];
|
4550 |
|
4551 | /** SpeechAdaptation phraseSetReferences. */
|
4552 | public phraseSetReferences: string[];
|
4553 |
|
4554 | /** SpeechAdaptation customClasses. */
|
4555 | public customClasses: google.cloud.speech.v1p1beta1.ICustomClass[];
|
4556 |
|
4557 | /**
|
4558 | * Creates a new SpeechAdaptation instance using the specified properties.
|
4559 | * @param [properties] Properties to set
|
4560 | * @returns SpeechAdaptation instance
|
4561 | */
|
4562 | public static create(properties?: google.cloud.speech.v1p1beta1.ISpeechAdaptation): google.cloud.speech.v1p1beta1.SpeechAdaptation;
|
4563 |
|
4564 | /**
|
4565 | * Encodes the specified SpeechAdaptation message. Does not implicitly { google.cloud.speech.v1p1beta1.SpeechAdaptation.verify|verify} messages.
|
4566 | * message SpeechAdaptation message or plain object to encode
|
4567 | * [writer] Writer to encode to
|
4568 | * Writer
|
4569 | */
|
4570 | public static encode(message: google.cloud.speech.v1p1beta1.ISpeechAdaptation, writer?: $protobuf.Writer): $protobuf.Writer;
|
4571 |
|
4572 | /**
|
4573 | * Encodes the specified SpeechAdaptation message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.SpeechAdaptation.verify|verify} messages.
|
4574 | * @param message SpeechAdaptation message or plain object to encode
|
4575 | * @param [writer] Writer to encode to
|
4576 | * @returns Writer
|
4577 | */
|
4578 | public static encodeDelimited(message: google.cloud.speech.v1p1beta1.ISpeechAdaptation, writer?: $protobuf.Writer): $protobuf.Writer;
|
4579 |
|
4580 | /**
|
4581 | * Decodes a SpeechAdaptation message from the specified reader or buffer.
|
4582 | * @param reader Reader or buffer to decode from
|
4583 | * @param [length] Message length if known beforehand
|
4584 | * @returns SpeechAdaptation
|
4585 | * @throws {Error} If the payload is not a reader or valid buffer
|
4586 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
4587 | */
|
4588 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.SpeechAdaptation;
|
4589 |
|
4590 | /**
|
4591 | * Decodes a SpeechAdaptation message from the specified reader or buffer, length delimited.
|
4592 | * @param reader Reader or buffer to decode from
|
4593 | * @returns SpeechAdaptation
|
4594 | * @throws {Error} If the payload is not a reader or valid buffer
|
4595 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
4596 | */
|
4597 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.SpeechAdaptation;
|
4598 |
|
4599 | /**
|
4600 | * Verifies a SpeechAdaptation message.
|
4601 | * @param message Plain object to verify
|
4602 | * @returns `null` if valid, otherwise the reason why it is not
|
4603 | */
|
4604 | public static verify(message: { [k: string]: any }): (string|null);
|
4605 |
|
4606 | /**
|
4607 | * Creates a SpeechAdaptation message from a plain object. Also converts values to their respective internal types.
|
4608 | * @param object Plain object
|
4609 | * @returns SpeechAdaptation
|
4610 | */
|
4611 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.SpeechAdaptation;
|
4612 |
|
4613 | /**
|
4614 | * Creates a plain object from a SpeechAdaptation message. Also converts values to other types if specified.
|
4615 | * @param message SpeechAdaptation
|
4616 | * @param [options] Conversion options
|
4617 | * @returns Plain object
|
4618 | */
|
4619 | public static toObject(message: google.cloud.speech.v1p1beta1.SpeechAdaptation, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
4620 |
|
4621 | /**
|
4622 | * Converts this SpeechAdaptation to JSON.
|
4623 | * @returns JSON object
|
4624 | */
|
4625 | public toJSON(): { [k: string]: any };
|
4626 | }
|
4627 |
|
4628 | /** Represents an Adaptation */
|
4629 | class Adaptation extends $protobuf.rpc.Service {
|
4630 |
|
4631 | /**
|
4632 | * Constructs a new Adaptation service.
|
4633 | * @param rpcImpl RPC implementation
|
4634 | * @param [requestDelimited=false] Whether requests are length-delimited
|
4635 | * @param [responseDelimited=false] Whether responses are length-delimited
|
4636 | */
|
4637 | constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
|
4638 |
|
4639 | /**
|
4640 | * Creates new Adaptation service using the specified rpc implementation.
|
4641 | * @param rpcImpl RPC implementation
|
4642 | * @param [requestDelimited=false] Whether requests are length-delimited
|
4643 | * @param [responseDelimited=false] Whether responses are length-delimited
|
4644 | * @returns RPC service. Useful where requests and/or responses are streamed.
|
4645 | */
|
4646 | public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Adaptation;
|
4647 |
|
4648 | /**
|
4649 | * Calls CreatePhraseSet.
|
4650 | * @param request CreatePhraseSetRequest message or plain object
|
4651 | * @param callback Node-style callback called with the error, if any, and PhraseSet
|
4652 | */
|
4653 | public createPhraseSet(request: google.cloud.speech.v1p1beta1.ICreatePhraseSetRequest, callback: google.cloud.speech.v1p1beta1.Adaptation.CreatePhraseSetCallback): void;
|
4654 |
|
4655 | /**
|
4656 | * Calls CreatePhraseSet.
|
4657 | * @param request CreatePhraseSetRequest message or plain object
|
4658 | * @returns Promise
|
4659 | */
|
4660 | public createPhraseSet(request: google.cloud.speech.v1p1beta1.ICreatePhraseSetRequest): Promise<google.cloud.speech.v1p1beta1.PhraseSet>;
|
4661 |
|
4662 | /**
|
4663 | * Calls GetPhraseSet.
|
4664 | * @param request GetPhraseSetRequest message or plain object
|
4665 | * @param callback Node-style callback called with the error, if any, and PhraseSet
|
4666 | */
|
4667 | public getPhraseSet(request: google.cloud.speech.v1p1beta1.IGetPhraseSetRequest, callback: google.cloud.speech.v1p1beta1.Adaptation.GetPhraseSetCallback): void;
|
4668 |
|
4669 | /**
|
4670 | * Calls GetPhraseSet.
|
4671 | * @param request GetPhraseSetRequest message or plain object
|
4672 | * @returns Promise
|
4673 | */
|
4674 | public getPhraseSet(request: google.cloud.speech.v1p1beta1.IGetPhraseSetRequest): Promise<google.cloud.speech.v1p1beta1.PhraseSet>;
|
4675 |
|
4676 | /**
|
4677 | * Calls ListPhraseSet.
|
4678 | * @param request ListPhraseSetRequest message or plain object
|
4679 | * @param callback Node-style callback called with the error, if any, and ListPhraseSetResponse
|
4680 | */
|
4681 | public listPhraseSet(request: google.cloud.speech.v1p1beta1.IListPhraseSetRequest, callback: google.cloud.speech.v1p1beta1.Adaptation.ListPhraseSetCallback): void;
|
4682 |
|
4683 | /**
|
4684 | * Calls ListPhraseSet.
|
4685 | * @param request ListPhraseSetRequest message or plain object
|
4686 | * @returns Promise
|
4687 | */
|
4688 | public listPhraseSet(request: google.cloud.speech.v1p1beta1.IListPhraseSetRequest): Promise<google.cloud.speech.v1p1beta1.ListPhraseSetResponse>;
|
4689 |
|
4690 | /**
|
4691 | * Calls UpdatePhraseSet.
|
4692 | * @param request UpdatePhraseSetRequest message or plain object
|
4693 | * @param callback Node-style callback called with the error, if any, and PhraseSet
|
4694 | */
|
4695 | public updatePhraseSet(request: google.cloud.speech.v1p1beta1.IUpdatePhraseSetRequest, callback: google.cloud.speech.v1p1beta1.Adaptation.UpdatePhraseSetCallback): void;
|
4696 |
|
4697 | /**
|
4698 | * Calls UpdatePhraseSet.
|
4699 | * @param request UpdatePhraseSetRequest message or plain object
|
4700 | * @returns Promise
|
4701 | */
|
4702 | public updatePhraseSet(request: google.cloud.speech.v1p1beta1.IUpdatePhraseSetRequest): Promise<google.cloud.speech.v1p1beta1.PhraseSet>;
|
4703 |
|
4704 | /**
|
4705 | * Calls DeletePhraseSet.
|
4706 | * @param request DeletePhraseSetRequest message or plain object
|
4707 | * @param callback Node-style callback called with the error, if any, and Empty
|
4708 | */
|
4709 | public deletePhraseSet(request: google.cloud.speech.v1p1beta1.IDeletePhraseSetRequest, callback: google.cloud.speech.v1p1beta1.Adaptation.DeletePhraseSetCallback): void;
|
4710 |
|
4711 | /**
|
4712 | * Calls DeletePhraseSet.
|
4713 | * @param request DeletePhraseSetRequest message or plain object
|
4714 | * @returns Promise
|
4715 | */
|
4716 | public deletePhraseSet(request: google.cloud.speech.v1p1beta1.IDeletePhraseSetRequest): Promise<google.protobuf.Empty>;
|
4717 |
|
4718 | /**
|
4719 | * Calls CreateCustomClass.
|
4720 | * @param request CreateCustomClassRequest message or plain object
|
4721 | * @param callback Node-style callback called with the error, if any, and CustomClass
|
4722 | */
|
4723 | public createCustomClass(request: google.cloud.speech.v1p1beta1.ICreateCustomClassRequest, callback: google.cloud.speech.v1p1beta1.Adaptation.CreateCustomClassCallback): void;
|
4724 |
|
4725 | /**
|
4726 | * Calls CreateCustomClass.
|
4727 | * @param request CreateCustomClassRequest message or plain object
|
4728 | * @returns Promise
|
4729 | */
|
4730 | public createCustomClass(request: google.cloud.speech.v1p1beta1.ICreateCustomClassRequest): Promise<google.cloud.speech.v1p1beta1.CustomClass>;
|
4731 |
|
4732 | /**
|
4733 | * Calls GetCustomClass.
|
4734 | * @param request GetCustomClassRequest message or plain object
|
4735 | * @param callback Node-style callback called with the error, if any, and CustomClass
|
4736 | */
|
4737 | public getCustomClass(request: google.cloud.speech.v1p1beta1.IGetCustomClassRequest, callback: google.cloud.speech.v1p1beta1.Adaptation.GetCustomClassCallback): void;
|
4738 |
|
4739 | /**
|
4740 | * Calls GetCustomClass.
|
4741 | * @param request GetCustomClassRequest message or plain object
|
4742 | * @returns Promise
|
4743 | */
|
4744 | public getCustomClass(request: google.cloud.speech.v1p1beta1.IGetCustomClassRequest): Promise<google.cloud.speech.v1p1beta1.CustomClass>;
|
4745 |
|
4746 | /**
|
4747 | * Calls ListCustomClasses.
|
4748 | * @param request ListCustomClassesRequest message or plain object
|
4749 | * @param callback Node-style callback called with the error, if any, and ListCustomClassesResponse
|
4750 | */
|
4751 | public listCustomClasses(request: google.cloud.speech.v1p1beta1.IListCustomClassesRequest, callback: google.cloud.speech.v1p1beta1.Adaptation.ListCustomClassesCallback): void;
|
4752 |
|
4753 | /**
|
4754 | * Calls ListCustomClasses.
|
4755 | * @param request ListCustomClassesRequest message or plain object
|
4756 | * @returns Promise
|
4757 | */
|
4758 | public listCustomClasses(request: google.cloud.speech.v1p1beta1.IListCustomClassesRequest): Promise<google.cloud.speech.v1p1beta1.ListCustomClassesResponse>;
|
4759 |
|
4760 | /**
|
4761 | * Calls UpdateCustomClass.
|
4762 | * @param request UpdateCustomClassRequest message or plain object
|
4763 | * @param callback Node-style callback called with the error, if any, and CustomClass
|
4764 | */
|
4765 | public updateCustomClass(request: google.cloud.speech.v1p1beta1.IUpdateCustomClassRequest, callback: google.cloud.speech.v1p1beta1.Adaptation.UpdateCustomClassCallback): void;
|
4766 |
|
4767 | /**
|
4768 | * Calls UpdateCustomClass.
|
4769 | * @param request UpdateCustomClassRequest message or plain object
|
4770 | * @returns Promise
|
4771 | */
|
4772 | public updateCustomClass(request: google.cloud.speech.v1p1beta1.IUpdateCustomClassRequest): Promise<google.cloud.speech.v1p1beta1.CustomClass>;
|
4773 |
|
4774 | /**
|
4775 | * Calls DeleteCustomClass.
|
4776 | * @param request DeleteCustomClassRequest message or plain object
|
4777 | * @param callback Node-style callback called with the error, if any, and Empty
|
4778 | */
|
4779 | public deleteCustomClass(request: google.cloud.speech.v1p1beta1.IDeleteCustomClassRequest, callback: google.cloud.speech.v1p1beta1.Adaptation.DeleteCustomClassCallback): void;
|
4780 |
|
4781 | /**
|
4782 | * Calls DeleteCustomClass.
|
4783 | * @param request DeleteCustomClassRequest message or plain object
|
4784 | * @returns Promise
|
4785 | */
|
4786 | public deleteCustomClass(request: google.cloud.speech.v1p1beta1.IDeleteCustomClassRequest): Promise<google.protobuf.Empty>;
|
4787 | }
|
4788 |
|
4789 | namespace Adaptation {
|
4790 |
|
4791 | /**
|
4792 | * Callback as used by {@link google.cloud.speech.v1p1beta1.Adaptation#createPhraseSet}.
|
4793 | * @param error Error, if any
|
4794 | * @param [response] PhraseSet
|
4795 | */
|
4796 | type CreatePhraseSetCallback = (error: (Error|null), response?: google.cloud.speech.v1p1beta1.PhraseSet) => void;
|
4797 |
|
4798 | /**
|
4799 | * Callback as used by {@link google.cloud.speech.v1p1beta1.Adaptation#getPhraseSet}.
|
4800 | * @param error Error, if any
|
4801 | * @param [response] PhraseSet
|
4802 | */
|
4803 | type GetPhraseSetCallback = (error: (Error|null), response?: google.cloud.speech.v1p1beta1.PhraseSet) => void;
|
4804 |
|
4805 | /**
|
4806 | * Callback as used by {@link google.cloud.speech.v1p1beta1.Adaptation#listPhraseSet}.
|
4807 | * @param error Error, if any
|
4808 | * @param [response] ListPhraseSetResponse
|
4809 | */
|
4810 | type ListPhraseSetCallback = (error: (Error|null), response?: google.cloud.speech.v1p1beta1.ListPhraseSetResponse) => void;
|
4811 |
|
4812 | /**
|
4813 | * Callback as used by {@link google.cloud.speech.v1p1beta1.Adaptation#updatePhraseSet}.
|
4814 | * @param error Error, if any
|
4815 | * @param [response] PhraseSet
|
4816 | */
|
4817 | type UpdatePhraseSetCallback = (error: (Error|null), response?: google.cloud.speech.v1p1beta1.PhraseSet) => void;
|
4818 |
|
4819 | /**
|
4820 | * Callback as used by {@link google.cloud.speech.v1p1beta1.Adaptation#deletePhraseSet}.
|
4821 | * @param error Error, if any
|
4822 | * @param [response] Empty
|
4823 | */
|
4824 | type DeletePhraseSetCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
|
4825 |
|
4826 | /**
|
4827 | * Callback as used by {@link google.cloud.speech.v1p1beta1.Adaptation#createCustomClass}.
|
4828 | * @param error Error, if any
|
4829 | * @param [response] CustomClass
|
4830 | */
|
4831 | type CreateCustomClassCallback = (error: (Error|null), response?: google.cloud.speech.v1p1beta1.CustomClass) => void;
|
4832 |
|
4833 | /**
|
4834 | * Callback as used by {@link google.cloud.speech.v1p1beta1.Adaptation#getCustomClass}.
|
4835 | * @param error Error, if any
|
4836 | * @param [response] CustomClass
|
4837 | */
|
4838 | type GetCustomClassCallback = (error: (Error|null), response?: google.cloud.speech.v1p1beta1.CustomClass) => void;
|
4839 |
|
4840 | /**
|
4841 | * Callback as used by {@link google.cloud.speech.v1p1beta1.Adaptation#listCustomClasses}.
|
4842 | * @param error Error, if any
|
4843 | * @param [response] ListCustomClassesResponse
|
4844 | */
|
4845 | type ListCustomClassesCallback = (error: (Error|null), response?: google.cloud.speech.v1p1beta1.ListCustomClassesResponse) => void;
|
4846 |
|
4847 | /**
|
4848 | * Callback as used by {@link google.cloud.speech.v1p1beta1.Adaptation#updateCustomClass}.
|
4849 | * @param error Error, if any
|
4850 | * @param [response] CustomClass
|
4851 | */
|
4852 | type UpdateCustomClassCallback = (error: (Error|null), response?: google.cloud.speech.v1p1beta1.CustomClass) => void;
|
4853 |
|
4854 | /**
|
4855 | * Callback as used by {@link google.cloud.speech.v1p1beta1.Adaptation#deleteCustomClass}.
|
4856 | * @param error Error, if any
|
4857 | * @param [response] Empty
|
4858 | */
|
4859 | type DeleteCustomClassCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
|
4860 | }
|
4861 |
|
4862 | /** Properties of a CreatePhraseSetRequest. */
|
4863 | interface ICreatePhraseSetRequest {
|
4864 |
|
4865 | /** CreatePhraseSetRequest parent */
|
4866 | parent?: (string|null);
|
4867 |
|
4868 | /** CreatePhraseSetRequest phraseSetId */
|
4869 | phraseSetId?: (string|null);
|
4870 |
|
4871 | /** CreatePhraseSetRequest phraseSet */
|
4872 | phraseSet?: (google.cloud.speech.v1p1beta1.IPhraseSet|null);
|
4873 | }
|
4874 |
|
4875 | /** Represents a CreatePhraseSetRequest. */
|
4876 | class CreatePhraseSetRequest implements ICreatePhraseSetRequest {
|
4877 |
|
4878 | /**
|
4879 | * Constructs a new CreatePhraseSetRequest.
|
4880 | * @param [properties] Properties to set
|
4881 | */
|
4882 | constructor(properties?: google.cloud.speech.v1p1beta1.ICreatePhraseSetRequest);
|
4883 |
|
4884 | /** CreatePhraseSetRequest parent. */
|
4885 | public parent: string;
|
4886 |
|
4887 | /** CreatePhraseSetRequest phraseSetId. */
|
4888 | public phraseSetId: string;
|
4889 |
|
4890 | /** CreatePhraseSetRequest phraseSet. */
|
4891 | public phraseSet?: (google.cloud.speech.v1p1beta1.IPhraseSet|null);
|
4892 |
|
4893 | /**
|
4894 | * Creates a new CreatePhraseSetRequest instance using the specified properties.
|
4895 | * @param [properties] Properties to set
|
4896 | * @returns CreatePhraseSetRequest instance
|
4897 | */
|
4898 | public static create(properties?: google.cloud.speech.v1p1beta1.ICreatePhraseSetRequest): google.cloud.speech.v1p1beta1.CreatePhraseSetRequest;
|
4899 |
|
4900 | /**
|
4901 | * Encodes the specified CreatePhraseSetRequest message. Does not implicitly { google.cloud.speech.v1p1beta1.CreatePhraseSetRequest.verify|verify} messages.
|
4902 | * message CreatePhraseSetRequest message or plain object to encode
|
4903 | * [writer] Writer to encode to
|
4904 | * Writer
|
4905 | */
|
4906 | public static encode(message: google.cloud.speech.v1p1beta1.ICreatePhraseSetRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
4907 |
|
4908 | /**
|
4909 | * Encodes the specified CreatePhraseSetRequest message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.CreatePhraseSetRequest.verify|verify} messages.
|
4910 | * @param message CreatePhraseSetRequest message or plain object to encode
|
4911 | * @param [writer] Writer to encode to
|
4912 | * @returns Writer
|
4913 | */
|
4914 | public static encodeDelimited(message: google.cloud.speech.v1p1beta1.ICreatePhraseSetRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
4915 |
|
4916 | /**
|
4917 | * Decodes a CreatePhraseSetRequest message from the specified reader or buffer.
|
4918 | * @param reader Reader or buffer to decode from
|
4919 | * @param [length] Message length if known beforehand
|
4920 | * @returns CreatePhraseSetRequest
|
4921 | * @throws {Error} If the payload is not a reader or valid buffer
|
4922 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
4923 | */
|
4924 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.CreatePhraseSetRequest;
|
4925 |
|
4926 | /**
|
4927 | * Decodes a CreatePhraseSetRequest message from the specified reader or buffer, length delimited.
|
4928 | * @param reader Reader or buffer to decode from
|
4929 | * @returns CreatePhraseSetRequest
|
4930 | * @throws {Error} If the payload is not a reader or valid buffer
|
4931 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
4932 | */
|
4933 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.CreatePhraseSetRequest;
|
4934 |
|
4935 | /**
|
4936 | * Verifies a CreatePhraseSetRequest message.
|
4937 | * @param message Plain object to verify
|
4938 | * @returns `null` if valid, otherwise the reason why it is not
|
4939 | */
|
4940 | public static verify(message: { [k: string]: any }): (string|null);
|
4941 |
|
4942 | /**
|
4943 | * Creates a CreatePhraseSetRequest message from a plain object. Also converts values to their respective internal types.
|
4944 | * @param object Plain object
|
4945 | * @returns CreatePhraseSetRequest
|
4946 | */
|
4947 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.CreatePhraseSetRequest;
|
4948 |
|
4949 | /**
|
4950 | * Creates a plain object from a CreatePhraseSetRequest message. Also converts values to other types if specified.
|
4951 | * @param message CreatePhraseSetRequest
|
4952 | * @param [options] Conversion options
|
4953 | * @returns Plain object
|
4954 | */
|
4955 | public static toObject(message: google.cloud.speech.v1p1beta1.CreatePhraseSetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
4956 |
|
4957 | /**
|
4958 | * Converts this CreatePhraseSetRequest to JSON.
|
4959 | * @returns JSON object
|
4960 | */
|
4961 | public toJSON(): { [k: string]: any };
|
4962 | }
|
4963 |
|
4964 | /** Properties of an UpdatePhraseSetRequest. */
|
4965 | interface IUpdatePhraseSetRequest {
|
4966 |
|
4967 | /** UpdatePhraseSetRequest phraseSet */
|
4968 | phraseSet?: (google.cloud.speech.v1p1beta1.IPhraseSet|null);
|
4969 |
|
4970 | /** UpdatePhraseSetRequest updateMask */
|
4971 | updateMask?: (google.protobuf.IFieldMask|null);
|
4972 | }
|
4973 |
|
4974 | /** Represents an UpdatePhraseSetRequest. */
|
4975 | class UpdatePhraseSetRequest implements IUpdatePhraseSetRequest {
|
4976 |
|
4977 | /**
|
4978 | * Constructs a new UpdatePhraseSetRequest.
|
4979 | * @param [properties] Properties to set
|
4980 | */
|
4981 | constructor(properties?: google.cloud.speech.v1p1beta1.IUpdatePhraseSetRequest);
|
4982 |
|
4983 | /** UpdatePhraseSetRequest phraseSet. */
|
4984 | public phraseSet?: (google.cloud.speech.v1p1beta1.IPhraseSet|null);
|
4985 |
|
4986 | /** UpdatePhraseSetRequest updateMask. */
|
4987 | public updateMask?: (google.protobuf.IFieldMask|null);
|
4988 |
|
4989 | /**
|
4990 | * Creates a new UpdatePhraseSetRequest instance using the specified properties.
|
4991 | * @param [properties] Properties to set
|
4992 | * @returns UpdatePhraseSetRequest instance
|
4993 | */
|
4994 | public static create(properties?: google.cloud.speech.v1p1beta1.IUpdatePhraseSetRequest): google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest;
|
4995 |
|
4996 | /**
|
4997 | * Encodes the specified UpdatePhraseSetRequest message. Does not implicitly { google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest.verify|verify} messages.
|
4998 | * message UpdatePhraseSetRequest message or plain object to encode
|
4999 | * [writer] Writer to encode to
|
5000 | * Writer
|
5001 | */
|
5002 | public static encode(message: google.cloud.speech.v1p1beta1.IUpdatePhraseSetRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
5003 |
|
5004 | /**
|
5005 | * Encodes the specified UpdatePhraseSetRequest message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest.verify|verify} messages.
|
5006 | * @param message UpdatePhraseSetRequest message or plain object to encode
|
5007 | * @param [writer] Writer to encode to
|
5008 | * @returns Writer
|
5009 | */
|
5010 | public static encodeDelimited(message: google.cloud.speech.v1p1beta1.IUpdatePhraseSetRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
5011 |
|
5012 | /**
|
5013 | * Decodes an UpdatePhraseSetRequest message from the specified reader or buffer.
|
5014 | * @param reader Reader or buffer to decode from
|
5015 | * @param [length] Message length if known beforehand
|
5016 | * @returns UpdatePhraseSetRequest
|
5017 | * @throws {Error} If the payload is not a reader or valid buffer
|
5018 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
5019 | */
|
5020 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest;
|
5021 |
|
5022 | /**
|
5023 | * Decodes an UpdatePhraseSetRequest message from the specified reader or buffer, length delimited.
|
5024 | * @param reader Reader or buffer to decode from
|
5025 | * @returns UpdatePhraseSetRequest
|
5026 | * @throws {Error} If the payload is not a reader or valid buffer
|
5027 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
5028 | */
|
5029 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest;
|
5030 |
|
5031 | /**
|
5032 | * Verifies an UpdatePhraseSetRequest message.
|
5033 | * @param message Plain object to verify
|
5034 | * @returns `null` if valid, otherwise the reason why it is not
|
5035 | */
|
5036 | public static verify(message: { [k: string]: any }): (string|null);
|
5037 |
|
5038 | /**
|
5039 | * Creates an UpdatePhraseSetRequest message from a plain object. Also converts values to their respective internal types.
|
5040 | * @param object Plain object
|
5041 | * @returns UpdatePhraseSetRequest
|
5042 | */
|
5043 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest;
|
5044 |
|
5045 | /**
|
5046 | * Creates a plain object from an UpdatePhraseSetRequest message. Also converts values to other types if specified.
|
5047 | * @param message UpdatePhraseSetRequest
|
5048 | * @param [options] Conversion options
|
5049 | * @returns Plain object
|
5050 | */
|
5051 | public static toObject(message: google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
5052 |
|
5053 | /**
|
5054 | * Converts this UpdatePhraseSetRequest to JSON.
|
5055 | * @returns JSON object
|
5056 | */
|
5057 | public toJSON(): { [k: string]: any };
|
5058 | }
|
5059 |
|
5060 | /** Properties of a GetPhraseSetRequest. */
|
5061 | interface IGetPhraseSetRequest {
|
5062 |
|
5063 | /** GetPhraseSetRequest name */
|
5064 | name?: (string|null);
|
5065 | }
|
5066 |
|
5067 | /** Represents a GetPhraseSetRequest. */
|
5068 | class GetPhraseSetRequest implements IGetPhraseSetRequest {
|
5069 |
|
5070 | /**
|
5071 | * Constructs a new GetPhraseSetRequest.
|
5072 | * @param [properties] Properties to set
|
5073 | */
|
5074 | constructor(properties?: google.cloud.speech.v1p1beta1.IGetPhraseSetRequest);
|
5075 |
|
5076 | /** GetPhraseSetRequest name. */
|
5077 | public name: string;
|
5078 |
|
5079 | /**
|
5080 | * Creates a new GetPhraseSetRequest instance using the specified properties.
|
5081 | * @param [properties] Properties to set
|
5082 | * @returns GetPhraseSetRequest instance
|
5083 | */
|
5084 | public static create(properties?: google.cloud.speech.v1p1beta1.IGetPhraseSetRequest): google.cloud.speech.v1p1beta1.GetPhraseSetRequest;
|
5085 |
|
5086 | /**
|
5087 | * Encodes the specified GetPhraseSetRequest message. Does not implicitly { google.cloud.speech.v1p1beta1.GetPhraseSetRequest.verify|verify} messages.
|
5088 | * message GetPhraseSetRequest message or plain object to encode
|
5089 | * [writer] Writer to encode to
|
5090 | * Writer
|
5091 | */
|
5092 | public static encode(message: google.cloud.speech.v1p1beta1.IGetPhraseSetRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
5093 |
|
5094 | /**
|
5095 | * Encodes the specified GetPhraseSetRequest message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.GetPhraseSetRequest.verify|verify} messages.
|
5096 | * @param message GetPhraseSetRequest message or plain object to encode
|
5097 | * @param [writer] Writer to encode to
|
5098 | * @returns Writer
|
5099 | */
|
5100 | public static encodeDelimited(message: google.cloud.speech.v1p1beta1.IGetPhraseSetRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
5101 |
|
5102 | /**
|
5103 | * Decodes a GetPhraseSetRequest message from the specified reader or buffer.
|
5104 | * @param reader Reader or buffer to decode from
|
5105 | * @param [length] Message length if known beforehand
|
5106 | * @returns GetPhraseSetRequest
|
5107 | * @throws {Error} If the payload is not a reader or valid buffer
|
5108 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
5109 | */
|
5110 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.GetPhraseSetRequest;
|
5111 |
|
5112 | /**
|
5113 | * Decodes a GetPhraseSetRequest message from the specified reader or buffer, length delimited.
|
5114 | * @param reader Reader or buffer to decode from
|
5115 | * @returns GetPhraseSetRequest
|
5116 | * @throws {Error} If the payload is not a reader or valid buffer
|
5117 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
5118 | */
|
5119 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.GetPhraseSetRequest;
|
5120 |
|
5121 | /**
|
5122 | * Verifies a GetPhraseSetRequest message.
|
5123 | * @param message Plain object to verify
|
5124 | * @returns `null` if valid, otherwise the reason why it is not
|
5125 | */
|
5126 | public static verify(message: { [k: string]: any }): (string|null);
|
5127 |
|
5128 | /**
|
5129 | * Creates a GetPhraseSetRequest message from a plain object. Also converts values to their respective internal types.
|
5130 | * @param object Plain object
|
5131 | * @returns GetPhraseSetRequest
|
5132 | */
|
5133 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.GetPhraseSetRequest;
|
5134 |
|
5135 | /**
|
5136 | * Creates a plain object from a GetPhraseSetRequest message. Also converts values to other types if specified.
|
5137 | * @param message GetPhraseSetRequest
|
5138 | * @param [options] Conversion options
|
5139 | * @returns Plain object
|
5140 | */
|
5141 | public static toObject(message: google.cloud.speech.v1p1beta1.GetPhraseSetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
5142 |
|
5143 | /**
|
5144 | * Converts this GetPhraseSetRequest to JSON.
|
5145 | * @returns JSON object
|
5146 | */
|
5147 | public toJSON(): { [k: string]: any };
|
5148 | }
|
5149 |
|
5150 | /** Properties of a ListPhraseSetRequest. */
|
5151 | interface IListPhraseSetRequest {
|
5152 |
|
5153 | /** ListPhraseSetRequest parent */
|
5154 | parent?: (string|null);
|
5155 |
|
5156 | /** ListPhraseSetRequest pageSize */
|
5157 | pageSize?: (number|null);
|
5158 |
|
5159 | /** ListPhraseSetRequest pageToken */
|
5160 | pageToken?: (string|null);
|
5161 | }
|
5162 |
|
5163 | /** Represents a ListPhraseSetRequest. */
|
5164 | class ListPhraseSetRequest implements IListPhraseSetRequest {
|
5165 |
|
5166 | /**
|
5167 | * Constructs a new ListPhraseSetRequest.
|
5168 | * @param [properties] Properties to set
|
5169 | */
|
5170 | constructor(properties?: google.cloud.speech.v1p1beta1.IListPhraseSetRequest);
|
5171 |
|
5172 | /** ListPhraseSetRequest parent. */
|
5173 | public parent: string;
|
5174 |
|
5175 | /** ListPhraseSetRequest pageSize. */
|
5176 | public pageSize: number;
|
5177 |
|
5178 | /** ListPhraseSetRequest pageToken. */
|
5179 | public pageToken: string;
|
5180 |
|
5181 | /**
|
5182 | * Creates a new ListPhraseSetRequest instance using the specified properties.
|
5183 | * @param [properties] Properties to set
|
5184 | * @returns ListPhraseSetRequest instance
|
5185 | */
|
5186 | public static create(properties?: google.cloud.speech.v1p1beta1.IListPhraseSetRequest): google.cloud.speech.v1p1beta1.ListPhraseSetRequest;
|
5187 |
|
5188 | /**
|
5189 | * Encodes the specified ListPhraseSetRequest message. Does not implicitly { google.cloud.speech.v1p1beta1.ListPhraseSetRequest.verify|verify} messages.
|
5190 | * message ListPhraseSetRequest message or plain object to encode
|
5191 | * [writer] Writer to encode to
|
5192 | * Writer
|
5193 | */
|
5194 | public static encode(message: google.cloud.speech.v1p1beta1.IListPhraseSetRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
5195 |
|
5196 | /**
|
5197 | * Encodes the specified ListPhraseSetRequest message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.ListPhraseSetRequest.verify|verify} messages.
|
5198 | * @param message ListPhraseSetRequest message or plain object to encode
|
5199 | * @param [writer] Writer to encode to
|
5200 | * @returns Writer
|
5201 | */
|
5202 | public static encodeDelimited(message: google.cloud.speech.v1p1beta1.IListPhraseSetRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
5203 |
|
5204 | /**
|
5205 | * Decodes a ListPhraseSetRequest message from the specified reader or buffer.
|
5206 | * @param reader Reader or buffer to decode from
|
5207 | * @param [length] Message length if known beforehand
|
5208 | * @returns ListPhraseSetRequest
|
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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.ListPhraseSetRequest;
|
5213 |
|
5214 | /**
|
5215 | * Decodes a ListPhraseSetRequest message from the specified reader or buffer, length delimited.
|
5216 | * @param reader Reader or buffer to decode from
|
5217 | * @returns ListPhraseSetRequest
|
5218 | * @throws {Error} If the payload is not a reader or valid buffer
|
5219 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
5220 | */
|
5221 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.ListPhraseSetRequest;
|
5222 |
|
5223 | /**
|
5224 | * Verifies a ListPhraseSetRequest message.
|
5225 | * @param message Plain object to verify
|
5226 | * @returns `null` if valid, otherwise the reason why it is not
|
5227 | */
|
5228 | public static verify(message: { [k: string]: any }): (string|null);
|
5229 |
|
5230 | /**
|
5231 | * Creates a ListPhraseSetRequest message from a plain object. Also converts values to their respective internal types.
|
5232 | * @param object Plain object
|
5233 | * @returns ListPhraseSetRequest
|
5234 | */
|
5235 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.ListPhraseSetRequest;
|
5236 |
|
5237 | /**
|
5238 | * Creates a plain object from a ListPhraseSetRequest message. Also converts values to other types if specified.
|
5239 | * @param message ListPhraseSetRequest
|
5240 | * @param [options] Conversion options
|
5241 | * @returns Plain object
|
5242 | */
|
5243 | public static toObject(message: google.cloud.speech.v1p1beta1.ListPhraseSetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
5244 |
|
5245 | /**
|
5246 | * Converts this ListPhraseSetRequest to JSON.
|
5247 | * @returns JSON object
|
5248 | */
|
5249 | public toJSON(): { [k: string]: any };
|
5250 | }
|
5251 |
|
5252 | /** Properties of a ListPhraseSetResponse. */
|
5253 | interface IListPhraseSetResponse {
|
5254 |
|
5255 | /** ListPhraseSetResponse phraseSets */
|
5256 | phraseSets?: (google.cloud.speech.v1p1beta1.IPhraseSet[]|null);
|
5257 |
|
5258 | /** ListPhraseSetResponse nextPageToken */
|
5259 | nextPageToken?: (string|null);
|
5260 | }
|
5261 |
|
5262 | /** Represents a ListPhraseSetResponse. */
|
5263 | class ListPhraseSetResponse implements IListPhraseSetResponse {
|
5264 |
|
5265 | /**
|
5266 | * Constructs a new ListPhraseSetResponse.
|
5267 | * @param [properties] Properties to set
|
5268 | */
|
5269 | constructor(properties?: google.cloud.speech.v1p1beta1.IListPhraseSetResponse);
|
5270 |
|
5271 | /** ListPhraseSetResponse phraseSets. */
|
5272 | public phraseSets: google.cloud.speech.v1p1beta1.IPhraseSet[];
|
5273 |
|
5274 | /** ListPhraseSetResponse nextPageToken. */
|
5275 | public nextPageToken: string;
|
5276 |
|
5277 | /**
|
5278 | * Creates a new ListPhraseSetResponse instance using the specified properties.
|
5279 | * @param [properties] Properties to set
|
5280 | * @returns ListPhraseSetResponse instance
|
5281 | */
|
5282 | public static create(properties?: google.cloud.speech.v1p1beta1.IListPhraseSetResponse): google.cloud.speech.v1p1beta1.ListPhraseSetResponse;
|
5283 |
|
5284 | /**
|
5285 | * Encodes the specified ListPhraseSetResponse message. Does not implicitly { google.cloud.speech.v1p1beta1.ListPhraseSetResponse.verify|verify} messages.
|
5286 | * message ListPhraseSetResponse message or plain object to encode
|
5287 | * [writer] Writer to encode to
|
5288 | * Writer
|
5289 | */
|
5290 | public static encode(message: google.cloud.speech.v1p1beta1.IListPhraseSetResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
5291 |
|
5292 | /**
|
5293 | * Encodes the specified ListPhraseSetResponse message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.ListPhraseSetResponse.verify|verify} messages.
|
5294 | * @param message ListPhraseSetResponse message or plain object to encode
|
5295 | * @param [writer] Writer to encode to
|
5296 | * @returns Writer
|
5297 | */
|
5298 | public static encodeDelimited(message: google.cloud.speech.v1p1beta1.IListPhraseSetResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
5299 |
|
5300 | /**
|
5301 | * Decodes a ListPhraseSetResponse message from the specified reader or buffer.
|
5302 | * @param reader Reader or buffer to decode from
|
5303 | * @param [length] Message length if known beforehand
|
5304 | * @returns ListPhraseSetResponse
|
5305 | * @throws {Error} If the payload is not a reader or valid buffer
|
5306 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
5307 | */
|
5308 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.ListPhraseSetResponse;
|
5309 |
|
5310 | /**
|
5311 | * Decodes a ListPhraseSetResponse message from the specified reader or buffer, length delimited.
|
5312 | * @param reader Reader or buffer to decode from
|
5313 | * @returns ListPhraseSetResponse
|
5314 | * @throws {Error} If the payload is not a reader or valid buffer
|
5315 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
5316 | */
|
5317 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.ListPhraseSetResponse;
|
5318 |
|
5319 | /**
|
5320 | * Verifies a ListPhraseSetResponse message.
|
5321 | * @param message Plain object to verify
|
5322 | * @returns `null` if valid, otherwise the reason why it is not
|
5323 | */
|
5324 | public static verify(message: { [k: string]: any }): (string|null);
|
5325 |
|
5326 | /**
|
5327 | * Creates a ListPhraseSetResponse message from a plain object. Also converts values to their respective internal types.
|
5328 | * @param object Plain object
|
5329 | * @returns ListPhraseSetResponse
|
5330 | */
|
5331 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.ListPhraseSetResponse;
|
5332 |
|
5333 | /**
|
5334 | * Creates a plain object from a ListPhraseSetResponse message. Also converts values to other types if specified.
|
5335 | * @param message ListPhraseSetResponse
|
5336 | * @param [options] Conversion options
|
5337 | * @returns Plain object
|
5338 | */
|
5339 | public static toObject(message: google.cloud.speech.v1p1beta1.ListPhraseSetResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
5340 |
|
5341 | /**
|
5342 | * Converts this ListPhraseSetResponse to JSON.
|
5343 | * @returns JSON object
|
5344 | */
|
5345 | public toJSON(): { [k: string]: any };
|
5346 | }
|
5347 |
|
5348 | /** Properties of a DeletePhraseSetRequest. */
|
5349 | interface IDeletePhraseSetRequest {
|
5350 |
|
5351 | /** DeletePhraseSetRequest name */
|
5352 | name?: (string|null);
|
5353 | }
|
5354 |
|
5355 | /** Represents a DeletePhraseSetRequest. */
|
5356 | class DeletePhraseSetRequest implements IDeletePhraseSetRequest {
|
5357 |
|
5358 | /**
|
5359 | * Constructs a new DeletePhraseSetRequest.
|
5360 | * @param [properties] Properties to set
|
5361 | */
|
5362 | constructor(properties?: google.cloud.speech.v1p1beta1.IDeletePhraseSetRequest);
|
5363 |
|
5364 | /** DeletePhraseSetRequest name. */
|
5365 | public name: string;
|
5366 |
|
5367 | /**
|
5368 | * Creates a new DeletePhraseSetRequest instance using the specified properties.
|
5369 | * @param [properties] Properties to set
|
5370 | * @returns DeletePhraseSetRequest instance
|
5371 | */
|
5372 | public static create(properties?: google.cloud.speech.v1p1beta1.IDeletePhraseSetRequest): google.cloud.speech.v1p1beta1.DeletePhraseSetRequest;
|
5373 |
|
5374 | /**
|
5375 | * Encodes the specified DeletePhraseSetRequest message. Does not implicitly { google.cloud.speech.v1p1beta1.DeletePhraseSetRequest.verify|verify} messages.
|
5376 | * message DeletePhraseSetRequest message or plain object to encode
|
5377 | * [writer] Writer to encode to
|
5378 | * Writer
|
5379 | */
|
5380 | public static encode(message: google.cloud.speech.v1p1beta1.IDeletePhraseSetRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
5381 |
|
5382 | /**
|
5383 | * Encodes the specified DeletePhraseSetRequest message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.DeletePhraseSetRequest.verify|verify} messages.
|
5384 | * @param message DeletePhraseSetRequest message or plain object to encode
|
5385 | * @param [writer] Writer to encode to
|
5386 | * @returns Writer
|
5387 | */
|
5388 | public static encodeDelimited(message: google.cloud.speech.v1p1beta1.IDeletePhraseSetRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
5389 |
|
5390 | /**
|
5391 | * Decodes a DeletePhraseSetRequest message from the specified reader or buffer.
|
5392 | * @param reader Reader or buffer to decode from
|
5393 | * @param [length] Message length if known beforehand
|
5394 | * @returns DeletePhraseSetRequest
|
5395 | * @throws {Error} If the payload is not a reader or valid buffer
|
5396 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
5397 | */
|
5398 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.DeletePhraseSetRequest;
|
5399 |
|
5400 | /**
|
5401 | * Decodes a DeletePhraseSetRequest message from the specified reader or buffer, length delimited.
|
5402 | * @param reader Reader or buffer to decode from
|
5403 | * @returns DeletePhraseSetRequest
|
5404 | * @throws {Error} If the payload is not a reader or valid buffer
|
5405 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
5406 | */
|
5407 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.DeletePhraseSetRequest;
|
5408 |
|
5409 | /**
|
5410 | * Verifies a DeletePhraseSetRequest message.
|
5411 | * @param message Plain object to verify
|
5412 | * @returns `null` if valid, otherwise the reason why it is not
|
5413 | */
|
5414 | public static verify(message: { [k: string]: any }): (string|null);
|
5415 |
|
5416 | /**
|
5417 | * Creates a DeletePhraseSetRequest message from a plain object. Also converts values to their respective internal types.
|
5418 | * @param object Plain object
|
5419 | * @returns DeletePhraseSetRequest
|
5420 | */
|
5421 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.DeletePhraseSetRequest;
|
5422 |
|
5423 | /**
|
5424 | * Creates a plain object from a DeletePhraseSetRequest message. Also converts values to other types if specified.
|
5425 | * @param message DeletePhraseSetRequest
|
5426 | * @param [options] Conversion options
|
5427 | * @returns Plain object
|
5428 | */
|
5429 | public static toObject(message: google.cloud.speech.v1p1beta1.DeletePhraseSetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
5430 |
|
5431 | /**
|
5432 | * Converts this DeletePhraseSetRequest to JSON.
|
5433 | * @returns JSON object
|
5434 | */
|
5435 | public toJSON(): { [k: string]: any };
|
5436 | }
|
5437 |
|
5438 | /** Properties of a CreateCustomClassRequest. */
|
5439 | interface ICreateCustomClassRequest {
|
5440 |
|
5441 | /** CreateCustomClassRequest parent */
|
5442 | parent?: (string|null);
|
5443 |
|
5444 | /** CreateCustomClassRequest customClassId */
|
5445 | customClassId?: (string|null);
|
5446 |
|
5447 | /** CreateCustomClassRequest customClass */
|
5448 | customClass?: (google.cloud.speech.v1p1beta1.ICustomClass|null);
|
5449 | }
|
5450 |
|
5451 | /** Represents a CreateCustomClassRequest. */
|
5452 | class CreateCustomClassRequest implements ICreateCustomClassRequest {
|
5453 |
|
5454 | /**
|
5455 | * Constructs a new CreateCustomClassRequest.
|
5456 | * @param [properties] Properties to set
|
5457 | */
|
5458 | constructor(properties?: google.cloud.speech.v1p1beta1.ICreateCustomClassRequest);
|
5459 |
|
5460 | /** CreateCustomClassRequest parent. */
|
5461 | public parent: string;
|
5462 |
|
5463 | /** CreateCustomClassRequest customClassId. */
|
5464 | public customClassId: string;
|
5465 |
|
5466 | /** CreateCustomClassRequest customClass. */
|
5467 | public customClass?: (google.cloud.speech.v1p1beta1.ICustomClass|null);
|
5468 |
|
5469 | /**
|
5470 | * Creates a new CreateCustomClassRequest instance using the specified properties.
|
5471 | * @param [properties] Properties to set
|
5472 | * @returns CreateCustomClassRequest instance
|
5473 | */
|
5474 | public static create(properties?: google.cloud.speech.v1p1beta1.ICreateCustomClassRequest): google.cloud.speech.v1p1beta1.CreateCustomClassRequest;
|
5475 |
|
5476 | /**
|
5477 | * Encodes the specified CreateCustomClassRequest message. Does not implicitly { google.cloud.speech.v1p1beta1.CreateCustomClassRequest.verify|verify} messages.
|
5478 | * message CreateCustomClassRequest message or plain object to encode
|
5479 | * [writer] Writer to encode to
|
5480 | * Writer
|
5481 | */
|
5482 | public static encode(message: google.cloud.speech.v1p1beta1.ICreateCustomClassRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
5483 |
|
5484 | /**
|
5485 | * Encodes the specified CreateCustomClassRequest message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.CreateCustomClassRequest.verify|verify} messages.
|
5486 | * @param message CreateCustomClassRequest 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.ICreateCustomClassRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
5491 |
|
5492 | /**
|
5493 | * Decodes a CreateCustomClassRequest 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 CreateCustomClassRequest
|
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.CreateCustomClassRequest;
|
5501 |
|
5502 | /**
|
5503 | * Decodes a CreateCustomClassRequest message from the specified reader or buffer, length delimited.
|
5504 | * @param reader Reader or buffer to decode from
|
5505 | * @returns CreateCustomClassRequest
|
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.CreateCustomClassRequest;
|
5510 |
|
5511 | /**
|
5512 | * Verifies a CreateCustomClassRequest 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 a CreateCustomClassRequest message from a plain object. Also converts values to their respective internal types.
|
5520 | * @param object Plain object
|
5521 | * @returns CreateCustomClassRequest
|
5522 | */
|
5523 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.CreateCustomClassRequest;
|
5524 |
|
5525 | /**
|
5526 | * Creates a plain object from a CreateCustomClassRequest message. Also converts values to other types if specified.
|
5527 | * @param message CreateCustomClassRequest
|
5528 | * @param [options] Conversion options
|
5529 | * @returns Plain object
|
5530 | */
|
5531 | public static toObject(message: google.cloud.speech.v1p1beta1.CreateCustomClassRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
5532 |
|
5533 | /**
|
5534 | * Converts this CreateCustomClassRequest to JSON.
|
5535 | * @returns JSON object
|
5536 | */
|
5537 | public toJSON(): { [k: string]: any };
|
5538 | }
|
5539 |
|
5540 | /** Properties of an UpdateCustomClassRequest. */
|
5541 | interface IUpdateCustomClassRequest {
|
5542 |
|
5543 | /** UpdateCustomClassRequest customClass */
|
5544 | customClass?: (google.cloud.speech.v1p1beta1.ICustomClass|null);
|
5545 |
|
5546 | /** UpdateCustomClassRequest updateMask */
|
5547 | updateMask?: (google.protobuf.IFieldMask|null);
|
5548 | }
|
5549 |
|
5550 | /** Represents an UpdateCustomClassRequest. */
|
5551 | class UpdateCustomClassRequest implements IUpdateCustomClassRequest {
|
5552 |
|
5553 | /**
|
5554 | * Constructs a new UpdateCustomClassRequest.
|
5555 | * @param [properties] Properties to set
|
5556 | */
|
5557 | constructor(properties?: google.cloud.speech.v1p1beta1.IUpdateCustomClassRequest);
|
5558 |
|
5559 | /** UpdateCustomClassRequest customClass. */
|
5560 | public customClass?: (google.cloud.speech.v1p1beta1.ICustomClass|null);
|
5561 |
|
5562 | /** UpdateCustomClassRequest updateMask. */
|
5563 | public updateMask?: (google.protobuf.IFieldMask|null);
|
5564 |
|
5565 | /**
|
5566 | * Creates a new UpdateCustomClassRequest instance using the specified properties.
|
5567 | * @param [properties] Properties to set
|
5568 | * @returns UpdateCustomClassRequest instance
|
5569 | */
|
5570 | public static create(properties?: google.cloud.speech.v1p1beta1.IUpdateCustomClassRequest): google.cloud.speech.v1p1beta1.UpdateCustomClassRequest;
|
5571 |
|
5572 | /**
|
5573 | * Encodes the specified UpdateCustomClassRequest message. Does not implicitly { google.cloud.speech.v1p1beta1.UpdateCustomClassRequest.verify|verify} messages.
|
5574 | * message UpdateCustomClassRequest message or plain object to encode
|
5575 | * [writer] Writer to encode to
|
5576 | * Writer
|
5577 | */
|
5578 | public static encode(message: google.cloud.speech.v1p1beta1.IUpdateCustomClassRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
5579 |
|
5580 | /**
|
5581 | * Encodes the specified UpdateCustomClassRequest message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.UpdateCustomClassRequest.verify|verify} messages.
|
5582 | * @param message UpdateCustomClassRequest message or plain object to encode
|
5583 | * @param [writer] Writer to encode to
|
5584 | * @returns Writer
|
5585 | */
|
5586 | public static encodeDelimited(message: google.cloud.speech.v1p1beta1.IUpdateCustomClassRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
5587 |
|
5588 | /**
|
5589 | * Decodes an UpdateCustomClassRequest message from the specified reader or buffer.
|
5590 | * @param reader Reader or buffer to decode from
|
5591 | * @param [length] Message length if known beforehand
|
5592 | * @returns UpdateCustomClassRequest
|
5593 | * @throws {Error} If the payload is not a reader or valid buffer
|
5594 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
5595 | */
|
5596 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.UpdateCustomClassRequest;
|
5597 |
|
5598 | /**
|
5599 | * Decodes an UpdateCustomClassRequest message from the specified reader or buffer, length delimited.
|
5600 | * @param reader Reader or buffer to decode from
|
5601 | * @returns UpdateCustomClassRequest
|
5602 | * @throws {Error} If the payload is not a reader or valid buffer
|
5603 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
5604 | */
|
5605 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.UpdateCustomClassRequest;
|
5606 |
|
5607 | /**
|
5608 | * Verifies an UpdateCustomClassRequest message.
|
5609 | * @param message Plain object to verify
|
5610 | * @returns `null` if valid, otherwise the reason why it is not
|
5611 | */
|
5612 | public static verify(message: { [k: string]: any }): (string|null);
|
5613 |
|
5614 | /**
|
5615 | * Creates an UpdateCustomClassRequest message from a plain object. Also converts values to their respective internal types.
|
5616 | * @param object Plain object
|
5617 | * @returns UpdateCustomClassRequest
|
5618 | */
|
5619 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.UpdateCustomClassRequest;
|
5620 |
|
5621 | /**
|
5622 | * Creates a plain object from an UpdateCustomClassRequest message. Also converts values to other types if specified.
|
5623 | * @param message UpdateCustomClassRequest
|
5624 | * @param [options] Conversion options
|
5625 | * @returns Plain object
|
5626 | */
|
5627 | public static toObject(message: google.cloud.speech.v1p1beta1.UpdateCustomClassRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
5628 |
|
5629 | /**
|
5630 | * Converts this UpdateCustomClassRequest to JSON.
|
5631 | * @returns JSON object
|
5632 | */
|
5633 | public toJSON(): { [k: string]: any };
|
5634 | }
|
5635 |
|
5636 | /** Properties of a GetCustomClassRequest. */
|
5637 | interface IGetCustomClassRequest {
|
5638 |
|
5639 | /** GetCustomClassRequest name */
|
5640 | name?: (string|null);
|
5641 | }
|
5642 |
|
5643 | /** Represents a GetCustomClassRequest. */
|
5644 | class GetCustomClassRequest implements IGetCustomClassRequest {
|
5645 |
|
5646 | /**
|
5647 | * Constructs a new GetCustomClassRequest.
|
5648 | * @param [properties] Properties to set
|
5649 | */
|
5650 | constructor(properties?: google.cloud.speech.v1p1beta1.IGetCustomClassRequest);
|
5651 |
|
5652 | /** GetCustomClassRequest name. */
|
5653 | public name: string;
|
5654 |
|
5655 | /**
|
5656 | * Creates a new GetCustomClassRequest instance using the specified properties.
|
5657 | * @param [properties] Properties to set
|
5658 | * @returns GetCustomClassRequest instance
|
5659 | */
|
5660 | public static create(properties?: google.cloud.speech.v1p1beta1.IGetCustomClassRequest): google.cloud.speech.v1p1beta1.GetCustomClassRequest;
|
5661 |
|
5662 | /**
|
5663 | * Encodes the specified GetCustomClassRequest message. Does not implicitly { google.cloud.speech.v1p1beta1.GetCustomClassRequest.verify|verify} messages.
|
5664 | * message GetCustomClassRequest message or plain object to encode
|
5665 | * [writer] Writer to encode to
|
5666 | * Writer
|
5667 | */
|
5668 | public static encode(message: google.cloud.speech.v1p1beta1.IGetCustomClassRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
5669 |
|
5670 | /**
|
5671 | * Encodes the specified GetCustomClassRequest message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.GetCustomClassRequest.verify|verify} messages.
|
5672 | * @param message GetCustomClassRequest message or plain object to encode
|
5673 | * @param [writer] Writer to encode to
|
5674 | * @returns Writer
|
5675 | */
|
5676 | public static encodeDelimited(message: google.cloud.speech.v1p1beta1.IGetCustomClassRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
5677 |
|
5678 | /**
|
5679 | * Decodes a GetCustomClassRequest message from the specified reader or buffer.
|
5680 | * @param reader Reader or buffer to decode from
|
5681 | * @param [length] Message length if known beforehand
|
5682 | * @returns GetCustomClassRequest
|
5683 | * @throws {Error} If the payload is not a reader or valid buffer
|
5684 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
5685 | */
|
5686 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.GetCustomClassRequest;
|
5687 |
|
5688 | /**
|
5689 | * Decodes a GetCustomClassRequest message from the specified reader or buffer, length delimited.
|
5690 | * @param reader Reader or buffer to decode from
|
5691 | * @returns GetCustomClassRequest
|
5692 | * @throws {Error} If the payload is not a reader or valid buffer
|
5693 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
5694 | */
|
5695 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.GetCustomClassRequest;
|
5696 |
|
5697 | /**
|
5698 | * Verifies a GetCustomClassRequest message.
|
5699 | * @param message Plain object to verify
|
5700 | * @returns `null` if valid, otherwise the reason why it is not
|
5701 | */
|
5702 | public static verify(message: { [k: string]: any }): (string|null);
|
5703 |
|
5704 | /**
|
5705 | * Creates a GetCustomClassRequest message from a plain object. Also converts values to their respective internal types.
|
5706 | * @param object Plain object
|
5707 | * @returns GetCustomClassRequest
|
5708 | */
|
5709 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.GetCustomClassRequest;
|
5710 |
|
5711 | /**
|
5712 | * Creates a plain object from a GetCustomClassRequest message. Also converts values to other types if specified.
|
5713 | * @param message GetCustomClassRequest
|
5714 | * @param [options] Conversion options
|
5715 | * @returns Plain object
|
5716 | */
|
5717 | public static toObject(message: google.cloud.speech.v1p1beta1.GetCustomClassRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
5718 |
|
5719 | /**
|
5720 | * Converts this GetCustomClassRequest to JSON.
|
5721 | * @returns JSON object
|
5722 | */
|
5723 | public toJSON(): { [k: string]: any };
|
5724 | }
|
5725 |
|
5726 | /** Properties of a ListCustomClassesRequest. */
|
5727 | interface IListCustomClassesRequest {
|
5728 |
|
5729 | /** ListCustomClassesRequest parent */
|
5730 | parent?: (string|null);
|
5731 |
|
5732 | /** ListCustomClassesRequest pageSize */
|
5733 | pageSize?: (number|null);
|
5734 |
|
5735 | /** ListCustomClassesRequest pageToken */
|
5736 | pageToken?: (string|null);
|
5737 | }
|
5738 |
|
5739 | /** Represents a ListCustomClassesRequest. */
|
5740 | class ListCustomClassesRequest implements IListCustomClassesRequest {
|
5741 |
|
5742 | /**
|
5743 | * Constructs a new ListCustomClassesRequest.
|
5744 | * @param [properties] Properties to set
|
5745 | */
|
5746 | constructor(properties?: google.cloud.speech.v1p1beta1.IListCustomClassesRequest);
|
5747 |
|
5748 | /** ListCustomClassesRequest parent. */
|
5749 | public parent: string;
|
5750 |
|
5751 | /** ListCustomClassesRequest pageSize. */
|
5752 | public pageSize: number;
|
5753 |
|
5754 | /** ListCustomClassesRequest pageToken. */
|
5755 | public pageToken: string;
|
5756 |
|
5757 | /**
|
5758 | * Creates a new ListCustomClassesRequest instance using the specified properties.
|
5759 | * @param [properties] Properties to set
|
5760 | * @returns ListCustomClassesRequest instance
|
5761 | */
|
5762 | public static create(properties?: google.cloud.speech.v1p1beta1.IListCustomClassesRequest): google.cloud.speech.v1p1beta1.ListCustomClassesRequest;
|
5763 |
|
5764 | /**
|
5765 | * Encodes the specified ListCustomClassesRequest message. Does not implicitly { google.cloud.speech.v1p1beta1.ListCustomClassesRequest.verify|verify} messages.
|
5766 | * message ListCustomClassesRequest message or plain object to encode
|
5767 | * [writer] Writer to encode to
|
5768 | * Writer
|
5769 | */
|
5770 | public static encode(message: google.cloud.speech.v1p1beta1.IListCustomClassesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
5771 |
|
5772 | /**
|
5773 | * Encodes the specified ListCustomClassesRequest message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.ListCustomClassesRequest.verify|verify} messages.
|
5774 | * @param message ListCustomClassesRequest message or plain object to encode
|
5775 | * @param [writer] Writer to encode to
|
5776 | * @returns Writer
|
5777 | */
|
5778 | public static encodeDelimited(message: google.cloud.speech.v1p1beta1.IListCustomClassesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
5779 |
|
5780 | /**
|
5781 | * Decodes a ListCustomClassesRequest message from the specified reader or buffer.
|
5782 | * @param reader Reader or buffer to decode from
|
5783 | * @param [length] Message length if known beforehand
|
5784 | * @returns ListCustomClassesRequest
|
5785 | * @throws {Error} If the payload is not a reader or valid buffer
|
5786 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
5787 | */
|
5788 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.ListCustomClassesRequest;
|
5789 |
|
5790 | /**
|
5791 | * Decodes a ListCustomClassesRequest message from the specified reader or buffer, length delimited.
|
5792 | * @param reader Reader or buffer to decode from
|
5793 | * @returns ListCustomClassesRequest
|
5794 | * @throws {Error} If the payload is not a reader or valid buffer
|
5795 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
5796 | */
|
5797 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.ListCustomClassesRequest;
|
5798 |
|
5799 | /**
|
5800 | * Verifies a ListCustomClassesRequest message.
|
5801 | * @param message Plain object to verify
|
5802 | * @returns `null` if valid, otherwise the reason why it is not
|
5803 | */
|
5804 | public static verify(message: { [k: string]: any }): (string|null);
|
5805 |
|
5806 | /**
|
5807 | * Creates a ListCustomClassesRequest message from a plain object. Also converts values to their respective internal types.
|
5808 | * @param object Plain object
|
5809 | * @returns ListCustomClassesRequest
|
5810 | */
|
5811 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.ListCustomClassesRequest;
|
5812 |
|
5813 | /**
|
5814 | * Creates a plain object from a ListCustomClassesRequest message. Also converts values to other types if specified.
|
5815 | * @param message ListCustomClassesRequest
|
5816 | * @param [options] Conversion options
|
5817 | * @returns Plain object
|
5818 | */
|
5819 | public static toObject(message: google.cloud.speech.v1p1beta1.ListCustomClassesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
5820 |
|
5821 | /**
|
5822 | * Converts this ListCustomClassesRequest to JSON.
|
5823 | * @returns JSON object
|
5824 | */
|
5825 | public toJSON(): { [k: string]: any };
|
5826 | }
|
5827 |
|
5828 | /** Properties of a ListCustomClassesResponse. */
|
5829 | interface IListCustomClassesResponse {
|
5830 |
|
5831 | /** ListCustomClassesResponse customClasses */
|
5832 | customClasses?: (google.cloud.speech.v1p1beta1.ICustomClass[]|null);
|
5833 |
|
5834 | /** ListCustomClassesResponse nextPageToken */
|
5835 | nextPageToken?: (string|null);
|
5836 | }
|
5837 |
|
5838 | /** Represents a ListCustomClassesResponse. */
|
5839 | class ListCustomClassesResponse implements IListCustomClassesResponse {
|
5840 |
|
5841 | /**
|
5842 | * Constructs a new ListCustomClassesResponse.
|
5843 | * @param [properties] Properties to set
|
5844 | */
|
5845 | constructor(properties?: google.cloud.speech.v1p1beta1.IListCustomClassesResponse);
|
5846 |
|
5847 | /** ListCustomClassesResponse customClasses. */
|
5848 | public customClasses: google.cloud.speech.v1p1beta1.ICustomClass[];
|
5849 |
|
5850 | /** ListCustomClassesResponse nextPageToken. */
|
5851 | public nextPageToken: string;
|
5852 |
|
5853 | /**
|
5854 | * Creates a new ListCustomClassesResponse instance using the specified properties.
|
5855 | * @param [properties] Properties to set
|
5856 | * @returns ListCustomClassesResponse instance
|
5857 | */
|
5858 | public static create(properties?: google.cloud.speech.v1p1beta1.IListCustomClassesResponse): google.cloud.speech.v1p1beta1.ListCustomClassesResponse;
|
5859 |
|
5860 | /**
|
5861 | * Encodes the specified ListCustomClassesResponse message. Does not implicitly { google.cloud.speech.v1p1beta1.ListCustomClassesResponse.verify|verify} messages.
|
5862 | * message ListCustomClassesResponse message or plain object to encode
|
5863 | * [writer] Writer to encode to
|
5864 | * Writer
|
5865 | */
|
5866 | public static encode(message: google.cloud.speech.v1p1beta1.IListCustomClassesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
5867 |
|
5868 | /**
|
5869 | * Encodes the specified ListCustomClassesResponse message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.ListCustomClassesResponse.verify|verify} messages.
|
5870 | * @param message ListCustomClassesResponse message or plain object to encode
|
5871 | * @param [writer] Writer to encode to
|
5872 | * @returns Writer
|
5873 | */
|
5874 | public static encodeDelimited(message: google.cloud.speech.v1p1beta1.IListCustomClassesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
5875 |
|
5876 | /**
|
5877 | * Decodes a ListCustomClassesResponse message from the specified reader or buffer.
|
5878 | * @param reader Reader or buffer to decode from
|
5879 | * @param [length] Message length if known beforehand
|
5880 | * @returns ListCustomClassesResponse
|
5881 | * @throws {Error} If the payload is not a reader or valid buffer
|
5882 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
5883 | */
|
5884 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.ListCustomClassesResponse;
|
5885 |
|
5886 | /**
|
5887 | * Decodes a ListCustomClassesResponse message from the specified reader or buffer, length delimited.
|
5888 | * @param reader Reader or buffer to decode from
|
5889 | * @returns ListCustomClassesResponse
|
5890 | * @throws {Error} If the payload is not a reader or valid buffer
|
5891 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
5892 | */
|
5893 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.ListCustomClassesResponse;
|
5894 |
|
5895 | /**
|
5896 | * Verifies a ListCustomClassesResponse message.
|
5897 | * @param message Plain object to verify
|
5898 | * @returns `null` if valid, otherwise the reason why it is not
|
5899 | */
|
5900 | public static verify(message: { [k: string]: any }): (string|null);
|
5901 |
|
5902 | /**
|
5903 | * Creates a ListCustomClassesResponse message from a plain object. Also converts values to their respective internal types.
|
5904 | * @param object Plain object
|
5905 | * @returns ListCustomClassesResponse
|
5906 | */
|
5907 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.ListCustomClassesResponse;
|
5908 |
|
5909 | /**
|
5910 | * Creates a plain object from a ListCustomClassesResponse message. Also converts values to other types if specified.
|
5911 | * @param message ListCustomClassesResponse
|
5912 | * @param [options] Conversion options
|
5913 | * @returns Plain object
|
5914 | */
|
5915 | public static toObject(message: google.cloud.speech.v1p1beta1.ListCustomClassesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
5916 |
|
5917 | /**
|
5918 | * Converts this ListCustomClassesResponse to JSON.
|
5919 | * @returns JSON object
|
5920 | */
|
5921 | public toJSON(): { [k: string]: any };
|
5922 | }
|
5923 |
|
5924 | /** Properties of a DeleteCustomClassRequest. */
|
5925 | interface IDeleteCustomClassRequest {
|
5926 |
|
5927 | /** DeleteCustomClassRequest name */
|
5928 | name?: (string|null);
|
5929 | }
|
5930 |
|
5931 | /** Represents a DeleteCustomClassRequest. */
|
5932 | class DeleteCustomClassRequest implements IDeleteCustomClassRequest {
|
5933 |
|
5934 | /**
|
5935 | * Constructs a new DeleteCustomClassRequest.
|
5936 | * @param [properties] Properties to set
|
5937 | */
|
5938 | constructor(properties?: google.cloud.speech.v1p1beta1.IDeleteCustomClassRequest);
|
5939 |
|
5940 | /** DeleteCustomClassRequest name. */
|
5941 | public name: string;
|
5942 |
|
5943 | /**
|
5944 | * Creates a new DeleteCustomClassRequest instance using the specified properties.
|
5945 | * @param [properties] Properties to set
|
5946 | * @returns DeleteCustomClassRequest instance
|
5947 | */
|
5948 | public static create(properties?: google.cloud.speech.v1p1beta1.IDeleteCustomClassRequest): google.cloud.speech.v1p1beta1.DeleteCustomClassRequest;
|
5949 |
|
5950 | /**
|
5951 | * Encodes the specified DeleteCustomClassRequest message. Does not implicitly { google.cloud.speech.v1p1beta1.DeleteCustomClassRequest.verify|verify} messages.
|
5952 | * message DeleteCustomClassRequest message or plain object to encode
|
5953 | * [writer] Writer to encode to
|
5954 | * Writer
|
5955 | */
|
5956 | public static encode(message: google.cloud.speech.v1p1beta1.IDeleteCustomClassRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
5957 |
|
5958 | /**
|
5959 | * Encodes the specified DeleteCustomClassRequest message, length delimited. Does not implicitly {@link google.cloud.speech.v1p1beta1.DeleteCustomClassRequest.verify|verify} messages.
|
5960 | * @param message DeleteCustomClassRequest message or plain object to encode
|
5961 | * @param [writer] Writer to encode to
|
5962 | * @returns Writer
|
5963 | */
|
5964 | public static encodeDelimited(message: google.cloud.speech.v1p1beta1.IDeleteCustomClassRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
5965 |
|
5966 | /**
|
5967 | * Decodes a DeleteCustomClassRequest message from the specified reader or buffer.
|
5968 | * @param reader Reader or buffer to decode from
|
5969 | * @param [length] Message length if known beforehand
|
5970 | * @returns DeleteCustomClassRequest
|
5971 | * @throws {Error} If the payload is not a reader or valid buffer
|
5972 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
5973 | */
|
5974 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.speech.v1p1beta1.DeleteCustomClassRequest;
|
5975 |
|
5976 | /**
|
5977 | * Decodes a DeleteCustomClassRequest message from the specified reader or buffer, length delimited.
|
5978 | * @param reader Reader or buffer to decode from
|
5979 | * @returns DeleteCustomClassRequest
|
5980 | * @throws {Error} If the payload is not a reader or valid buffer
|
5981 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
5982 | */
|
5983 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.speech.v1p1beta1.DeleteCustomClassRequest;
|
5984 |
|
5985 | /**
|
5986 | * Verifies a DeleteCustomClassRequest message.
|
5987 | * @param message Plain object to verify
|
5988 | * @returns `null` if valid, otherwise the reason why it is not
|
5989 | */
|
5990 | public static verify(message: { [k: string]: any }): (string|null);
|
5991 |
|
5992 | /**
|
5993 | * Creates a DeleteCustomClassRequest message from a plain object. Also converts values to their respective internal types.
|
5994 | * @param object Plain object
|
5995 | * @returns DeleteCustomClassRequest
|
5996 | */
|
5997 | public static fromObject(object: { [k: string]: any }): google.cloud.speech.v1p1beta1.DeleteCustomClassRequest;
|
5998 |
|
5999 | /**
|
6000 | * Creates a plain object from a DeleteCustomClassRequest message. Also converts values to other types if specified.
|
6001 | * @param message DeleteCustomClassRequest
|
6002 | * @param [options] Conversion options
|
6003 | * @returns Plain object
|
6004 | */
|
6005 | public static toObject(message: google.cloud.speech.v1p1beta1.DeleteCustomClassRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
6006 |
|
6007 | /**
|
6008 | * Converts this DeleteCustomClassRequest to JSON.
|
6009 | * @returns JSON object
|
6010 | */
|
6011 | public toJSON(): { [k: string]: any };
|
6012 | }
|
6013 | }
|
6014 | }
|
6015 | }
|
6016 |
|
6017 | /** Namespace api. */
|
6018 | namespace api {
|
6019 |
|
6020 | /** Properties of a Http. */
|
6021 | interface IHttp {
|
6022 |
|
6023 | /** Http rules */
|
6024 | rules?: (google.api.IHttpRule[]|null);
|
6025 |
|
6026 | /** Http fullyDecodeReservedExpansion */
|
6027 | fullyDecodeReservedExpansion?: (boolean|null);
|
6028 | }
|
6029 |
|
6030 | /** Represents a Http. */
|
6031 | class Http implements IHttp {
|
6032 |
|
6033 | /**
|
6034 | * Constructs a new Http.
|
6035 | * @param [properties] Properties to set
|
6036 | */
|
6037 | constructor(properties?: google.api.IHttp);
|
6038 |
|
6039 | /** Http rules. */
|
6040 | public rules: google.api.IHttpRule[];
|
6041 |
|
6042 | /** Http fullyDecodeReservedExpansion. */
|
6043 | public fullyDecodeReservedExpansion: boolean;
|
6044 |
|
6045 | /**
|
6046 | * Creates a new Http instance using the specified properties.
|
6047 | * @param [properties] Properties to set
|
6048 | * @returns Http instance
|
6049 | */
|
6050 | public static create(properties?: google.api.IHttp): google.api.Http;
|
6051 |
|
6052 | /**
|
6053 | * Encodes the specified Http message. Does not implicitly { google.api.Http.verify|verify} messages.
|
6054 | * message Http message or plain object to encode
|
6055 | * [writer] Writer to encode to
|
6056 | * Writer
|
6057 | */
|
6058 | public static encode(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer;
|
6059 |
|
6060 | /**
|
6061 | * Encodes the specified Http message, length delimited. Does not implicitly {@link google.api.Http.verify|verify} messages.
|
6062 | * @param message Http message or plain object to encode
|
6063 | * @param [writer] Writer to encode to
|
6064 | * @returns Writer
|
6065 | */
|
6066 | public static encodeDelimited(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer;
|
6067 |
|
6068 | /**
|
6069 | * Decodes a Http message from the specified reader or buffer.
|
6070 | * @param reader Reader or buffer to decode from
|
6071 | * @param [length] Message length if known beforehand
|
6072 | * @returns Http
|
6073 | * @throws {Error} If the payload is not a reader or valid buffer
|
6074 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
6075 | */
|
6076 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.Http;
|
6077 |
|
6078 | /**
|
6079 | * Decodes a Http message from the specified reader or buffer, length delimited.
|
6080 | * @param reader Reader or buffer to decode from
|
6081 | * @returns Http
|
6082 | * @throws {Error} If the payload is not a reader or valid buffer
|
6083 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
6084 | */
|
6085 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.Http;
|
6086 |
|
6087 | /**
|
6088 | * Verifies a Http message.
|
6089 | * @param message Plain object to verify
|
6090 | * @returns `null` if valid, otherwise the reason why it is not
|
6091 | */
|
6092 | public static verify(message: { [k: string]: any }): (string|null);
|
6093 |
|
6094 | /**
|
6095 | * Creates a Http message from a plain object. Also converts values to their respective internal types.
|
6096 | * @param object Plain object
|
6097 | * @returns Http
|
6098 | */
|
6099 | public static fromObject(object: { [k: string]: any }): google.api.Http;
|
6100 |
|
6101 | /**
|
6102 | * Creates a plain object from a Http message. Also converts values to other types if specified.
|
6103 | * @param message Http
|
6104 | * @param [options] Conversion options
|
6105 | * @returns Plain object
|
6106 | */
|
6107 | public static toObject(message: google.api.Http, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
6108 |
|
6109 | /**
|
6110 | * Converts this Http to JSON.
|
6111 | * @returns JSON object
|
6112 | */
|
6113 | public toJSON(): { [k: string]: any };
|
6114 | }
|
6115 |
|
6116 | /** Properties of a HttpRule. */
|
6117 | interface IHttpRule {
|
6118 |
|
6119 | /** HttpRule selector */
|
6120 | selector?: (string|null);
|
6121 |
|
6122 | /** HttpRule get */
|
6123 | get?: (string|null);
|
6124 |
|
6125 | /** HttpRule put */
|
6126 | put?: (string|null);
|
6127 |
|
6128 | /** HttpRule post */
|
6129 | post?: (string|null);
|
6130 |
|
6131 | /** HttpRule delete */
|
6132 | "delete"?: (string|null);
|
6133 |
|
6134 | /** HttpRule patch */
|
6135 | patch?: (string|null);
|
6136 |
|
6137 | /** HttpRule custom */
|
6138 | custom?: (google.api.ICustomHttpPattern|null);
|
6139 |
|
6140 | /** HttpRule body */
|
6141 | body?: (string|null);
|
6142 |
|
6143 | /** HttpRule responseBody */
|
6144 | responseBody?: (string|null);
|
6145 |
|
6146 | /** HttpRule additionalBindings */
|
6147 | additionalBindings?: (google.api.IHttpRule[]|null);
|
6148 | }
|
6149 |
|
6150 | /** Represents a HttpRule. */
|
6151 | class HttpRule implements IHttpRule {
|
6152 |
|
6153 | /**
|
6154 | * Constructs a new HttpRule.
|
6155 | * @param [properties] Properties to set
|
6156 | */
|
6157 | constructor(properties?: google.api.IHttpRule);
|
6158 |
|
6159 | /** HttpRule selector. */
|
6160 | public selector: string;
|
6161 |
|
6162 | /** HttpRule get. */
|
6163 | public get?: (string|null);
|
6164 |
|
6165 | /** HttpRule put. */
|
6166 | public put?: (string|null);
|
6167 |
|
6168 | /** HttpRule post. */
|
6169 | public post?: (string|null);
|
6170 |
|
6171 | /** HttpRule delete. */
|
6172 | public delete?: (string|null);
|
6173 |
|
6174 | /** HttpRule patch. */
|
6175 | public patch?: (string|null);
|
6176 |
|
6177 | /** HttpRule custom. */
|
6178 | public custom?: (google.api.ICustomHttpPattern|null);
|
6179 |
|
6180 | /** HttpRule body. */
|
6181 | public body: string;
|
6182 |
|
6183 | /** HttpRule responseBody. */
|
6184 | public responseBody: string;
|
6185 |
|
6186 | /** HttpRule additionalBindings. */
|
6187 | public additionalBindings: google.api.IHttpRule[];
|
6188 |
|
6189 | /** HttpRule pattern. */
|
6190 | public pattern?: ("get"|"put"|"post"|"delete"|"patch"|"custom");
|
6191 |
|
6192 | /**
|
6193 | * Creates a new HttpRule instance using the specified properties.
|
6194 | * @param [properties] Properties to set
|
6195 | * @returns HttpRule instance
|
6196 | */
|
6197 | public static create(properties?: google.api.IHttpRule): google.api.HttpRule;
|
6198 |
|
6199 | /**
|
6200 | * Encodes the specified HttpRule message. Does not implicitly { google.api.HttpRule.verify|verify} messages.
|
6201 | * message HttpRule message or plain object to encode
|
6202 | * [writer] Writer to encode to
|
6203 | * Writer
|
6204 | */
|
6205 | public static encode(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer;
|
6206 |
|
6207 | /**
|
6208 | * Encodes the specified HttpRule message, length delimited. Does not implicitly {@link google.api.HttpRule.verify|verify} messages.
|
6209 | * @param message HttpRule message or plain object to encode
|
6210 | * @param [writer] Writer to encode to
|
6211 | * @returns Writer
|
6212 | */
|
6213 | public static encodeDelimited(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer;
|
6214 |
|
6215 | /**
|
6216 | * Decodes a HttpRule message from the specified reader or buffer.
|
6217 | * @param reader Reader or buffer to decode from
|
6218 | * @param [length] Message length if known beforehand
|
6219 | * @returns HttpRule
|
6220 | * @throws {Error} If the payload is not a reader or valid buffer
|
6221 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
6222 | */
|
6223 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.HttpRule;
|
6224 |
|
6225 | /**
|
6226 | * Decodes a HttpRule message from the specified reader or buffer, length delimited.
|
6227 | * @param reader Reader or buffer to decode from
|
6228 | * @returns HttpRule
|
6229 | * @throws {Error} If the payload is not a reader or valid buffer
|
6230 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
6231 | */
|
6232 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.HttpRule;
|
6233 |
|
6234 | /**
|
6235 | * Verifies a HttpRule message.
|
6236 | * @param message Plain object to verify
|
6237 | * @returns `null` if valid, otherwise the reason why it is not
|
6238 | */
|
6239 | public static verify(message: { [k: string]: any }): (string|null);
|
6240 |
|
6241 | /**
|
6242 | * Creates a HttpRule message from a plain object. Also converts values to their respective internal types.
|
6243 | * @param object Plain object
|
6244 | * @returns HttpRule
|
6245 | */
|
6246 | public static fromObject(object: { [k: string]: any }): google.api.HttpRule;
|
6247 |
|
6248 | /**
|
6249 | * Creates a plain object from a HttpRule message. Also converts values to other types if specified.
|
6250 | * @param message HttpRule
|
6251 | * @param [options] Conversion options
|
6252 | * @returns Plain object
|
6253 | */
|
6254 | public static toObject(message: google.api.HttpRule, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
6255 |
|
6256 | /**
|
6257 | * Converts this HttpRule to JSON.
|
6258 | * @returns JSON object
|
6259 | */
|
6260 | public toJSON(): { [k: string]: any };
|
6261 | }
|
6262 |
|
6263 | /** Properties of a CustomHttpPattern. */
|
6264 | interface ICustomHttpPattern {
|
6265 |
|
6266 | /** CustomHttpPattern kind */
|
6267 | kind?: (string|null);
|
6268 |
|
6269 | /** CustomHttpPattern path */
|
6270 | path?: (string|null);
|
6271 | }
|
6272 |
|
6273 | /** Represents a CustomHttpPattern. */
|
6274 | class CustomHttpPattern implements ICustomHttpPattern {
|
6275 |
|
6276 | /**
|
6277 | * Constructs a new CustomHttpPattern.
|
6278 | * @param [properties] Properties to set
|
6279 | */
|
6280 | constructor(properties?: google.api.ICustomHttpPattern);
|
6281 |
|
6282 | /** CustomHttpPattern kind. */
|
6283 | public kind: string;
|
6284 |
|
6285 | /** CustomHttpPattern path. */
|
6286 | public path: string;
|
6287 |
|
6288 | /**
|
6289 | * Creates a new CustomHttpPattern instance using the specified properties.
|
6290 | * @param [properties] Properties to set
|
6291 | * @returns CustomHttpPattern instance
|
6292 | */
|
6293 | public static create(properties?: google.api.ICustomHttpPattern): google.api.CustomHttpPattern;
|
6294 |
|
6295 | /**
|
6296 | * Encodes the specified CustomHttpPattern message. Does not implicitly { google.api.CustomHttpPattern.verify|verify} messages.
|
6297 | * message CustomHttpPattern message or plain object to encode
|
6298 | * [writer] Writer to encode to
|
6299 | * Writer
|
6300 | */
|
6301 | public static encode(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer;
|
6302 |
|
6303 | /**
|
6304 | * Encodes the specified CustomHttpPattern message, length delimited. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages.
|
6305 | * @param message CustomHttpPattern message or plain object to encode
|
6306 | * @param [writer] Writer to encode to
|
6307 | * @returns Writer
|
6308 | */
|
6309 | public static encodeDelimited(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer;
|
6310 |
|
6311 | /**
|
6312 | * Decodes a CustomHttpPattern message from the specified reader or buffer.
|
6313 | * @param reader Reader or buffer to decode from
|
6314 | * @param [length] Message length if known beforehand
|
6315 | * @returns CustomHttpPattern
|
6316 | * @throws {Error} If the payload is not a reader or valid buffer
|
6317 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
6318 | */
|
6319 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.CustomHttpPattern;
|
6320 |
|
6321 | /**
|
6322 | * Decodes a CustomHttpPattern message from the specified reader or buffer, length delimited.
|
6323 | * @param reader Reader or buffer to decode from
|
6324 | * @returns CustomHttpPattern
|
6325 | * @throws {Error} If the payload is not a reader or valid buffer
|
6326 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
6327 | */
|
6328 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.CustomHttpPattern;
|
6329 |
|
6330 | /**
|
6331 | * Verifies a CustomHttpPattern message.
|
6332 | * @param message Plain object to verify
|
6333 | * @returns `null` if valid, otherwise the reason why it is not
|
6334 | */
|
6335 | public static verify(message: { [k: string]: any }): (string|null);
|
6336 |
|
6337 | /**
|
6338 | * Creates a CustomHttpPattern message from a plain object. Also converts values to their respective internal types.
|
6339 | * @param object Plain object
|
6340 | * @returns CustomHttpPattern
|
6341 | */
|
6342 | public static fromObject(object: { [k: string]: any }): google.api.CustomHttpPattern;
|
6343 |
|
6344 | /**
|
6345 | * Creates a plain object from a CustomHttpPattern message. Also converts values to other types if specified.
|
6346 | * @param message CustomHttpPattern
|
6347 | * @param [options] Conversion options
|
6348 | * @returns Plain object
|
6349 | */
|
6350 | public static toObject(message: google.api.CustomHttpPattern, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
6351 |
|
6352 | /**
|
6353 | * Converts this CustomHttpPattern to JSON.
|
6354 | * @returns JSON object
|
6355 | */
|
6356 | public toJSON(): { [k: string]: any };
|
6357 | }
|
6358 |
|
6359 | /** FieldBehavior enum. */
|
6360 | enum FieldBehavior {
|
6361 | FIELD_BEHAVIOR_UNSPECIFIED = 0,
|
6362 | OPTIONAL = 1,
|
6363 | REQUIRED = 2,
|
6364 | OUTPUT_ONLY = 3,
|
6365 | INPUT_ONLY = 4,
|
6366 | IMMUTABLE = 5,
|
6367 | UNORDERED_LIST = 6
|
6368 | }
|
6369 |
|
6370 | /** Properties of a ResourceDescriptor. */
|
6371 | interface IResourceDescriptor {
|
6372 |
|
6373 | /** ResourceDescriptor type */
|
6374 | type?: (string|null);
|
6375 |
|
6376 | /** ResourceDescriptor pattern */
|
6377 | pattern?: (string[]|null);
|
6378 |
|
6379 | /** ResourceDescriptor nameField */
|
6380 | nameField?: (string|null);
|
6381 |
|
6382 | /** ResourceDescriptor history */
|
6383 | history?: (google.api.ResourceDescriptor.History|keyof typeof google.api.ResourceDescriptor.History|null);
|
6384 |
|
6385 | /** ResourceDescriptor plural */
|
6386 | plural?: (string|null);
|
6387 |
|
6388 | /** ResourceDescriptor singular */
|
6389 | singular?: (string|null);
|
6390 |
|
6391 | /** ResourceDescriptor style */
|
6392 | style?: (google.api.ResourceDescriptor.Style[]|null);
|
6393 | }
|
6394 |
|
6395 | /** Represents a ResourceDescriptor. */
|
6396 | class ResourceDescriptor implements IResourceDescriptor {
|
6397 |
|
6398 | /**
|
6399 | * Constructs a new ResourceDescriptor.
|
6400 | * @param [properties] Properties to set
|
6401 | */
|
6402 | constructor(properties?: google.api.IResourceDescriptor);
|
6403 |
|
6404 | /** ResourceDescriptor type. */
|
6405 | public type: string;
|
6406 |
|
6407 | /** ResourceDescriptor pattern. */
|
6408 | public pattern: string[];
|
6409 |
|
6410 | /** ResourceDescriptor nameField. */
|
6411 | public nameField: string;
|
6412 |
|
6413 | /** ResourceDescriptor history. */
|
6414 | public history: (google.api.ResourceDescriptor.History|keyof typeof google.api.ResourceDescriptor.History);
|
6415 |
|
6416 | /** ResourceDescriptor plural. */
|
6417 | public plural: string;
|
6418 |
|
6419 | /** ResourceDescriptor singular. */
|
6420 | public singular: string;
|
6421 |
|
6422 | /** ResourceDescriptor style. */
|
6423 | public style: google.api.ResourceDescriptor.Style[];
|
6424 |
|
6425 | /**
|
6426 | * Creates a new ResourceDescriptor instance using the specified properties.
|
6427 | * @param [properties] Properties to set
|
6428 | * @returns ResourceDescriptor instance
|
6429 | */
|
6430 | public static create(properties?: google.api.IResourceDescriptor): google.api.ResourceDescriptor;
|
6431 |
|
6432 | /**
|
6433 | * Encodes the specified ResourceDescriptor message. Does not implicitly { google.api.ResourceDescriptor.verify|verify} messages.
|
6434 | * message ResourceDescriptor message or plain object to encode
|
6435 | * [writer] Writer to encode to
|
6436 | * Writer
|
6437 | */
|
6438 | public static encode(message: google.api.IResourceDescriptor, writer?: $protobuf.Writer): $protobuf.Writer;
|
6439 |
|
6440 | /**
|
6441 | * Encodes the specified ResourceDescriptor message, length delimited. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages.
|
6442 | * @param message ResourceDescriptor message or plain object to encode
|
6443 | * @param [writer] Writer to encode to
|
6444 | * @returns Writer
|
6445 | */
|
6446 | public static encodeDelimited(message: google.api.IResourceDescriptor, writer?: $protobuf.Writer): $protobuf.Writer;
|
6447 |
|
6448 | /**
|
6449 | * Decodes a ResourceDescriptor message from the specified reader or buffer.
|
6450 | * @param reader Reader or buffer to decode from
|
6451 | * @param [length] Message length if known beforehand
|
6452 | * @returns ResourceDescriptor
|
6453 | * @throws {Error} If the payload is not a reader or valid buffer
|
6454 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
6455 | */
|
6456 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.ResourceDescriptor;
|
6457 |
|
6458 | /**
|
6459 | * Decodes a ResourceDescriptor message from the specified reader or buffer, length delimited.
|
6460 | * @param reader Reader or buffer to decode from
|
6461 | * @returns ResourceDescriptor
|
6462 | * @throws {Error} If the payload is not a reader or valid buffer
|
6463 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
6464 | */
|
6465 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.ResourceDescriptor;
|
6466 |
|
6467 | /**
|
6468 | * Verifies a ResourceDescriptor message.
|
6469 | * @param message Plain object to verify
|
6470 | * @returns `null` if valid, otherwise the reason why it is not
|
6471 | */
|
6472 | public static verify(message: { [k: string]: any }): (string|null);
|
6473 |
|
6474 | /**
|
6475 | * Creates a ResourceDescriptor message from a plain object. Also converts values to their respective internal types.
|
6476 | * @param object Plain object
|
6477 | * @returns ResourceDescriptor
|
6478 | */
|
6479 | public static fromObject(object: { [k: string]: any }): google.api.ResourceDescriptor;
|
6480 |
|
6481 | /**
|
6482 | * Creates a plain object from a ResourceDescriptor message. Also converts values to other types if specified.
|
6483 | * @param message ResourceDescriptor
|
6484 | * @param [options] Conversion options
|
6485 | * @returns Plain object
|
6486 | */
|
6487 | public static toObject(message: google.api.ResourceDescriptor, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
6488 |
|
6489 | /**
|
6490 | * Converts this ResourceDescriptor to JSON.
|
6491 | * @returns JSON object
|
6492 | */
|
6493 | public toJSON(): { [k: string]: any };
|
6494 | }
|
6495 |
|
6496 | namespace ResourceDescriptor {
|
6497 |
|
6498 | /** History enum. */
|
6499 | enum History {
|
6500 | HISTORY_UNSPECIFIED = 0,
|
6501 | ORIGINALLY_SINGLE_PATTERN = 1,
|
6502 | FUTURE_MULTI_PATTERN = 2
|
6503 | }
|
6504 |
|
6505 | /** Style enum. */
|
6506 | enum Style {
|
6507 | STYLE_UNSPECIFIED = 0,
|
6508 | DECLARATIVE_FRIENDLY = 1
|
6509 | }
|
6510 | }
|
6511 |
|
6512 | /** Properties of a ResourceReference. */
|
6513 | interface IResourceReference {
|
6514 |
|
6515 | /** ResourceReference type */
|
6516 | type?: (string|null);
|
6517 |
|
6518 | /** ResourceReference childType */
|
6519 | childType?: (string|null);
|
6520 | }
|
6521 |
|
6522 | /** Represents a ResourceReference. */
|
6523 | class ResourceReference implements IResourceReference {
|
6524 |
|
6525 | /**
|
6526 | * Constructs a new ResourceReference.
|
6527 | * @param [properties] Properties to set
|
6528 | */
|
6529 | constructor(properties?: google.api.IResourceReference);
|
6530 |
|
6531 | /** ResourceReference type. */
|
6532 | public type: string;
|
6533 |
|
6534 | /** ResourceReference childType. */
|
6535 | public childType: string;
|
6536 |
|
6537 | /**
|
6538 | * Creates a new ResourceReference instance using the specified properties.
|
6539 | * @param [properties] Properties to set
|
6540 | * @returns ResourceReference instance
|
6541 | */
|
6542 | public static create(properties?: google.api.IResourceReference): google.api.ResourceReference;
|
6543 |
|
6544 | /**
|
6545 | * Encodes the specified ResourceReference message. Does not implicitly { google.api.ResourceReference.verify|verify} messages.
|
6546 | * message ResourceReference message or plain object to encode
|
6547 | * [writer] Writer to encode to
|
6548 | * Writer
|
6549 | */
|
6550 | public static encode(message: google.api.IResourceReference, writer?: $protobuf.Writer): $protobuf.Writer;
|
6551 |
|
6552 | /**
|
6553 | * Encodes the specified ResourceReference message, length delimited. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages.
|
6554 | * @param message ResourceReference message or plain object to encode
|
6555 | * @param [writer] Writer to encode to
|
6556 | * @returns Writer
|
6557 | */
|
6558 | public static encodeDelimited(message: google.api.IResourceReference, writer?: $protobuf.Writer): $protobuf.Writer;
|
6559 |
|
6560 | /**
|
6561 | * Decodes a ResourceReference message from the specified reader or buffer.
|
6562 | * @param reader Reader or buffer to decode from
|
6563 | * @param [length] Message length if known beforehand
|
6564 | * @returns ResourceReference
|
6565 | * @throws {Error} If the payload is not a reader or valid buffer
|
6566 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
6567 | */
|
6568 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.ResourceReference;
|
6569 |
|
6570 | /**
|
6571 | * Decodes a ResourceReference message from the specified reader or buffer, length delimited.
|
6572 | * @param reader Reader or buffer to decode from
|
6573 | * @returns ResourceReference
|
6574 | * @throws {Error} If the payload is not a reader or valid buffer
|
6575 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
6576 | */
|
6577 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.ResourceReference;
|
6578 |
|
6579 | /**
|
6580 | * Verifies a ResourceReference message.
|
6581 | * @param message Plain object to verify
|
6582 | * @returns `null` if valid, otherwise the reason why it is not
|
6583 | */
|
6584 | public static verify(message: { [k: string]: any }): (string|null);
|
6585 |
|
6586 | /**
|
6587 | * Creates a ResourceReference message from a plain object. Also converts values to their respective internal types.
|
6588 | * @param object Plain object
|
6589 | * @returns ResourceReference
|
6590 | */
|
6591 | public static fromObject(object: { [k: string]: any }): google.api.ResourceReference;
|
6592 |
|
6593 | /**
|
6594 | * Creates a plain object from a ResourceReference message. Also converts values to other types if specified.
|
6595 | * @param message ResourceReference
|
6596 | * @param [options] Conversion options
|
6597 | * @returns Plain object
|
6598 | */
|
6599 | public static toObject(message: google.api.ResourceReference, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
6600 |
|
6601 | /**
|
6602 | * Converts this ResourceReference to JSON.
|
6603 | * @returns JSON object
|
6604 | */
|
6605 | public toJSON(): { [k: string]: any };
|
6606 | }
|
6607 | }
|
6608 |
|
6609 | /** Namespace protobuf. */
|
6610 | namespace protobuf {
|
6611 |
|
6612 | /** Properties of a FileDescriptorSet. */
|
6613 | interface IFileDescriptorSet {
|
6614 |
|
6615 | /** FileDescriptorSet file */
|
6616 | file?: (google.protobuf.IFileDescriptorProto[]|null);
|
6617 | }
|
6618 |
|
6619 | /** Represents a FileDescriptorSet. */
|
6620 | class FileDescriptorSet implements IFileDescriptorSet {
|
6621 |
|
6622 | /**
|
6623 | * Constructs a new FileDescriptorSet.
|
6624 | * @param [properties] Properties to set
|
6625 | */
|
6626 | constructor(properties?: google.protobuf.IFileDescriptorSet);
|
6627 |
|
6628 | /** FileDescriptorSet file. */
|
6629 | public file: google.protobuf.IFileDescriptorProto[];
|
6630 |
|
6631 | /**
|
6632 | * Creates a new FileDescriptorSet instance using the specified properties.
|
6633 | * @param [properties] Properties to set
|
6634 | * @returns FileDescriptorSet instance
|
6635 | */
|
6636 | public static create(properties?: google.protobuf.IFileDescriptorSet): google.protobuf.FileDescriptorSet;
|
6637 |
|
6638 | /**
|
6639 | * Encodes the specified FileDescriptorSet message. Does not implicitly { google.protobuf.FileDescriptorSet.verify|verify} messages.
|
6640 | * message FileDescriptorSet message or plain object to encode
|
6641 | * [writer] Writer to encode to
|
6642 | * Writer
|
6643 | */
|
6644 | public static encode(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer;
|
6645 |
|
6646 | /**
|
6647 | * Encodes the specified FileDescriptorSet message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages.
|
6648 | * @param message FileDescriptorSet message or plain object to encode
|
6649 | * @param [writer] Writer to encode to
|
6650 | * @returns Writer
|
6651 | */
|
6652 | public static encodeDelimited(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer;
|
6653 |
|
6654 | /**
|
6655 | * Decodes a FileDescriptorSet message from the specified reader or buffer.
|
6656 | * @param reader Reader or buffer to decode from
|
6657 | * @param [length] Message length if known beforehand
|
6658 | * @returns FileDescriptorSet
|
6659 | * @throws {Error} If the payload is not a reader or valid buffer
|
6660 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
6661 | */
|
6662 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorSet;
|
6663 |
|
6664 | /**
|
6665 | * Decodes a FileDescriptorSet message from the specified reader or buffer, length delimited.
|
6666 | * @param reader Reader or buffer to decode from
|
6667 | * @returns FileDescriptorSet
|
6668 | * @throws {Error} If the payload is not a reader or valid buffer
|
6669 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
6670 | */
|
6671 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileDescriptorSet;
|
6672 |
|
6673 | /**
|
6674 | * Verifies a FileDescriptorSet message.
|
6675 | * @param message Plain object to verify
|
6676 | * @returns `null` if valid, otherwise the reason why it is not
|
6677 | */
|
6678 | public static verify(message: { [k: string]: any }): (string|null);
|
6679 |
|
6680 | /**
|
6681 | * Creates a FileDescriptorSet message from a plain object. Also converts values to their respective internal types.
|
6682 | * @param object Plain object
|
6683 | * @returns FileDescriptorSet
|
6684 | */
|
6685 | public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorSet;
|
6686 |
|
6687 | /**
|
6688 | * Creates a plain object from a FileDescriptorSet message. Also converts values to other types if specified.
|
6689 | * @param message FileDescriptorSet
|
6690 | * @param [options] Conversion options
|
6691 | * @returns Plain object
|
6692 | */
|
6693 | public static toObject(message: google.protobuf.FileDescriptorSet, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
6694 |
|
6695 | /**
|
6696 | * Converts this FileDescriptorSet to JSON.
|
6697 | * @returns JSON object
|
6698 | */
|
6699 | public toJSON(): { [k: string]: any };
|
6700 | }
|
6701 |
|
6702 | /** Properties of a FileDescriptorProto. */
|
6703 | interface IFileDescriptorProto {
|
6704 |
|
6705 | /** FileDescriptorProto name */
|
6706 | name?: (string|null);
|
6707 |
|
6708 | /** FileDescriptorProto package */
|
6709 | "package"?: (string|null);
|
6710 |
|
6711 | /** FileDescriptorProto dependency */
|
6712 | dependency?: (string[]|null);
|
6713 |
|
6714 | /** FileDescriptorProto publicDependency */
|
6715 | publicDependency?: (number[]|null);
|
6716 |
|
6717 | /** FileDescriptorProto weakDependency */
|
6718 | weakDependency?: (number[]|null);
|
6719 |
|
6720 | /** FileDescriptorProto messageType */
|
6721 | messageType?: (google.protobuf.IDescriptorProto[]|null);
|
6722 |
|
6723 | /** FileDescriptorProto enumType */
|
6724 | enumType?: (google.protobuf.IEnumDescriptorProto[]|null);
|
6725 |
|
6726 | /** FileDescriptorProto service */
|
6727 | service?: (google.protobuf.IServiceDescriptorProto[]|null);
|
6728 |
|
6729 | /** FileDescriptorProto extension */
|
6730 | extension?: (google.protobuf.IFieldDescriptorProto[]|null);
|
6731 |
|
6732 | /** FileDescriptorProto options */
|
6733 | options?: (google.protobuf.IFileOptions|null);
|
6734 |
|
6735 | /** FileDescriptorProto sourceCodeInfo */
|
6736 | sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null);
|
6737 |
|
6738 | /** FileDescriptorProto syntax */
|
6739 | syntax?: (string|null);
|
6740 | }
|
6741 |
|
6742 | /** Represents a FileDescriptorProto. */
|
6743 | class FileDescriptorProto implements IFileDescriptorProto {
|
6744 |
|
6745 | /**
|
6746 | * Constructs a new FileDescriptorProto.
|
6747 | * @param [properties] Properties to set
|
6748 | */
|
6749 | constructor(properties?: google.protobuf.IFileDescriptorProto);
|
6750 |
|
6751 | /** FileDescriptorProto name. */
|
6752 | public name: string;
|
6753 |
|
6754 | /** FileDescriptorProto package. */
|
6755 | public package: string;
|
6756 |
|
6757 | /** FileDescriptorProto dependency. */
|
6758 | public dependency: string[];
|
6759 |
|
6760 | /** FileDescriptorProto publicDependency. */
|
6761 | public publicDependency: number[];
|
6762 |
|
6763 | /** FileDescriptorProto weakDependency. */
|
6764 | public weakDependency: number[];
|
6765 |
|
6766 | /** FileDescriptorProto messageType. */
|
6767 | public messageType: google.protobuf.IDescriptorProto[];
|
6768 |
|
6769 | /** FileDescriptorProto enumType. */
|
6770 | public enumType: google.protobuf.IEnumDescriptorProto[];
|
6771 |
|
6772 | /** FileDescriptorProto service. */
|
6773 | public service: google.protobuf.IServiceDescriptorProto[];
|
6774 |
|
6775 | /** FileDescriptorProto extension. */
|
6776 | public extension: google.protobuf.IFieldDescriptorProto[];
|
6777 |
|
6778 | /** FileDescriptorProto options. */
|
6779 | public options?: (google.protobuf.IFileOptions|null);
|
6780 |
|
6781 | /** FileDescriptorProto sourceCodeInfo. */
|
6782 | public sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null);
|
6783 |
|
6784 | /** FileDescriptorProto syntax. */
|
6785 | public syntax: string;
|
6786 |
|
6787 | /**
|
6788 | * Creates a new FileDescriptorProto instance using the specified properties.
|
6789 | * @param [properties] Properties to set
|
6790 | * @returns FileDescriptorProto instance
|
6791 | */
|
6792 | public static create(properties?: google.protobuf.IFileDescriptorProto): google.protobuf.FileDescriptorProto;
|
6793 |
|
6794 | /**
|
6795 | * Encodes the specified FileDescriptorProto message. Does not implicitly { google.protobuf.FileDescriptorProto.verify|verify} messages.
|
6796 | * message FileDescriptorProto message or plain object to encode
|
6797 | * [writer] Writer to encode to
|
6798 | * Writer
|
6799 | */
|
6800 | public static encode(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
|
6801 |
|
6802 | /**
|
6803 | * Encodes the specified FileDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages.
|
6804 | * @param message FileDescriptorProto message or plain object to encode
|
6805 | * @param [writer] Writer to encode to
|
6806 | * @returns Writer
|
6807 | */
|
6808 | public static encodeDelimited(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
|
6809 |
|
6810 | /**
|
6811 | * Decodes a FileDescriptorProto message from the specified reader or buffer.
|
6812 | * @param reader Reader or buffer to decode from
|
6813 | * @param [length] Message length if known beforehand
|
6814 | * @returns FileDescriptorProto
|
6815 | * @throws {Error} If the payload is not a reader or valid buffer
|
6816 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
6817 | */
|
6818 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorProto;
|
6819 |
|
6820 | /**
|
6821 | * Decodes a FileDescriptorProto message from the specified reader or buffer, length delimited.
|
6822 | * @param reader Reader or buffer to decode from
|
6823 | * @returns FileDescriptorProto
|
6824 | * @throws {Error} If the payload is not a reader or valid buffer
|
6825 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
6826 | */
|
6827 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileDescriptorProto;
|
6828 |
|
6829 | /**
|
6830 | * Verifies a FileDescriptorProto message.
|
6831 | * @param message Plain object to verify
|
6832 | * @returns `null` if valid, otherwise the reason why it is not
|
6833 | */
|
6834 | public static verify(message: { [k: string]: any }): (string|null);
|
6835 |
|
6836 | /**
|
6837 | * Creates a FileDescriptorProto message from a plain object. Also converts values to their respective internal types.
|
6838 | * @param object Plain object
|
6839 | * @returns FileDescriptorProto
|
6840 | */
|
6841 | public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorProto;
|
6842 |
|
6843 | /**
|
6844 | * Creates a plain object from a FileDescriptorProto message. Also converts values to other types if specified.
|
6845 | * @param message FileDescriptorProto
|
6846 | * @param [options] Conversion options
|
6847 | * @returns Plain object
|
6848 | */
|
6849 | public static toObject(message: google.protobuf.FileDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
6850 |
|
6851 | /**
|
6852 | * Converts this FileDescriptorProto to JSON.
|
6853 | * @returns JSON object
|
6854 | */
|
6855 | public toJSON(): { [k: string]: any };
|
6856 | }
|
6857 |
|
6858 | /** Properties of a DescriptorProto. */
|
6859 | interface IDescriptorProto {
|
6860 |
|
6861 | /** DescriptorProto name */
|
6862 | name?: (string|null);
|
6863 |
|
6864 | /** DescriptorProto field */
|
6865 | field?: (google.protobuf.IFieldDescriptorProto[]|null);
|
6866 |
|
6867 | /** DescriptorProto extension */
|
6868 | extension?: (google.protobuf.IFieldDescriptorProto[]|null);
|
6869 |
|
6870 | /** DescriptorProto nestedType */
|
6871 | nestedType?: (google.protobuf.IDescriptorProto[]|null);
|
6872 |
|
6873 | /** DescriptorProto enumType */
|
6874 | enumType?: (google.protobuf.IEnumDescriptorProto[]|null);
|
6875 |
|
6876 | /** DescriptorProto extensionRange */
|
6877 | extensionRange?: (google.protobuf.DescriptorProto.IExtensionRange[]|null);
|
6878 |
|
6879 | /** DescriptorProto oneofDecl */
|
6880 | oneofDecl?: (google.protobuf.IOneofDescriptorProto[]|null);
|
6881 |
|
6882 | /** DescriptorProto options */
|
6883 | options?: (google.protobuf.IMessageOptions|null);
|
6884 |
|
6885 | /** DescriptorProto reservedRange */
|
6886 | reservedRange?: (google.protobuf.DescriptorProto.IReservedRange[]|null);
|
6887 |
|
6888 | /** DescriptorProto reservedName */
|
6889 | reservedName?: (string[]|null);
|
6890 | }
|
6891 |
|
6892 | /** Represents a DescriptorProto. */
|
6893 | class DescriptorProto implements IDescriptorProto {
|
6894 |
|
6895 | /**
|
6896 | * Constructs a new DescriptorProto.
|
6897 | * @param [properties] Properties to set
|
6898 | */
|
6899 | constructor(properties?: google.protobuf.IDescriptorProto);
|
6900 |
|
6901 | /** DescriptorProto name. */
|
6902 | public name: string;
|
6903 |
|
6904 | /** DescriptorProto field. */
|
6905 | public field: google.protobuf.IFieldDescriptorProto[];
|
6906 |
|
6907 | /** DescriptorProto extension. */
|
6908 | public extension: google.protobuf.IFieldDescriptorProto[];
|
6909 |
|
6910 | /** DescriptorProto nestedType. */
|
6911 | public nestedType: google.protobuf.IDescriptorProto[];
|
6912 |
|
6913 | /** DescriptorProto enumType. */
|
6914 | public enumType: google.protobuf.IEnumDescriptorProto[];
|
6915 |
|
6916 | /** DescriptorProto extensionRange. */
|
6917 | public extensionRange: google.protobuf.DescriptorProto.IExtensionRange[];
|
6918 |
|
6919 | /** DescriptorProto oneofDecl. */
|
6920 | public oneofDecl: google.protobuf.IOneofDescriptorProto[];
|
6921 |
|
6922 | /** DescriptorProto options. */
|
6923 | public options?: (google.protobuf.IMessageOptions|null);
|
6924 |
|
6925 | /** DescriptorProto reservedRange. */
|
6926 | public reservedRange: google.protobuf.DescriptorProto.IReservedRange[];
|
6927 |
|
6928 | /** DescriptorProto reservedName. */
|
6929 | public reservedName: string[];
|
6930 |
|
6931 | /**
|
6932 | * Creates a new DescriptorProto instance using the specified properties.
|
6933 | * @param [properties] Properties to set
|
6934 | * @returns DescriptorProto instance
|
6935 | */
|
6936 | public static create(properties?: google.protobuf.IDescriptorProto): google.protobuf.DescriptorProto;
|
6937 |
|
6938 | /**
|
6939 | * Encodes the specified DescriptorProto message. Does not implicitly { google.protobuf.DescriptorProto.verify|verify} messages.
|
6940 | * message DescriptorProto message or plain object to encode
|
6941 | * [writer] Writer to encode to
|
6942 | * Writer
|
6943 | */
|
6944 | public static encode(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
|
6945 |
|
6946 | /**
|
6947 | * Encodes the specified DescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages.
|
6948 | * @param message DescriptorProto message or plain object to encode
|
6949 | * @param [writer] Writer to encode to
|
6950 | * @returns Writer
|
6951 | */
|
6952 | public static encodeDelimited(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
|
6953 |
|
6954 | /**
|
6955 | * Decodes a DescriptorProto message from the specified reader or buffer.
|
6956 | * @param reader Reader or buffer to decode from
|
6957 | * @param [length] Message length if known beforehand
|
6958 | * @returns DescriptorProto
|
6959 | * @throws {Error} If the payload is not a reader or valid buffer
|
6960 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
6961 | */
|
6962 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto;
|
6963 |
|
6964 | /**
|
6965 | * Decodes a DescriptorProto message from the specified reader or buffer, length delimited.
|
6966 | * @param reader Reader or buffer to decode from
|
6967 | * @returns DescriptorProto
|
6968 | * @throws {Error} If the payload is not a reader or valid buffer
|
6969 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
6970 | */
|
6971 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto;
|
6972 |
|
6973 | /**
|
6974 | * Verifies a DescriptorProto message.
|
6975 | * @param message Plain object to verify
|
6976 | * @returns `null` if valid, otherwise the reason why it is not
|
6977 | */
|
6978 | public static verify(message: { [k: string]: any }): (string|null);
|
6979 |
|
6980 | /**
|
6981 | * Creates a DescriptorProto message from a plain object. Also converts values to their respective internal types.
|
6982 | * @param object Plain object
|
6983 | * @returns DescriptorProto
|
6984 | */
|
6985 | public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto;
|
6986 |
|
6987 | /**
|
6988 | * Creates a plain object from a DescriptorProto message. Also converts values to other types if specified.
|
6989 | * @param message DescriptorProto
|
6990 | * @param [options] Conversion options
|
6991 | * @returns Plain object
|
6992 | */
|
6993 | public static toObject(message: google.protobuf.DescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
6994 |
|
6995 | /**
|
6996 | * Converts this DescriptorProto to JSON.
|
6997 | * @returns JSON object
|
6998 | */
|
6999 | public toJSON(): { [k: string]: any };
|
7000 | }
|
7001 |
|
7002 | namespace DescriptorProto {
|
7003 |
|
7004 | /** Properties of an ExtensionRange. */
|
7005 | interface IExtensionRange {
|
7006 |
|
7007 | /** ExtensionRange start */
|
7008 | start?: (number|null);
|
7009 |
|
7010 | /** ExtensionRange end */
|
7011 | end?: (number|null);
|
7012 |
|
7013 | /** ExtensionRange options */
|
7014 | options?: (google.protobuf.IExtensionRangeOptions|null);
|
7015 | }
|
7016 |
|
7017 | /** Represents an ExtensionRange. */
|
7018 | class ExtensionRange implements IExtensionRange {
|
7019 |
|
7020 | /**
|
7021 | * Constructs a new ExtensionRange.
|
7022 | * @param [properties] Properties to set
|
7023 | */
|
7024 | constructor(properties?: google.protobuf.DescriptorProto.IExtensionRange);
|
7025 |
|
7026 | /** ExtensionRange start. */
|
7027 | public start: number;
|
7028 |
|
7029 | /** ExtensionRange end. */
|
7030 | public end: number;
|
7031 |
|
7032 | /** ExtensionRange options. */
|
7033 | public options?: (google.protobuf.IExtensionRangeOptions|null);
|
7034 |
|
7035 | /**
|
7036 | * Creates a new ExtensionRange instance using the specified properties.
|
7037 | * @param [properties] Properties to set
|
7038 | * @returns ExtensionRange instance
|
7039 | */
|
7040 | public static create(properties?: google.protobuf.DescriptorProto.IExtensionRange): google.protobuf.DescriptorProto.ExtensionRange;
|
7041 |
|
7042 | /**
|
7043 | * Encodes the specified ExtensionRange message. Does not implicitly { google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages.
|
7044 | * message ExtensionRange message or plain object to encode
|
7045 | * [writer] Writer to encode to
|
7046 | * Writer
|
7047 | */
|
7048 | public static encode(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer;
|
7049 |
|
7050 | /**
|
7051 | * Encodes the specified ExtensionRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages.
|
7052 | * @param message ExtensionRange message or plain object to encode
|
7053 | * @param [writer] Writer to encode to
|
7054 | * @returns Writer
|
7055 | */
|
7056 | public static encodeDelimited(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer;
|
7057 |
|
7058 | /**
|
7059 | * Decodes an ExtensionRange message from the specified reader or buffer.
|
7060 | * @param reader Reader or buffer to decode from
|
7061 | * @param [length] Message length if known beforehand
|
7062 | * @returns ExtensionRange
|
7063 | * @throws {Error} If the payload is not a reader or valid buffer
|
7064 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
7065 | */
|
7066 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto.ExtensionRange;
|
7067 |
|
7068 | /**
|
7069 | * Decodes an ExtensionRange message from the specified reader or buffer, length delimited.
|
7070 | * @param reader Reader or buffer to decode from
|
7071 | * @returns ExtensionRange
|
7072 | * @throws {Error} If the payload is not a reader or valid buffer
|
7073 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
7074 | */
|
7075 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto.ExtensionRange;
|
7076 |
|
7077 | /**
|
7078 | * Verifies an ExtensionRange message.
|
7079 | * @param message Plain object to verify
|
7080 | * @returns `null` if valid, otherwise the reason why it is not
|
7081 | */
|
7082 | public static verify(message: { [k: string]: any }): (string|null);
|
7083 |
|
7084 | /**
|
7085 | * Creates an ExtensionRange message from a plain object. Also converts values to their respective internal types.
|
7086 | * @param object Plain object
|
7087 | * @returns ExtensionRange
|
7088 | */
|
7089 | public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ExtensionRange;
|
7090 |
|
7091 | /**
|
7092 | * Creates a plain object from an ExtensionRange message. Also converts values to other types if specified.
|
7093 | * @param message ExtensionRange
|
7094 | * @param [options] Conversion options
|
7095 | * @returns Plain object
|
7096 | */
|
7097 | public static toObject(message: google.protobuf.DescriptorProto.ExtensionRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
7098 |
|
7099 | /**
|
7100 | * Converts this ExtensionRange to JSON.
|
7101 | * @returns JSON object
|
7102 | */
|
7103 | public toJSON(): { [k: string]: any };
|
7104 | }
|
7105 |
|
7106 | /** Properties of a ReservedRange. */
|
7107 | interface IReservedRange {
|
7108 |
|
7109 | /** ReservedRange start */
|
7110 | start?: (number|null);
|
7111 |
|
7112 | /** ReservedRange end */
|
7113 | end?: (number|null);
|
7114 | }
|
7115 |
|
7116 | /** Represents a ReservedRange. */
|
7117 | class ReservedRange implements IReservedRange {
|
7118 |
|
7119 | /**
|
7120 | * Constructs a new ReservedRange.
|
7121 | * @param [properties] Properties to set
|
7122 | */
|
7123 | constructor(properties?: google.protobuf.DescriptorProto.IReservedRange);
|
7124 |
|
7125 | /** ReservedRange start. */
|
7126 | public start: number;
|
7127 |
|
7128 | /** ReservedRange end. */
|
7129 | public end: number;
|
7130 |
|
7131 | /**
|
7132 | * Creates a new ReservedRange instance using the specified properties.
|
7133 | * @param [properties] Properties to set
|
7134 | * @returns ReservedRange instance
|
7135 | */
|
7136 | public static create(properties?: google.protobuf.DescriptorProto.IReservedRange): google.protobuf.DescriptorProto.ReservedRange;
|
7137 |
|
7138 | /**
|
7139 | * Encodes the specified ReservedRange message. Does not implicitly { google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages.
|
7140 | * message ReservedRange message or plain object to encode
|
7141 | * [writer] Writer to encode to
|
7142 | * Writer
|
7143 | */
|
7144 | public static encode(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
|
7145 |
|
7146 | /**
|
7147 | * Encodes the specified ReservedRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages.
|
7148 | * @param message ReservedRange message or plain object to encode
|
7149 | * @param [writer] Writer to encode to
|
7150 | * @returns Writer
|
7151 | */
|
7152 | public static encodeDelimited(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
|
7153 |
|
7154 | /**
|
7155 | * Decodes a ReservedRange message from the specified reader or buffer.
|
7156 | * @param reader Reader or buffer to decode from
|
7157 | * @param [length] Message length if known beforehand
|
7158 | * @returns ReservedRange
|
7159 | * @throws {Error} If the payload is not a reader or valid buffer
|
7160 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
7161 | */
|
7162 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto.ReservedRange;
|
7163 |
|
7164 | /**
|
7165 | * Decodes a ReservedRange message from the specified reader or buffer, length delimited.
|
7166 | * @param reader Reader or buffer to decode from
|
7167 | * @returns ReservedRange
|
7168 | * @throws {Error} If the payload is not a reader or valid buffer
|
7169 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
7170 | */
|
7171 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto.ReservedRange;
|
7172 |
|
7173 | /**
|
7174 | * Verifies a ReservedRange message.
|
7175 | * @param message Plain object to verify
|
7176 | * @returns `null` if valid, otherwise the reason why it is not
|
7177 | */
|
7178 | public static verify(message: { [k: string]: any }): (string|null);
|
7179 |
|
7180 | /**
|
7181 | * Creates a ReservedRange message from a plain object. Also converts values to their respective internal types.
|
7182 | * @param object Plain object
|
7183 | * @returns ReservedRange
|
7184 | */
|
7185 | public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ReservedRange;
|
7186 |
|
7187 | /**
|
7188 | * Creates a plain object from a ReservedRange message. Also converts values to other types if specified.
|
7189 | * @param message ReservedRange
|
7190 | * @param [options] Conversion options
|
7191 | * @returns Plain object
|
7192 | */
|
7193 | public static toObject(message: google.protobuf.DescriptorProto.ReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
7194 |
|
7195 | /**
|
7196 | * Converts this ReservedRange to JSON.
|
7197 | * @returns JSON object
|
7198 | */
|
7199 | public toJSON(): { [k: string]: any };
|
7200 | }
|
7201 | }
|
7202 |
|
7203 | /** Properties of an ExtensionRangeOptions. */
|
7204 | interface IExtensionRangeOptions {
|
7205 |
|
7206 | /** ExtensionRangeOptions uninterpretedOption */
|
7207 | uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
|
7208 | }
|
7209 |
|
7210 | /** Represents an ExtensionRangeOptions. */
|
7211 | class ExtensionRangeOptions implements IExtensionRangeOptions {
|
7212 |
|
7213 | /**
|
7214 | * Constructs a new ExtensionRangeOptions.
|
7215 | * @param [properties] Properties to set
|
7216 | */
|
7217 | constructor(properties?: google.protobuf.IExtensionRangeOptions);
|
7218 |
|
7219 | /** ExtensionRangeOptions uninterpretedOption. */
|
7220 | public uninterpretedOption: google.protobuf.IUninterpretedOption[];
|
7221 |
|
7222 | /**
|
7223 | * Creates a new ExtensionRangeOptions instance using the specified properties.
|
7224 | * @param [properties] Properties to set
|
7225 | * @returns ExtensionRangeOptions instance
|
7226 | */
|
7227 | public static create(properties?: google.protobuf.IExtensionRangeOptions): google.protobuf.ExtensionRangeOptions;
|
7228 |
|
7229 | /**
|
7230 | * Encodes the specified ExtensionRangeOptions message. Does not implicitly { google.protobuf.ExtensionRangeOptions.verify|verify} messages.
|
7231 | * message ExtensionRangeOptions message or plain object to encode
|
7232 | * [writer] Writer to encode to
|
7233 | * Writer
|
7234 | */
|
7235 | public static encode(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer;
|
7236 |
|
7237 | /**
|
7238 | * Encodes the specified ExtensionRangeOptions message, length delimited. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages.
|
7239 | * @param message ExtensionRangeOptions message or plain object to encode
|
7240 | * @param [writer] Writer to encode to
|
7241 | * @returns Writer
|
7242 | */
|
7243 | public static encodeDelimited(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer;
|
7244 |
|
7245 | /**
|
7246 | * Decodes an ExtensionRangeOptions message from the specified reader or buffer.
|
7247 | * @param reader Reader or buffer to decode from
|
7248 | * @param [length] Message length if known beforehand
|
7249 | * @returns ExtensionRangeOptions
|
7250 | * @throws {Error} If the payload is not a reader or valid buffer
|
7251 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
7252 | */
|
7253 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ExtensionRangeOptions;
|
7254 |
|
7255 | /**
|
7256 | * Decodes an ExtensionRangeOptions message from the specified reader or buffer, length delimited.
|
7257 | * @param reader Reader or buffer to decode from
|
7258 | * @returns ExtensionRangeOptions
|
7259 | * @throws {Error} If the payload is not a reader or valid buffer
|
7260 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
7261 | */
|
7262 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ExtensionRangeOptions;
|
7263 |
|
7264 | /**
|
7265 | * Verifies an ExtensionRangeOptions message.
|
7266 | * @param message Plain object to verify
|
7267 | * @returns `null` if valid, otherwise the reason why it is not
|
7268 | */
|
7269 | public static verify(message: { [k: string]: any }): (string|null);
|
7270 |
|
7271 | /**
|
7272 | * Creates an ExtensionRangeOptions message from a plain object. Also converts values to their respective internal types.
|
7273 | * @param object Plain object
|
7274 | * @returns ExtensionRangeOptions
|
7275 | */
|
7276 | public static fromObject(object: { [k: string]: any }): google.protobuf.ExtensionRangeOptions;
|
7277 |
|
7278 | /**
|
7279 | * Creates a plain object from an ExtensionRangeOptions message. Also converts values to other types if specified.
|
7280 | * @param message ExtensionRangeOptions
|
7281 | * @param [options] Conversion options
|
7282 | * @returns Plain object
|
7283 | */
|
7284 | public static toObject(message: google.protobuf.ExtensionRangeOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
7285 |
|
7286 | /**
|
7287 | * Converts this ExtensionRangeOptions to JSON.
|
7288 | * @returns JSON object
|
7289 | */
|
7290 | public toJSON(): { [k: string]: any };
|
7291 | }
|
7292 |
|
7293 | /** Properties of a FieldDescriptorProto. */
|
7294 | interface IFieldDescriptorProto {
|
7295 |
|
7296 | /** FieldDescriptorProto name */
|
7297 | name?: (string|null);
|
7298 |
|
7299 | /** FieldDescriptorProto number */
|
7300 | number?: (number|null);
|
7301 |
|
7302 | /** FieldDescriptorProto label */
|
7303 | label?: (google.protobuf.FieldDescriptorProto.Label|keyof typeof google.protobuf.FieldDescriptorProto.Label|null);
|
7304 |
|
7305 | /** FieldDescriptorProto type */
|
7306 | type?: (google.protobuf.FieldDescriptorProto.Type|keyof typeof google.protobuf.FieldDescriptorProto.Type|null);
|
7307 |
|
7308 | /** FieldDescriptorProto typeName */
|
7309 | typeName?: (string|null);
|
7310 |
|
7311 | /** FieldDescriptorProto extendee */
|
7312 | extendee?: (string|null);
|
7313 |
|
7314 | /** FieldDescriptorProto defaultValue */
|
7315 | defaultValue?: (string|null);
|
7316 |
|
7317 | /** FieldDescriptorProto oneofIndex */
|
7318 | oneofIndex?: (number|null);
|
7319 |
|
7320 | /** FieldDescriptorProto jsonName */
|
7321 | jsonName?: (string|null);
|
7322 |
|
7323 | /** FieldDescriptorProto options */
|
7324 | options?: (google.protobuf.IFieldOptions|null);
|
7325 |
|
7326 | /** FieldDescriptorProto proto3Optional */
|
7327 | proto3Optional?: (boolean|null);
|
7328 | }
|
7329 |
|
7330 | /** Represents a FieldDescriptorProto. */
|
7331 | class FieldDescriptorProto implements IFieldDescriptorProto {
|
7332 |
|
7333 | /**
|
7334 | * Constructs a new FieldDescriptorProto.
|
7335 | * @param [properties] Properties to set
|
7336 | */
|
7337 | constructor(properties?: google.protobuf.IFieldDescriptorProto);
|
7338 |
|
7339 | /** FieldDescriptorProto name. */
|
7340 | public name: string;
|
7341 |
|
7342 | /** FieldDescriptorProto number. */
|
7343 | public number: number;
|
7344 |
|
7345 | /** FieldDescriptorProto label. */
|
7346 | public label: (google.protobuf.FieldDescriptorProto.Label|keyof typeof google.protobuf.FieldDescriptorProto.Label);
|
7347 |
|
7348 | /** FieldDescriptorProto type. */
|
7349 | public type: (google.protobuf.FieldDescriptorProto.Type|keyof typeof google.protobuf.FieldDescriptorProto.Type);
|
7350 |
|
7351 | /** FieldDescriptorProto typeName. */
|
7352 | public typeName: string;
|
7353 |
|
7354 | /** FieldDescriptorProto extendee. */
|
7355 | public extendee: string;
|
7356 |
|
7357 | /** FieldDescriptorProto defaultValue. */
|
7358 | public defaultValue: string;
|
7359 |
|
7360 | /** FieldDescriptorProto oneofIndex. */
|
7361 | public oneofIndex: number;
|
7362 |
|
7363 | /** FieldDescriptorProto jsonName. */
|
7364 | public jsonName: string;
|
7365 |
|
7366 | /** FieldDescriptorProto options. */
|
7367 | public options?: (google.protobuf.IFieldOptions|null);
|
7368 |
|
7369 | /** FieldDescriptorProto proto3Optional. */
|
7370 | public proto3Optional: boolean;
|
7371 |
|
7372 | /**
|
7373 | * Creates a new FieldDescriptorProto instance using the specified properties.
|
7374 | * @param [properties] Properties to set
|
7375 | * @returns FieldDescriptorProto instance
|
7376 | */
|
7377 | public static create(properties?: google.protobuf.IFieldDescriptorProto): google.protobuf.FieldDescriptorProto;
|
7378 |
|
7379 | /**
|
7380 | * Encodes the specified FieldDescriptorProto message. Does not implicitly { google.protobuf.FieldDescriptorProto.verify|verify} messages.
|
7381 | * message FieldDescriptorProto message or plain object to encode
|
7382 | * [writer] Writer to encode to
|
7383 | * Writer
|
7384 | */
|
7385 | public static encode(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
|
7386 |
|
7387 | /**
|
7388 | * Encodes the specified FieldDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages.
|
7389 | * @param message FieldDescriptorProto message or plain object to encode
|
7390 | * @param [writer] Writer to encode to
|
7391 | * @returns Writer
|
7392 | */
|
7393 | public static encodeDelimited(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
|
7394 |
|
7395 | /**
|
7396 | * Decodes a FieldDescriptorProto message from the specified reader or buffer.
|
7397 | * @param reader Reader or buffer to decode from
|
7398 | * @param [length] Message length if known beforehand
|
7399 | * @returns FieldDescriptorProto
|
7400 | * @throws {Error} If the payload is not a reader or valid buffer
|
7401 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
7402 | */
|
7403 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldDescriptorProto;
|
7404 |
|
7405 | /**
|
7406 | * Decodes a FieldDescriptorProto message from the specified reader or buffer, length delimited.
|
7407 | * @param reader Reader or buffer to decode from
|
7408 | * @returns FieldDescriptorProto
|
7409 | * @throws {Error} If the payload is not a reader or valid buffer
|
7410 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
7411 | */
|
7412 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldDescriptorProto;
|
7413 |
|
7414 | /**
|
7415 | * Verifies a FieldDescriptorProto message.
|
7416 | * @param message Plain object to verify
|
7417 | * @returns `null` if valid, otherwise the reason why it is not
|
7418 | */
|
7419 | public static verify(message: { [k: string]: any }): (string|null);
|
7420 |
|
7421 | /**
|
7422 | * Creates a FieldDescriptorProto message from a plain object. Also converts values to their respective internal types.
|
7423 | * @param object Plain object
|
7424 | * @returns FieldDescriptorProto
|
7425 | */
|
7426 | public static fromObject(object: { [k: string]: any }): google.protobuf.FieldDescriptorProto;
|
7427 |
|
7428 | /**
|
7429 | * Creates a plain object from a FieldDescriptorProto message. Also converts values to other types if specified.
|
7430 | * @param message FieldDescriptorProto
|
7431 | * @param [options] Conversion options
|
7432 | * @returns Plain object
|
7433 | */
|
7434 | public static toObject(message: google.protobuf.FieldDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
7435 |
|
7436 | /**
|
7437 | * Converts this FieldDescriptorProto to JSON.
|
7438 | * @returns JSON object
|
7439 | */
|
7440 | public toJSON(): { [k: string]: any };
|
7441 | }
|
7442 |
|
7443 | namespace FieldDescriptorProto {
|
7444 |
|
7445 | /** Type enum. */
|
7446 | enum Type {
|
7447 | TYPE_DOUBLE = 1,
|
7448 | TYPE_FLOAT = 2,
|
7449 | TYPE_INT64 = 3,
|
7450 | TYPE_UINT64 = 4,
|
7451 | TYPE_INT32 = 5,
|
7452 | TYPE_FIXED64 = 6,
|
7453 | TYPE_FIXED32 = 7,
|
7454 | TYPE_BOOL = 8,
|
7455 | TYPE_STRING = 9,
|
7456 | TYPE_GROUP = 10,
|
7457 | TYPE_MESSAGE = 11,
|
7458 | TYPE_BYTES = 12,
|
7459 | TYPE_UINT32 = 13,
|
7460 | TYPE_ENUM = 14,
|
7461 | TYPE_SFIXED32 = 15,
|
7462 | TYPE_SFIXED64 = 16,
|
7463 | TYPE_SINT32 = 17,
|
7464 | TYPE_SINT64 = 18
|
7465 | }
|
7466 |
|
7467 | /** Label enum. */
|
7468 | enum Label {
|
7469 | LABEL_OPTIONAL = 1,
|
7470 | LABEL_REQUIRED = 2,
|
7471 | LABEL_REPEATED = 3
|
7472 | }
|
7473 | }
|
7474 |
|
7475 | /** Properties of an OneofDescriptorProto. */
|
7476 | interface IOneofDescriptorProto {
|
7477 |
|
7478 | /** OneofDescriptorProto name */
|
7479 | name?: (string|null);
|
7480 |
|
7481 | /** OneofDescriptorProto options */
|
7482 | options?: (google.protobuf.IOneofOptions|null);
|
7483 | }
|
7484 |
|
7485 | /** Represents an OneofDescriptorProto. */
|
7486 | class OneofDescriptorProto implements IOneofDescriptorProto {
|
7487 |
|
7488 | /**
|
7489 | * Constructs a new OneofDescriptorProto.
|
7490 | * @param [properties] Properties to set
|
7491 | */
|
7492 | constructor(properties?: google.protobuf.IOneofDescriptorProto);
|
7493 |
|
7494 | /** OneofDescriptorProto name. */
|
7495 | public name: string;
|
7496 |
|
7497 | /** OneofDescriptorProto options. */
|
7498 | public options?: (google.protobuf.IOneofOptions|null);
|
7499 |
|
7500 | /**
|
7501 | * Creates a new OneofDescriptorProto instance using the specified properties.
|
7502 | * @param [properties] Properties to set
|
7503 | * @returns OneofDescriptorProto instance
|
7504 | */
|
7505 | public static create(properties?: google.protobuf.IOneofDescriptorProto): google.protobuf.OneofDescriptorProto;
|
7506 |
|
7507 | /**
|
7508 | * Encodes the specified OneofDescriptorProto message. Does not implicitly { google.protobuf.OneofDescriptorProto.verify|verify} messages.
|
7509 | * message OneofDescriptorProto message or plain object to encode
|
7510 | * [writer] Writer to encode to
|
7511 | * Writer
|
7512 | */
|
7513 | public static encode(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
|
7514 |
|
7515 | /**
|
7516 | * Encodes the specified OneofDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages.
|
7517 | * @param message OneofDescriptorProto message or plain object to encode
|
7518 | * @param [writer] Writer to encode to
|
7519 | * @returns Writer
|
7520 | */
|
7521 | public static encodeDelimited(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
|
7522 |
|
7523 | /**
|
7524 | * Decodes an OneofDescriptorProto message from the specified reader or buffer.
|
7525 | * @param reader Reader or buffer to decode from
|
7526 | * @param [length] Message length if known beforehand
|
7527 | * @returns OneofDescriptorProto
|
7528 | * @throws {Error} If the payload is not a reader or valid buffer
|
7529 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
7530 | */
|
7531 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofDescriptorProto;
|
7532 |
|
7533 | /**
|
7534 | * Decodes an OneofDescriptorProto message from the specified reader or buffer, length delimited.
|
7535 | * @param reader Reader or buffer to decode from
|
7536 | * @returns OneofDescriptorProto
|
7537 | * @throws {Error} If the payload is not a reader or valid buffer
|
7538 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
7539 | */
|
7540 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.OneofDescriptorProto;
|
7541 |
|
7542 | /**
|
7543 | * Verifies an OneofDescriptorProto message.
|
7544 | * @param message Plain object to verify
|
7545 | * @returns `null` if valid, otherwise the reason why it is not
|
7546 | */
|
7547 | public static verify(message: { [k: string]: any }): (string|null);
|
7548 |
|
7549 | /**
|
7550 | * Creates an OneofDescriptorProto message from a plain object. Also converts values to their respective internal types.
|
7551 | * @param object Plain object
|
7552 | * @returns OneofDescriptorProto
|
7553 | */
|
7554 | public static fromObject(object: { [k: string]: any }): google.protobuf.OneofDescriptorProto;
|
7555 |
|
7556 | /**
|
7557 | * Creates a plain object from an OneofDescriptorProto message. Also converts values to other types if specified.
|
7558 | * @param message OneofDescriptorProto
|
7559 | * @param [options] Conversion options
|
7560 | * @returns Plain object
|
7561 | */
|
7562 | public static toObject(message: google.protobuf.OneofDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
7563 |
|
7564 | /**
|
7565 | * Converts this OneofDescriptorProto to JSON.
|
7566 | * @returns JSON object
|
7567 | */
|
7568 | public toJSON(): { [k: string]: any };
|
7569 | }
|
7570 |
|
7571 | /** Properties of an EnumDescriptorProto. */
|
7572 | interface IEnumDescriptorProto {
|
7573 |
|
7574 | /** EnumDescriptorProto name */
|
7575 | name?: (string|null);
|
7576 |
|
7577 | /** EnumDescriptorProto value */
|
7578 | value?: (google.protobuf.IEnumValueDescriptorProto[]|null);
|
7579 |
|
7580 | /** EnumDescriptorProto options */
|
7581 | options?: (google.protobuf.IEnumOptions|null);
|
7582 |
|
7583 | /** EnumDescriptorProto reservedRange */
|
7584 | reservedRange?: (google.protobuf.EnumDescriptorProto.IEnumReservedRange[]|null);
|
7585 |
|
7586 | /** EnumDescriptorProto reservedName */
|
7587 | reservedName?: (string[]|null);
|
7588 | }
|
7589 |
|
7590 | /** Represents an EnumDescriptorProto. */
|
7591 | class EnumDescriptorProto implements IEnumDescriptorProto {
|
7592 |
|
7593 | /**
|
7594 | * Constructs a new EnumDescriptorProto.
|
7595 | * @param [properties] Properties to set
|
7596 | */
|
7597 | constructor(properties?: google.protobuf.IEnumDescriptorProto);
|
7598 |
|
7599 | /** EnumDescriptorProto name. */
|
7600 | public name: string;
|
7601 |
|
7602 | /** EnumDescriptorProto value. */
|
7603 | public value: google.protobuf.IEnumValueDescriptorProto[];
|
7604 |
|
7605 | /** EnumDescriptorProto options. */
|
7606 | public options?: (google.protobuf.IEnumOptions|null);
|
7607 |
|
7608 | /** EnumDescriptorProto reservedRange. */
|
7609 | public reservedRange: google.protobuf.EnumDescriptorProto.IEnumReservedRange[];
|
7610 |
|
7611 | /** EnumDescriptorProto reservedName. */
|
7612 | public reservedName: string[];
|
7613 |
|
7614 | /**
|
7615 | * Creates a new EnumDescriptorProto instance using the specified properties.
|
7616 | * @param [properties] Properties to set
|
7617 | * @returns EnumDescriptorProto instance
|
7618 | */
|
7619 | public static create(properties?: google.protobuf.IEnumDescriptorProto): google.protobuf.EnumDescriptorProto;
|
7620 |
|
7621 | /**
|
7622 | * Encodes the specified EnumDescriptorProto message. Does not implicitly { google.protobuf.EnumDescriptorProto.verify|verify} messages.
|
7623 | * message EnumDescriptorProto message or plain object to encode
|
7624 | * [writer] Writer to encode to
|
7625 | * Writer
|
7626 | */
|
7627 | public static encode(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
|
7628 |
|
7629 | /**
|
7630 | * Encodes the specified EnumDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages.
|
7631 | * @param message EnumDescriptorProto message or plain object to encode
|
7632 | * @param [writer] Writer to encode to
|
7633 | * @returns Writer
|
7634 | */
|
7635 | public static encodeDelimited(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
|
7636 |
|
7637 | /**
|
7638 | * Decodes an EnumDescriptorProto message from the specified reader or buffer.
|
7639 | * @param reader Reader or buffer to decode from
|
7640 | * @param [length] Message length if known beforehand
|
7641 | * @returns EnumDescriptorProto
|
7642 | * @throws {Error} If the payload is not a reader or valid buffer
|
7643 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
7644 | */
|
7645 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumDescriptorProto;
|
7646 |
|
7647 | /**
|
7648 | * Decodes an EnumDescriptorProto message from the specified reader or buffer, length delimited.
|
7649 | * @param reader Reader or buffer to decode from
|
7650 | * @returns EnumDescriptorProto
|
7651 | * @throws {Error} If the payload is not a reader or valid buffer
|
7652 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
7653 | */
|
7654 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumDescriptorProto;
|
7655 |
|
7656 | /**
|
7657 | * Verifies an EnumDescriptorProto message.
|
7658 | * @param message Plain object to verify
|
7659 | * @returns `null` if valid, otherwise the reason why it is not
|
7660 | */
|
7661 | public static verify(message: { [k: string]: any }): (string|null);
|
7662 |
|
7663 | /**
|
7664 | * Creates an EnumDescriptorProto message from a plain object. Also converts values to their respective internal types.
|
7665 | * @param object Plain object
|
7666 | * @returns EnumDescriptorProto
|
7667 | */
|
7668 | public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto;
|
7669 |
|
7670 | /**
|
7671 | * Creates a plain object from an EnumDescriptorProto message. Also converts values to other types if specified.
|
7672 | * @param message EnumDescriptorProto
|
7673 | * @param [options] Conversion options
|
7674 | * @returns Plain object
|
7675 | */
|
7676 | public static toObject(message: google.protobuf.EnumDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
7677 |
|
7678 | /**
|
7679 | * Converts this EnumDescriptorProto to JSON.
|
7680 | * @returns JSON object
|
7681 | */
|
7682 | public toJSON(): { [k: string]: any };
|
7683 | }
|
7684 |
|
7685 | namespace EnumDescriptorProto {
|
7686 |
|
7687 | /** Properties of an EnumReservedRange. */
|
7688 | interface IEnumReservedRange {
|
7689 |
|
7690 | /** EnumReservedRange start */
|
7691 | start?: (number|null);
|
7692 |
|
7693 | /** EnumReservedRange end */
|
7694 | end?: (number|null);
|
7695 | }
|
7696 |
|
7697 | /** Represents an EnumReservedRange. */
|
7698 | class EnumReservedRange implements IEnumReservedRange {
|
7699 |
|
7700 | /**
|
7701 | * Constructs a new EnumReservedRange.
|
7702 | * @param [properties] Properties to set
|
7703 | */
|
7704 | constructor(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange);
|
7705 |
|
7706 | /** EnumReservedRange start. */
|
7707 | public start: number;
|
7708 |
|
7709 | /** EnumReservedRange end. */
|
7710 | public end: number;
|
7711 |
|
7712 | /**
|
7713 | * Creates a new EnumReservedRange instance using the specified properties.
|
7714 | * @param [properties] Properties to set
|
7715 | * @returns EnumReservedRange instance
|
7716 | */
|
7717 | public static create(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange): google.protobuf.EnumDescriptorProto.EnumReservedRange;
|
7718 |
|
7719 | /**
|
7720 | * Encodes the specified EnumReservedRange message. Does not implicitly { google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages.
|
7721 | * message EnumReservedRange message or plain object to encode
|
7722 | * [writer] Writer to encode to
|
7723 | * Writer
|
7724 | */
|
7725 | public static encode(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
|
7726 |
|
7727 | /**
|
7728 | * Encodes the specified EnumReservedRange message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages.
|
7729 | * @param message EnumReservedRange message or plain object to encode
|
7730 | * @param [writer] Writer to encode to
|
7731 | * @returns Writer
|
7732 | */
|
7733 | public static encodeDelimited(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
|
7734 |
|
7735 | /**
|
7736 | * Decodes an EnumReservedRange message from the specified reader or buffer.
|
7737 | * @param reader Reader or buffer to decode from
|
7738 | * @param [length] Message length if known beforehand
|
7739 | * @returns EnumReservedRange
|
7740 | * @throws {Error} If the payload is not a reader or valid buffer
|
7741 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
7742 | */
|
7743 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumDescriptorProto.EnumReservedRange;
|
7744 |
|
7745 | /**
|
7746 | * Decodes an EnumReservedRange message from the specified reader or buffer, length delimited.
|
7747 | * @param reader Reader or buffer to decode from
|
7748 | * @returns EnumReservedRange
|
7749 | * @throws {Error} If the payload is not a reader or valid buffer
|
7750 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
7751 | */
|
7752 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumDescriptorProto.EnumReservedRange;
|
7753 |
|
7754 | /**
|
7755 | * Verifies an EnumReservedRange message.
|
7756 | * @param message Plain object to verify
|
7757 | * @returns `null` if valid, otherwise the reason why it is not
|
7758 | */
|
7759 | public static verify(message: { [k: string]: any }): (string|null);
|
7760 |
|
7761 | /**
|
7762 | * Creates an EnumReservedRange message from a plain object. Also converts values to their respective internal types.
|
7763 | * @param object Plain object
|
7764 | * @returns EnumReservedRange
|
7765 | */
|
7766 | public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto.EnumReservedRange;
|
7767 |
|
7768 | /**
|
7769 | * Creates a plain object from an EnumReservedRange message. Also converts values to other types if specified.
|
7770 | * @param message EnumReservedRange
|
7771 | * @param [options] Conversion options
|
7772 | * @returns Plain object
|
7773 | */
|
7774 | public static toObject(message: google.protobuf.EnumDescriptorProto.EnumReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
7775 |
|
7776 | /**
|
7777 | * Converts this EnumReservedRange to JSON.
|
7778 | * @returns JSON object
|
7779 | */
|
7780 | public toJSON(): { [k: string]: any };
|
7781 | }
|
7782 | }
|
7783 |
|
7784 | /** Properties of an EnumValueDescriptorProto. */
|
7785 | interface IEnumValueDescriptorProto {
|
7786 |
|
7787 | /** EnumValueDescriptorProto name */
|
7788 | name?: (string|null);
|
7789 |
|
7790 | /** EnumValueDescriptorProto number */
|
7791 | number?: (number|null);
|
7792 |
|
7793 | /** EnumValueDescriptorProto options */
|
7794 | options?: (google.protobuf.IEnumValueOptions|null);
|
7795 | }
|
7796 |
|
7797 | /** Represents an EnumValueDescriptorProto. */
|
7798 | class EnumValueDescriptorProto implements IEnumValueDescriptorProto {
|
7799 |
|
7800 | /**
|
7801 | * Constructs a new EnumValueDescriptorProto.
|
7802 | * @param [properties] Properties to set
|
7803 | */
|
7804 | constructor(properties?: google.protobuf.IEnumValueDescriptorProto);
|
7805 |
|
7806 | /** EnumValueDescriptorProto name. */
|
7807 | public name: string;
|
7808 |
|
7809 | /** EnumValueDescriptorProto number. */
|
7810 | public number: number;
|
7811 |
|
7812 | /** EnumValueDescriptorProto options. */
|
7813 | public options?: (google.protobuf.IEnumValueOptions|null);
|
7814 |
|
7815 | /**
|
7816 | * Creates a new EnumValueDescriptorProto instance using the specified properties.
|
7817 | * @param [properties] Properties to set
|
7818 | * @returns EnumValueDescriptorProto instance
|
7819 | */
|
7820 | public static create(properties?: google.protobuf.IEnumValueDescriptorProto): google.protobuf.EnumValueDescriptorProto;
|
7821 |
|
7822 | /**
|
7823 | * Encodes the specified EnumValueDescriptorProto message. Does not implicitly { google.protobuf.EnumValueDescriptorProto.verify|verify} messages.
|
7824 | * message EnumValueDescriptorProto message or plain object to encode
|
7825 | * [writer] Writer to encode to
|
7826 | * Writer
|
7827 | */
|
7828 | public static encode(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
|
7829 |
|
7830 | /**
|
7831 | * Encodes the specified EnumValueDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages.
|
7832 | * @param message EnumValueDescriptorProto message or plain object to encode
|
7833 | * @param [writer] Writer to encode to
|
7834 | * @returns Writer
|
7835 | */
|
7836 | public static encodeDelimited(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
|
7837 |
|
7838 | /**
|
7839 | * Decodes an EnumValueDescriptorProto message from the specified reader or buffer.
|
7840 | * @param reader Reader or buffer to decode from
|
7841 | * @param [length] Message length if known beforehand
|
7842 | * @returns EnumValueDescriptorProto
|
7843 | * @throws {Error} If the payload is not a reader or valid buffer
|
7844 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
7845 | */
|
7846 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueDescriptorProto;
|
7847 |
|
7848 | /**
|
7849 | * Decodes an EnumValueDescriptorProto message from the specified reader or buffer, length delimited.
|
7850 | * @param reader Reader or buffer to decode from
|
7851 | * @returns EnumValueDescriptorProto
|
7852 | * @throws {Error} If the payload is not a reader or valid buffer
|
7853 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
7854 | */
|
7855 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumValueDescriptorProto;
|
7856 |
|
7857 | /**
|
7858 | * Verifies an EnumValueDescriptorProto message.
|
7859 | * @param message Plain object to verify
|
7860 | * @returns `null` if valid, otherwise the reason why it is not
|
7861 | */
|
7862 | public static verify(message: { [k: string]: any }): (string|null);
|
7863 |
|
7864 | /**
|
7865 | * Creates an EnumValueDescriptorProto message from a plain object. Also converts values to their respective internal types.
|
7866 | * @param object Plain object
|
7867 | * @returns EnumValueDescriptorProto
|
7868 | */
|
7869 | public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueDescriptorProto;
|
7870 |
|
7871 | /**
|
7872 | * Creates a plain object from an EnumValueDescriptorProto message. Also converts values to other types if specified.
|
7873 | * @param message EnumValueDescriptorProto
|
7874 | * @param [options] Conversion options
|
7875 | * @returns Plain object
|
7876 | */
|
7877 | public static toObject(message: google.protobuf.EnumValueDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
7878 |
|
7879 | /**
|
7880 | * Converts this EnumValueDescriptorProto to JSON.
|
7881 | * @returns JSON object
|
7882 | */
|
7883 | public toJSON(): { [k: string]: any };
|
7884 | }
|
7885 |
|
7886 | /** Properties of a ServiceDescriptorProto. */
|
7887 | interface IServiceDescriptorProto {
|
7888 |
|
7889 | /** ServiceDescriptorProto name */
|
7890 | name?: (string|null);
|
7891 |
|
7892 | /** ServiceDescriptorProto method */
|
7893 | method?: (google.protobuf.IMethodDescriptorProto[]|null);
|
7894 |
|
7895 | /** ServiceDescriptorProto options */
|
7896 | options?: (google.protobuf.IServiceOptions|null);
|
7897 | }
|
7898 |
|
7899 | /** Represents a ServiceDescriptorProto. */
|
7900 | class ServiceDescriptorProto implements IServiceDescriptorProto {
|
7901 |
|
7902 | /**
|
7903 | * Constructs a new ServiceDescriptorProto.
|
7904 | * @param [properties] Properties to set
|
7905 | */
|
7906 | constructor(properties?: google.protobuf.IServiceDescriptorProto);
|
7907 |
|
7908 | /** ServiceDescriptorProto name. */
|
7909 | public name: string;
|
7910 |
|
7911 | /** ServiceDescriptorProto method. */
|
7912 | public method: google.protobuf.IMethodDescriptorProto[];
|
7913 |
|
7914 | /** ServiceDescriptorProto options. */
|
7915 | public options?: (google.protobuf.IServiceOptions|null);
|
7916 |
|
7917 | /**
|
7918 | * Creates a new ServiceDescriptorProto instance using the specified properties.
|
7919 | * @param [properties] Properties to set
|
7920 | * @returns ServiceDescriptorProto instance
|
7921 | */
|
7922 | public static create(properties?: google.protobuf.IServiceDescriptorProto): google.protobuf.ServiceDescriptorProto;
|
7923 |
|
7924 | /**
|
7925 | * Encodes the specified ServiceDescriptorProto message. Does not implicitly { google.protobuf.ServiceDescriptorProto.verify|verify} messages.
|
7926 | * message ServiceDescriptorProto message or plain object to encode
|
7927 | * [writer] Writer to encode to
|
7928 | * Writer
|
7929 | */
|
7930 | public static encode(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
|
7931 |
|
7932 | /**
|
7933 | * Encodes the specified ServiceDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages.
|
7934 | * @param message ServiceDescriptorProto message or plain object to encode
|
7935 | * @param [writer] Writer to encode to
|
7936 | * @returns Writer
|
7937 | */
|
7938 | public static encodeDelimited(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
|
7939 |
|
7940 | /**
|
7941 | * Decodes a ServiceDescriptorProto message from the specified reader or buffer.
|
7942 | * @param reader Reader or buffer to decode from
|
7943 | * @param [length] Message length if known beforehand
|
7944 | * @returns ServiceDescriptorProto
|
7945 | * @throws {Error} If the payload is not a reader or valid buffer
|
7946 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
7947 | */
|
7948 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceDescriptorProto;
|
7949 |
|
7950 | /**
|
7951 | * Decodes a ServiceDescriptorProto message from the specified reader or buffer, length delimited.
|
7952 | * @param reader Reader or buffer to decode from
|
7953 | * @returns ServiceDescriptorProto
|
7954 | * @throws {Error} If the payload is not a reader or valid buffer
|
7955 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
7956 | */
|
7957 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ServiceDescriptorProto;
|
7958 |
|
7959 | /**
|
7960 | * Verifies a ServiceDescriptorProto message.
|
7961 | * @param message Plain object to verify
|
7962 | * @returns `null` if valid, otherwise the reason why it is not
|
7963 | */
|
7964 | public static verify(message: { [k: string]: any }): (string|null);
|
7965 |
|
7966 | /**
|
7967 | * Creates a ServiceDescriptorProto message from a plain object. Also converts values to their respective internal types.
|
7968 | * @param object Plain object
|
7969 | * @returns ServiceDescriptorProto
|
7970 | */
|
7971 | public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceDescriptorProto;
|
7972 |
|
7973 | /**
|
7974 | * Creates a plain object from a ServiceDescriptorProto message. Also converts values to other types if specified.
|
7975 | * @param message ServiceDescriptorProto
|
7976 | * @param [options] Conversion options
|
7977 | * @returns Plain object
|
7978 | */
|
7979 | public static toObject(message: google.protobuf.ServiceDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
7980 |
|
7981 | /**
|
7982 | * Converts this ServiceDescriptorProto to JSON.
|
7983 | * @returns JSON object
|
7984 | */
|
7985 | public toJSON(): { [k: string]: any };
|
7986 | }
|
7987 |
|
7988 | /** Properties of a MethodDescriptorProto. */
|
7989 | interface IMethodDescriptorProto {
|
7990 |
|
7991 | /** MethodDescriptorProto name */
|
7992 | name?: (string|null);
|
7993 |
|
7994 | /** MethodDescriptorProto inputType */
|
7995 | inputType?: (string|null);
|
7996 |
|
7997 | /** MethodDescriptorProto outputType */
|
7998 | outputType?: (string|null);
|
7999 |
|
8000 | /** MethodDescriptorProto options */
|
8001 | options?: (google.protobuf.IMethodOptions|null);
|
8002 |
|
8003 | /** MethodDescriptorProto clientStreaming */
|
8004 | clientStreaming?: (boolean|null);
|
8005 |
|
8006 | /** MethodDescriptorProto serverStreaming */
|
8007 | serverStreaming?: (boolean|null);
|
8008 | }
|
8009 |
|
8010 | /** Represents a MethodDescriptorProto. */
|
8011 | class MethodDescriptorProto implements IMethodDescriptorProto {
|
8012 |
|
8013 | /**
|
8014 | * Constructs a new MethodDescriptorProto.
|
8015 | * @param [properties] Properties to set
|
8016 | */
|
8017 | constructor(properties?: google.protobuf.IMethodDescriptorProto);
|
8018 |
|
8019 | /** MethodDescriptorProto name. */
|
8020 | public name: string;
|
8021 |
|
8022 | /** MethodDescriptorProto inputType. */
|
8023 | public inputType: string;
|
8024 |
|
8025 | /** MethodDescriptorProto outputType. */
|
8026 | public outputType: string;
|
8027 |
|
8028 | /** MethodDescriptorProto options. */
|
8029 | public options?: (google.protobuf.IMethodOptions|null);
|
8030 |
|
8031 | /** MethodDescriptorProto clientStreaming. */
|
8032 | public clientStreaming: boolean;
|
8033 |
|
8034 | /** MethodDescriptorProto serverStreaming. */
|
8035 | public serverStreaming: boolean;
|
8036 |
|
8037 | /**
|
8038 | * Creates a new MethodDescriptorProto instance using the specified properties.
|
8039 | * @param [properties] Properties to set
|
8040 | * @returns MethodDescriptorProto instance
|
8041 | */
|
8042 | public static create(properties?: google.protobuf.IMethodDescriptorProto): google.protobuf.MethodDescriptorProto;
|
8043 |
|
8044 | /**
|
8045 | * Encodes the specified MethodDescriptorProto message. Does not implicitly { google.protobuf.MethodDescriptorProto.verify|verify} messages.
|
8046 | * message MethodDescriptorProto message or plain object to encode
|
8047 | * [writer] Writer to encode to
|
8048 | * Writer
|
8049 | */
|
8050 | public static encode(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
|
8051 |
|
8052 | /**
|
8053 | * Encodes the specified MethodDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages.
|
8054 | * @param message MethodDescriptorProto message or plain object to encode
|
8055 | * @param [writer] Writer to encode to
|
8056 | * @returns Writer
|
8057 | */
|
8058 | public static encodeDelimited(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
|
8059 |
|
8060 | /**
|
8061 | * Decodes a MethodDescriptorProto message from the specified reader or buffer.
|
8062 | * @param reader Reader or buffer to decode from
|
8063 | * @param [length] Message length if known beforehand
|
8064 | * @returns MethodDescriptorProto
|
8065 | * @throws {Error} If the payload is not a reader or valid buffer
|
8066 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
8067 | */
|
8068 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodDescriptorProto;
|
8069 |
|
8070 | /**
|
8071 | * Decodes a MethodDescriptorProto message from the specified reader or buffer, length delimited.
|
8072 | * @param reader Reader or buffer to decode from
|
8073 | * @returns MethodDescriptorProto
|
8074 | * @throws {Error} If the payload is not a reader or valid buffer
|
8075 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
8076 | */
|
8077 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MethodDescriptorProto;
|
8078 |
|
8079 | /**
|
8080 | * Verifies a MethodDescriptorProto message.
|
8081 | * @param message Plain object to verify
|
8082 | * @returns `null` if valid, otherwise the reason why it is not
|
8083 | */
|
8084 | public static verify(message: { [k: string]: any }): (string|null);
|
8085 |
|
8086 | /**
|
8087 | * Creates a MethodDescriptorProto message from a plain object. Also converts values to their respective internal types.
|
8088 | * @param object Plain object
|
8089 | * @returns MethodDescriptorProto
|
8090 | */
|
8091 | public static fromObject(object: { [k: string]: any }): google.protobuf.MethodDescriptorProto;
|
8092 |
|
8093 | /**
|
8094 | * Creates a plain object from a MethodDescriptorProto message. Also converts values to other types if specified.
|
8095 | * @param message MethodDescriptorProto
|
8096 | * @param [options] Conversion options
|
8097 | * @returns Plain object
|
8098 | */
|
8099 | public static toObject(message: google.protobuf.MethodDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
8100 |
|
8101 | /**
|
8102 | * Converts this MethodDescriptorProto to JSON.
|
8103 | * @returns JSON object
|
8104 | */
|
8105 | public toJSON(): { [k: string]: any };
|
8106 | }
|
8107 |
|
8108 | /** Properties of a FileOptions. */
|
8109 | interface IFileOptions {
|
8110 |
|
8111 | /** FileOptions javaPackage */
|
8112 | javaPackage?: (string|null);
|
8113 |
|
8114 | /** FileOptions javaOuterClassname */
|
8115 | javaOuterClassname?: (string|null);
|
8116 |
|
8117 | /** FileOptions javaMultipleFiles */
|
8118 | javaMultipleFiles?: (boolean|null);
|
8119 |
|
8120 | /** FileOptions javaGenerateEqualsAndHash */
|
8121 | javaGenerateEqualsAndHash?: (boolean|null);
|
8122 |
|
8123 | /** FileOptions javaStringCheckUtf8 */
|
8124 | javaStringCheckUtf8?: (boolean|null);
|
8125 |
|
8126 | /** FileOptions optimizeFor */
|
8127 | optimizeFor?: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode|null);
|
8128 |
|
8129 | /** FileOptions goPackage */
|
8130 | goPackage?: (string|null);
|
8131 |
|
8132 | /** FileOptions ccGenericServices */
|
8133 | ccGenericServices?: (boolean|null);
|
8134 |
|
8135 | /** FileOptions javaGenericServices */
|
8136 | javaGenericServices?: (boolean|null);
|
8137 |
|
8138 | /** FileOptions pyGenericServices */
|
8139 | pyGenericServices?: (boolean|null);
|
8140 |
|
8141 | /** FileOptions phpGenericServices */
|
8142 | phpGenericServices?: (boolean|null);
|
8143 |
|
8144 | /** FileOptions deprecated */
|
8145 | deprecated?: (boolean|null);
|
8146 |
|
8147 | /** FileOptions ccEnableArenas */
|
8148 | ccEnableArenas?: (boolean|null);
|
8149 |
|
8150 | /** FileOptions objcClassPrefix */
|
8151 | objcClassPrefix?: (string|null);
|
8152 |
|
8153 | /** FileOptions csharpNamespace */
|
8154 | csharpNamespace?: (string|null);
|
8155 |
|
8156 | /** FileOptions swiftPrefix */
|
8157 | swiftPrefix?: (string|null);
|
8158 |
|
8159 | /** FileOptions phpClassPrefix */
|
8160 | phpClassPrefix?: (string|null);
|
8161 |
|
8162 | /** FileOptions phpNamespace */
|
8163 | phpNamespace?: (string|null);
|
8164 |
|
8165 | /** FileOptions phpMetadataNamespace */
|
8166 | phpMetadataNamespace?: (string|null);
|
8167 |
|
8168 | /** FileOptions rubyPackage */
|
8169 | rubyPackage?: (string|null);
|
8170 |
|
8171 | /** FileOptions uninterpretedOption */
|
8172 | uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
|
8173 |
|
8174 | /** FileOptions .google.api.resourceDefinition */
|
8175 | ".google.api.resourceDefinition"?: (google.api.IResourceDescriptor[]|null);
|
8176 | }
|
8177 |
|
8178 | /** Represents a FileOptions. */
|
8179 | class FileOptions implements IFileOptions {
|
8180 |
|
8181 | /**
|
8182 | * Constructs a new FileOptions.
|
8183 | * @param [properties] Properties to set
|
8184 | */
|
8185 | constructor(properties?: google.protobuf.IFileOptions);
|
8186 |
|
8187 | /** FileOptions javaPackage. */
|
8188 | public javaPackage: string;
|
8189 |
|
8190 | /** FileOptions javaOuterClassname. */
|
8191 | public javaOuterClassname: string;
|
8192 |
|
8193 | /** FileOptions javaMultipleFiles. */
|
8194 | public javaMultipleFiles: boolean;
|
8195 |
|
8196 | /** FileOptions javaGenerateEqualsAndHash. */
|
8197 | public javaGenerateEqualsAndHash: boolean;
|
8198 |
|
8199 | /** FileOptions javaStringCheckUtf8. */
|
8200 | public javaStringCheckUtf8: boolean;
|
8201 |
|
8202 | /** FileOptions optimizeFor. */
|
8203 | public optimizeFor: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode);
|
8204 |
|
8205 | /** FileOptions goPackage. */
|
8206 | public goPackage: string;
|
8207 |
|
8208 | /** FileOptions ccGenericServices. */
|
8209 | public ccGenericServices: boolean;
|
8210 |
|
8211 | /** FileOptions javaGenericServices. */
|
8212 | public javaGenericServices: boolean;
|
8213 |
|
8214 | /** FileOptions pyGenericServices. */
|
8215 | public pyGenericServices: boolean;
|
8216 |
|
8217 | /** FileOptions phpGenericServices. */
|
8218 | public phpGenericServices: boolean;
|
8219 |
|
8220 | /** FileOptions deprecated. */
|
8221 | public deprecated: boolean;
|
8222 |
|
8223 | /** FileOptions ccEnableArenas. */
|
8224 | public ccEnableArenas: boolean;
|
8225 |
|
8226 | /** FileOptions objcClassPrefix. */
|
8227 | public objcClassPrefix: string;
|
8228 |
|
8229 | /** FileOptions csharpNamespace. */
|
8230 | public csharpNamespace: string;
|
8231 |
|
8232 | /** FileOptions swiftPrefix. */
|
8233 | public swiftPrefix: string;
|
8234 |
|
8235 | /** FileOptions phpClassPrefix. */
|
8236 | public phpClassPrefix: string;
|
8237 |
|
8238 | /** FileOptions phpNamespace. */
|
8239 | public phpNamespace: string;
|
8240 |
|
8241 | /** FileOptions phpMetadataNamespace. */
|
8242 | public phpMetadataNamespace: string;
|
8243 |
|
8244 | /** FileOptions rubyPackage. */
|
8245 | public rubyPackage: string;
|
8246 |
|
8247 | /** FileOptions uninterpretedOption. */
|
8248 | public uninterpretedOption: google.protobuf.IUninterpretedOption[];
|
8249 |
|
8250 | /**
|
8251 | * Creates a new FileOptions instance using the specified properties.
|
8252 | * @param [properties] Properties to set
|
8253 | * @returns FileOptions instance
|
8254 | */
|
8255 | public static create(properties?: google.protobuf.IFileOptions): google.protobuf.FileOptions;
|
8256 |
|
8257 | /**
|
8258 | * Encodes the specified FileOptions message. Does not implicitly { google.protobuf.FileOptions.verify|verify} messages.
|
8259 | * message FileOptions message or plain object to encode
|
8260 | * [writer] Writer to encode to
|
8261 | * Writer
|
8262 | */
|
8263 | public static encode(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer;
|
8264 |
|
8265 | /**
|
8266 | * Encodes the specified FileOptions message, length delimited. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages.
|
8267 | * @param message FileOptions message or plain object to encode
|
8268 | * @param [writer] Writer to encode to
|
8269 | * @returns Writer
|
8270 | */
|
8271 | public static encodeDelimited(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer;
|
8272 |
|
8273 | /**
|
8274 | * Decodes a FileOptions message from the specified reader or buffer.
|
8275 | * @param reader Reader or buffer to decode from
|
8276 | * @param [length] Message length if known beforehand
|
8277 | * @returns FileOptions
|
8278 | * @throws {Error} If the payload is not a reader or valid buffer
|
8279 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
8280 | */
|
8281 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileOptions;
|
8282 |
|
8283 | /**
|
8284 | * Decodes a FileOptions message from the specified reader or buffer, length delimited.
|
8285 | * @param reader Reader or buffer to decode from
|
8286 | * @returns FileOptions
|
8287 | * @throws {Error} If the payload is not a reader or valid buffer
|
8288 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
8289 | */
|
8290 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileOptions;
|
8291 |
|
8292 | /**
|
8293 | * Verifies a FileOptions message.
|
8294 | * @param message Plain object to verify
|
8295 | * @returns `null` if valid, otherwise the reason why it is not
|
8296 | */
|
8297 | public static verify(message: { [k: string]: any }): (string|null);
|
8298 |
|
8299 | /**
|
8300 | * Creates a FileOptions message from a plain object. Also converts values to their respective internal types.
|
8301 | * @param object Plain object
|
8302 | * @returns FileOptions
|
8303 | */
|
8304 | public static fromObject(object: { [k: string]: any }): google.protobuf.FileOptions;
|
8305 |
|
8306 | /**
|
8307 | * Creates a plain object from a FileOptions message. Also converts values to other types if specified.
|
8308 | * @param message FileOptions
|
8309 | * @param [options] Conversion options
|
8310 | * @returns Plain object
|
8311 | */
|
8312 | public static toObject(message: google.protobuf.FileOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
8313 |
|
8314 | /**
|
8315 | * Converts this FileOptions to JSON.
|
8316 | * @returns JSON object
|
8317 | */
|
8318 | public toJSON(): { [k: string]: any };
|
8319 | }
|
8320 |
|
8321 | namespace FileOptions {
|
8322 |
|
8323 | /** OptimizeMode enum. */
|
8324 | enum OptimizeMode {
|
8325 | SPEED = 1,
|
8326 | CODE_SIZE = 2,
|
8327 | LITE_RUNTIME = 3
|
8328 | }
|
8329 | }
|
8330 |
|
8331 | /** Properties of a MessageOptions. */
|
8332 | interface IMessageOptions {
|
8333 |
|
8334 | /** MessageOptions messageSetWireFormat */
|
8335 | messageSetWireFormat?: (boolean|null);
|
8336 |
|
8337 | /** MessageOptions noStandardDescriptorAccessor */
|
8338 | noStandardDescriptorAccessor?: (boolean|null);
|
8339 |
|
8340 | /** MessageOptions deprecated */
|
8341 | deprecated?: (boolean|null);
|
8342 |
|
8343 | /** MessageOptions mapEntry */
|
8344 | mapEntry?: (boolean|null);
|
8345 |
|
8346 | /** MessageOptions uninterpretedOption */
|
8347 | uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
|
8348 |
|
8349 | /** MessageOptions .google.api.resource */
|
8350 | ".google.api.resource"?: (google.api.IResourceDescriptor|null);
|
8351 | }
|
8352 |
|
8353 | /** Represents a MessageOptions. */
|
8354 | class MessageOptions implements IMessageOptions {
|
8355 |
|
8356 | /**
|
8357 | * Constructs a new MessageOptions.
|
8358 | * @param [properties] Properties to set
|
8359 | */
|
8360 | constructor(properties?: google.protobuf.IMessageOptions);
|
8361 |
|
8362 | /** MessageOptions messageSetWireFormat. */
|
8363 | public messageSetWireFormat: boolean;
|
8364 |
|
8365 | /** MessageOptions noStandardDescriptorAccessor. */
|
8366 | public noStandardDescriptorAccessor: boolean;
|
8367 |
|
8368 | /** MessageOptions deprecated. */
|
8369 | public deprecated: boolean;
|
8370 |
|
8371 | /** MessageOptions mapEntry. */
|
8372 | public mapEntry: boolean;
|
8373 |
|
8374 | /** MessageOptions uninterpretedOption. */
|
8375 | public uninterpretedOption: google.protobuf.IUninterpretedOption[];
|
8376 |
|
8377 | /**
|
8378 | * Creates a new MessageOptions instance using the specified properties.
|
8379 | * @param [properties] Properties to set
|
8380 | * @returns MessageOptions instance
|
8381 | */
|
8382 | public static create(properties?: google.protobuf.IMessageOptions): google.protobuf.MessageOptions;
|
8383 |
|
8384 | /**
|
8385 | * Encodes the specified MessageOptions message. Does not implicitly { google.protobuf.MessageOptions.verify|verify} messages.
|
8386 | * message MessageOptions message or plain object to encode
|
8387 | * [writer] Writer to encode to
|
8388 | * Writer
|
8389 | */
|
8390 | public static encode(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer;
|
8391 |
|
8392 | /**
|
8393 | * Encodes the specified MessageOptions message, length delimited. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages.
|
8394 | * @param message MessageOptions message or plain object to encode
|
8395 | * @param [writer] Writer to encode to
|
8396 | * @returns Writer
|
8397 | */
|
8398 | public static encodeDelimited(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer;
|
8399 |
|
8400 | /**
|
8401 | * Decodes a MessageOptions message from the specified reader or buffer.
|
8402 | * @param reader Reader or buffer to decode from
|
8403 | * @param [length] Message length if known beforehand
|
8404 | * @returns MessageOptions
|
8405 | * @throws {Error} If the payload is not a reader or valid buffer
|
8406 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
8407 | */
|
8408 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MessageOptions;
|
8409 |
|
8410 | /**
|
8411 | * Decodes a MessageOptions message from the specified reader or buffer, length delimited.
|
8412 | * @param reader Reader or buffer to decode from
|
8413 | * @returns MessageOptions
|
8414 | * @throws {Error} If the payload is not a reader or valid buffer
|
8415 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
8416 | */
|
8417 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MessageOptions;
|
8418 |
|
8419 | /**
|
8420 | * Verifies a MessageOptions message.
|
8421 | * @param message Plain object to verify
|
8422 | * @returns `null` if valid, otherwise the reason why it is not
|
8423 | */
|
8424 | public static verify(message: { [k: string]: any }): (string|null);
|
8425 |
|
8426 | /**
|
8427 | * Creates a MessageOptions message from a plain object. Also converts values to their respective internal types.
|
8428 | * @param object Plain object
|
8429 | * @returns MessageOptions
|
8430 | */
|
8431 | public static fromObject(object: { [k: string]: any }): google.protobuf.MessageOptions;
|
8432 |
|
8433 | /**
|
8434 | * Creates a plain object from a MessageOptions message. Also converts values to other types if specified.
|
8435 | * @param message MessageOptions
|
8436 | * @param [options] Conversion options
|
8437 | * @returns Plain object
|
8438 | */
|
8439 | public static toObject(message: google.protobuf.MessageOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
8440 |
|
8441 | /**
|
8442 | * Converts this MessageOptions to JSON.
|
8443 | * @returns JSON object
|
8444 | */
|
8445 | public toJSON(): { [k: string]: any };
|
8446 | }
|
8447 |
|
8448 | /** Properties of a FieldOptions. */
|
8449 | interface IFieldOptions {
|
8450 |
|
8451 | /** FieldOptions ctype */
|
8452 | ctype?: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType|null);
|
8453 |
|
8454 | /** FieldOptions packed */
|
8455 | packed?: (boolean|null);
|
8456 |
|
8457 | /** FieldOptions jstype */
|
8458 | jstype?: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType|null);
|
8459 |
|
8460 | /** FieldOptions lazy */
|
8461 | lazy?: (boolean|null);
|
8462 |
|
8463 | /** FieldOptions deprecated */
|
8464 | deprecated?: (boolean|null);
|
8465 |
|
8466 | /** FieldOptions weak */
|
8467 | weak?: (boolean|null);
|
8468 |
|
8469 | /** FieldOptions uninterpretedOption */
|
8470 | uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
|
8471 |
|
8472 | /** FieldOptions .google.api.fieldBehavior */
|
8473 | ".google.api.fieldBehavior"?: (google.api.FieldBehavior[]|null);
|
8474 |
|
8475 | /** FieldOptions .google.api.resourceReference */
|
8476 | ".google.api.resourceReference"?: (google.api.IResourceReference|null);
|
8477 | }
|
8478 |
|
8479 | /** Represents a FieldOptions. */
|
8480 | class FieldOptions implements IFieldOptions {
|
8481 |
|
8482 | /**
|
8483 | * Constructs a new FieldOptions.
|
8484 | * @param [properties] Properties to set
|
8485 | */
|
8486 | constructor(properties?: google.protobuf.IFieldOptions);
|
8487 |
|
8488 | /** FieldOptions ctype. */
|
8489 | public ctype: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType);
|
8490 |
|
8491 | /** FieldOptions packed. */
|
8492 | public packed: boolean;
|
8493 |
|
8494 | /** FieldOptions jstype. */
|
8495 | public jstype: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType);
|
8496 |
|
8497 | /** FieldOptions lazy. */
|
8498 | public lazy: boolean;
|
8499 |
|
8500 | /** FieldOptions deprecated. */
|
8501 | public deprecated: boolean;
|
8502 |
|
8503 | /** FieldOptions weak. */
|
8504 | public weak: boolean;
|
8505 |
|
8506 | /** FieldOptions uninterpretedOption. */
|
8507 | public uninterpretedOption: google.protobuf.IUninterpretedOption[];
|
8508 |
|
8509 | /**
|
8510 | * Creates a new FieldOptions instance using the specified properties.
|
8511 | * @param [properties] Properties to set
|
8512 | * @returns FieldOptions instance
|
8513 | */
|
8514 | public static create(properties?: google.protobuf.IFieldOptions): google.protobuf.FieldOptions;
|
8515 |
|
8516 | /**
|
8517 | * Encodes the specified FieldOptions message. Does not implicitly { google.protobuf.FieldOptions.verify|verify} messages.
|
8518 | * message FieldOptions message or plain object to encode
|
8519 | * [writer] Writer to encode to
|
8520 | * Writer
|
8521 | */
|
8522 | public static encode(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer;
|
8523 |
|
8524 | /**
|
8525 | * Encodes the specified FieldOptions message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages.
|
8526 | * @param message FieldOptions message or plain object to encode
|
8527 | * @param [writer] Writer to encode to
|
8528 | * @returns Writer
|
8529 | */
|
8530 | public static encodeDelimited(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer;
|
8531 |
|
8532 | /**
|
8533 | * Decodes a FieldOptions message from the specified reader or buffer.
|
8534 | * @param reader Reader or buffer to decode from
|
8535 | * @param [length] Message length if known beforehand
|
8536 | * @returns FieldOptions
|
8537 | * @throws {Error} If the payload is not a reader or valid buffer
|
8538 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
8539 | */
|
8540 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldOptions;
|
8541 |
|
8542 | /**
|
8543 | * Decodes a FieldOptions message from the specified reader or buffer, length delimited.
|
8544 | * @param reader Reader or buffer to decode from
|
8545 | * @returns FieldOptions
|
8546 | * @throws {Error} If the payload is not a reader or valid buffer
|
8547 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
8548 | */
|
8549 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldOptions;
|
8550 |
|
8551 | /**
|
8552 | * Verifies a FieldOptions message.
|
8553 | * @param message Plain object to verify
|
8554 | * @returns `null` if valid, otherwise the reason why it is not
|
8555 | */
|
8556 | public static verify(message: { [k: string]: any }): (string|null);
|
8557 |
|
8558 | /**
|
8559 | * Creates a FieldOptions message from a plain object. Also converts values to their respective internal types.
|
8560 | * @param object Plain object
|
8561 | * @returns FieldOptions
|
8562 | */
|
8563 | public static fromObject(object: { [k: string]: any }): google.protobuf.FieldOptions;
|
8564 |
|
8565 | /**
|
8566 | * Creates a plain object from a FieldOptions message. Also converts values to other types if specified.
|
8567 | * @param message FieldOptions
|
8568 | * @param [options] Conversion options
|
8569 | * @returns Plain object
|
8570 | */
|
8571 | public static toObject(message: google.protobuf.FieldOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
8572 |
|
8573 | /**
|
8574 | * Converts this FieldOptions to JSON.
|
8575 | * @returns JSON object
|
8576 | */
|
8577 | public toJSON(): { [k: string]: any };
|
8578 | }
|
8579 |
|
8580 | namespace FieldOptions {
|
8581 |
|
8582 | /** CType enum. */
|
8583 | enum CType {
|
8584 | STRING = 0,
|
8585 | CORD = 1,
|
8586 | STRING_PIECE = 2
|
8587 | }
|
8588 |
|
8589 | /** JSType enum. */
|
8590 | enum JSType {
|
8591 | JS_NORMAL = 0,
|
8592 | JS_STRING = 1,
|
8593 | JS_NUMBER = 2
|
8594 | }
|
8595 | }
|
8596 |
|
8597 | /** Properties of an OneofOptions. */
|
8598 | interface IOneofOptions {
|
8599 |
|
8600 | /** OneofOptions uninterpretedOption */
|
8601 | uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
|
8602 | }
|
8603 |
|
8604 | /** Represents an OneofOptions. */
|
8605 | class OneofOptions implements IOneofOptions {
|
8606 |
|
8607 | /**
|
8608 | * Constructs a new OneofOptions.
|
8609 | * @param [properties] Properties to set
|
8610 | */
|
8611 | constructor(properties?: google.protobuf.IOneofOptions);
|
8612 |
|
8613 | /** OneofOptions uninterpretedOption. */
|
8614 | public uninterpretedOption: google.protobuf.IUninterpretedOption[];
|
8615 |
|
8616 | /**
|
8617 | * Creates a new OneofOptions instance using the specified properties.
|
8618 | * @param [properties] Properties to set
|
8619 | * @returns OneofOptions instance
|
8620 | */
|
8621 | public static create(properties?: google.protobuf.IOneofOptions): google.protobuf.OneofOptions;
|
8622 |
|
8623 | /**
|
8624 | * Encodes the specified OneofOptions message. Does not implicitly { google.protobuf.OneofOptions.verify|verify} messages.
|
8625 | * message OneofOptions message or plain object to encode
|
8626 | * [writer] Writer to encode to
|
8627 | * Writer
|
8628 | */
|
8629 | public static encode(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer;
|
8630 |
|
8631 | /**
|
8632 | * Encodes the specified OneofOptions message, length delimited. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages.
|
8633 | * @param message OneofOptions message or plain object to encode
|
8634 | * @param [writer] Writer to encode to
|
8635 | * @returns Writer
|
8636 | */
|
8637 | public static encodeDelimited(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer;
|
8638 |
|
8639 | /**
|
8640 | * Decodes an OneofOptions message from the specified reader or buffer.
|
8641 | * @param reader Reader or buffer to decode from
|
8642 | * @param [length] Message length if known beforehand
|
8643 | * @returns OneofOptions
|
8644 | * @throws {Error} If the payload is not a reader or valid buffer
|
8645 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
8646 | */
|
8647 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofOptions;
|
8648 |
|
8649 | /**
|
8650 | * Decodes an OneofOptions message from the specified reader or buffer, length delimited.
|
8651 | * @param reader Reader or buffer to decode from
|
8652 | * @returns OneofOptions
|
8653 | * @throws {Error} If the payload is not a reader or valid buffer
|
8654 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
8655 | */
|
8656 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.OneofOptions;
|
8657 |
|
8658 | /**
|
8659 | * Verifies an OneofOptions message.
|
8660 | * @param message Plain object to verify
|
8661 | * @returns `null` if valid, otherwise the reason why it is not
|
8662 | */
|
8663 | public static verify(message: { [k: string]: any }): (string|null);
|
8664 |
|
8665 | /**
|
8666 | * Creates an OneofOptions message from a plain object. Also converts values to their respective internal types.
|
8667 | * @param object Plain object
|
8668 | * @returns OneofOptions
|
8669 | */
|
8670 | public static fromObject(object: { [k: string]: any }): google.protobuf.OneofOptions;
|
8671 |
|
8672 | /**
|
8673 | * Creates a plain object from an OneofOptions message. Also converts values to other types if specified.
|
8674 | * @param message OneofOptions
|
8675 | * @param [options] Conversion options
|
8676 | * @returns Plain object
|
8677 | */
|
8678 | public static toObject(message: google.protobuf.OneofOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
8679 |
|
8680 | /**
|
8681 | * Converts this OneofOptions to JSON.
|
8682 | * @returns JSON object
|
8683 | */
|
8684 | public toJSON(): { [k: string]: any };
|
8685 | }
|
8686 |
|
8687 | /** Properties of an EnumOptions. */
|
8688 | interface IEnumOptions {
|
8689 |
|
8690 | /** EnumOptions allowAlias */
|
8691 | allowAlias?: (boolean|null);
|
8692 |
|
8693 | /** EnumOptions deprecated */
|
8694 | deprecated?: (boolean|null);
|
8695 |
|
8696 | /** EnumOptions uninterpretedOption */
|
8697 | uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
|
8698 | }
|
8699 |
|
8700 | /** Represents an EnumOptions. */
|
8701 | class EnumOptions implements IEnumOptions {
|
8702 |
|
8703 | /**
|
8704 | * Constructs a new EnumOptions.
|
8705 | * @param [properties] Properties to set
|
8706 | */
|
8707 | constructor(properties?: google.protobuf.IEnumOptions);
|
8708 |
|
8709 | /** EnumOptions allowAlias. */
|
8710 | public allowAlias: boolean;
|
8711 |
|
8712 | /** EnumOptions deprecated. */
|
8713 | public deprecated: boolean;
|
8714 |
|
8715 | /** EnumOptions uninterpretedOption. */
|
8716 | public uninterpretedOption: google.protobuf.IUninterpretedOption[];
|
8717 |
|
8718 | /**
|
8719 | * Creates a new EnumOptions instance using the specified properties.
|
8720 | * @param [properties] Properties to set
|
8721 | * @returns EnumOptions instance
|
8722 | */
|
8723 | public static create(properties?: google.protobuf.IEnumOptions): google.protobuf.EnumOptions;
|
8724 |
|
8725 | /**
|
8726 | * Encodes the specified EnumOptions message. Does not implicitly { google.protobuf.EnumOptions.verify|verify} messages.
|
8727 | * message EnumOptions message or plain object to encode
|
8728 | * [writer] Writer to encode to
|
8729 | * Writer
|
8730 | */
|
8731 | public static encode(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer;
|
8732 |
|
8733 | /**
|
8734 | * Encodes the specified EnumOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages.
|
8735 | * @param message EnumOptions message or plain object to encode
|
8736 | * @param [writer] Writer to encode to
|
8737 | * @returns Writer
|
8738 | */
|
8739 | public static encodeDelimited(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer;
|
8740 |
|
8741 | /**
|
8742 | * Decodes an EnumOptions message from the specified reader or buffer.
|
8743 | * @param reader Reader or buffer to decode from
|
8744 | * @param [length] Message length if known beforehand
|
8745 | * @returns EnumOptions
|
8746 | * @throws {Error} If the payload is not a reader or valid buffer
|
8747 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
8748 | */
|
8749 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumOptions;
|
8750 |
|
8751 | /**
|
8752 | * Decodes an EnumOptions message from the specified reader or buffer, length delimited.
|
8753 | * @param reader Reader or buffer to decode from
|
8754 | * @returns EnumOptions
|
8755 | * @throws {Error} If the payload is not a reader or valid buffer
|
8756 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
8757 | */
|
8758 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumOptions;
|
8759 |
|
8760 | /**
|
8761 | * Verifies an EnumOptions message.
|
8762 | * @param message Plain object to verify
|
8763 | * @returns `null` if valid, otherwise the reason why it is not
|
8764 | */
|
8765 | public static verify(message: { [k: string]: any }): (string|null);
|
8766 |
|
8767 | /**
|
8768 | * Creates an EnumOptions message from a plain object. Also converts values to their respective internal types.
|
8769 | * @param object Plain object
|
8770 | * @returns EnumOptions
|
8771 | */
|
8772 | public static fromObject(object: { [k: string]: any }): google.protobuf.EnumOptions;
|
8773 |
|
8774 | /**
|
8775 | * Creates a plain object from an EnumOptions message. Also converts values to other types if specified.
|
8776 | * @param message EnumOptions
|
8777 | * @param [options] Conversion options
|
8778 | * @returns Plain object
|
8779 | */
|
8780 | public static toObject(message: google.protobuf.EnumOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
8781 |
|
8782 | /**
|
8783 | * Converts this EnumOptions to JSON.
|
8784 | * @returns JSON object
|
8785 | */
|
8786 | public toJSON(): { [k: string]: any };
|
8787 | }
|
8788 |
|
8789 | /** Properties of an EnumValueOptions. */
|
8790 | interface IEnumValueOptions {
|
8791 |
|
8792 | /** EnumValueOptions deprecated */
|
8793 | deprecated?: (boolean|null);
|
8794 |
|
8795 | /** EnumValueOptions uninterpretedOption */
|
8796 | uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
|
8797 | }
|
8798 |
|
8799 | /** Represents an EnumValueOptions. */
|
8800 | class EnumValueOptions implements IEnumValueOptions {
|
8801 |
|
8802 | /**
|
8803 | * Constructs a new EnumValueOptions.
|
8804 | * @param [properties] Properties to set
|
8805 | */
|
8806 | constructor(properties?: google.protobuf.IEnumValueOptions);
|
8807 |
|
8808 | /** EnumValueOptions deprecated. */
|
8809 | public deprecated: boolean;
|
8810 |
|
8811 | /** EnumValueOptions uninterpretedOption. */
|
8812 | public uninterpretedOption: google.protobuf.IUninterpretedOption[];
|
8813 |
|
8814 | /**
|
8815 | * Creates a new EnumValueOptions instance using the specified properties.
|
8816 | * @param [properties] Properties to set
|
8817 | * @returns EnumValueOptions instance
|
8818 | */
|
8819 | public static create(properties?: google.protobuf.IEnumValueOptions): google.protobuf.EnumValueOptions;
|
8820 |
|
8821 | /**
|
8822 | * Encodes the specified EnumValueOptions message. Does not implicitly { google.protobuf.EnumValueOptions.verify|verify} messages.
|
8823 | * message EnumValueOptions message or plain object to encode
|
8824 | * [writer] Writer to encode to
|
8825 | * Writer
|
8826 | */
|
8827 | public static encode(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer;
|
8828 |
|
8829 | /**
|
8830 | * Encodes the specified EnumValueOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages.
|
8831 | * @param message EnumValueOptions message or plain object to encode
|
8832 | * @param [writer] Writer to encode to
|
8833 | * @returns Writer
|
8834 | */
|
8835 | public static encodeDelimited(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer;
|
8836 |
|
8837 | /**
|
8838 | * Decodes an EnumValueOptions message from the specified reader or buffer.
|
8839 | * @param reader Reader or buffer to decode from
|
8840 | * @param [length] Message length if known beforehand
|
8841 | * @returns EnumValueOptions
|
8842 | * @throws {Error} If the payload is not a reader or valid buffer
|
8843 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
8844 | */
|
8845 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueOptions;
|
8846 |
|
8847 | /**
|
8848 | * Decodes an EnumValueOptions message from the specified reader or buffer, length delimited.
|
8849 | * @param reader Reader or buffer to decode from
|
8850 | * @returns EnumValueOptions
|
8851 | * @throws {Error} If the payload is not a reader or valid buffer
|
8852 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
8853 | */
|
8854 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumValueOptions;
|
8855 |
|
8856 | /**
|
8857 | * Verifies an EnumValueOptions message.
|
8858 | * @param message Plain object to verify
|
8859 | * @returns `null` if valid, otherwise the reason why it is not
|
8860 | */
|
8861 | public static verify(message: { [k: string]: any }): (string|null);
|
8862 |
|
8863 | /**
|
8864 | * Creates an EnumValueOptions message from a plain object. Also converts values to their respective internal types.
|
8865 | * @param object Plain object
|
8866 | * @returns EnumValueOptions
|
8867 | */
|
8868 | public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueOptions;
|
8869 |
|
8870 | /**
|
8871 | * Creates a plain object from an EnumValueOptions message. Also converts values to other types if specified.
|
8872 | * @param message EnumValueOptions
|
8873 | * @param [options] Conversion options
|
8874 | * @returns Plain object
|
8875 | */
|
8876 | public static toObject(message: google.protobuf.EnumValueOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
8877 |
|
8878 | /**
|
8879 | * Converts this EnumValueOptions to JSON.
|
8880 | * @returns JSON object
|
8881 | */
|
8882 | public toJSON(): { [k: string]: any };
|
8883 | }
|
8884 |
|
8885 | /** Properties of a ServiceOptions. */
|
8886 | interface IServiceOptions {
|
8887 |
|
8888 | /** ServiceOptions deprecated */
|
8889 | deprecated?: (boolean|null);
|
8890 |
|
8891 | /** ServiceOptions uninterpretedOption */
|
8892 | uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
|
8893 |
|
8894 | /** ServiceOptions .google.api.defaultHost */
|
8895 | ".google.api.defaultHost"?: (string|null);
|
8896 |
|
8897 | /** ServiceOptions .google.api.oauthScopes */
|
8898 | ".google.api.oauthScopes"?: (string|null);
|
8899 | }
|
8900 |
|
8901 | /** Represents a ServiceOptions. */
|
8902 | class ServiceOptions implements IServiceOptions {
|
8903 |
|
8904 | /**
|
8905 | * Constructs a new ServiceOptions.
|
8906 | * @param [properties] Properties to set
|
8907 | */
|
8908 | constructor(properties?: google.protobuf.IServiceOptions);
|
8909 |
|
8910 | /** ServiceOptions deprecated. */
|
8911 | public deprecated: boolean;
|
8912 |
|
8913 | /** ServiceOptions uninterpretedOption. */
|
8914 | public uninterpretedOption: google.protobuf.IUninterpretedOption[];
|
8915 |
|
8916 | /**
|
8917 | * Creates a new ServiceOptions instance using the specified properties.
|
8918 | * @param [properties] Properties to set
|
8919 | * @returns ServiceOptions instance
|
8920 | */
|
8921 | public static create(properties?: google.protobuf.IServiceOptions): google.protobuf.ServiceOptions;
|
8922 |
|
8923 | /**
|
8924 | * Encodes the specified ServiceOptions message. Does not implicitly { google.protobuf.ServiceOptions.verify|verify} messages.
|
8925 | * message ServiceOptions message or plain object to encode
|
8926 | * [writer] Writer to encode to
|
8927 | * Writer
|
8928 | */
|
8929 | public static encode(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer;
|
8930 |
|
8931 | /**
|
8932 | * Encodes the specified ServiceOptions message, length delimited. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages.
|
8933 | * @param message ServiceOptions message or plain object to encode
|
8934 | * @param [writer] Writer to encode to
|
8935 | * @returns Writer
|
8936 | */
|
8937 | public static encodeDelimited(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer;
|
8938 |
|
8939 | /**
|
8940 | * Decodes a ServiceOptions message from the specified reader or buffer.
|
8941 | * @param reader Reader or buffer to decode from
|
8942 | * @param [length] Message length if known beforehand
|
8943 | * @returns ServiceOptions
|
8944 | * @throws {Error} If the payload is not a reader or valid buffer
|
8945 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
8946 | */
|
8947 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceOptions;
|
8948 |
|
8949 | /**
|
8950 | * Decodes a ServiceOptions message from the specified reader or buffer, length delimited.
|
8951 | * @param reader Reader or buffer to decode from
|
8952 | * @returns ServiceOptions
|
8953 | * @throws {Error} If the payload is not a reader or valid buffer
|
8954 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
8955 | */
|
8956 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ServiceOptions;
|
8957 |
|
8958 | /**
|
8959 | * Verifies a ServiceOptions message.
|
8960 | * @param message Plain object to verify
|
8961 | * @returns `null` if valid, otherwise the reason why it is not
|
8962 | */
|
8963 | public static verify(message: { [k: string]: any }): (string|null);
|
8964 |
|
8965 | /**
|
8966 | * Creates a ServiceOptions message from a plain object. Also converts values to their respective internal types.
|
8967 | * @param object Plain object
|
8968 | * @returns ServiceOptions
|
8969 | */
|
8970 | public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceOptions;
|
8971 |
|
8972 | /**
|
8973 | * Creates a plain object from a ServiceOptions message. Also converts values to other types if specified.
|
8974 | * @param message ServiceOptions
|
8975 | * @param [options] Conversion options
|
8976 | * @returns Plain object
|
8977 | */
|
8978 | public static toObject(message: google.protobuf.ServiceOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
8979 |
|
8980 | /**
|
8981 | * Converts this ServiceOptions to JSON.
|
8982 | * @returns JSON object
|
8983 | */
|
8984 | public toJSON(): { [k: string]: any };
|
8985 | }
|
8986 |
|
8987 | /** Properties of a MethodOptions. */
|
8988 | interface IMethodOptions {
|
8989 |
|
8990 | /** MethodOptions deprecated */
|
8991 | deprecated?: (boolean|null);
|
8992 |
|
8993 | /** MethodOptions idempotencyLevel */
|
8994 | idempotencyLevel?: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel|null);
|
8995 |
|
8996 | /** MethodOptions uninterpretedOption */
|
8997 | uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
|
8998 |
|
8999 | /** MethodOptions .google.api.http */
|
9000 | ".google.api.http"?: (google.api.IHttpRule|null);
|
9001 |
|
9002 | /** MethodOptions .google.api.methodSignature */
|
9003 | ".google.api.methodSignature"?: (string[]|null);
|
9004 |
|
9005 | /** MethodOptions .google.longrunning.operationInfo */
|
9006 | ".google.longrunning.operationInfo"?: (google.longrunning.IOperationInfo|null);
|
9007 | }
|
9008 |
|
9009 | /** Represents a MethodOptions. */
|
9010 | class MethodOptions implements IMethodOptions {
|
9011 |
|
9012 | /**
|
9013 | * Constructs a new MethodOptions.
|
9014 | * @param [properties] Properties to set
|
9015 | */
|
9016 | constructor(properties?: google.protobuf.IMethodOptions);
|
9017 |
|
9018 | /** MethodOptions deprecated. */
|
9019 | public deprecated: boolean;
|
9020 |
|
9021 | /** MethodOptions idempotencyLevel. */
|
9022 | public idempotencyLevel: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel);
|
9023 |
|
9024 | /** MethodOptions uninterpretedOption. */
|
9025 | public uninterpretedOption: google.protobuf.IUninterpretedOption[];
|
9026 |
|
9027 | /**
|
9028 | * Creates a new MethodOptions instance using the specified properties.
|
9029 | * @param [properties] Properties to set
|
9030 | * @returns MethodOptions instance
|
9031 | */
|
9032 | public static create(properties?: google.protobuf.IMethodOptions): google.protobuf.MethodOptions;
|
9033 |
|
9034 | /**
|
9035 | * Encodes the specified MethodOptions message. Does not implicitly { google.protobuf.MethodOptions.verify|verify} messages.
|
9036 | * message MethodOptions message or plain object to encode
|
9037 | * [writer] Writer to encode to
|
9038 | * Writer
|
9039 | */
|
9040 | public static encode(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer;
|
9041 |
|
9042 | /**
|
9043 | * Encodes the specified MethodOptions message, length delimited. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages.
|
9044 | * @param message MethodOptions message or plain object to encode
|
9045 | * @param [writer] Writer to encode to
|
9046 | * @returns Writer
|
9047 | */
|
9048 | public static encodeDelimited(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer;
|
9049 |
|
9050 | /**
|
9051 | * Decodes a MethodOptions message from the specified reader or buffer.
|
9052 | * @param reader Reader or buffer to decode from
|
9053 | * @param [length] Message length if known beforehand
|
9054 | * @returns MethodOptions
|
9055 | * @throws {Error} If the payload is not a reader or valid buffer
|
9056 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
9057 | */
|
9058 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodOptions;
|
9059 |
|
9060 | /**
|
9061 | * Decodes a MethodOptions message from the specified reader or buffer, length delimited.
|
9062 | * @param reader Reader or buffer to decode from
|
9063 | * @returns MethodOptions
|
9064 | * @throws {Error} If the payload is not a reader or valid buffer
|
9065 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
9066 | */
|
9067 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MethodOptions;
|
9068 |
|
9069 | /**
|
9070 | * Verifies a MethodOptions message.
|
9071 | * @param message Plain object to verify
|
9072 | * @returns `null` if valid, otherwise the reason why it is not
|
9073 | */
|
9074 | public static verify(message: { [k: string]: any }): (string|null);
|
9075 |
|
9076 | /**
|
9077 | * Creates a MethodOptions message from a plain object. Also converts values to their respective internal types.
|
9078 | * @param object Plain object
|
9079 | * @returns MethodOptions
|
9080 | */
|
9081 | public static fromObject(object: { [k: string]: any }): google.protobuf.MethodOptions;
|
9082 |
|
9083 | /**
|
9084 | * Creates a plain object from a MethodOptions message. Also converts values to other types if specified.
|
9085 | * @param message MethodOptions
|
9086 | * @param [options] Conversion options
|
9087 | * @returns Plain object
|
9088 | */
|
9089 | public static toObject(message: google.protobuf.MethodOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
9090 |
|
9091 | /**
|
9092 | * Converts this MethodOptions to JSON.
|
9093 | * @returns JSON object
|
9094 | */
|
9095 | public toJSON(): { [k: string]: any };
|
9096 | }
|
9097 |
|
9098 | namespace MethodOptions {
|
9099 |
|
9100 | /** IdempotencyLevel enum. */
|
9101 | enum IdempotencyLevel {
|
9102 | IDEMPOTENCY_UNKNOWN = 0,
|
9103 | NO_SIDE_EFFECTS = 1,
|
9104 | IDEMPOTENT = 2
|
9105 | }
|
9106 | }
|
9107 |
|
9108 | /** Properties of an UninterpretedOption. */
|
9109 | interface IUninterpretedOption {
|
9110 |
|
9111 | /** UninterpretedOption name */
|
9112 | name?: (google.protobuf.UninterpretedOption.INamePart[]|null);
|
9113 |
|
9114 | /** UninterpretedOption identifierValue */
|
9115 | identifierValue?: (string|null);
|
9116 |
|
9117 | /** UninterpretedOption positiveIntValue */
|
9118 | positiveIntValue?: (number|Long|string|null);
|
9119 |
|
9120 | /** UninterpretedOption negativeIntValue */
|
9121 | negativeIntValue?: (number|Long|string|null);
|
9122 |
|
9123 | /** UninterpretedOption doubleValue */
|
9124 | doubleValue?: (number|null);
|
9125 |
|
9126 | /** UninterpretedOption stringValue */
|
9127 | stringValue?: (Uint8Array|string|null);
|
9128 |
|
9129 | /** UninterpretedOption aggregateValue */
|
9130 | aggregateValue?: (string|null);
|
9131 | }
|
9132 |
|
9133 | /** Represents an UninterpretedOption. */
|
9134 | class UninterpretedOption implements IUninterpretedOption {
|
9135 |
|
9136 | /**
|
9137 | * Constructs a new UninterpretedOption.
|
9138 | * @param [properties] Properties to set
|
9139 | */
|
9140 | constructor(properties?: google.protobuf.IUninterpretedOption);
|
9141 |
|
9142 | /** UninterpretedOption name. */
|
9143 | public name: google.protobuf.UninterpretedOption.INamePart[];
|
9144 |
|
9145 | /** UninterpretedOption identifierValue. */
|
9146 | public identifierValue: string;
|
9147 |
|
9148 | /** UninterpretedOption positiveIntValue. */
|
9149 | public positiveIntValue: (number|Long|string);
|
9150 |
|
9151 | /** UninterpretedOption negativeIntValue. */
|
9152 | public negativeIntValue: (number|Long|string);
|
9153 |
|
9154 | /** UninterpretedOption doubleValue. */
|
9155 | public doubleValue: number;
|
9156 |
|
9157 | /** UninterpretedOption stringValue. */
|
9158 | public stringValue: (Uint8Array|string);
|
9159 |
|
9160 | /** UninterpretedOption aggregateValue. */
|
9161 | public aggregateValue: string;
|
9162 |
|
9163 | /**
|
9164 | * Creates a new UninterpretedOption instance using the specified properties.
|
9165 | * @param [properties] Properties to set
|
9166 | * @returns UninterpretedOption instance
|
9167 | */
|
9168 | public static create(properties?: google.protobuf.IUninterpretedOption): google.protobuf.UninterpretedOption;
|
9169 |
|
9170 | /**
|
9171 | * Encodes the specified UninterpretedOption message. Does not implicitly { google.protobuf.UninterpretedOption.verify|verify} messages.
|
9172 | * message UninterpretedOption message or plain object to encode
|
9173 | * [writer] Writer to encode to
|
9174 | * Writer
|
9175 | */
|
9176 | public static encode(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer;
|
9177 |
|
9178 | /**
|
9179 | * Encodes the specified UninterpretedOption message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages.
|
9180 | * @param message UninterpretedOption message or plain object to encode
|
9181 | * @param [writer] Writer to encode to
|
9182 | * @returns Writer
|
9183 | */
|
9184 | public static encodeDelimited(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer;
|
9185 |
|
9186 | /**
|
9187 | * Decodes an UninterpretedOption message from the specified reader or buffer.
|
9188 | * @param reader Reader or buffer to decode from
|
9189 | * @param [length] Message length if known beforehand
|
9190 | * @returns UninterpretedOption
|
9191 | * @throws {Error} If the payload is not a reader or valid buffer
|
9192 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
9193 | */
|
9194 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption;
|
9195 |
|
9196 | /**
|
9197 | * Decodes an UninterpretedOption message from the specified reader or buffer, length delimited.
|
9198 | * @param reader Reader or buffer to decode from
|
9199 | * @returns UninterpretedOption
|
9200 | * @throws {Error} If the payload is not a reader or valid buffer
|
9201 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
9202 | */
|
9203 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UninterpretedOption;
|
9204 |
|
9205 | /**
|
9206 | * Verifies an UninterpretedOption message.
|
9207 | * @param message Plain object to verify
|
9208 | * @returns `null` if valid, otherwise the reason why it is not
|
9209 | */
|
9210 | public static verify(message: { [k: string]: any }): (string|null);
|
9211 |
|
9212 | /**
|
9213 | * Creates an UninterpretedOption message from a plain object. Also converts values to their respective internal types.
|
9214 | * @param object Plain object
|
9215 | * @returns UninterpretedOption
|
9216 | */
|
9217 | public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption;
|
9218 |
|
9219 | /**
|
9220 | * Creates a plain object from an UninterpretedOption message. Also converts values to other types if specified.
|
9221 | * @param message UninterpretedOption
|
9222 | * @param [options] Conversion options
|
9223 | * @returns Plain object
|
9224 | */
|
9225 | public static toObject(message: google.protobuf.UninterpretedOption, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
9226 |
|
9227 | /**
|
9228 | * Converts this UninterpretedOption to JSON.
|
9229 | * @returns JSON object
|
9230 | */
|
9231 | public toJSON(): { [k: string]: any };
|
9232 | }
|
9233 |
|
9234 | namespace UninterpretedOption {
|
9235 |
|
9236 | /** Properties of a NamePart. */
|
9237 | interface INamePart {
|
9238 |
|
9239 | /** NamePart namePart */
|
9240 | namePart: string;
|
9241 |
|
9242 | /** NamePart isExtension */
|
9243 | isExtension: boolean;
|
9244 | }
|
9245 |
|
9246 | /** Represents a NamePart. */
|
9247 | class NamePart implements INamePart {
|
9248 |
|
9249 | /**
|
9250 | * Constructs a new NamePart.
|
9251 | * @param [properties] Properties to set
|
9252 | */
|
9253 | constructor(properties?: google.protobuf.UninterpretedOption.INamePart);
|
9254 |
|
9255 | /** NamePart namePart. */
|
9256 | public namePart: string;
|
9257 |
|
9258 | /** NamePart isExtension. */
|
9259 | public isExtension: boolean;
|
9260 |
|
9261 | /**
|
9262 | * Creates a new NamePart instance using the specified properties.
|
9263 | * @param [properties] Properties to set
|
9264 | * @returns NamePart instance
|
9265 | */
|
9266 | public static create(properties?: google.protobuf.UninterpretedOption.INamePart): google.protobuf.UninterpretedOption.NamePart;
|
9267 |
|
9268 | /**
|
9269 | * Encodes the specified NamePart message. Does not implicitly { google.protobuf.UninterpretedOption.NamePart.verify|verify} messages.
|
9270 | * message NamePart message or plain object to encode
|
9271 | * [writer] Writer to encode to
|
9272 | * Writer
|
9273 | */
|
9274 | public static encode(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer;
|
9275 |
|
9276 | /**
|
9277 | * Encodes the specified NamePart message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages.
|
9278 | * @param message NamePart message or plain object to encode
|
9279 | * @param [writer] Writer to encode to
|
9280 | * @returns Writer
|
9281 | */
|
9282 | public static encodeDelimited(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer;
|
9283 |
|
9284 | /**
|
9285 | * Decodes a NamePart message from the specified reader or buffer.
|
9286 | * @param reader Reader or buffer to decode from
|
9287 | * @param [length] Message length if known beforehand
|
9288 | * @returns NamePart
|
9289 | * @throws {Error} If the payload is not a reader or valid buffer
|
9290 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
9291 | */
|
9292 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption.NamePart;
|
9293 |
|
9294 | /**
|
9295 | * Decodes a NamePart message from the specified reader or buffer, length delimited.
|
9296 | * @param reader Reader or buffer to decode from
|
9297 | * @returns NamePart
|
9298 | * @throws {Error} If the payload is not a reader or valid buffer
|
9299 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
9300 | */
|
9301 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UninterpretedOption.NamePart;
|
9302 |
|
9303 | /**
|
9304 | * Verifies a NamePart message.
|
9305 | * @param message Plain object to verify
|
9306 | * @returns `null` if valid, otherwise the reason why it is not
|
9307 | */
|
9308 | public static verify(message: { [k: string]: any }): (string|null);
|
9309 |
|
9310 | /**
|
9311 | * Creates a NamePart message from a plain object. Also converts values to their respective internal types.
|
9312 | * @param object Plain object
|
9313 | * @returns NamePart
|
9314 | */
|
9315 | public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption.NamePart;
|
9316 |
|
9317 | /**
|
9318 | * Creates a plain object from a NamePart message. Also converts values to other types if specified.
|
9319 | * @param message NamePart
|
9320 | * @param [options] Conversion options
|
9321 | * @returns Plain object
|
9322 | */
|
9323 | public static toObject(message: google.protobuf.UninterpretedOption.NamePart, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
9324 |
|
9325 | /**
|
9326 | * Converts this NamePart to JSON.
|
9327 | * @returns JSON object
|
9328 | */
|
9329 | public toJSON(): { [k: string]: any };
|
9330 | }
|
9331 | }
|
9332 |
|
9333 | /** Properties of a SourceCodeInfo. */
|
9334 | interface ISourceCodeInfo {
|
9335 |
|
9336 | /** SourceCodeInfo location */
|
9337 | location?: (google.protobuf.SourceCodeInfo.ILocation[]|null);
|
9338 | }
|
9339 |
|
9340 | /** Represents a SourceCodeInfo. */
|
9341 | class SourceCodeInfo implements ISourceCodeInfo {
|
9342 |
|
9343 | /**
|
9344 | * Constructs a new SourceCodeInfo.
|
9345 | * @param [properties] Properties to set
|
9346 | */
|
9347 | constructor(properties?: google.protobuf.ISourceCodeInfo);
|
9348 |
|
9349 | /** SourceCodeInfo location. */
|
9350 | public location: google.protobuf.SourceCodeInfo.ILocation[];
|
9351 |
|
9352 | /**
|
9353 | * Creates a new SourceCodeInfo instance using the specified properties.
|
9354 | * @param [properties] Properties to set
|
9355 | * @returns SourceCodeInfo instance
|
9356 | */
|
9357 | public static create(properties?: google.protobuf.ISourceCodeInfo): google.protobuf.SourceCodeInfo;
|
9358 |
|
9359 | /**
|
9360 | * Encodes the specified SourceCodeInfo message. Does not implicitly { google.protobuf.SourceCodeInfo.verify|verify} messages.
|
9361 | * message SourceCodeInfo message or plain object to encode
|
9362 | * [writer] Writer to encode to
|
9363 | * Writer
|
9364 | */
|
9365 | public static encode(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
|
9366 |
|
9367 | /**
|
9368 | * Encodes the specified SourceCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages.
|
9369 | * @param message SourceCodeInfo message or plain object to encode
|
9370 | * @param [writer] Writer to encode to
|
9371 | * @returns Writer
|
9372 | */
|
9373 | public static encodeDelimited(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
|
9374 |
|
9375 | /**
|
9376 | * Decodes a SourceCodeInfo message from the specified reader or buffer.
|
9377 | * @param reader Reader or buffer to decode from
|
9378 | * @param [length] Message length if known beforehand
|
9379 | * @returns SourceCodeInfo
|
9380 | * @throws {Error} If the payload is not a reader or valid buffer
|
9381 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
9382 | */
|
9383 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo;
|
9384 |
|
9385 | /**
|
9386 | * Decodes a SourceCodeInfo message from the specified reader or buffer, length delimited.
|
9387 | * @param reader Reader or buffer to decode from
|
9388 | * @returns SourceCodeInfo
|
9389 | * @throws {Error} If the payload is not a reader or valid buffer
|
9390 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
9391 | */
|
9392 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.SourceCodeInfo;
|
9393 |
|
9394 | /**
|
9395 | * Verifies a SourceCodeInfo message.
|
9396 | * @param message Plain object to verify
|
9397 | * @returns `null` if valid, otherwise the reason why it is not
|
9398 | */
|
9399 | public static verify(message: { [k: string]: any }): (string|null);
|
9400 |
|
9401 | /**
|
9402 | * Creates a SourceCodeInfo message from a plain object. Also converts values to their respective internal types.
|
9403 | * @param object Plain object
|
9404 | * @returns SourceCodeInfo
|
9405 | */
|
9406 | public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo;
|
9407 |
|
9408 | /**
|
9409 | * Creates a plain object from a SourceCodeInfo message. Also converts values to other types if specified.
|
9410 | * @param message SourceCodeInfo
|
9411 | * @param [options] Conversion options
|
9412 | * @returns Plain object
|
9413 | */
|
9414 | public static toObject(message: google.protobuf.SourceCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
9415 |
|
9416 | /**
|
9417 | * Converts this SourceCodeInfo to JSON.
|
9418 | * @returns JSON object
|
9419 | */
|
9420 | public toJSON(): { [k: string]: any };
|
9421 | }
|
9422 |
|
9423 | namespace SourceCodeInfo {
|
9424 |
|
9425 | /** Properties of a Location. */
|
9426 | interface ILocation {
|
9427 |
|
9428 | /** Location path */
|
9429 | path?: (number[]|null);
|
9430 |
|
9431 | /** Location span */
|
9432 | span?: (number[]|null);
|
9433 |
|
9434 | /** Location leadingComments */
|
9435 | leadingComments?: (string|null);
|
9436 |
|
9437 | /** Location trailingComments */
|
9438 | trailingComments?: (string|null);
|
9439 |
|
9440 | /** Location leadingDetachedComments */
|
9441 | leadingDetachedComments?: (string[]|null);
|
9442 | }
|
9443 |
|
9444 | /** Represents a Location. */
|
9445 | class Location implements ILocation {
|
9446 |
|
9447 | /**
|
9448 | * Constructs a new Location.
|
9449 | * @param [properties] Properties to set
|
9450 | */
|
9451 | constructor(properties?: google.protobuf.SourceCodeInfo.ILocation);
|
9452 |
|
9453 | /** Location path. */
|
9454 | public path: number[];
|
9455 |
|
9456 | /** Location span. */
|
9457 | public span: number[];
|
9458 |
|
9459 | /** Location leadingComments. */
|
9460 | public leadingComments: string;
|
9461 |
|
9462 | /** Location trailingComments. */
|
9463 | public trailingComments: string;
|
9464 |
|
9465 | /** Location leadingDetachedComments. */
|
9466 | public leadingDetachedComments: string[];
|
9467 |
|
9468 | /**
|
9469 | * Creates a new Location instance using the specified properties.
|
9470 | * @param [properties] Properties to set
|
9471 | * @returns Location instance
|
9472 | */
|
9473 | public static create(properties?: google.protobuf.SourceCodeInfo.ILocation): google.protobuf.SourceCodeInfo.Location;
|
9474 |
|
9475 | /**
|
9476 | * Encodes the specified Location message. Does not implicitly { google.protobuf.SourceCodeInfo.Location.verify|verify} messages.
|
9477 | * message Location message or plain object to encode
|
9478 | * [writer] Writer to encode to
|
9479 | * Writer
|
9480 | */
|
9481 | public static encode(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer;
|
9482 |
|
9483 | /**
|
9484 | * Encodes the specified Location message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages.
|
9485 | * @param message Location message or plain object to encode
|
9486 | * @param [writer] Writer to encode to
|
9487 | * @returns Writer
|
9488 | */
|
9489 | public static encodeDelimited(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer;
|
9490 |
|
9491 | /**
|
9492 | * Decodes a Location message from the specified reader or buffer.
|
9493 | * @param reader Reader or buffer to decode from
|
9494 | * @param [length] Message length if known beforehand
|
9495 | * @returns Location
|
9496 | * @throws {Error} If the payload is not a reader or valid buffer
|
9497 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
9498 | */
|
9499 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo.Location;
|
9500 |
|
9501 | /**
|
9502 | * Decodes a Location message from the specified reader or buffer, length delimited.
|
9503 | * @param reader Reader or buffer to decode from
|
9504 | * @returns Location
|
9505 | * @throws {Error} If the payload is not a reader or valid buffer
|
9506 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
9507 | */
|
9508 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.SourceCodeInfo.Location;
|
9509 |
|
9510 | /**
|
9511 | * Verifies a Location message.
|
9512 | * @param message Plain object to verify
|
9513 | * @returns `null` if valid, otherwise the reason why it is not
|
9514 | */
|
9515 | public static verify(message: { [k: string]: any }): (string|null);
|
9516 |
|
9517 | /**
|
9518 | * Creates a Location message from a plain object. Also converts values to their respective internal types.
|
9519 | * @param object Plain object
|
9520 | * @returns Location
|
9521 | */
|
9522 | public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo.Location;
|
9523 |
|
9524 | /**
|
9525 | * Creates a plain object from a Location message. Also converts values to other types if specified.
|
9526 | * @param message Location
|
9527 | * @param [options] Conversion options
|
9528 | * @returns Plain object
|
9529 | */
|
9530 | public static toObject(message: google.protobuf.SourceCodeInfo.Location, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
9531 |
|
9532 | /**
|
9533 | * Converts this Location to JSON.
|
9534 | * @returns JSON object
|
9535 | */
|
9536 | public toJSON(): { [k: string]: any };
|
9537 | }
|
9538 | }
|
9539 |
|
9540 | /** Properties of a GeneratedCodeInfo. */
|
9541 | interface IGeneratedCodeInfo {
|
9542 |
|
9543 | /** GeneratedCodeInfo annotation */
|
9544 | annotation?: (google.protobuf.GeneratedCodeInfo.IAnnotation[]|null);
|
9545 | }
|
9546 |
|
9547 | /** Represents a GeneratedCodeInfo. */
|
9548 | class GeneratedCodeInfo implements IGeneratedCodeInfo {
|
9549 |
|
9550 | /**
|
9551 | * Constructs a new GeneratedCodeInfo.
|
9552 | * @param [properties] Properties to set
|
9553 | */
|
9554 | constructor(properties?: google.protobuf.IGeneratedCodeInfo);
|
9555 |
|
9556 | /** GeneratedCodeInfo annotation. */
|
9557 | public annotation: google.protobuf.GeneratedCodeInfo.IAnnotation[];
|
9558 |
|
9559 | /**
|
9560 | * Creates a new GeneratedCodeInfo instance using the specified properties.
|
9561 | * @param [properties] Properties to set
|
9562 | * @returns GeneratedCodeInfo instance
|
9563 | */
|
9564 | public static create(properties?: google.protobuf.IGeneratedCodeInfo): google.protobuf.GeneratedCodeInfo;
|
9565 |
|
9566 | /**
|
9567 | * Encodes the specified GeneratedCodeInfo message. Does not implicitly { google.protobuf.GeneratedCodeInfo.verify|verify} messages.
|
9568 | * message GeneratedCodeInfo message or plain object to encode
|
9569 | * [writer] Writer to encode to
|
9570 | * Writer
|
9571 | */
|
9572 | public static encode(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
|
9573 |
|
9574 | /**
|
9575 | * Encodes the specified GeneratedCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages.
|
9576 | * @param message GeneratedCodeInfo message or plain object to encode
|
9577 | * @param [writer] Writer to encode to
|
9578 | * @returns Writer
|
9579 | */
|
9580 | public static encodeDelimited(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
|
9581 |
|
9582 | /**
|
9583 | * Decodes a GeneratedCodeInfo message from the specified reader or buffer.
|
9584 | * @param reader Reader or buffer to decode from
|
9585 | * @param [length] Message length if known beforehand
|
9586 | * @returns GeneratedCodeInfo
|
9587 | * @throws {Error} If the payload is not a reader or valid buffer
|
9588 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
9589 | */
|
9590 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo;
|
9591 |
|
9592 | /**
|
9593 | * Decodes a GeneratedCodeInfo message from the specified reader or buffer, length delimited.
|
9594 | * @param reader Reader or buffer to decode from
|
9595 | * @returns GeneratedCodeInfo
|
9596 | * @throws {Error} If the payload is not a reader or valid buffer
|
9597 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
9598 | */
|
9599 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.GeneratedCodeInfo;
|
9600 |
|
9601 | /**
|
9602 | * Verifies a GeneratedCodeInfo message.
|
9603 | * @param message Plain object to verify
|
9604 | * @returns `null` if valid, otherwise the reason why it is not
|
9605 | */
|
9606 | public static verify(message: { [k: string]: any }): (string|null);
|
9607 |
|
9608 | /**
|
9609 | * Creates a GeneratedCodeInfo message from a plain object. Also converts values to their respective internal types.
|
9610 | * @param object Plain object
|
9611 | * @returns GeneratedCodeInfo
|
9612 | */
|
9613 | public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo;
|
9614 |
|
9615 | /**
|
9616 | * Creates a plain object from a GeneratedCodeInfo message. Also converts values to other types if specified.
|
9617 | * @param message GeneratedCodeInfo
|
9618 | * @param [options] Conversion options
|
9619 | * @returns Plain object
|
9620 | */
|
9621 | public static toObject(message: google.protobuf.GeneratedCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
9622 |
|
9623 | /**
|
9624 | * Converts this GeneratedCodeInfo to JSON.
|
9625 | * @returns JSON object
|
9626 | */
|
9627 | public toJSON(): { [k: string]: any };
|
9628 | }
|
9629 |
|
9630 | namespace GeneratedCodeInfo {
|
9631 |
|
9632 | /** Properties of an Annotation. */
|
9633 | interface IAnnotation {
|
9634 |
|
9635 | /** Annotation path */
|
9636 | path?: (number[]|null);
|
9637 |
|
9638 | /** Annotation sourceFile */
|
9639 | sourceFile?: (string|null);
|
9640 |
|
9641 | /** Annotation begin */
|
9642 | begin?: (number|null);
|
9643 |
|
9644 | /** Annotation end */
|
9645 | end?: (number|null);
|
9646 | }
|
9647 |
|
9648 | /** Represents an Annotation. */
|
9649 | class Annotation implements IAnnotation {
|
9650 |
|
9651 | /**
|
9652 | * Constructs a new Annotation.
|
9653 | * @param [properties] Properties to set
|
9654 | */
|
9655 | constructor(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation);
|
9656 |
|
9657 | /** Annotation path. */
|
9658 | public path: number[];
|
9659 |
|
9660 | /** Annotation sourceFile. */
|
9661 | public sourceFile: string;
|
9662 |
|
9663 | /** Annotation begin. */
|
9664 | public begin: number;
|
9665 |
|
9666 | /** Annotation end. */
|
9667 | public end: number;
|
9668 |
|
9669 | /**
|
9670 | * Creates a new Annotation instance using the specified properties.
|
9671 | * @param [properties] Properties to set
|
9672 | * @returns Annotation instance
|
9673 | */
|
9674 | public static create(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation): google.protobuf.GeneratedCodeInfo.Annotation;
|
9675 |
|
9676 | /**
|
9677 | * Encodes the specified Annotation message. Does not implicitly { google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages.
|
9678 | * message Annotation message or plain object to encode
|
9679 | * [writer] Writer to encode to
|
9680 | * Writer
|
9681 | */
|
9682 | public static encode(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
|
9683 |
|
9684 | /**
|
9685 | * Encodes the specified Annotation message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages.
|
9686 | * @param message Annotation message or plain object to encode
|
9687 | * @param [writer] Writer to encode to
|
9688 | * @returns Writer
|
9689 | */
|
9690 | public static encodeDelimited(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
|
9691 |
|
9692 | /**
|
9693 | * Decodes an Annotation message from the specified reader or buffer.
|
9694 | * @param reader Reader or buffer to decode from
|
9695 | * @param [length] Message length if known beforehand
|
9696 | * @returns Annotation
|
9697 | * @throws {Error} If the payload is not a reader or valid buffer
|
9698 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
9699 | */
|
9700 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo.Annotation;
|
9701 |
|
9702 | /**
|
9703 | * Decodes an Annotation message from the specified reader or buffer, length delimited.
|
9704 | * @param reader Reader or buffer to decode from
|
9705 | * @returns Annotation
|
9706 | * @throws {Error} If the payload is not a reader or valid buffer
|
9707 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
9708 | */
|
9709 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.GeneratedCodeInfo.Annotation;
|
9710 |
|
9711 | /**
|
9712 | * Verifies an Annotation message.
|
9713 | * @param message Plain object to verify
|
9714 | * @returns `null` if valid, otherwise the reason why it is not
|
9715 | */
|
9716 | public static verify(message: { [k: string]: any }): (string|null);
|
9717 |
|
9718 | /**
|
9719 | * Creates an Annotation message from a plain object. Also converts values to their respective internal types.
|
9720 | * @param object Plain object
|
9721 | * @returns Annotation
|
9722 | */
|
9723 | public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo.Annotation;
|
9724 |
|
9725 | /**
|
9726 | * Creates a plain object from an Annotation message. Also converts values to other types if specified.
|
9727 | * @param message Annotation
|
9728 | * @param [options] Conversion options
|
9729 | * @returns Plain object
|
9730 | */
|
9731 | public static toObject(message: google.protobuf.GeneratedCodeInfo.Annotation, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
9732 |
|
9733 | /**
|
9734 | * Converts this Annotation to JSON.
|
9735 | * @returns JSON object
|
9736 | */
|
9737 | public toJSON(): { [k: string]: any };
|
9738 | }
|
9739 | }
|
9740 |
|
9741 | /** Properties of an Any. */
|
9742 | interface IAny {
|
9743 |
|
9744 | /** Any type_url */
|
9745 | type_url?: (string|null);
|
9746 |
|
9747 | /** Any value */
|
9748 | value?: (Uint8Array|string|null);
|
9749 | }
|
9750 |
|
9751 | /** Represents an Any. */
|
9752 | class Any implements IAny {
|
9753 |
|
9754 | /**
|
9755 | * Constructs a new Any.
|
9756 | * @param [properties] Properties to set
|
9757 | */
|
9758 | constructor(properties?: google.protobuf.IAny);
|
9759 |
|
9760 | /** Any type_url. */
|
9761 | public type_url: string;
|
9762 |
|
9763 | /** Any value. */
|
9764 | public value: (Uint8Array|string);
|
9765 |
|
9766 | /**
|
9767 | * Creates a new Any instance using the specified properties.
|
9768 | * @param [properties] Properties to set
|
9769 | * @returns Any instance
|
9770 | */
|
9771 | public static create(properties?: google.protobuf.IAny): google.protobuf.Any;
|
9772 |
|
9773 | /**
|
9774 | * Encodes the specified Any message. Does not implicitly { google.protobuf.Any.verify|verify} messages.
|
9775 | * message Any message or plain object to encode
|
9776 | * [writer] Writer to encode to
|
9777 | * Writer
|
9778 | */
|
9779 | public static encode(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer;
|
9780 |
|
9781 | /**
|
9782 | * Encodes the specified Any message, length delimited. Does not implicitly {@link google.protobuf.Any.verify|verify} messages.
|
9783 | * @param message Any message or plain object to encode
|
9784 | * @param [writer] Writer to encode to
|
9785 | * @returns Writer
|
9786 | */
|
9787 | public static encodeDelimited(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer;
|
9788 |
|
9789 | /**
|
9790 | * Decodes an Any message from the specified reader or buffer.
|
9791 | * @param reader Reader or buffer to decode from
|
9792 | * @param [length] Message length if known beforehand
|
9793 | * @returns Any
|
9794 | * @throws {Error} If the payload is not a reader or valid buffer
|
9795 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
9796 | */
|
9797 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Any;
|
9798 |
|
9799 | /**
|
9800 | * Decodes an Any message from the specified reader or buffer, length delimited.
|
9801 | * @param reader Reader or buffer to decode from
|
9802 | * @returns Any
|
9803 | * @throws {Error} If the payload is not a reader or valid buffer
|
9804 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
9805 | */
|
9806 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Any;
|
9807 |
|
9808 | /**
|
9809 | * Verifies an Any message.
|
9810 | * @param message Plain object to verify
|
9811 | * @returns `null` if valid, otherwise the reason why it is not
|
9812 | */
|
9813 | public static verify(message: { [k: string]: any }): (string|null);
|
9814 |
|
9815 | /**
|
9816 | * Creates an Any message from a plain object. Also converts values to their respective internal types.
|
9817 | * @param object Plain object
|
9818 | * @returns Any
|
9819 | */
|
9820 | public static fromObject(object: { [k: string]: any }): google.protobuf.Any;
|
9821 |
|
9822 | /**
|
9823 | * Creates a plain object from an Any message. Also converts values to other types if specified.
|
9824 | * @param message Any
|
9825 | * @param [options] Conversion options
|
9826 | * @returns Plain object
|
9827 | */
|
9828 | public static toObject(message: google.protobuf.Any, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
9829 |
|
9830 | /**
|
9831 | * Converts this Any to JSON.
|
9832 | * @returns JSON object
|
9833 | */
|
9834 | public toJSON(): { [k: string]: any };
|
9835 | }
|
9836 |
|
9837 | /** Properties of a Duration. */
|
9838 | interface IDuration {
|
9839 |
|
9840 | /** Duration seconds */
|
9841 | seconds?: (number|Long|string|null);
|
9842 |
|
9843 | /** Duration nanos */
|
9844 | nanos?: (number|null);
|
9845 | }
|
9846 |
|
9847 | /** Represents a Duration. */
|
9848 | class Duration implements IDuration {
|
9849 |
|
9850 | /**
|
9851 | * Constructs a new Duration.
|
9852 | * @param [properties] Properties to set
|
9853 | */
|
9854 | constructor(properties?: google.protobuf.IDuration);
|
9855 |
|
9856 | /** Duration seconds. */
|
9857 | public seconds: (number|Long|string);
|
9858 |
|
9859 | /** Duration nanos. */
|
9860 | public nanos: number;
|
9861 |
|
9862 | /**
|
9863 | * Creates a new Duration instance using the specified properties.
|
9864 | * @param [properties] Properties to set
|
9865 | * @returns Duration instance
|
9866 | */
|
9867 | public static create(properties?: google.protobuf.IDuration): google.protobuf.Duration;
|
9868 |
|
9869 | /**
|
9870 | * Encodes the specified Duration message. Does not implicitly { google.protobuf.Duration.verify|verify} messages.
|
9871 | * message Duration message or plain object to encode
|
9872 | * [writer] Writer to encode to
|
9873 | * Writer
|
9874 | */
|
9875 | public static encode(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer;
|
9876 |
|
9877 | /**
|
9878 | * Encodes the specified Duration message, length delimited. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages.
|
9879 | * @param message Duration message or plain object to encode
|
9880 | * @param [writer] Writer to encode to
|
9881 | * @returns Writer
|
9882 | */
|
9883 | public static encodeDelimited(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer;
|
9884 |
|
9885 | /**
|
9886 | * Decodes a Duration message from the specified reader or buffer.
|
9887 | * @param reader Reader or buffer to decode from
|
9888 | * @param [length] Message length if known beforehand
|
9889 | * @returns Duration
|
9890 | * @throws {Error} If the payload is not a reader or valid buffer
|
9891 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
9892 | */
|
9893 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Duration;
|
9894 |
|
9895 | /**
|
9896 | * Decodes a Duration message from the specified reader or buffer, length delimited.
|
9897 | * @param reader Reader or buffer to decode from
|
9898 | * @returns Duration
|
9899 | * @throws {Error} If the payload is not a reader or valid buffer
|
9900 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
9901 | */
|
9902 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Duration;
|
9903 |
|
9904 | /**
|
9905 | * Verifies a Duration message.
|
9906 | * @param message Plain object to verify
|
9907 | * @returns `null` if valid, otherwise the reason why it is not
|
9908 | */
|
9909 | public static verify(message: { [k: string]: any }): (string|null);
|
9910 |
|
9911 | /**
|
9912 | * Creates a Duration message from a plain object. Also converts values to their respective internal types.
|
9913 | * @param object Plain object
|
9914 | * @returns Duration
|
9915 | */
|
9916 | public static fromObject(object: { [k: string]: any }): google.protobuf.Duration;
|
9917 |
|
9918 | /**
|
9919 | * Creates a plain object from a Duration message. Also converts values to other types if specified.
|
9920 | * @param message Duration
|
9921 | * @param [options] Conversion options
|
9922 | * @returns Plain object
|
9923 | */
|
9924 | public static toObject(message: google.protobuf.Duration, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
9925 |
|
9926 | /**
|
9927 | * Converts this Duration to JSON.
|
9928 | * @returns JSON object
|
9929 | */
|
9930 | public toJSON(): { [k: string]: any };
|
9931 | }
|
9932 |
|
9933 | /** Properties of an Empty. */
|
9934 | interface IEmpty {
|
9935 | }
|
9936 |
|
9937 | /** Represents an Empty. */
|
9938 | class Empty implements IEmpty {
|
9939 |
|
9940 | /**
|
9941 | * Constructs a new Empty.
|
9942 | * @param [properties] Properties to set
|
9943 | */
|
9944 | constructor(properties?: google.protobuf.IEmpty);
|
9945 |
|
9946 | /**
|
9947 | * Creates a new Empty instance using the specified properties.
|
9948 | * @param [properties] Properties to set
|
9949 | * @returns Empty instance
|
9950 | */
|
9951 | public static create(properties?: google.protobuf.IEmpty): google.protobuf.Empty;
|
9952 |
|
9953 | /**
|
9954 | * Encodes the specified Empty message. Does not implicitly { google.protobuf.Empty.verify|verify} messages.
|
9955 | * message Empty message or plain object to encode
|
9956 | * [writer] Writer to encode to
|
9957 | * Writer
|
9958 | */
|
9959 | public static encode(message: google.protobuf.IEmpty, writer?: $protobuf.Writer): $protobuf.Writer;
|
9960 |
|
9961 | /**
|
9962 | * Encodes the specified Empty message, length delimited. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages.
|
9963 | * @param message Empty message or plain object to encode
|
9964 | * @param [writer] Writer to encode to
|
9965 | * @returns Writer
|
9966 | */
|
9967 | public static encodeDelimited(message: google.protobuf.IEmpty, writer?: $protobuf.Writer): $protobuf.Writer;
|
9968 |
|
9969 | /**
|
9970 | * Decodes an Empty message from the specified reader or buffer.
|
9971 | * @param reader Reader or buffer to decode from
|
9972 | * @param [length] Message length if known beforehand
|
9973 | * @returns Empty
|
9974 | * @throws {Error} If the payload is not a reader or valid buffer
|
9975 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
9976 | */
|
9977 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Empty;
|
9978 |
|
9979 | /**
|
9980 | * Decodes an Empty message from the specified reader or buffer, length delimited.
|
9981 | * @param reader Reader or buffer to decode from
|
9982 | * @returns Empty
|
9983 | * @throws {Error} If the payload is not a reader or valid buffer
|
9984 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
9985 | */
|
9986 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Empty;
|
9987 |
|
9988 | /**
|
9989 | * Verifies an Empty message.
|
9990 | * @param message Plain object to verify
|
9991 | * @returns `null` if valid, otherwise the reason why it is not
|
9992 | */
|
9993 | public static verify(message: { [k: string]: any }): (string|null);
|
9994 |
|
9995 | /**
|
9996 | * Creates an Empty message from a plain object. Also converts values to their respective internal types.
|
9997 | * @param object Plain object
|
9998 | * @returns Empty
|
9999 | */
|
10000 | public static fromObject(object: { [k: string]: any }): google.protobuf.Empty;
|
10001 |
|
10002 | /**
|
10003 | * Creates a plain object from an Empty message. Also converts values to other types if specified.
|
10004 | * @param message Empty
|
10005 | * @param [options] Conversion options
|
10006 | * @returns Plain object
|
10007 | */
|
10008 | public static toObject(message: google.protobuf.Empty, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
10009 |
|
10010 | /**
|
10011 | * Converts this Empty to JSON.
|
10012 | * @returns JSON object
|
10013 | */
|
10014 | public toJSON(): { [k: string]: any };
|
10015 | }
|
10016 |
|
10017 | /** Properties of a Timestamp. */
|
10018 | interface ITimestamp {
|
10019 |
|
10020 | /** Timestamp seconds */
|
10021 | seconds?: (number|Long|string|null);
|
10022 |
|
10023 | /** Timestamp nanos */
|
10024 | nanos?: (number|null);
|
10025 | }
|
10026 |
|
10027 | /** Represents a Timestamp. */
|
10028 | class Timestamp implements ITimestamp {
|
10029 |
|
10030 | /**
|
10031 | * Constructs a new Timestamp.
|
10032 | * @param [properties] Properties to set
|
10033 | */
|
10034 | constructor(properties?: google.protobuf.ITimestamp);
|
10035 |
|
10036 | /** Timestamp seconds. */
|
10037 | public seconds: (number|Long|string);
|
10038 |
|
10039 | /** Timestamp nanos. */
|
10040 | public nanos: number;
|
10041 |
|
10042 | /**
|
10043 | * Creates a new Timestamp instance using the specified properties.
|
10044 | * @param [properties] Properties to set
|
10045 | * @returns Timestamp instance
|
10046 | */
|
10047 | public static create(properties?: google.protobuf.ITimestamp): google.protobuf.Timestamp;
|
10048 |
|
10049 | /**
|
10050 | * Encodes the specified Timestamp message. Does not implicitly { google.protobuf.Timestamp.verify|verify} messages.
|
10051 | * message Timestamp message or plain object to encode
|
10052 | * [writer] Writer to encode to
|
10053 | * Writer
|
10054 | */
|
10055 | public static encode(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer;
|
10056 |
|
10057 | /**
|
10058 | * Encodes the specified Timestamp message, length delimited. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages.
|
10059 | * @param message Timestamp message or plain object to encode
|
10060 | * @param [writer] Writer to encode to
|
10061 | * @returns Writer
|
10062 | */
|
10063 | public static encodeDelimited(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer;
|
10064 |
|
10065 | /**
|
10066 | * Decodes a Timestamp message from the specified reader or buffer.
|
10067 | * @param reader Reader or buffer to decode from
|
10068 | * @param [length] Message length if known beforehand
|
10069 | * @returns Timestamp
|
10070 | * @throws {Error} If the payload is not a reader or valid buffer
|
10071 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
10072 | */
|
10073 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Timestamp;
|
10074 |
|
10075 | /**
|
10076 | * Decodes a Timestamp message from the specified reader or buffer, length delimited.
|
10077 | * @param reader Reader or buffer to decode from
|
10078 | * @returns Timestamp
|
10079 | * @throws {Error} If the payload is not a reader or valid buffer
|
10080 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
10081 | */
|
10082 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Timestamp;
|
10083 |
|
10084 | /**
|
10085 | * Verifies a Timestamp message.
|
10086 | * @param message Plain object to verify
|
10087 | * @returns `null` if valid, otherwise the reason why it is not
|
10088 | */
|
10089 | public static verify(message: { [k: string]: any }): (string|null);
|
10090 |
|
10091 | /**
|
10092 | * Creates a Timestamp message from a plain object. Also converts values to their respective internal types.
|
10093 | * @param object Plain object
|
10094 | * @returns Timestamp
|
10095 | */
|
10096 | public static fromObject(object: { [k: string]: any }): google.protobuf.Timestamp;
|
10097 |
|
10098 | /**
|
10099 | * Creates a plain object from a Timestamp message. Also converts values to other types if specified.
|
10100 | * @param message Timestamp
|
10101 | * @param [options] Conversion options
|
10102 | * @returns Plain object
|
10103 | */
|
10104 | public static toObject(message: google.protobuf.Timestamp, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
10105 |
|
10106 | /**
|
10107 | * Converts this Timestamp to JSON.
|
10108 | * @returns JSON object
|
10109 | */
|
10110 | public toJSON(): { [k: string]: any };
|
10111 | }
|
10112 |
|
10113 | /** Properties of a DoubleValue. */
|
10114 | interface IDoubleValue {
|
10115 |
|
10116 | /** DoubleValue value */
|
10117 | value?: (number|null);
|
10118 | }
|
10119 |
|
10120 | /** Represents a DoubleValue. */
|
10121 | class DoubleValue implements IDoubleValue {
|
10122 |
|
10123 | /**
|
10124 | * Constructs a new DoubleValue.
|
10125 | * @param [properties] Properties to set
|
10126 | */
|
10127 | constructor(properties?: google.protobuf.IDoubleValue);
|
10128 |
|
10129 | /** DoubleValue value. */
|
10130 | public value: number;
|
10131 |
|
10132 | /**
|
10133 | * Creates a new DoubleValue instance using the specified properties.
|
10134 | * @param [properties] Properties to set
|
10135 | * @returns DoubleValue instance
|
10136 | */
|
10137 | public static create(properties?: google.protobuf.IDoubleValue): google.protobuf.DoubleValue;
|
10138 |
|
10139 | /**
|
10140 | * Encodes the specified DoubleValue message. Does not implicitly { google.protobuf.DoubleValue.verify|verify} messages.
|
10141 | * message DoubleValue message or plain object to encode
|
10142 | * [writer] Writer to encode to
|
10143 | * Writer
|
10144 | */
|
10145 | public static encode(message: google.protobuf.IDoubleValue, writer?: $protobuf.Writer): $protobuf.Writer;
|
10146 |
|
10147 | /**
|
10148 | * Encodes the specified DoubleValue message, length delimited. Does not implicitly {@link google.protobuf.DoubleValue.verify|verify} messages.
|
10149 | * @param message DoubleValue message or plain object to encode
|
10150 | * @param [writer] Writer to encode to
|
10151 | * @returns Writer
|
10152 | */
|
10153 | public static encodeDelimited(message: google.protobuf.IDoubleValue, writer?: $protobuf.Writer): $protobuf.Writer;
|
10154 |
|
10155 | /**
|
10156 | * Decodes a DoubleValue message from the specified reader or buffer.
|
10157 | * @param reader Reader or buffer to decode from
|
10158 | * @param [length] Message length if known beforehand
|
10159 | * @returns DoubleValue
|
10160 | * @throws {Error} If the payload is not a reader or valid buffer
|
10161 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
10162 | */
|
10163 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DoubleValue;
|
10164 |
|
10165 | /**
|
10166 | * Decodes a DoubleValue message from the specified reader or buffer, length delimited.
|
10167 | * @param reader Reader or buffer to decode from
|
10168 | * @returns DoubleValue
|
10169 | * @throws {Error} If the payload is not a reader or valid buffer
|
10170 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
10171 | */
|
10172 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DoubleValue;
|
10173 |
|
10174 | /**
|
10175 | * Verifies a DoubleValue message.
|
10176 | * @param message Plain object to verify
|
10177 | * @returns `null` if valid, otherwise the reason why it is not
|
10178 | */
|
10179 | public static verify(message: { [k: string]: any }): (string|null);
|
10180 |
|
10181 | /**
|
10182 | * Creates a DoubleValue message from a plain object. Also converts values to their respective internal types.
|
10183 | * @param object Plain object
|
10184 | * @returns DoubleValue
|
10185 | */
|
10186 | public static fromObject(object: { [k: string]: any }): google.protobuf.DoubleValue;
|
10187 |
|
10188 | /**
|
10189 | * Creates a plain object from a DoubleValue message. Also converts values to other types if specified.
|
10190 | * @param message DoubleValue
|
10191 | * @param [options] Conversion options
|
10192 | * @returns Plain object
|
10193 | */
|
10194 | public static toObject(message: google.protobuf.DoubleValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
10195 |
|
10196 | /**
|
10197 | * Converts this DoubleValue to JSON.
|
10198 | * @returns JSON object
|
10199 | */
|
10200 | public toJSON(): { [k: string]: any };
|
10201 | }
|
10202 |
|
10203 | /** Properties of a FloatValue. */
|
10204 | interface IFloatValue {
|
10205 |
|
10206 | /** FloatValue value */
|
10207 | value?: (number|null);
|
10208 | }
|
10209 |
|
10210 | /** Represents a FloatValue. */
|
10211 | class FloatValue implements IFloatValue {
|
10212 |
|
10213 | /**
|
10214 | * Constructs a new FloatValue.
|
10215 | * @param [properties] Properties to set
|
10216 | */
|
10217 | constructor(properties?: google.protobuf.IFloatValue);
|
10218 |
|
10219 | /** FloatValue value. */
|
10220 | public value: number;
|
10221 |
|
10222 | /**
|
10223 | * Creates a new FloatValue instance using the specified properties.
|
10224 | * @param [properties] Properties to set
|
10225 | * @returns FloatValue instance
|
10226 | */
|
10227 | public static create(properties?: google.protobuf.IFloatValue): google.protobuf.FloatValue;
|
10228 |
|
10229 | /**
|
10230 | * Encodes the specified FloatValue message. Does not implicitly { google.protobuf.FloatValue.verify|verify} messages.
|
10231 | * message FloatValue message or plain object to encode
|
10232 | * [writer] Writer to encode to
|
10233 | * Writer
|
10234 | */
|
10235 | public static encode(message: google.protobuf.IFloatValue, writer?: $protobuf.Writer): $protobuf.Writer;
|
10236 |
|
10237 | /**
|
10238 | * Encodes the specified FloatValue message, length delimited. Does not implicitly {@link google.protobuf.FloatValue.verify|verify} messages.
|
10239 | * @param message FloatValue message or plain object to encode
|
10240 | * @param [writer] Writer to encode to
|
10241 | * @returns Writer
|
10242 | */
|
10243 | public static encodeDelimited(message: google.protobuf.IFloatValue, writer?: $protobuf.Writer): $protobuf.Writer;
|
10244 |
|
10245 | /**
|
10246 | * Decodes a FloatValue message from the specified reader or buffer.
|
10247 | * @param reader Reader or buffer to decode from
|
10248 | * @param [length] Message length if known beforehand
|
10249 | * @returns FloatValue
|
10250 | * @throws {Error} If the payload is not a reader or valid buffer
|
10251 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
10252 | */
|
10253 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FloatValue;
|
10254 |
|
10255 | /**
|
10256 | * Decodes a FloatValue message from the specified reader or buffer, length delimited.
|
10257 | * @param reader Reader or buffer to decode from
|
10258 | * @returns FloatValue
|
10259 | * @throws {Error} If the payload is not a reader or valid buffer
|
10260 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
10261 | */
|
10262 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FloatValue;
|
10263 |
|
10264 | /**
|
10265 | * Verifies a FloatValue message.
|
10266 | * @param message Plain object to verify
|
10267 | * @returns `null` if valid, otherwise the reason why it is not
|
10268 | */
|
10269 | public static verify(message: { [k: string]: any }): (string|null);
|
10270 |
|
10271 | /**
|
10272 | * Creates a FloatValue message from a plain object. Also converts values to their respective internal types.
|
10273 | * @param object Plain object
|
10274 | * @returns FloatValue
|
10275 | */
|
10276 | public static fromObject(object: { [k: string]: any }): google.protobuf.FloatValue;
|
10277 |
|
10278 | /**
|
10279 | * Creates a plain object from a FloatValue message. Also converts values to other types if specified.
|
10280 | * @param message FloatValue
|
10281 | * @param [options] Conversion options
|
10282 | * @returns Plain object
|
10283 | */
|
10284 | public static toObject(message: google.protobuf.FloatValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
10285 |
|
10286 | /**
|
10287 | * Converts this FloatValue to JSON.
|
10288 | * @returns JSON object
|
10289 | */
|
10290 | public toJSON(): { [k: string]: any };
|
10291 | }
|
10292 |
|
10293 | /** Properties of an Int64Value. */
|
10294 | interface IInt64Value {
|
10295 |
|
10296 | /** Int64Value value */
|
10297 | value?: (number|Long|string|null);
|
10298 | }
|
10299 |
|
10300 | /** Represents an Int64Value. */
|
10301 | class Int64Value implements IInt64Value {
|
10302 |
|
10303 | /**
|
10304 | * Constructs a new Int64Value.
|
10305 | * @param [properties] Properties to set
|
10306 | */
|
10307 | constructor(properties?: google.protobuf.IInt64Value);
|
10308 |
|
10309 | /** Int64Value value. */
|
10310 | public value: (number|Long|string);
|
10311 |
|
10312 | /**
|
10313 | * Creates a new Int64Value instance using the specified properties.
|
10314 | * @param [properties] Properties to set
|
10315 | * @returns Int64Value instance
|
10316 | */
|
10317 | public static create(properties?: google.protobuf.IInt64Value): google.protobuf.Int64Value;
|
10318 |
|
10319 | /**
|
10320 | * Encodes the specified Int64Value message. Does not implicitly { google.protobuf.Int64Value.verify|verify} messages.
|
10321 | * message Int64Value message or plain object to encode
|
10322 | * [writer] Writer to encode to
|
10323 | * Writer
|
10324 | */
|
10325 | public static encode(message: google.protobuf.IInt64Value, writer?: $protobuf.Writer): $protobuf.Writer;
|
10326 |
|
10327 | /**
|
10328 | * Encodes the specified Int64Value message, length delimited. Does not implicitly {@link google.protobuf.Int64Value.verify|verify} messages.
|
10329 | * @param message Int64Value message or plain object to encode
|
10330 | * @param [writer] Writer to encode to
|
10331 | * @returns Writer
|
10332 | */
|
10333 | public static encodeDelimited(message: google.protobuf.IInt64Value, writer?: $protobuf.Writer): $protobuf.Writer;
|
10334 |
|
10335 | /**
|
10336 | * Decodes an Int64Value message from the specified reader or buffer.
|
10337 | * @param reader Reader or buffer to decode from
|
10338 | * @param [length] Message length if known beforehand
|
10339 | * @returns Int64Value
|
10340 | * @throws {Error} If the payload is not a reader or valid buffer
|
10341 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
10342 | */
|
10343 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Int64Value;
|
10344 |
|
10345 | /**
|
10346 | * Decodes an Int64Value message from the specified reader or buffer, length delimited.
|
10347 | * @param reader Reader or buffer to decode from
|
10348 | * @returns Int64Value
|
10349 | * @throws {Error} If the payload is not a reader or valid buffer
|
10350 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
10351 | */
|
10352 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Int64Value;
|
10353 |
|
10354 | /**
|
10355 | * Verifies an Int64Value message.
|
10356 | * @param message Plain object to verify
|
10357 | * @returns `null` if valid, otherwise the reason why it is not
|
10358 | */
|
10359 | public static verify(message: { [k: string]: any }): (string|null);
|
10360 |
|
10361 | /**
|
10362 | * Creates an Int64Value message from a plain object. Also converts values to their respective internal types.
|
10363 | * @param object Plain object
|
10364 | * @returns Int64Value
|
10365 | */
|
10366 | public static fromObject(object: { [k: string]: any }): google.protobuf.Int64Value;
|
10367 |
|
10368 | /**
|
10369 | * Creates a plain object from an Int64Value message. Also converts values to other types if specified.
|
10370 | * @param message Int64Value
|
10371 | * @param [options] Conversion options
|
10372 | * @returns Plain object
|
10373 | */
|
10374 | public static toObject(message: google.protobuf.Int64Value, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
10375 |
|
10376 | /**
|
10377 | * Converts this Int64Value to JSON.
|
10378 | * @returns JSON object
|
10379 | */
|
10380 | public toJSON(): { [k: string]: any };
|
10381 | }
|
10382 |
|
10383 | /** Properties of a UInt64Value. */
|
10384 | interface IUInt64Value {
|
10385 |
|
10386 | /** UInt64Value value */
|
10387 | value?: (number|Long|string|null);
|
10388 | }
|
10389 |
|
10390 | /** Represents a UInt64Value. */
|
10391 | class UInt64Value implements IUInt64Value {
|
10392 |
|
10393 | /**
|
10394 | * Constructs a new UInt64Value.
|
10395 | * @param [properties] Properties to set
|
10396 | */
|
10397 | constructor(properties?: google.protobuf.IUInt64Value);
|
10398 |
|
10399 | /** UInt64Value value. */
|
10400 | public value: (number|Long|string);
|
10401 |
|
10402 | /**
|
10403 | * Creates a new UInt64Value instance using the specified properties.
|
10404 | * @param [properties] Properties to set
|
10405 | * @returns UInt64Value instance
|
10406 | */
|
10407 | public static create(properties?: google.protobuf.IUInt64Value): google.protobuf.UInt64Value;
|
10408 |
|
10409 | /**
|
10410 | * Encodes the specified UInt64Value message. Does not implicitly { google.protobuf.UInt64Value.verify|verify} messages.
|
10411 | * message UInt64Value message or plain object to encode
|
10412 | * [writer] Writer to encode to
|
10413 | * Writer
|
10414 | */
|
10415 | public static encode(message: google.protobuf.IUInt64Value, writer?: $protobuf.Writer): $protobuf.Writer;
|
10416 |
|
10417 | /**
|
10418 | * Encodes the specified UInt64Value message, length delimited. Does not implicitly {@link google.protobuf.UInt64Value.verify|verify} messages.
|
10419 | * @param message UInt64Value message or plain object to encode
|
10420 | * @param [writer] Writer to encode to
|
10421 | * @returns Writer
|
10422 | */
|
10423 | public static encodeDelimited(message: google.protobuf.IUInt64Value, writer?: $protobuf.Writer): $protobuf.Writer;
|
10424 |
|
10425 | /**
|
10426 | * Decodes a UInt64Value message from the specified reader or buffer.
|
10427 | * @param reader Reader or buffer to decode from
|
10428 | * @param [length] Message length if known beforehand
|
10429 | * @returns UInt64Value
|
10430 | * @throws {Error} If the payload is not a reader or valid buffer
|
10431 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
10432 | */
|
10433 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UInt64Value;
|
10434 |
|
10435 | /**
|
10436 | * Decodes a UInt64Value message from the specified reader or buffer, length delimited.
|
10437 | * @param reader Reader or buffer to decode from
|
10438 | * @returns UInt64Value
|
10439 | * @throws {Error} If the payload is not a reader or valid buffer
|
10440 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
10441 | */
|
10442 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UInt64Value;
|
10443 |
|
10444 | /**
|
10445 | * Verifies a UInt64Value message.
|
10446 | * @param message Plain object to verify
|
10447 | * @returns `null` if valid, otherwise the reason why it is not
|
10448 | */
|
10449 | public static verify(message: { [k: string]: any }): (string|null);
|
10450 |
|
10451 | /**
|
10452 | * Creates a UInt64Value message from a plain object. Also converts values to their respective internal types.
|
10453 | * @param object Plain object
|
10454 | * @returns UInt64Value
|
10455 | */
|
10456 | public static fromObject(object: { [k: string]: any }): google.protobuf.UInt64Value;
|
10457 |
|
10458 | /**
|
10459 | * Creates a plain object from a UInt64Value message. Also converts values to other types if specified.
|
10460 | * @param message UInt64Value
|
10461 | * @param [options] Conversion options
|
10462 | * @returns Plain object
|
10463 | */
|
10464 | public static toObject(message: google.protobuf.UInt64Value, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
10465 |
|
10466 | /**
|
10467 | * Converts this UInt64Value to JSON.
|
10468 | * @returns JSON object
|
10469 | */
|
10470 | public toJSON(): { [k: string]: any };
|
10471 | }
|
10472 |
|
10473 | /** Properties of an Int32Value. */
|
10474 | interface IInt32Value {
|
10475 |
|
10476 | /** Int32Value value */
|
10477 | value?: (number|null);
|
10478 | }
|
10479 |
|
10480 | /** Represents an Int32Value. */
|
10481 | class Int32Value implements IInt32Value {
|
10482 |
|
10483 | /**
|
10484 | * Constructs a new Int32Value.
|
10485 | * @param [properties] Properties to set
|
10486 | */
|
10487 | constructor(properties?: google.protobuf.IInt32Value);
|
10488 |
|
10489 | /** Int32Value value. */
|
10490 | public value: number;
|
10491 |
|
10492 | /**
|
10493 | * Creates a new Int32Value instance using the specified properties.
|
10494 | * @param [properties] Properties to set
|
10495 | * @returns Int32Value instance
|
10496 | */
|
10497 | public static create(properties?: google.protobuf.IInt32Value): google.protobuf.Int32Value;
|
10498 |
|
10499 | /**
|
10500 | * Encodes the specified Int32Value message. Does not implicitly { google.protobuf.Int32Value.verify|verify} messages.
|
10501 | * message Int32Value message or plain object to encode
|
10502 | * [writer] Writer to encode to
|
10503 | * Writer
|
10504 | */
|
10505 | public static encode(message: google.protobuf.IInt32Value, writer?: $protobuf.Writer): $protobuf.Writer;
|
10506 |
|
10507 | /**
|
10508 | * Encodes the specified Int32Value message, length delimited. Does not implicitly {@link google.protobuf.Int32Value.verify|verify} messages.
|
10509 | * @param message Int32Value message or plain object to encode
|
10510 | * @param [writer] Writer to encode to
|
10511 | * @returns Writer
|
10512 | */
|
10513 | public static encodeDelimited(message: google.protobuf.IInt32Value, writer?: $protobuf.Writer): $protobuf.Writer;
|
10514 |
|
10515 | /**
|
10516 | * Decodes an Int32Value message from the specified reader or buffer.
|
10517 | * @param reader Reader or buffer to decode from
|
10518 | * @param [length] Message length if known beforehand
|
10519 | * @returns Int32Value
|
10520 | * @throws {Error} If the payload is not a reader or valid buffer
|
10521 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
10522 | */
|
10523 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Int32Value;
|
10524 |
|
10525 | /**
|
10526 | * Decodes an Int32Value message from the specified reader or buffer, length delimited.
|
10527 | * @param reader Reader or buffer to decode from
|
10528 | * @returns Int32Value
|
10529 | * @throws {Error} If the payload is not a reader or valid buffer
|
10530 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
10531 | */
|
10532 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Int32Value;
|
10533 |
|
10534 | /**
|
10535 | * Verifies an Int32Value message.
|
10536 | * @param message Plain object to verify
|
10537 | * @returns `null` if valid, otherwise the reason why it is not
|
10538 | */
|
10539 | public static verify(message: { [k: string]: any }): (string|null);
|
10540 |
|
10541 | /**
|
10542 | * Creates an Int32Value message from a plain object. Also converts values to their respective internal types.
|
10543 | * @param object Plain object
|
10544 | * @returns Int32Value
|
10545 | */
|
10546 | public static fromObject(object: { [k: string]: any }): google.protobuf.Int32Value;
|
10547 |
|
10548 | /**
|
10549 | * Creates a plain object from an Int32Value message. Also converts values to other types if specified.
|
10550 | * @param message Int32Value
|
10551 | * @param [options] Conversion options
|
10552 | * @returns Plain object
|
10553 | */
|
10554 | public static toObject(message: google.protobuf.Int32Value, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
10555 |
|
10556 | /**
|
10557 | * Converts this Int32Value to JSON.
|
10558 | * @returns JSON object
|
10559 | */
|
10560 | public toJSON(): { [k: string]: any };
|
10561 | }
|
10562 |
|
10563 | /** Properties of a UInt32Value. */
|
10564 | interface IUInt32Value {
|
10565 |
|
10566 | /** UInt32Value value */
|
10567 | value?: (number|null);
|
10568 | }
|
10569 |
|
10570 | /** Represents a UInt32Value. */
|
10571 | class UInt32Value implements IUInt32Value {
|
10572 |
|
10573 | /**
|
10574 | * Constructs a new UInt32Value.
|
10575 | * @param [properties] Properties to set
|
10576 | */
|
10577 | constructor(properties?: google.protobuf.IUInt32Value);
|
10578 |
|
10579 | /** UInt32Value value. */
|
10580 | public value: number;
|
10581 |
|
10582 | /**
|
10583 | * Creates a new UInt32Value instance using the specified properties.
|
10584 | * @param [properties] Properties to set
|
10585 | * @returns UInt32Value instance
|
10586 | */
|
10587 | public static create(properties?: google.protobuf.IUInt32Value): google.protobuf.UInt32Value;
|
10588 |
|
10589 | /**
|
10590 | * Encodes the specified UInt32Value message. Does not implicitly { google.protobuf.UInt32Value.verify|verify} messages.
|
10591 | * message UInt32Value message or plain object to encode
|
10592 | * [writer] Writer to encode to
|
10593 | * Writer
|
10594 | */
|
10595 | public static encode(message: google.protobuf.IUInt32Value, writer?: $protobuf.Writer): $protobuf.Writer;
|
10596 |
|
10597 | /**
|
10598 | * Encodes the specified UInt32Value message, length delimited. Does not implicitly {@link google.protobuf.UInt32Value.verify|verify} messages.
|
10599 | * @param message UInt32Value message or plain object to encode
|
10600 | * @param [writer] Writer to encode to
|
10601 | * @returns Writer
|
10602 | */
|
10603 | public static encodeDelimited(message: google.protobuf.IUInt32Value, writer?: $protobuf.Writer): $protobuf.Writer;
|
10604 |
|
10605 | /**
|
10606 | * Decodes a UInt32Value message from the specified reader or buffer.
|
10607 | * @param reader Reader or buffer to decode from
|
10608 | * @param [length] Message length if known beforehand
|
10609 | * @returns UInt32Value
|
10610 | * @throws {Error} If the payload is not a reader or valid buffer
|
10611 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
10612 | */
|
10613 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UInt32Value;
|
10614 |
|
10615 | /**
|
10616 | * Decodes a UInt32Value message from the specified reader or buffer, length delimited.
|
10617 | * @param reader Reader or buffer to decode from
|
10618 | * @returns UInt32Value
|
10619 | * @throws {Error} If the payload is not a reader or valid buffer
|
10620 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
10621 | */
|
10622 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UInt32Value;
|
10623 |
|
10624 | /**
|
10625 | * Verifies a UInt32Value message.
|
10626 | * @param message Plain object to verify
|
10627 | * @returns `null` if valid, otherwise the reason why it is not
|
10628 | */
|
10629 | public static verify(message: { [k: string]: any }): (string|null);
|
10630 |
|
10631 | /**
|
10632 | * Creates a UInt32Value message from a plain object. Also converts values to their respective internal types.
|
10633 | * @param object Plain object
|
10634 | * @returns UInt32Value
|
10635 | */
|
10636 | public static fromObject(object: { [k: string]: any }): google.protobuf.UInt32Value;
|
10637 |
|
10638 | /**
|
10639 | * Creates a plain object from a UInt32Value message. Also converts values to other types if specified.
|
10640 | * @param message UInt32Value
|
10641 | * @param [options] Conversion options
|
10642 | * @returns Plain object
|
10643 | */
|
10644 | public static toObject(message: google.protobuf.UInt32Value, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
10645 |
|
10646 | /**
|
10647 | * Converts this UInt32Value to JSON.
|
10648 | * @returns JSON object
|
10649 | */
|
10650 | public toJSON(): { [k: string]: any };
|
10651 | }
|
10652 |
|
10653 | /** Properties of a BoolValue. */
|
10654 | interface IBoolValue {
|
10655 |
|
10656 | /** BoolValue value */
|
10657 | value?: (boolean|null);
|
10658 | }
|
10659 |
|
10660 | /** Represents a BoolValue. */
|
10661 | class BoolValue implements IBoolValue {
|
10662 |
|
10663 | /**
|
10664 | * Constructs a new BoolValue.
|
10665 | * @param [properties] Properties to set
|
10666 | */
|
10667 | constructor(properties?: google.protobuf.IBoolValue);
|
10668 |
|
10669 | /** BoolValue value. */
|
10670 | public value: boolean;
|
10671 |
|
10672 | /**
|
10673 | * Creates a new BoolValue instance using the specified properties.
|
10674 | * @param [properties] Properties to set
|
10675 | * @returns BoolValue instance
|
10676 | */
|
10677 | public static create(properties?: google.protobuf.IBoolValue): google.protobuf.BoolValue;
|
10678 |
|
10679 | /**
|
10680 | * Encodes the specified BoolValue message. Does not implicitly { google.protobuf.BoolValue.verify|verify} messages.
|
10681 | * message BoolValue message or plain object to encode
|
10682 | * [writer] Writer to encode to
|
10683 | * Writer
|
10684 | */
|
10685 | public static encode(message: google.protobuf.IBoolValue, writer?: $protobuf.Writer): $protobuf.Writer;
|
10686 |
|
10687 | /**
|
10688 | * Encodes the specified BoolValue message, length delimited. Does not implicitly {@link google.protobuf.BoolValue.verify|verify} messages.
|
10689 | * @param message BoolValue message or plain object to encode
|
10690 | * @param [writer] Writer to encode to
|
10691 | * @returns Writer
|
10692 | */
|
10693 | public static encodeDelimited(message: google.protobuf.IBoolValue, writer?: $protobuf.Writer): $protobuf.Writer;
|
10694 |
|
10695 | /**
|
10696 | * Decodes a BoolValue message from the specified reader or buffer.
|
10697 | * @param reader Reader or buffer to decode from
|
10698 | * @param [length] Message length if known beforehand
|
10699 | * @returns BoolValue
|
10700 | * @throws {Error} If the payload is not a reader or valid buffer
|
10701 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
10702 | */
|
10703 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.BoolValue;
|
10704 |
|
10705 | /**
|
10706 | * Decodes a BoolValue message from the specified reader or buffer, length delimited.
|
10707 | * @param reader Reader or buffer to decode from
|
10708 | * @returns BoolValue
|
10709 | * @throws {Error} If the payload is not a reader or valid buffer
|
10710 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
10711 | */
|
10712 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.BoolValue;
|
10713 |
|
10714 | /**
|
10715 | * Verifies a BoolValue message.
|
10716 | * @param message Plain object to verify
|
10717 | * @returns `null` if valid, otherwise the reason why it is not
|
10718 | */
|
10719 | public static verify(message: { [k: string]: any }): (string|null);
|
10720 |
|
10721 | /**
|
10722 | * Creates a BoolValue message from a plain object. Also converts values to their respective internal types.
|
10723 | * @param object Plain object
|
10724 | * @returns BoolValue
|
10725 | */
|
10726 | public static fromObject(object: { [k: string]: any }): google.protobuf.BoolValue;
|
10727 |
|
10728 | /**
|
10729 | * Creates a plain object from a BoolValue message. Also converts values to other types if specified.
|
10730 | * @param message BoolValue
|
10731 | * @param [options] Conversion options
|
10732 | * @returns Plain object
|
10733 | */
|
10734 | public static toObject(message: google.protobuf.BoolValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
10735 |
|
10736 | /**
|
10737 | * Converts this BoolValue to JSON.
|
10738 | * @returns JSON object
|
10739 | */
|
10740 | public toJSON(): { [k: string]: any };
|
10741 | }
|
10742 |
|
10743 | /** Properties of a StringValue. */
|
10744 | interface IStringValue {
|
10745 |
|
10746 | /** StringValue value */
|
10747 | value?: (string|null);
|
10748 | }
|
10749 |
|
10750 | /** Represents a StringValue. */
|
10751 | class StringValue implements IStringValue {
|
10752 |
|
10753 | /**
|
10754 | * Constructs a new StringValue.
|
10755 | * @param [properties] Properties to set
|
10756 | */
|
10757 | constructor(properties?: google.protobuf.IStringValue);
|
10758 |
|
10759 | /** StringValue value. */
|
10760 | public value: string;
|
10761 |
|
10762 | /**
|
10763 | * Creates a new StringValue instance using the specified properties.
|
10764 | * @param [properties] Properties to set
|
10765 | * @returns StringValue instance
|
10766 | */
|
10767 | public static create(properties?: google.protobuf.IStringValue): google.protobuf.StringValue;
|
10768 |
|
10769 | /**
|
10770 | * Encodes the specified StringValue message. Does not implicitly { google.protobuf.StringValue.verify|verify} messages.
|
10771 | * message StringValue message or plain object to encode
|
10772 | * [writer] Writer to encode to
|
10773 | * Writer
|
10774 | */
|
10775 | public static encode(message: google.protobuf.IStringValue, writer?: $protobuf.Writer): $protobuf.Writer;
|
10776 |
|
10777 | /**
|
10778 | * Encodes the specified StringValue message, length delimited. Does not implicitly {@link google.protobuf.StringValue.verify|verify} messages.
|
10779 | * @param message StringValue message or plain object to encode
|
10780 | * @param [writer] Writer to encode to
|
10781 | * @returns Writer
|
10782 | */
|
10783 | public static encodeDelimited(message: google.protobuf.IStringValue, writer?: $protobuf.Writer): $protobuf.Writer;
|
10784 |
|
10785 | /**
|
10786 | * Decodes a StringValue message from the specified reader or buffer.
|
10787 | * @param reader Reader or buffer to decode from
|
10788 | * @param [length] Message length if known beforehand
|
10789 | * @returns StringValue
|
10790 | * @throws {Error} If the payload is not a reader or valid buffer
|
10791 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
10792 | */
|
10793 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.StringValue;
|
10794 |
|
10795 | /**
|
10796 | * Decodes a StringValue message from the specified reader or buffer, length delimited.
|
10797 | * @param reader Reader or buffer to decode from
|
10798 | * @returns StringValue
|
10799 | * @throws {Error} If the payload is not a reader or valid buffer
|
10800 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
10801 | */
|
10802 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.StringValue;
|
10803 |
|
10804 | /**
|
10805 | * Verifies a StringValue message.
|
10806 | * @param message Plain object to verify
|
10807 | * @returns `null` if valid, otherwise the reason why it is not
|
10808 | */
|
10809 | public static verify(message: { [k: string]: any }): (string|null);
|
10810 |
|
10811 | /**
|
10812 | * Creates a StringValue message from a plain object. Also converts values to their respective internal types.
|
10813 | * @param object Plain object
|
10814 | * @returns StringValue
|
10815 | */
|
10816 | public static fromObject(object: { [k: string]: any }): google.protobuf.StringValue;
|
10817 |
|
10818 | /**
|
10819 | * Creates a plain object from a StringValue message. Also converts values to other types if specified.
|
10820 | * @param message StringValue
|
10821 | * @param [options] Conversion options
|
10822 | * @returns Plain object
|
10823 | */
|
10824 | public static toObject(message: google.protobuf.StringValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
10825 |
|
10826 | /**
|
10827 | * Converts this StringValue to JSON.
|
10828 | * @returns JSON object
|
10829 | */
|
10830 | public toJSON(): { [k: string]: any };
|
10831 | }
|
10832 |
|
10833 | /** Properties of a BytesValue. */
|
10834 | interface IBytesValue {
|
10835 |
|
10836 | /** BytesValue value */
|
10837 | value?: (Uint8Array|string|null);
|
10838 | }
|
10839 |
|
10840 | /** Represents a BytesValue. */
|
10841 | class BytesValue implements IBytesValue {
|
10842 |
|
10843 | /**
|
10844 | * Constructs a new BytesValue.
|
10845 | * @param [properties] Properties to set
|
10846 | */
|
10847 | constructor(properties?: google.protobuf.IBytesValue);
|
10848 |
|
10849 | /** BytesValue value. */
|
10850 | public value: (Uint8Array|string);
|
10851 |
|
10852 | /**
|
10853 | * Creates a new BytesValue instance using the specified properties.
|
10854 | * @param [properties] Properties to set
|
10855 | * @returns BytesValue instance
|
10856 | */
|
10857 | public static create(properties?: google.protobuf.IBytesValue): google.protobuf.BytesValue;
|
10858 |
|
10859 | /**
|
10860 | * Encodes the specified BytesValue message. Does not implicitly { google.protobuf.BytesValue.verify|verify} messages.
|
10861 | * message BytesValue message or plain object to encode
|
10862 | * [writer] Writer to encode to
|
10863 | * Writer
|
10864 | */
|
10865 | public static encode(message: google.protobuf.IBytesValue, writer?: $protobuf.Writer): $protobuf.Writer;
|
10866 |
|
10867 | /**
|
10868 | * Encodes the specified BytesValue message, length delimited. Does not implicitly {@link google.protobuf.BytesValue.verify|verify} messages.
|
10869 | * @param message BytesValue message or plain object to encode
|
10870 | * @param [writer] Writer to encode to
|
10871 | * @returns Writer
|
10872 | */
|
10873 | public static encodeDelimited(message: google.protobuf.IBytesValue, writer?: $protobuf.Writer): $protobuf.Writer;
|
10874 |
|
10875 | /**
|
10876 | * Decodes a BytesValue message from the specified reader or buffer.
|
10877 | * @param reader Reader or buffer to decode from
|
10878 | * @param [length] Message length if known beforehand
|
10879 | * @returns BytesValue
|
10880 | * @throws {Error} If the payload is not a reader or valid buffer
|
10881 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
10882 | */
|
10883 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.BytesValue;
|
10884 |
|
10885 | /**
|
10886 | * Decodes a BytesValue message from the specified reader or buffer, length delimited.
|
10887 | * @param reader Reader or buffer to decode from
|
10888 | * @returns BytesValue
|
10889 | * @throws {Error} If the payload is not a reader or valid buffer
|
10890 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
10891 | */
|
10892 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.BytesValue;
|
10893 |
|
10894 | /**
|
10895 | * Verifies a BytesValue message.
|
10896 | * @param message Plain object to verify
|
10897 | * @returns `null` if valid, otherwise the reason why it is not
|
10898 | */
|
10899 | public static verify(message: { [k: string]: any }): (string|null);
|
10900 |
|
10901 | /**
|
10902 | * Creates a BytesValue message from a plain object. Also converts values to their respective internal types.
|
10903 | * @param object Plain object
|
10904 | * @returns BytesValue
|
10905 | */
|
10906 | public static fromObject(object: { [k: string]: any }): google.protobuf.BytesValue;
|
10907 |
|
10908 | /**
|
10909 | * Creates a plain object from a BytesValue message. Also converts values to other types if specified.
|
10910 | * @param message BytesValue
|
10911 | * @param [options] Conversion options
|
10912 | * @returns Plain object
|
10913 | */
|
10914 | public static toObject(message: google.protobuf.BytesValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
10915 |
|
10916 | /**
|
10917 | * Converts this BytesValue to JSON.
|
10918 | * @returns JSON object
|
10919 | */
|
10920 | public toJSON(): { [k: string]: any };
|
10921 | }
|
10922 |
|
10923 | /** Properties of a FieldMask. */
|
10924 | interface IFieldMask {
|
10925 |
|
10926 | /** FieldMask paths */
|
10927 | paths?: (string[]|null);
|
10928 | }
|
10929 |
|
10930 | /** Represents a FieldMask. */
|
10931 | class FieldMask implements IFieldMask {
|
10932 |
|
10933 | /**
|
10934 | * Constructs a new FieldMask.
|
10935 | * @param [properties] Properties to set
|
10936 | */
|
10937 | constructor(properties?: google.protobuf.IFieldMask);
|
10938 |
|
10939 | /** FieldMask paths. */
|
10940 | public paths: string[];
|
10941 |
|
10942 | /**
|
10943 | * Creates a new FieldMask instance using the specified properties.
|
10944 | * @param [properties] Properties to set
|
10945 | * @returns FieldMask instance
|
10946 | */
|
10947 | public static create(properties?: google.protobuf.IFieldMask): google.protobuf.FieldMask;
|
10948 |
|
10949 | /**
|
10950 | * Encodes the specified FieldMask message. Does not implicitly { google.protobuf.FieldMask.verify|verify} messages.
|
10951 | * message FieldMask message or plain object to encode
|
10952 | * [writer] Writer to encode to
|
10953 | * Writer
|
10954 | */
|
10955 | public static encode(message: google.protobuf.IFieldMask, writer?: $protobuf.Writer): $protobuf.Writer;
|
10956 |
|
10957 | /**
|
10958 | * Encodes the specified FieldMask message, length delimited. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages.
|
10959 | * @param message FieldMask message or plain object to encode
|
10960 | * @param [writer] Writer to encode to
|
10961 | * @returns Writer
|
10962 | */
|
10963 | public static encodeDelimited(message: google.protobuf.IFieldMask, writer?: $protobuf.Writer): $protobuf.Writer;
|
10964 |
|
10965 | /**
|
10966 | * Decodes a FieldMask message from the specified reader or buffer.
|
10967 | * @param reader Reader or buffer to decode from
|
10968 | * @param [length] Message length if known beforehand
|
10969 | * @returns FieldMask
|
10970 | * @throws {Error} If the payload is not a reader or valid buffer
|
10971 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
10972 | */
|
10973 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldMask;
|
10974 |
|
10975 | /**
|
10976 | * Decodes a FieldMask message from the specified reader or buffer, length delimited.
|
10977 | * @param reader Reader or buffer to decode from
|
10978 | * @returns FieldMask
|
10979 | * @throws {Error} If the payload is not a reader or valid buffer
|
10980 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
10981 | */
|
10982 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldMask;
|
10983 |
|
10984 | /**
|
10985 | * Verifies a FieldMask message.
|
10986 | * @param message Plain object to verify
|
10987 | * @returns `null` if valid, otherwise the reason why it is not
|
10988 | */
|
10989 | public static verify(message: { [k: string]: any }): (string|null);
|
10990 |
|
10991 | /**
|
10992 | * Creates a FieldMask message from a plain object. Also converts values to their respective internal types.
|
10993 | * @param object Plain object
|
10994 | * @returns FieldMask
|
10995 | */
|
10996 | public static fromObject(object: { [k: string]: any }): google.protobuf.FieldMask;
|
10997 |
|
10998 | /**
|
10999 | * Creates a plain object from a FieldMask message. Also converts values to other types if specified.
|
11000 | * @param message FieldMask
|
11001 | * @param [options] Conversion options
|
11002 | * @returns Plain object
|
11003 | */
|
11004 | public static toObject(message: google.protobuf.FieldMask, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
11005 |
|
11006 | /**
|
11007 | * Converts this FieldMask to JSON.
|
11008 | * @returns JSON object
|
11009 | */
|
11010 | public toJSON(): { [k: string]: any };
|
11011 | }
|
11012 | }
|
11013 |
|
11014 | /** Namespace longrunning. */
|
11015 | namespace longrunning {
|
11016 |
|
11017 | /** Represents an Operations */
|
11018 | class Operations extends $protobuf.rpc.Service {
|
11019 |
|
11020 | /**
|
11021 | * Constructs a new Operations service.
|
11022 | * @param rpcImpl RPC implementation
|
11023 | * @param [requestDelimited=false] Whether requests are length-delimited
|
11024 | * @param [responseDelimited=false] Whether responses are length-delimited
|
11025 | */
|
11026 | constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
|
11027 |
|
11028 | /**
|
11029 | * Creates new Operations service using the specified rpc implementation.
|
11030 | * @param rpcImpl RPC implementation
|
11031 | * @param [requestDelimited=false] Whether requests are length-delimited
|
11032 | * @param [responseDelimited=false] Whether responses are length-delimited
|
11033 | * @returns RPC service. Useful where requests and/or responses are streamed.
|
11034 | */
|
11035 | public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Operations;
|
11036 |
|
11037 | /**
|
11038 | * Calls ListOperations.
|
11039 | * @param request ListOperationsRequest message or plain object
|
11040 | * @param callback Node-style callback called with the error, if any, and ListOperationsResponse
|
11041 | */
|
11042 | public listOperations(request: google.longrunning.IListOperationsRequest, callback: google.longrunning.Operations.ListOperationsCallback): void;
|
11043 |
|
11044 | /**
|
11045 | * Calls ListOperations.
|
11046 | * @param request ListOperationsRequest message or plain object
|
11047 | * @returns Promise
|
11048 | */
|
11049 | public listOperations(request: google.longrunning.IListOperationsRequest): Promise<google.longrunning.ListOperationsResponse>;
|
11050 |
|
11051 | /**
|
11052 | * Calls GetOperation.
|
11053 | * @param request GetOperationRequest message or plain object
|
11054 | * @param callback Node-style callback called with the error, if any, and Operation
|
11055 | */
|
11056 | public getOperation(request: google.longrunning.IGetOperationRequest, callback: google.longrunning.Operations.GetOperationCallback): void;
|
11057 |
|
11058 | /**
|
11059 | * Calls GetOperation.
|
11060 | * @param request GetOperationRequest message or plain object
|
11061 | * @returns Promise
|
11062 | */
|
11063 | public getOperation(request: google.longrunning.IGetOperationRequest): Promise<google.longrunning.Operation>;
|
11064 |
|
11065 | /**
|
11066 | * Calls DeleteOperation.
|
11067 | * @param request DeleteOperationRequest message or plain object
|
11068 | * @param callback Node-style callback called with the error, if any, and Empty
|
11069 | */
|
11070 | public deleteOperation(request: google.longrunning.IDeleteOperationRequest, callback: google.longrunning.Operations.DeleteOperationCallback): void;
|
11071 |
|
11072 | /**
|
11073 | * Calls DeleteOperation.
|
11074 | * @param request DeleteOperationRequest message or plain object
|
11075 | * @returns Promise
|
11076 | */
|
11077 | public deleteOperation(request: google.longrunning.IDeleteOperationRequest): Promise<google.protobuf.Empty>;
|
11078 |
|
11079 | /**
|
11080 | * Calls CancelOperation.
|
11081 | * @param request CancelOperationRequest message or plain object
|
11082 | * @param callback Node-style callback called with the error, if any, and Empty
|
11083 | */
|
11084 | public cancelOperation(request: google.longrunning.ICancelOperationRequest, callback: google.longrunning.Operations.CancelOperationCallback): void;
|
11085 |
|
11086 | /**
|
11087 | * Calls CancelOperation.
|
11088 | * @param request CancelOperationRequest message or plain object
|
11089 | * @returns Promise
|
11090 | */
|
11091 | public cancelOperation(request: google.longrunning.ICancelOperationRequest): Promise<google.protobuf.Empty>;
|
11092 |
|
11093 | /**
|
11094 | * Calls WaitOperation.
|
11095 | * @param request WaitOperationRequest message or plain object
|
11096 | * @param callback Node-style callback called with the error, if any, and Operation
|
11097 | */
|
11098 | public waitOperation(request: google.longrunning.IWaitOperationRequest, callback: google.longrunning.Operations.WaitOperationCallback): void;
|
11099 |
|
11100 | /**
|
11101 | * Calls WaitOperation.
|
11102 | * @param request WaitOperationRequest message or plain object
|
11103 | * @returns Promise
|
11104 | */
|
11105 | public waitOperation(request: google.longrunning.IWaitOperationRequest): Promise<google.longrunning.Operation>;
|
11106 | }
|
11107 |
|
11108 | namespace Operations {
|
11109 |
|
11110 | /**
|
11111 | * Callback as used by {@link google.longrunning.Operations#listOperations}.
|
11112 | * @param error Error, if any
|
11113 | * @param [response] ListOperationsResponse
|
11114 | */
|
11115 | type ListOperationsCallback = (error: (Error|null), response?: google.longrunning.ListOperationsResponse) => void;
|
11116 |
|
11117 | /**
|
11118 | * Callback as used by {@link google.longrunning.Operations#getOperation}.
|
11119 | * @param error Error, if any
|
11120 | * @param [response] Operation
|
11121 | */
|
11122 | type GetOperationCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
|
11123 |
|
11124 | /**
|
11125 | * Callback as used by {@link google.longrunning.Operations#deleteOperation}.
|
11126 | * @param error Error, if any
|
11127 | * @param [response] Empty
|
11128 | */
|
11129 | type DeleteOperationCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
|
11130 |
|
11131 | /**
|
11132 | * Callback as used by {@link google.longrunning.Operations#cancelOperation}.
|
11133 | * @param error Error, if any
|
11134 | * @param [response] Empty
|
11135 | */
|
11136 | type CancelOperationCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
|
11137 |
|
11138 | /**
|
11139 | * Callback as used by {@link google.longrunning.Operations#waitOperation}.
|
11140 | * @param error Error, if any
|
11141 | * @param [response] Operation
|
11142 | */
|
11143 | type WaitOperationCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
|
11144 | }
|
11145 |
|
11146 | /** Properties of an Operation. */
|
11147 | interface IOperation {
|
11148 |
|
11149 | /** Operation name */
|
11150 | name?: (string|null);
|
11151 |
|
11152 | /** Operation metadata */
|
11153 | metadata?: (google.protobuf.IAny|null);
|
11154 |
|
11155 | /** Operation done */
|
11156 | done?: (boolean|null);
|
11157 |
|
11158 | /** Operation error */
|
11159 | error?: (google.rpc.IStatus|null);
|
11160 |
|
11161 | /** Operation response */
|
11162 | response?: (google.protobuf.IAny|null);
|
11163 | }
|
11164 |
|
11165 | /** Represents an Operation. */
|
11166 | class Operation implements IOperation {
|
11167 |
|
11168 | /**
|
11169 | * Constructs a new Operation.
|
11170 | * @param [properties] Properties to set
|
11171 | */
|
11172 | constructor(properties?: google.longrunning.IOperation);
|
11173 |
|
11174 | /** Operation name. */
|
11175 | public name: string;
|
11176 |
|
11177 | /** Operation metadata. */
|
11178 | public metadata?: (google.protobuf.IAny|null);
|
11179 |
|
11180 | /** Operation done. */
|
11181 | public done: boolean;
|
11182 |
|
11183 | /** Operation error. */
|
11184 | public error?: (google.rpc.IStatus|null);
|
11185 |
|
11186 | /** Operation response. */
|
11187 | public response?: (google.protobuf.IAny|null);
|
11188 |
|
11189 | /** Operation result. */
|
11190 | public result?: ("error"|"response");
|
11191 |
|
11192 | /**
|
11193 | * Creates a new Operation instance using the specified properties.
|
11194 | * @param [properties] Properties to set
|
11195 | * @returns Operation instance
|
11196 | */
|
11197 | public static create(properties?: google.longrunning.IOperation): google.longrunning.Operation;
|
11198 |
|
11199 | /**
|
11200 | * Encodes the specified Operation message. Does not implicitly { google.longrunning.Operation.verify|verify} messages.
|
11201 | * message Operation message or plain object to encode
|
11202 | * [writer] Writer to encode to
|
11203 | * Writer
|
11204 | */
|
11205 | public static encode(message: google.longrunning.IOperation, writer?: $protobuf.Writer): $protobuf.Writer;
|
11206 |
|
11207 | /**
|
11208 | * Encodes the specified Operation message, length delimited. Does not implicitly {@link google.longrunning.Operation.verify|verify} messages.
|
11209 | * @param message Operation message or plain object to encode
|
11210 | * @param [writer] Writer to encode to
|
11211 | * @returns Writer
|
11212 | */
|
11213 | public static encodeDelimited(message: google.longrunning.IOperation, writer?: $protobuf.Writer): $protobuf.Writer;
|
11214 |
|
11215 | /**
|
11216 | * Decodes an Operation message from the specified reader or buffer.
|
11217 | * @param reader Reader or buffer to decode from
|
11218 | * @param [length] Message length if known beforehand
|
11219 | * @returns Operation
|
11220 | * @throws {Error} If the payload is not a reader or valid buffer
|
11221 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
11222 | */
|
11223 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.Operation;
|
11224 |
|
11225 | /**
|
11226 | * Decodes an Operation message from the specified reader or buffer, length delimited.
|
11227 | * @param reader Reader or buffer to decode from
|
11228 | * @returns Operation
|
11229 | * @throws {Error} If the payload is not a reader or valid buffer
|
11230 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
11231 | */
|
11232 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.Operation;
|
11233 |
|
11234 | /**
|
11235 | * Verifies an Operation message.
|
11236 | * @param message Plain object to verify
|
11237 | * @returns `null` if valid, otherwise the reason why it is not
|
11238 | */
|
11239 | public static verify(message: { [k: string]: any }): (string|null);
|
11240 |
|
11241 | /**
|
11242 | * Creates an Operation message from a plain object. Also converts values to their respective internal types.
|
11243 | * @param object Plain object
|
11244 | * @returns Operation
|
11245 | */
|
11246 | public static fromObject(object: { [k: string]: any }): google.longrunning.Operation;
|
11247 |
|
11248 | /**
|
11249 | * Creates a plain object from an Operation message. Also converts values to other types if specified.
|
11250 | * @param message Operation
|
11251 | * @param [options] Conversion options
|
11252 | * @returns Plain object
|
11253 | */
|
11254 | public static toObject(message: google.longrunning.Operation, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
11255 |
|
11256 | /**
|
11257 | * Converts this Operation to JSON.
|
11258 | * @returns JSON object
|
11259 | */
|
11260 | public toJSON(): { [k: string]: any };
|
11261 | }
|
11262 |
|
11263 | /** Properties of a GetOperationRequest. */
|
11264 | interface IGetOperationRequest {
|
11265 |
|
11266 | /** GetOperationRequest name */
|
11267 | name?: (string|null);
|
11268 | }
|
11269 |
|
11270 | /** Represents a GetOperationRequest. */
|
11271 | class GetOperationRequest implements IGetOperationRequest {
|
11272 |
|
11273 | /**
|
11274 | * Constructs a new GetOperationRequest.
|
11275 | * @param [properties] Properties to set
|
11276 | */
|
11277 | constructor(properties?: google.longrunning.IGetOperationRequest);
|
11278 |
|
11279 | /** GetOperationRequest name. */
|
11280 | public name: string;
|
11281 |
|
11282 | /**
|
11283 | * Creates a new GetOperationRequest instance using the specified properties.
|
11284 | * @param [properties] Properties to set
|
11285 | * @returns GetOperationRequest instance
|
11286 | */
|
11287 | public static create(properties?: google.longrunning.IGetOperationRequest): google.longrunning.GetOperationRequest;
|
11288 |
|
11289 | /**
|
11290 | * Encodes the specified GetOperationRequest message. Does not implicitly { google.longrunning.GetOperationRequest.verify|verify} messages.
|
11291 | * message GetOperationRequest message or plain object to encode
|
11292 | * [writer] Writer to encode to
|
11293 | * Writer
|
11294 | */
|
11295 | public static encode(message: google.longrunning.IGetOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
11296 |
|
11297 | /**
|
11298 | * Encodes the specified GetOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.GetOperationRequest.verify|verify} messages.
|
11299 | * @param message GetOperationRequest message or plain object to encode
|
11300 | * @param [writer] Writer to encode to
|
11301 | * @returns Writer
|
11302 | */
|
11303 | public static encodeDelimited(message: google.longrunning.IGetOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
11304 |
|
11305 | /**
|
11306 | * Decodes a GetOperationRequest message from the specified reader or buffer.
|
11307 | * @param reader Reader or buffer to decode from
|
11308 | * @param [length] Message length if known beforehand
|
11309 | * @returns GetOperationRequest
|
11310 | * @throws {Error} If the payload is not a reader or valid buffer
|
11311 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
11312 | */
|
11313 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.GetOperationRequest;
|
11314 |
|
11315 | /**
|
11316 | * Decodes a GetOperationRequest message from the specified reader or buffer, length delimited.
|
11317 | * @param reader Reader or buffer to decode from
|
11318 | * @returns GetOperationRequest
|
11319 | * @throws {Error} If the payload is not a reader or valid buffer
|
11320 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
11321 | */
|
11322 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.GetOperationRequest;
|
11323 |
|
11324 | /**
|
11325 | * Verifies a GetOperationRequest message.
|
11326 | * @param message Plain object to verify
|
11327 | * @returns `null` if valid, otherwise the reason why it is not
|
11328 | */
|
11329 | public static verify(message: { [k: string]: any }): (string|null);
|
11330 |
|
11331 | /**
|
11332 | * Creates a GetOperationRequest message from a plain object. Also converts values to their respective internal types.
|
11333 | * @param object Plain object
|
11334 | * @returns GetOperationRequest
|
11335 | */
|
11336 | public static fromObject(object: { [k: string]: any }): google.longrunning.GetOperationRequest;
|
11337 |
|
11338 | /**
|
11339 | * Creates a plain object from a GetOperationRequest message. Also converts values to other types if specified.
|
11340 | * @param message GetOperationRequest
|
11341 | * @param [options] Conversion options
|
11342 | * @returns Plain object
|
11343 | */
|
11344 | public static toObject(message: google.longrunning.GetOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
11345 |
|
11346 | /**
|
11347 | * Converts this GetOperationRequest to JSON.
|
11348 | * @returns JSON object
|
11349 | */
|
11350 | public toJSON(): { [k: string]: any };
|
11351 | }
|
11352 |
|
11353 | /** Properties of a ListOperationsRequest. */
|
11354 | interface IListOperationsRequest {
|
11355 |
|
11356 | /** ListOperationsRequest name */
|
11357 | name?: (string|null);
|
11358 |
|
11359 | /** ListOperationsRequest filter */
|
11360 | filter?: (string|null);
|
11361 |
|
11362 | /** ListOperationsRequest pageSize */
|
11363 | pageSize?: (number|null);
|
11364 |
|
11365 | /** ListOperationsRequest pageToken */
|
11366 | pageToken?: (string|null);
|
11367 | }
|
11368 |
|
11369 | /** Represents a ListOperationsRequest. */
|
11370 | class ListOperationsRequest implements IListOperationsRequest {
|
11371 |
|
11372 | /**
|
11373 | * Constructs a new ListOperationsRequest.
|
11374 | * @param [properties] Properties to set
|
11375 | */
|
11376 | constructor(properties?: google.longrunning.IListOperationsRequest);
|
11377 |
|
11378 | /** ListOperationsRequest name. */
|
11379 | public name: string;
|
11380 |
|
11381 | /** ListOperationsRequest filter. */
|
11382 | public filter: string;
|
11383 |
|
11384 | /** ListOperationsRequest pageSize. */
|
11385 | public pageSize: number;
|
11386 |
|
11387 | /** ListOperationsRequest pageToken. */
|
11388 | public pageToken: string;
|
11389 |
|
11390 | /**
|
11391 | * Creates a new ListOperationsRequest instance using the specified properties.
|
11392 | * @param [properties] Properties to set
|
11393 | * @returns ListOperationsRequest instance
|
11394 | */
|
11395 | public static create(properties?: google.longrunning.IListOperationsRequest): google.longrunning.ListOperationsRequest;
|
11396 |
|
11397 | /**
|
11398 | * Encodes the specified ListOperationsRequest message. Does not implicitly { google.longrunning.ListOperationsRequest.verify|verify} messages.
|
11399 | * message ListOperationsRequest message or plain object to encode
|
11400 | * [writer] Writer to encode to
|
11401 | * Writer
|
11402 | */
|
11403 | public static encode(message: google.longrunning.IListOperationsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
11404 |
|
11405 | /**
|
11406 | * Encodes the specified ListOperationsRequest message, length delimited. Does not implicitly {@link google.longrunning.ListOperationsRequest.verify|verify} messages.
|
11407 | * @param message ListOperationsRequest message or plain object to encode
|
11408 | * @param [writer] Writer to encode to
|
11409 | * @returns Writer
|
11410 | */
|
11411 | public static encodeDelimited(message: google.longrunning.IListOperationsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
11412 |
|
11413 | /**
|
11414 | * Decodes a ListOperationsRequest message from the specified reader or buffer.
|
11415 | * @param reader Reader or buffer to decode from
|
11416 | * @param [length] Message length if known beforehand
|
11417 | * @returns ListOperationsRequest
|
11418 | * @throws {Error} If the payload is not a reader or valid buffer
|
11419 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
11420 | */
|
11421 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.ListOperationsRequest;
|
11422 |
|
11423 | /**
|
11424 | * Decodes a ListOperationsRequest message from the specified reader or buffer, length delimited.
|
11425 | * @param reader Reader or buffer to decode from
|
11426 | * @returns ListOperationsRequest
|
11427 | * @throws {Error} If the payload is not a reader or valid buffer
|
11428 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
11429 | */
|
11430 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.ListOperationsRequest;
|
11431 |
|
11432 | /**
|
11433 | * Verifies a ListOperationsRequest message.
|
11434 | * @param message Plain object to verify
|
11435 | * @returns `null` if valid, otherwise the reason why it is not
|
11436 | */
|
11437 | public static verify(message: { [k: string]: any }): (string|null);
|
11438 |
|
11439 | /**
|
11440 | * Creates a ListOperationsRequest message from a plain object. Also converts values to their respective internal types.
|
11441 | * @param object Plain object
|
11442 | * @returns ListOperationsRequest
|
11443 | */
|
11444 | public static fromObject(object: { [k: string]: any }): google.longrunning.ListOperationsRequest;
|
11445 |
|
11446 | /**
|
11447 | * Creates a plain object from a ListOperationsRequest message. Also converts values to other types if specified.
|
11448 | * @param message ListOperationsRequest
|
11449 | * @param [options] Conversion options
|
11450 | * @returns Plain object
|
11451 | */
|
11452 | public static toObject(message: google.longrunning.ListOperationsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
11453 |
|
11454 | /**
|
11455 | * Converts this ListOperationsRequest to JSON.
|
11456 | * @returns JSON object
|
11457 | */
|
11458 | public toJSON(): { [k: string]: any };
|
11459 | }
|
11460 |
|
11461 | /** Properties of a ListOperationsResponse. */
|
11462 | interface IListOperationsResponse {
|
11463 |
|
11464 | /** ListOperationsResponse operations */
|
11465 | operations?: (google.longrunning.IOperation[]|null);
|
11466 |
|
11467 | /** ListOperationsResponse nextPageToken */
|
11468 | nextPageToken?: (string|null);
|
11469 | }
|
11470 |
|
11471 | /** Represents a ListOperationsResponse. */
|
11472 | class ListOperationsResponse implements IListOperationsResponse {
|
11473 |
|
11474 | /**
|
11475 | * Constructs a new ListOperationsResponse.
|
11476 | * @param [properties] Properties to set
|
11477 | */
|
11478 | constructor(properties?: google.longrunning.IListOperationsResponse);
|
11479 |
|
11480 | /** ListOperationsResponse operations. */
|
11481 | public operations: google.longrunning.IOperation[];
|
11482 |
|
11483 | /** ListOperationsResponse nextPageToken. */
|
11484 | public nextPageToken: string;
|
11485 |
|
11486 | /**
|
11487 | * Creates a new ListOperationsResponse instance using the specified properties.
|
11488 | * @param [properties] Properties to set
|
11489 | * @returns ListOperationsResponse instance
|
11490 | */
|
11491 | public static create(properties?: google.longrunning.IListOperationsResponse): google.longrunning.ListOperationsResponse;
|
11492 |
|
11493 | /**
|
11494 | * Encodes the specified ListOperationsResponse message. Does not implicitly { google.longrunning.ListOperationsResponse.verify|verify} messages.
|
11495 | * message ListOperationsResponse message or plain object to encode
|
11496 | * [writer] Writer to encode to
|
11497 | * Writer
|
11498 | */
|
11499 | public static encode(message: google.longrunning.IListOperationsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
11500 |
|
11501 | /**
|
11502 | * Encodes the specified ListOperationsResponse message, length delimited. Does not implicitly {@link google.longrunning.ListOperationsResponse.verify|verify} messages.
|
11503 | * @param message ListOperationsResponse message or plain object to encode
|
11504 | * @param [writer] Writer to encode to
|
11505 | * @returns Writer
|
11506 | */
|
11507 | public static encodeDelimited(message: google.longrunning.IListOperationsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
11508 |
|
11509 | /**
|
11510 | * Decodes a ListOperationsResponse message from the specified reader or buffer.
|
11511 | * @param reader Reader or buffer to decode from
|
11512 | * @param [length] Message length if known beforehand
|
11513 | * @returns ListOperationsResponse
|
11514 | * @throws {Error} If the payload is not a reader or valid buffer
|
11515 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
11516 | */
|
11517 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.ListOperationsResponse;
|
11518 |
|
11519 | /**
|
11520 | * Decodes a ListOperationsResponse message from the specified reader or buffer, length delimited.
|
11521 | * @param reader Reader or buffer to decode from
|
11522 | * @returns ListOperationsResponse
|
11523 | * @throws {Error} If the payload is not a reader or valid buffer
|
11524 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
11525 | */
|
11526 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.ListOperationsResponse;
|
11527 |
|
11528 | /**
|
11529 | * Verifies a ListOperationsResponse message.
|
11530 | * @param message Plain object to verify
|
11531 | * @returns `null` if valid, otherwise the reason why it is not
|
11532 | */
|
11533 | public static verify(message: { [k: string]: any }): (string|null);
|
11534 |
|
11535 | /**
|
11536 | * Creates a ListOperationsResponse message from a plain object. Also converts values to their respective internal types.
|
11537 | * @param object Plain object
|
11538 | * @returns ListOperationsResponse
|
11539 | */
|
11540 | public static fromObject(object: { [k: string]: any }): google.longrunning.ListOperationsResponse;
|
11541 |
|
11542 | /**
|
11543 | * Creates a plain object from a ListOperationsResponse message. Also converts values to other types if specified.
|
11544 | * @param message ListOperationsResponse
|
11545 | * @param [options] Conversion options
|
11546 | * @returns Plain object
|
11547 | */
|
11548 | public static toObject(message: google.longrunning.ListOperationsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
11549 |
|
11550 | /**
|
11551 | * Converts this ListOperationsResponse to JSON.
|
11552 | * @returns JSON object
|
11553 | */
|
11554 | public toJSON(): { [k: string]: any };
|
11555 | }
|
11556 |
|
11557 | /** Properties of a CancelOperationRequest. */
|
11558 | interface ICancelOperationRequest {
|
11559 |
|
11560 | /** CancelOperationRequest name */
|
11561 | name?: (string|null);
|
11562 | }
|
11563 |
|
11564 | /** Represents a CancelOperationRequest. */
|
11565 | class CancelOperationRequest implements ICancelOperationRequest {
|
11566 |
|
11567 | /**
|
11568 | * Constructs a new CancelOperationRequest.
|
11569 | * @param [properties] Properties to set
|
11570 | */
|
11571 | constructor(properties?: google.longrunning.ICancelOperationRequest);
|
11572 |
|
11573 | /** CancelOperationRequest name. */
|
11574 | public name: string;
|
11575 |
|
11576 | /**
|
11577 | * Creates a new CancelOperationRequest instance using the specified properties.
|
11578 | * @param [properties] Properties to set
|
11579 | * @returns CancelOperationRequest instance
|
11580 | */
|
11581 | public static create(properties?: google.longrunning.ICancelOperationRequest): google.longrunning.CancelOperationRequest;
|
11582 |
|
11583 | /**
|
11584 | * Encodes the specified CancelOperationRequest message. Does not implicitly { google.longrunning.CancelOperationRequest.verify|verify} messages.
|
11585 | * message CancelOperationRequest message or plain object to encode
|
11586 | * [writer] Writer to encode to
|
11587 | * Writer
|
11588 | */
|
11589 | public static encode(message: google.longrunning.ICancelOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
11590 |
|
11591 | /**
|
11592 | * Encodes the specified CancelOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.CancelOperationRequest.verify|verify} messages.
|
11593 | * @param message CancelOperationRequest message or plain object to encode
|
11594 | * @param [writer] Writer to encode to
|
11595 | * @returns Writer
|
11596 | */
|
11597 | public static encodeDelimited(message: google.longrunning.ICancelOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
11598 |
|
11599 | /**
|
11600 | * Decodes a CancelOperationRequest message from the specified reader or buffer.
|
11601 | * @param reader Reader or buffer to decode from
|
11602 | * @param [length] Message length if known beforehand
|
11603 | * @returns CancelOperationRequest
|
11604 | * @throws {Error} If the payload is not a reader or valid buffer
|
11605 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
11606 | */
|
11607 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.CancelOperationRequest;
|
11608 |
|
11609 | /**
|
11610 | * Decodes a CancelOperationRequest message from the specified reader or buffer, length delimited.
|
11611 | * @param reader Reader or buffer to decode from
|
11612 | * @returns CancelOperationRequest
|
11613 | * @throws {Error} If the payload is not a reader or valid buffer
|
11614 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
11615 | */
|
11616 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.CancelOperationRequest;
|
11617 |
|
11618 | /**
|
11619 | * Verifies a CancelOperationRequest message.
|
11620 | * @param message Plain object to verify
|
11621 | * @returns `null` if valid, otherwise the reason why it is not
|
11622 | */
|
11623 | public static verify(message: { [k: string]: any }): (string|null);
|
11624 |
|
11625 | /**
|
11626 | * Creates a CancelOperationRequest message from a plain object. Also converts values to their respective internal types.
|
11627 | * @param object Plain object
|
11628 | * @returns CancelOperationRequest
|
11629 | */
|
11630 | public static fromObject(object: { [k: string]: any }): google.longrunning.CancelOperationRequest;
|
11631 |
|
11632 | /**
|
11633 | * Creates a plain object from a CancelOperationRequest message. Also converts values to other types if specified.
|
11634 | * @param message CancelOperationRequest
|
11635 | * @param [options] Conversion options
|
11636 | * @returns Plain object
|
11637 | */
|
11638 | public static toObject(message: google.longrunning.CancelOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
11639 |
|
11640 | /**
|
11641 | * Converts this CancelOperationRequest to JSON.
|
11642 | * @returns JSON object
|
11643 | */
|
11644 | public toJSON(): { [k: string]: any };
|
11645 | }
|
11646 |
|
11647 | /** Properties of a DeleteOperationRequest. */
|
11648 | interface IDeleteOperationRequest {
|
11649 |
|
11650 | /** DeleteOperationRequest name */
|
11651 | name?: (string|null);
|
11652 | }
|
11653 |
|
11654 | /** Represents a DeleteOperationRequest. */
|
11655 | class DeleteOperationRequest implements IDeleteOperationRequest {
|
11656 |
|
11657 | /**
|
11658 | * Constructs a new DeleteOperationRequest.
|
11659 | * @param [properties] Properties to set
|
11660 | */
|
11661 | constructor(properties?: google.longrunning.IDeleteOperationRequest);
|
11662 |
|
11663 | /** DeleteOperationRequest name. */
|
11664 | public name: string;
|
11665 |
|
11666 | /**
|
11667 | * Creates a new DeleteOperationRequest instance using the specified properties.
|
11668 | * @param [properties] Properties to set
|
11669 | * @returns DeleteOperationRequest instance
|
11670 | */
|
11671 | public static create(properties?: google.longrunning.IDeleteOperationRequest): google.longrunning.DeleteOperationRequest;
|
11672 |
|
11673 | /**
|
11674 | * Encodes the specified DeleteOperationRequest message. Does not implicitly { google.longrunning.DeleteOperationRequest.verify|verify} messages.
|
11675 | * message DeleteOperationRequest message or plain object to encode
|
11676 | * [writer] Writer to encode to
|
11677 | * Writer
|
11678 | */
|
11679 | public static encode(message: google.longrunning.IDeleteOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
11680 |
|
11681 | /**
|
11682 | * Encodes the specified DeleteOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.DeleteOperationRequest.verify|verify} messages.
|
11683 | * @param message DeleteOperationRequest message or plain object to encode
|
11684 | * @param [writer] Writer to encode to
|
11685 | * @returns Writer
|
11686 | */
|
11687 | public static encodeDelimited(message: google.longrunning.IDeleteOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
11688 |
|
11689 | /**
|
11690 | * Decodes a DeleteOperationRequest message from the specified reader or buffer.
|
11691 | * @param reader Reader or buffer to decode from
|
11692 | * @param [length] Message length if known beforehand
|
11693 | * @returns DeleteOperationRequest
|
11694 | * @throws {Error} If the payload is not a reader or valid buffer
|
11695 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
11696 | */
|
11697 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.DeleteOperationRequest;
|
11698 |
|
11699 | /**
|
11700 | * Decodes a DeleteOperationRequest message from the specified reader or buffer, length delimited.
|
11701 | * @param reader Reader or buffer to decode from
|
11702 | * @returns DeleteOperationRequest
|
11703 | * @throws {Error} If the payload is not a reader or valid buffer
|
11704 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
11705 | */
|
11706 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.DeleteOperationRequest;
|
11707 |
|
11708 | /**
|
11709 | * Verifies a DeleteOperationRequest message.
|
11710 | * @param message Plain object to verify
|
11711 | * @returns `null` if valid, otherwise the reason why it is not
|
11712 | */
|
11713 | public static verify(message: { [k: string]: any }): (string|null);
|
11714 |
|
11715 | /**
|
11716 | * Creates a DeleteOperationRequest message from a plain object. Also converts values to their respective internal types.
|
11717 | * @param object Plain object
|
11718 | * @returns DeleteOperationRequest
|
11719 | */
|
11720 | public static fromObject(object: { [k: string]: any }): google.longrunning.DeleteOperationRequest;
|
11721 |
|
11722 | /**
|
11723 | * Creates a plain object from a DeleteOperationRequest message. Also converts values to other types if specified.
|
11724 | * @param message DeleteOperationRequest
|
11725 | * @param [options] Conversion options
|
11726 | * @returns Plain object
|
11727 | */
|
11728 | public static toObject(message: google.longrunning.DeleteOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
11729 |
|
11730 | /**
|
11731 | * Converts this DeleteOperationRequest to JSON.
|
11732 | * @returns JSON object
|
11733 | */
|
11734 | public toJSON(): { [k: string]: any };
|
11735 | }
|
11736 |
|
11737 | /** Properties of a WaitOperationRequest. */
|
11738 | interface IWaitOperationRequest {
|
11739 |
|
11740 | /** WaitOperationRequest name */
|
11741 | name?: (string|null);
|
11742 |
|
11743 | /** WaitOperationRequest timeout */
|
11744 | timeout?: (google.protobuf.IDuration|null);
|
11745 | }
|
11746 |
|
11747 | /** Represents a WaitOperationRequest. */
|
11748 | class WaitOperationRequest implements IWaitOperationRequest {
|
11749 |
|
11750 | /**
|
11751 | * Constructs a new WaitOperationRequest.
|
11752 | * @param [properties] Properties to set
|
11753 | */
|
11754 | constructor(properties?: google.longrunning.IWaitOperationRequest);
|
11755 |
|
11756 | /** WaitOperationRequest name. */
|
11757 | public name: string;
|
11758 |
|
11759 | /** WaitOperationRequest timeout. */
|
11760 | public timeout?: (google.protobuf.IDuration|null);
|
11761 |
|
11762 | /**
|
11763 | * Creates a new WaitOperationRequest instance using the specified properties.
|
11764 | * @param [properties] Properties to set
|
11765 | * @returns WaitOperationRequest instance
|
11766 | */
|
11767 | public static create(properties?: google.longrunning.IWaitOperationRequest): google.longrunning.WaitOperationRequest;
|
11768 |
|
11769 | /**
|
11770 | * Encodes the specified WaitOperationRequest message. Does not implicitly { google.longrunning.WaitOperationRequest.verify|verify} messages.
|
11771 | * message WaitOperationRequest message or plain object to encode
|
11772 | * [writer] Writer to encode to
|
11773 | * Writer
|
11774 | */
|
11775 | public static encode(message: google.longrunning.IWaitOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
11776 |
|
11777 | /**
|
11778 | * Encodes the specified WaitOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.WaitOperationRequest.verify|verify} messages.
|
11779 | * @param message WaitOperationRequest message or plain object to encode
|
11780 | * @param [writer] Writer to encode to
|
11781 | * @returns Writer
|
11782 | */
|
11783 | public static encodeDelimited(message: google.longrunning.IWaitOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
11784 |
|
11785 | /**
|
11786 | * Decodes a WaitOperationRequest message from the specified reader or buffer.
|
11787 | * @param reader Reader or buffer to decode from
|
11788 | * @param [length] Message length if known beforehand
|
11789 | * @returns WaitOperationRequest
|
11790 | * @throws {Error} If the payload is not a reader or valid buffer
|
11791 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
11792 | */
|
11793 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.WaitOperationRequest;
|
11794 |
|
11795 | /**
|
11796 | * Decodes a WaitOperationRequest message from the specified reader or buffer, length delimited.
|
11797 | * @param reader Reader or buffer to decode from
|
11798 | * @returns WaitOperationRequest
|
11799 | * @throws {Error} If the payload is not a reader or valid buffer
|
11800 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
11801 | */
|
11802 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.WaitOperationRequest;
|
11803 |
|
11804 | /**
|
11805 | * Verifies a WaitOperationRequest message.
|
11806 | * @param message Plain object to verify
|
11807 | * @returns `null` if valid, otherwise the reason why it is not
|
11808 | */
|
11809 | public static verify(message: { [k: string]: any }): (string|null);
|
11810 |
|
11811 | /**
|
11812 | * Creates a WaitOperationRequest message from a plain object. Also converts values to their respective internal types.
|
11813 | * @param object Plain object
|
11814 | * @returns WaitOperationRequest
|
11815 | */
|
11816 | public static fromObject(object: { [k: string]: any }): google.longrunning.WaitOperationRequest;
|
11817 |
|
11818 | /**
|
11819 | * Creates a plain object from a WaitOperationRequest message. Also converts values to other types if specified.
|
11820 | * @param message WaitOperationRequest
|
11821 | * @param [options] Conversion options
|
11822 | * @returns Plain object
|
11823 | */
|
11824 | public static toObject(message: google.longrunning.WaitOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
11825 |
|
11826 | /**
|
11827 | * Converts this WaitOperationRequest to JSON.
|
11828 | * @returns JSON object
|
11829 | */
|
11830 | public toJSON(): { [k: string]: any };
|
11831 | }
|
11832 |
|
11833 | /** Properties of an OperationInfo. */
|
11834 | interface IOperationInfo {
|
11835 |
|
11836 | /** OperationInfo responseType */
|
11837 | responseType?: (string|null);
|
11838 |
|
11839 | /** OperationInfo metadataType */
|
11840 | metadataType?: (string|null);
|
11841 | }
|
11842 |
|
11843 | /** Represents an OperationInfo. */
|
11844 | class OperationInfo implements IOperationInfo {
|
11845 |
|
11846 | /**
|
11847 | * Constructs a new OperationInfo.
|
11848 | * @param [properties] Properties to set
|
11849 | */
|
11850 | constructor(properties?: google.longrunning.IOperationInfo);
|
11851 |
|
11852 | /** OperationInfo responseType. */
|
11853 | public responseType: string;
|
11854 |
|
11855 | /** OperationInfo metadataType. */
|
11856 | public metadataType: string;
|
11857 |
|
11858 | /**
|
11859 | * Creates a new OperationInfo instance using the specified properties.
|
11860 | * @param [properties] Properties to set
|
11861 | * @returns OperationInfo instance
|
11862 | */
|
11863 | public static create(properties?: google.longrunning.IOperationInfo): google.longrunning.OperationInfo;
|
11864 |
|
11865 | /**
|
11866 | * Encodes the specified OperationInfo message. Does not implicitly { google.longrunning.OperationInfo.verify|verify} messages.
|
11867 | * message OperationInfo message or plain object to encode
|
11868 | * [writer] Writer to encode to
|
11869 | * Writer
|
11870 | */
|
11871 | public static encode(message: google.longrunning.IOperationInfo, writer?: $protobuf.Writer): $protobuf.Writer;
|
11872 |
|
11873 | /**
|
11874 | * Encodes the specified OperationInfo message, length delimited. Does not implicitly {@link google.longrunning.OperationInfo.verify|verify} messages.
|
11875 | * @param message OperationInfo message or plain object to encode
|
11876 | * @param [writer] Writer to encode to
|
11877 | * @returns Writer
|
11878 | */
|
11879 | public static encodeDelimited(message: google.longrunning.IOperationInfo, writer?: $protobuf.Writer): $protobuf.Writer;
|
11880 |
|
11881 | /**
|
11882 | * Decodes an OperationInfo message from the specified reader or buffer.
|
11883 | * @param reader Reader or buffer to decode from
|
11884 | * @param [length] Message length if known beforehand
|
11885 | * @returns OperationInfo
|
11886 | * @throws {Error} If the payload is not a reader or valid buffer
|
11887 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
11888 | */
|
11889 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.OperationInfo;
|
11890 |
|
11891 | /**
|
11892 | * Decodes an OperationInfo message from the specified reader or buffer, length delimited.
|
11893 | * @param reader Reader or buffer to decode from
|
11894 | * @returns OperationInfo
|
11895 | * @throws {Error} If the payload is not a reader or valid buffer
|
11896 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
11897 | */
|
11898 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.OperationInfo;
|
11899 |
|
11900 | /**
|
11901 | * Verifies an OperationInfo message.
|
11902 | * @param message Plain object to verify
|
11903 | * @returns `null` if valid, otherwise the reason why it is not
|
11904 | */
|
11905 | public static verify(message: { [k: string]: any }): (string|null);
|
11906 |
|
11907 | /**
|
11908 | * Creates an OperationInfo message from a plain object. Also converts values to their respective internal types.
|
11909 | * @param object Plain object
|
11910 | * @returns OperationInfo
|
11911 | */
|
11912 | public static fromObject(object: { [k: string]: any }): google.longrunning.OperationInfo;
|
11913 |
|
11914 | /**
|
11915 | * Creates a plain object from an OperationInfo message. Also converts values to other types if specified.
|
11916 | * @param message OperationInfo
|
11917 | * @param [options] Conversion options
|
11918 | * @returns Plain object
|
11919 | */
|
11920 | public static toObject(message: google.longrunning.OperationInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
11921 |
|
11922 | /**
|
11923 | * Converts this OperationInfo to JSON.
|
11924 | * @returns JSON object
|
11925 | */
|
11926 | public toJSON(): { [k: string]: any };
|
11927 | }
|
11928 | }
|
11929 |
|
11930 | /** Namespace rpc. */
|
11931 | namespace rpc {
|
11932 |
|
11933 | /** Properties of a Status. */
|
11934 | interface IStatus {
|
11935 |
|
11936 | /** Status code */
|
11937 | code?: (number|null);
|
11938 |
|
11939 | /** Status message */
|
11940 | message?: (string|null);
|
11941 |
|
11942 | /** Status details */
|
11943 | details?: (google.protobuf.IAny[]|null);
|
11944 | }
|
11945 |
|
11946 | /** Represents a Status. */
|
11947 | class Status implements IStatus {
|
11948 |
|
11949 | /**
|
11950 | * Constructs a new Status.
|
11951 | * @param [properties] Properties to set
|
11952 | */
|
11953 | constructor(properties?: google.rpc.IStatus);
|
11954 |
|
11955 | /** Status code. */
|
11956 | public code: number;
|
11957 |
|
11958 | /** Status message. */
|
11959 | public message: string;
|
11960 |
|
11961 | /** Status details. */
|
11962 | public details: google.protobuf.IAny[];
|
11963 |
|
11964 | /**
|
11965 | * Creates a new Status instance using the specified properties.
|
11966 | * @param [properties] Properties to set
|
11967 | * @returns Status instance
|
11968 | */
|
11969 | public static create(properties?: google.rpc.IStatus): google.rpc.Status;
|
11970 |
|
11971 | /**
|
11972 | * Encodes the specified Status message. Does not implicitly { google.rpc.Status.verify|verify} messages.
|
11973 | * message Status message or plain object to encode
|
11974 | * [writer] Writer to encode to
|
11975 | * Writer
|
11976 | */
|
11977 | public static encode(message: google.rpc.IStatus, writer?: $protobuf.Writer): $protobuf.Writer;
|
11978 |
|
11979 | /**
|
11980 | * Encodes the specified Status message, length delimited. Does not implicitly {@link google.rpc.Status.verify|verify} messages.
|
11981 | * @param message Status message or plain object to encode
|
11982 | * @param [writer] Writer to encode to
|
11983 | * @returns Writer
|
11984 | */
|
11985 | public static encodeDelimited(message: google.rpc.IStatus, writer?: $protobuf.Writer): $protobuf.Writer;
|
11986 |
|
11987 | /**
|
11988 | * Decodes a Status message from the specified reader or buffer.
|
11989 | * @param reader Reader or buffer to decode from
|
11990 | * @param [length] Message length if known beforehand
|
11991 | * @returns Status
|
11992 | * @throws {Error} If the payload is not a reader or valid buffer
|
11993 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
11994 | */
|
11995 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.rpc.Status;
|
11996 |
|
11997 | /**
|
11998 | * Decodes a Status message from the specified reader or buffer, length delimited.
|
11999 | * @param reader Reader or buffer to decode from
|
12000 | * @returns Status
|
12001 | * @throws {Error} If the payload is not a reader or valid buffer
|
12002 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
12003 | */
|
12004 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.rpc.Status;
|
12005 |
|
12006 | /**
|
12007 | * Verifies a Status message.
|
12008 | * @param message Plain object to verify
|
12009 | * @returns `null` if valid, otherwise the reason why it is not
|
12010 | */
|
12011 | public static verify(message: { [k: string]: any }): (string|null);
|
12012 |
|
12013 | /**
|
12014 | * Creates a Status message from a plain object. Also converts values to their respective internal types.
|
12015 | * @param object Plain object
|
12016 | * @returns Status
|
12017 | */
|
12018 | public static fromObject(object: { [k: string]: any }): google.rpc.Status;
|
12019 |
|
12020 | /**
|
12021 | * Creates a plain object from a Status message. Also converts values to other types if specified.
|
12022 | * @param message Status
|
12023 | * @param [options] Conversion options
|
12024 | * @returns Plain object
|
12025 | */
|
12026 | public static toObject(message: google.rpc.Status, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
12027 |
|
12028 | /**
|
12029 | * Converts this Status to JSON.
|
12030 | * @returns JSON object
|
12031 | */
|
12032 | public toJSON(): { [k: string]: any };
|
12033 | }
|
12034 | }
|
12035 | }
|