UNPKG

654 kBTypeScriptView Raw
1// Copyright 2021 Google LLC
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15import * as Long from "long";
16import {protobuf as $protobuf} from "google-gax";
17/** Namespace google. */
18export namespace google {
19
20 /** Namespace cloud. */
21 namespace cloud {
22
23 /** Namespace translation. */
24 namespace translation {
25
26 /** Namespace v3. */
27 namespace v3 {
28
29 /** Represents a TranslationService */
30 class TranslationService extends $protobuf.rpc.Service {
31
32 /**
33 * Constructs a new TranslationService 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 TranslationService 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): TranslationService;
48
49 /**
50 * Calls TranslateText.
51 * @param request TranslateTextRequest message or plain object
52 * @param callback Node-style callback called with the error, if any, and TranslateTextResponse
53 */
54 public translateText(request: google.cloud.translation.v3.ITranslateTextRequest, callback: google.cloud.translation.v3.TranslationService.TranslateTextCallback): void;
55
56 /**
57 * Calls TranslateText.
58 * @param request TranslateTextRequest message or plain object
59 * @returns Promise
60 */
61 public translateText(request: google.cloud.translation.v3.ITranslateTextRequest): Promise<google.cloud.translation.v3.TranslateTextResponse>;
62
63 /**
64 * Calls DetectLanguage.
65 * @param request DetectLanguageRequest message or plain object
66 * @param callback Node-style callback called with the error, if any, and DetectLanguageResponse
67 */
68 public detectLanguage(request: google.cloud.translation.v3.IDetectLanguageRequest, callback: google.cloud.translation.v3.TranslationService.DetectLanguageCallback): void;
69
70 /**
71 * Calls DetectLanguage.
72 * @param request DetectLanguageRequest message or plain object
73 * @returns Promise
74 */
75 public detectLanguage(request: google.cloud.translation.v3.IDetectLanguageRequest): Promise<google.cloud.translation.v3.DetectLanguageResponse>;
76
77 /**
78 * Calls GetSupportedLanguages.
79 * @param request GetSupportedLanguagesRequest message or plain object
80 * @param callback Node-style callback called with the error, if any, and SupportedLanguages
81 */
82 public getSupportedLanguages(request: google.cloud.translation.v3.IGetSupportedLanguagesRequest, callback: google.cloud.translation.v3.TranslationService.GetSupportedLanguagesCallback): void;
83
84 /**
85 * Calls GetSupportedLanguages.
86 * @param request GetSupportedLanguagesRequest message or plain object
87 * @returns Promise
88 */
89 public getSupportedLanguages(request: google.cloud.translation.v3.IGetSupportedLanguagesRequest): Promise<google.cloud.translation.v3.SupportedLanguages>;
90
91 /**
92 * Calls BatchTranslateText.
93 * @param request BatchTranslateTextRequest message or plain object
94 * @param callback Node-style callback called with the error, if any, and Operation
95 */
96 public batchTranslateText(request: google.cloud.translation.v3.IBatchTranslateTextRequest, callback: google.cloud.translation.v3.TranslationService.BatchTranslateTextCallback): void;
97
98 /**
99 * Calls BatchTranslateText.
100 * @param request BatchTranslateTextRequest message or plain object
101 * @returns Promise
102 */
103 public batchTranslateText(request: google.cloud.translation.v3.IBatchTranslateTextRequest): Promise<google.longrunning.Operation>;
104
105 /**
106 * Calls CreateGlossary.
107 * @param request CreateGlossaryRequest message or plain object
108 * @param callback Node-style callback called with the error, if any, and Operation
109 */
110 public createGlossary(request: google.cloud.translation.v3.ICreateGlossaryRequest, callback: google.cloud.translation.v3.TranslationService.CreateGlossaryCallback): void;
111
112 /**
113 * Calls CreateGlossary.
114 * @param request CreateGlossaryRequest message or plain object
115 * @returns Promise
116 */
117 public createGlossary(request: google.cloud.translation.v3.ICreateGlossaryRequest): Promise<google.longrunning.Operation>;
118
119 /**
120 * Calls ListGlossaries.
121 * @param request ListGlossariesRequest message or plain object
122 * @param callback Node-style callback called with the error, if any, and ListGlossariesResponse
123 */
124 public listGlossaries(request: google.cloud.translation.v3.IListGlossariesRequest, callback: google.cloud.translation.v3.TranslationService.ListGlossariesCallback): void;
125
126 /**
127 * Calls ListGlossaries.
128 * @param request ListGlossariesRequest message or plain object
129 * @returns Promise
130 */
131 public listGlossaries(request: google.cloud.translation.v3.IListGlossariesRequest): Promise<google.cloud.translation.v3.ListGlossariesResponse>;
132
133 /**
134 * Calls GetGlossary.
135 * @param request GetGlossaryRequest message or plain object
136 * @param callback Node-style callback called with the error, if any, and Glossary
137 */
138 public getGlossary(request: google.cloud.translation.v3.IGetGlossaryRequest, callback: google.cloud.translation.v3.TranslationService.GetGlossaryCallback): void;
139
140 /**
141 * Calls GetGlossary.
142 * @param request GetGlossaryRequest message or plain object
143 * @returns Promise
144 */
145 public getGlossary(request: google.cloud.translation.v3.IGetGlossaryRequest): Promise<google.cloud.translation.v3.Glossary>;
146
147 /**
148 * Calls DeleteGlossary.
149 * @param request DeleteGlossaryRequest message or plain object
150 * @param callback Node-style callback called with the error, if any, and Operation
151 */
152 public deleteGlossary(request: google.cloud.translation.v3.IDeleteGlossaryRequest, callback: google.cloud.translation.v3.TranslationService.DeleteGlossaryCallback): void;
153
154 /**
155 * Calls DeleteGlossary.
156 * @param request DeleteGlossaryRequest message or plain object
157 * @returns Promise
158 */
159 public deleteGlossary(request: google.cloud.translation.v3.IDeleteGlossaryRequest): Promise<google.longrunning.Operation>;
160 }
161
162 namespace TranslationService {
163
164 /**
165 * Callback as used by {@link google.cloud.translation.v3.TranslationService#translateText}.
166 * @param error Error, if any
167 * @param [response] TranslateTextResponse
168 */
169 type TranslateTextCallback = (error: (Error|null), response?: google.cloud.translation.v3.TranslateTextResponse) => void;
170
171 /**
172 * Callback as used by {@link google.cloud.translation.v3.TranslationService#detectLanguage}.
173 * @param error Error, if any
174 * @param [response] DetectLanguageResponse
175 */
176 type DetectLanguageCallback = (error: (Error|null), response?: google.cloud.translation.v3.DetectLanguageResponse) => void;
177
178 /**
179 * Callback as used by {@link google.cloud.translation.v3.TranslationService#getSupportedLanguages}.
180 * @param error Error, if any
181 * @param [response] SupportedLanguages
182 */
183 type GetSupportedLanguagesCallback = (error: (Error|null), response?: google.cloud.translation.v3.SupportedLanguages) => void;
184
185 /**
186 * Callback as used by {@link google.cloud.translation.v3.TranslationService#batchTranslateText}.
187 * @param error Error, if any
188 * @param [response] Operation
189 */
190 type BatchTranslateTextCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
191
192 /**
193 * Callback as used by {@link google.cloud.translation.v3.TranslationService#createGlossary}.
194 * @param error Error, if any
195 * @param [response] Operation
196 */
197 type CreateGlossaryCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
198
199 /**
200 * Callback as used by {@link google.cloud.translation.v3.TranslationService#listGlossaries}.
201 * @param error Error, if any
202 * @param [response] ListGlossariesResponse
203 */
204 type ListGlossariesCallback = (error: (Error|null), response?: google.cloud.translation.v3.ListGlossariesResponse) => void;
205
206 /**
207 * Callback as used by {@link google.cloud.translation.v3.TranslationService#getGlossary}.
208 * @param error Error, if any
209 * @param [response] Glossary
210 */
211 type GetGlossaryCallback = (error: (Error|null), response?: google.cloud.translation.v3.Glossary) => void;
212
213 /**
214 * Callback as used by {@link google.cloud.translation.v3.TranslationService#deleteGlossary}.
215 * @param error Error, if any
216 * @param [response] Operation
217 */
218 type DeleteGlossaryCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
219 }
220
221 /** Properties of a TranslateTextGlossaryConfig. */
222 interface ITranslateTextGlossaryConfig {
223
224 /** TranslateTextGlossaryConfig glossary */
225 glossary?: (string|null);
226
227 /** TranslateTextGlossaryConfig ignoreCase */
228 ignoreCase?: (boolean|null);
229 }
230
231 /** Represents a TranslateTextGlossaryConfig. */
232 class TranslateTextGlossaryConfig implements ITranslateTextGlossaryConfig {
233
234 /**
235 * Constructs a new TranslateTextGlossaryConfig.
236 * @param [properties] Properties to set
237 */
238 constructor(properties?: google.cloud.translation.v3.ITranslateTextGlossaryConfig);
239
240 /** TranslateTextGlossaryConfig glossary. */
241 public glossary: string;
242
243 /** TranslateTextGlossaryConfig ignoreCase. */
244 public ignoreCase: boolean;
245
246 /**
247 * Creates a new TranslateTextGlossaryConfig instance using the specified properties.
248 * @param [properties] Properties to set
249 * @returns TranslateTextGlossaryConfig instance
250 */
251 public static create(properties?: google.cloud.translation.v3.ITranslateTextGlossaryConfig): google.cloud.translation.v3.TranslateTextGlossaryConfig;
252
253 /**
254 * Encodes the specified TranslateTextGlossaryConfig message. Does not implicitly {@link google.cloud.translation.v3.TranslateTextGlossaryConfig.verify|verify} messages.
255 * @param message TranslateTextGlossaryConfig message or plain object to encode
256 * @param [writer] Writer to encode to
257 * @returns Writer
258 */
259 public static encode(message: google.cloud.translation.v3.ITranslateTextGlossaryConfig, writer?: $protobuf.Writer): $protobuf.Writer;
260
261 /**
262 * Encodes the specified TranslateTextGlossaryConfig message, length delimited. Does not implicitly {@link google.cloud.translation.v3.TranslateTextGlossaryConfig.verify|verify} messages.
263 * @param message TranslateTextGlossaryConfig message or plain object to encode
264 * @param [writer] Writer to encode to
265 * @returns Writer
266 */
267 public static encodeDelimited(message: google.cloud.translation.v3.ITranslateTextGlossaryConfig, writer?: $protobuf.Writer): $protobuf.Writer;
268
269 /**
270 * Decodes a TranslateTextGlossaryConfig message from the specified reader or buffer.
271 * @param reader Reader or buffer to decode from
272 * @param [length] Message length if known beforehand
273 * @returns TranslateTextGlossaryConfig
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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3.TranslateTextGlossaryConfig;
278
279 /**
280 * Decodes a TranslateTextGlossaryConfig message from the specified reader or buffer, length delimited.
281 * @param reader Reader or buffer to decode from
282 * @returns TranslateTextGlossaryConfig
283 * @throws {Error} If the payload is not a reader or valid buffer
284 * @throws {$protobuf.util.ProtocolError} If required fields are missing
285 */
286 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3.TranslateTextGlossaryConfig;
287
288 /**
289 * Verifies a TranslateTextGlossaryConfig message.
290 * @param message Plain object to verify
291 * @returns `null` if valid, otherwise the reason why it is not
292 */
293 public static verify(message: { [k: string]: any }): (string|null);
294
295 /**
296 * Creates a TranslateTextGlossaryConfig message from a plain object. Also converts values to their respective internal types.
297 * @param object Plain object
298 * @returns TranslateTextGlossaryConfig
299 */
300 public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3.TranslateTextGlossaryConfig;
301
302 /**
303 * Creates a plain object from a TranslateTextGlossaryConfig message. Also converts values to other types if specified.
304 * @param message TranslateTextGlossaryConfig
305 * @param [options] Conversion options
306 * @returns Plain object
307 */
308 public static toObject(message: google.cloud.translation.v3.TranslateTextGlossaryConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
309
310 /**
311 * Converts this TranslateTextGlossaryConfig to JSON.
312 * @returns JSON object
313 */
314 public toJSON(): { [k: string]: any };
315 }
316
317 /** Properties of a TranslateTextRequest. */
318 interface ITranslateTextRequest {
319
320 /** TranslateTextRequest contents */
321 contents?: (string[]|null);
322
323 /** TranslateTextRequest mimeType */
324 mimeType?: (string|null);
325
326 /** TranslateTextRequest sourceLanguageCode */
327 sourceLanguageCode?: (string|null);
328
329 /** TranslateTextRequest targetLanguageCode */
330 targetLanguageCode?: (string|null);
331
332 /** TranslateTextRequest parent */
333 parent?: (string|null);
334
335 /** TranslateTextRequest model */
336 model?: (string|null);
337
338 /** TranslateTextRequest glossaryConfig */
339 glossaryConfig?: (google.cloud.translation.v3.ITranslateTextGlossaryConfig|null);
340
341 /** TranslateTextRequest labels */
342 labels?: ({ [k: string]: string }|null);
343 }
344
345 /** Represents a TranslateTextRequest. */
346 class TranslateTextRequest implements ITranslateTextRequest {
347
348 /**
349 * Constructs a new TranslateTextRequest.
350 * @param [properties] Properties to set
351 */
352 constructor(properties?: google.cloud.translation.v3.ITranslateTextRequest);
353
354 /** TranslateTextRequest contents. */
355 public contents: string[];
356
357 /** TranslateTextRequest mimeType. */
358 public mimeType: string;
359
360 /** TranslateTextRequest sourceLanguageCode. */
361 public sourceLanguageCode: string;
362
363 /** TranslateTextRequest targetLanguageCode. */
364 public targetLanguageCode: string;
365
366 /** TranslateTextRequest parent. */
367 public parent: string;
368
369 /** TranslateTextRequest model. */
370 public model: string;
371
372 /** TranslateTextRequest glossaryConfig. */
373 public glossaryConfig?: (google.cloud.translation.v3.ITranslateTextGlossaryConfig|null);
374
375 /** TranslateTextRequest labels. */
376 public labels: { [k: string]: string };
377
378 /**
379 * Creates a new TranslateTextRequest instance using the specified properties.
380 * @param [properties] Properties to set
381 * @returns TranslateTextRequest instance
382 */
383 public static create(properties?: google.cloud.translation.v3.ITranslateTextRequest): google.cloud.translation.v3.TranslateTextRequest;
384
385 /**
386 * Encodes the specified TranslateTextRequest message. Does not implicitly {@link google.cloud.translation.v3.TranslateTextRequest.verify|verify} messages.
387 * @param message TranslateTextRequest message or plain object to encode
388 * @param [writer] Writer to encode to
389 * @returns Writer
390 */
391 public static encode(message: google.cloud.translation.v3.ITranslateTextRequest, writer?: $protobuf.Writer): $protobuf.Writer;
392
393 /**
394 * Encodes the specified TranslateTextRequest message, length delimited. Does not implicitly {@link google.cloud.translation.v3.TranslateTextRequest.verify|verify} messages.
395 * @param message TranslateTextRequest message or plain object to encode
396 * @param [writer] Writer to encode to
397 * @returns Writer
398 */
399 public static encodeDelimited(message: google.cloud.translation.v3.ITranslateTextRequest, writer?: $protobuf.Writer): $protobuf.Writer;
400
401 /**
402 * Decodes a TranslateTextRequest message from the specified reader or buffer.
403 * @param reader Reader or buffer to decode from
404 * @param [length] Message length if known beforehand
405 * @returns TranslateTextRequest
406 * @throws {Error} If the payload is not a reader or valid buffer
407 * @throws {$protobuf.util.ProtocolError} If required fields are missing
408 */
409 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3.TranslateTextRequest;
410
411 /**
412 * Decodes a TranslateTextRequest message from the specified reader or buffer, length delimited.
413 * @param reader Reader or buffer to decode from
414 * @returns TranslateTextRequest
415 * @throws {Error} If the payload is not a reader or valid buffer
416 * @throws {$protobuf.util.ProtocolError} If required fields are missing
417 */
418 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3.TranslateTextRequest;
419
420 /**
421 * Verifies a TranslateTextRequest message.
422 * @param message Plain object to verify
423 * @returns `null` if valid, otherwise the reason why it is not
424 */
425 public static verify(message: { [k: string]: any }): (string|null);
426
427 /**
428 * Creates a TranslateTextRequest message from a plain object. Also converts values to their respective internal types.
429 * @param object Plain object
430 * @returns TranslateTextRequest
431 */
432 public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3.TranslateTextRequest;
433
434 /**
435 * Creates a plain object from a TranslateTextRequest message. Also converts values to other types if specified.
436 * @param message TranslateTextRequest
437 * @param [options] Conversion options
438 * @returns Plain object
439 */
440 public static toObject(message: google.cloud.translation.v3.TranslateTextRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
441
442 /**
443 * Converts this TranslateTextRequest to JSON.
444 * @returns JSON object
445 */
446 public toJSON(): { [k: string]: any };
447 }
448
449 /** Properties of a TranslateTextResponse. */
450 interface ITranslateTextResponse {
451
452 /** TranslateTextResponse translations */
453 translations?: (google.cloud.translation.v3.ITranslation[]|null);
454
455 /** TranslateTextResponse glossaryTranslations */
456 glossaryTranslations?: (google.cloud.translation.v3.ITranslation[]|null);
457 }
458
459 /** Represents a TranslateTextResponse. */
460 class TranslateTextResponse implements ITranslateTextResponse {
461
462 /**
463 * Constructs a new TranslateTextResponse.
464 * @param [properties] Properties to set
465 */
466 constructor(properties?: google.cloud.translation.v3.ITranslateTextResponse);
467
468 /** TranslateTextResponse translations. */
469 public translations: google.cloud.translation.v3.ITranslation[];
470
471 /** TranslateTextResponse glossaryTranslations. */
472 public glossaryTranslations: google.cloud.translation.v3.ITranslation[];
473
474 /**
475 * Creates a new TranslateTextResponse instance using the specified properties.
476 * @param [properties] Properties to set
477 * @returns TranslateTextResponse instance
478 */
479 public static create(properties?: google.cloud.translation.v3.ITranslateTextResponse): google.cloud.translation.v3.TranslateTextResponse;
480
481 /**
482 * Encodes the specified TranslateTextResponse message. Does not implicitly {@link google.cloud.translation.v3.TranslateTextResponse.verify|verify} messages.
483 * @param message TranslateTextResponse message or plain object to encode
484 * @param [writer] Writer to encode to
485 * @returns Writer
486 */
487 public static encode(message: google.cloud.translation.v3.ITranslateTextResponse, writer?: $protobuf.Writer): $protobuf.Writer;
488
489 /**
490 * Encodes the specified TranslateTextResponse message, length delimited. Does not implicitly {@link google.cloud.translation.v3.TranslateTextResponse.verify|verify} messages.
491 * @param message TranslateTextResponse message or plain object to encode
492 * @param [writer] Writer to encode to
493 * @returns Writer
494 */
495 public static encodeDelimited(message: google.cloud.translation.v3.ITranslateTextResponse, writer?: $protobuf.Writer): $protobuf.Writer;
496
497 /**
498 * Decodes a TranslateTextResponse message from the specified reader or buffer.
499 * @param reader Reader or buffer to decode from
500 * @param [length] Message length if known beforehand
501 * @returns TranslateTextResponse
502 * @throws {Error} If the payload is not a reader or valid buffer
503 * @throws {$protobuf.util.ProtocolError} If required fields are missing
504 */
505 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3.TranslateTextResponse;
506
507 /**
508 * Decodes a TranslateTextResponse message from the specified reader or buffer, length delimited.
509 * @param reader Reader or buffer to decode from
510 * @returns TranslateTextResponse
511 * @throws {Error} If the payload is not a reader or valid buffer
512 * @throws {$protobuf.util.ProtocolError} If required fields are missing
513 */
514 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3.TranslateTextResponse;
515
516 /**
517 * Verifies a TranslateTextResponse message.
518 * @param message Plain object to verify
519 * @returns `null` if valid, otherwise the reason why it is not
520 */
521 public static verify(message: { [k: string]: any }): (string|null);
522
523 /**
524 * Creates a TranslateTextResponse message from a plain object. Also converts values to their respective internal types.
525 * @param object Plain object
526 * @returns TranslateTextResponse
527 */
528 public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3.TranslateTextResponse;
529
530 /**
531 * Creates a plain object from a TranslateTextResponse message. Also converts values to other types if specified.
532 * @param message TranslateTextResponse
533 * @param [options] Conversion options
534 * @returns Plain object
535 */
536 public static toObject(message: google.cloud.translation.v3.TranslateTextResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
537
538 /**
539 * Converts this TranslateTextResponse to JSON.
540 * @returns JSON object
541 */
542 public toJSON(): { [k: string]: any };
543 }
544
545 /** Properties of a Translation. */
546 interface ITranslation {
547
548 /** Translation translatedText */
549 translatedText?: (string|null);
550
551 /** Translation model */
552 model?: (string|null);
553
554 /** Translation detectedLanguageCode */
555 detectedLanguageCode?: (string|null);
556
557 /** Translation glossaryConfig */
558 glossaryConfig?: (google.cloud.translation.v3.ITranslateTextGlossaryConfig|null);
559 }
560
561 /** Represents a Translation. */
562 class Translation implements ITranslation {
563
564 /**
565 * Constructs a new Translation.
566 * @param [properties] Properties to set
567 */
568 constructor(properties?: google.cloud.translation.v3.ITranslation);
569
570 /** Translation translatedText. */
571 public translatedText: string;
572
573 /** Translation model. */
574 public model: string;
575
576 /** Translation detectedLanguageCode. */
577 public detectedLanguageCode: string;
578
579 /** Translation glossaryConfig. */
580 public glossaryConfig?: (google.cloud.translation.v3.ITranslateTextGlossaryConfig|null);
581
582 /**
583 * Creates a new Translation instance using the specified properties.
584 * @param [properties] Properties to set
585 * @returns Translation instance
586 */
587 public static create(properties?: google.cloud.translation.v3.ITranslation): google.cloud.translation.v3.Translation;
588
589 /**
590 * Encodes the specified Translation message. Does not implicitly {@link google.cloud.translation.v3.Translation.verify|verify} messages.
591 * @param message Translation message or plain object to encode
592 * @param [writer] Writer to encode to
593 * @returns Writer
594 */
595 public static encode(message: google.cloud.translation.v3.ITranslation, writer?: $protobuf.Writer): $protobuf.Writer;
596
597 /**
598 * Encodes the specified Translation message, length delimited. Does not implicitly {@link google.cloud.translation.v3.Translation.verify|verify} messages.
599 * @param message Translation message or plain object to encode
600 * @param [writer] Writer to encode to
601 * @returns Writer
602 */
603 public static encodeDelimited(message: google.cloud.translation.v3.ITranslation, writer?: $protobuf.Writer): $protobuf.Writer;
604
605 /**
606 * Decodes a Translation message from the specified reader or buffer.
607 * @param reader Reader or buffer to decode from
608 * @param [length] Message length if known beforehand
609 * @returns Translation
610 * @throws {Error} If the payload is not a reader or valid buffer
611 * @throws {$protobuf.util.ProtocolError} If required fields are missing
612 */
613 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3.Translation;
614
615 /**
616 * Decodes a Translation message from the specified reader or buffer, length delimited.
617 * @param reader Reader or buffer to decode from
618 * @returns Translation
619 * @throws {Error} If the payload is not a reader or valid buffer
620 * @throws {$protobuf.util.ProtocolError} If required fields are missing
621 */
622 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3.Translation;
623
624 /**
625 * Verifies a Translation message.
626 * @param message Plain object to verify
627 * @returns `null` if valid, otherwise the reason why it is not
628 */
629 public static verify(message: { [k: string]: any }): (string|null);
630
631 /**
632 * Creates a Translation message from a plain object. Also converts values to their respective internal types.
633 * @param object Plain object
634 * @returns Translation
635 */
636 public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3.Translation;
637
638 /**
639 * Creates a plain object from a Translation message. Also converts values to other types if specified.
640 * @param message Translation
641 * @param [options] Conversion options
642 * @returns Plain object
643 */
644 public static toObject(message: google.cloud.translation.v3.Translation, options?: $protobuf.IConversionOptions): { [k: string]: any };
645
646 /**
647 * Converts this Translation to JSON.
648 * @returns JSON object
649 */
650 public toJSON(): { [k: string]: any };
651 }
652
653 /** Properties of a DetectLanguageRequest. */
654 interface IDetectLanguageRequest {
655
656 /** DetectLanguageRequest parent */
657 parent?: (string|null);
658
659 /** DetectLanguageRequest model */
660 model?: (string|null);
661
662 /** DetectLanguageRequest content */
663 content?: (string|null);
664
665 /** DetectLanguageRequest mimeType */
666 mimeType?: (string|null);
667
668 /** DetectLanguageRequest labels */
669 labels?: ({ [k: string]: string }|null);
670 }
671
672 /** Represents a DetectLanguageRequest. */
673 class DetectLanguageRequest implements IDetectLanguageRequest {
674
675 /**
676 * Constructs a new DetectLanguageRequest.
677 * @param [properties] Properties to set
678 */
679 constructor(properties?: google.cloud.translation.v3.IDetectLanguageRequest);
680
681 /** DetectLanguageRequest parent. */
682 public parent: string;
683
684 /** DetectLanguageRequest model. */
685 public model: string;
686
687 /** DetectLanguageRequest content. */
688 public content?: (string|null);
689
690 /** DetectLanguageRequest mimeType. */
691 public mimeType: string;
692
693 /** DetectLanguageRequest labels. */
694 public labels: { [k: string]: string };
695
696 /** DetectLanguageRequest source. */
697 public source?: "content";
698
699 /**
700 * Creates a new DetectLanguageRequest instance using the specified properties.
701 * @param [properties] Properties to set
702 * @returns DetectLanguageRequest instance
703 */
704 public static create(properties?: google.cloud.translation.v3.IDetectLanguageRequest): google.cloud.translation.v3.DetectLanguageRequest;
705
706 /**
707 * Encodes the specified DetectLanguageRequest message. Does not implicitly {@link google.cloud.translation.v3.DetectLanguageRequest.verify|verify} messages.
708 * @param message DetectLanguageRequest message or plain object to encode
709 * @param [writer] Writer to encode to
710 * @returns Writer
711 */
712 public static encode(message: google.cloud.translation.v3.IDetectLanguageRequest, writer?: $protobuf.Writer): $protobuf.Writer;
713
714 /**
715 * Encodes the specified DetectLanguageRequest message, length delimited. Does not implicitly {@link google.cloud.translation.v3.DetectLanguageRequest.verify|verify} messages.
716 * @param message DetectLanguageRequest message or plain object to encode
717 * @param [writer] Writer to encode to
718 * @returns Writer
719 */
720 public static encodeDelimited(message: google.cloud.translation.v3.IDetectLanguageRequest, writer?: $protobuf.Writer): $protobuf.Writer;
721
722 /**
723 * Decodes a DetectLanguageRequest message from the specified reader or buffer.
724 * @param reader Reader or buffer to decode from
725 * @param [length] Message length if known beforehand
726 * @returns DetectLanguageRequest
727 * @throws {Error} If the payload is not a reader or valid buffer
728 * @throws {$protobuf.util.ProtocolError} If required fields are missing
729 */
730 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3.DetectLanguageRequest;
731
732 /**
733 * Decodes a DetectLanguageRequest message from the specified reader or buffer, length delimited.
734 * @param reader Reader or buffer to decode from
735 * @returns DetectLanguageRequest
736 * @throws {Error} If the payload is not a reader or valid buffer
737 * @throws {$protobuf.util.ProtocolError} If required fields are missing
738 */
739 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3.DetectLanguageRequest;
740
741 /**
742 * Verifies a DetectLanguageRequest message.
743 * @param message Plain object to verify
744 * @returns `null` if valid, otherwise the reason why it is not
745 */
746 public static verify(message: { [k: string]: any }): (string|null);
747
748 /**
749 * Creates a DetectLanguageRequest message from a plain object. Also converts values to their respective internal types.
750 * @param object Plain object
751 * @returns DetectLanguageRequest
752 */
753 public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3.DetectLanguageRequest;
754
755 /**
756 * Creates a plain object from a DetectLanguageRequest message. Also converts values to other types if specified.
757 * @param message DetectLanguageRequest
758 * @param [options] Conversion options
759 * @returns Plain object
760 */
761 public static toObject(message: google.cloud.translation.v3.DetectLanguageRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
762
763 /**
764 * Converts this DetectLanguageRequest to JSON.
765 * @returns JSON object
766 */
767 public toJSON(): { [k: string]: any };
768 }
769
770 /** Properties of a DetectedLanguage. */
771 interface IDetectedLanguage {
772
773 /** DetectedLanguage languageCode */
774 languageCode?: (string|null);
775
776 /** DetectedLanguage confidence */
777 confidence?: (number|null);
778 }
779
780 /** Represents a DetectedLanguage. */
781 class DetectedLanguage implements IDetectedLanguage {
782
783 /**
784 * Constructs a new DetectedLanguage.
785 * @param [properties] Properties to set
786 */
787 constructor(properties?: google.cloud.translation.v3.IDetectedLanguage);
788
789 /** DetectedLanguage languageCode. */
790 public languageCode: string;
791
792 /** DetectedLanguage confidence. */
793 public confidence: number;
794
795 /**
796 * Creates a new DetectedLanguage instance using the specified properties.
797 * @param [properties] Properties to set
798 * @returns DetectedLanguage instance
799 */
800 public static create(properties?: google.cloud.translation.v3.IDetectedLanguage): google.cloud.translation.v3.DetectedLanguage;
801
802 /**
803 * Encodes the specified DetectedLanguage message. Does not implicitly {@link google.cloud.translation.v3.DetectedLanguage.verify|verify} messages.
804 * @param message DetectedLanguage message or plain object to encode
805 * @param [writer] Writer to encode to
806 * @returns Writer
807 */
808 public static encode(message: google.cloud.translation.v3.IDetectedLanguage, writer?: $protobuf.Writer): $protobuf.Writer;
809
810 /**
811 * Encodes the specified DetectedLanguage message, length delimited. Does not implicitly {@link google.cloud.translation.v3.DetectedLanguage.verify|verify} messages.
812 * @param message DetectedLanguage message or plain object to encode
813 * @param [writer] Writer to encode to
814 * @returns Writer
815 */
816 public static encodeDelimited(message: google.cloud.translation.v3.IDetectedLanguage, writer?: $protobuf.Writer): $protobuf.Writer;
817
818 /**
819 * Decodes a DetectedLanguage message from the specified reader or buffer.
820 * @param reader Reader or buffer to decode from
821 * @param [length] Message length if known beforehand
822 * @returns DetectedLanguage
823 * @throws {Error} If the payload is not a reader or valid buffer
824 * @throws {$protobuf.util.ProtocolError} If required fields are missing
825 */
826 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3.DetectedLanguage;
827
828 /**
829 * Decodes a DetectedLanguage message from the specified reader or buffer, length delimited.
830 * @param reader Reader or buffer to decode from
831 * @returns DetectedLanguage
832 * @throws {Error} If the payload is not a reader or valid buffer
833 * @throws {$protobuf.util.ProtocolError} If required fields are missing
834 */
835 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3.DetectedLanguage;
836
837 /**
838 * Verifies a DetectedLanguage message.
839 * @param message Plain object to verify
840 * @returns `null` if valid, otherwise the reason why it is not
841 */
842 public static verify(message: { [k: string]: any }): (string|null);
843
844 /**
845 * Creates a DetectedLanguage message from a plain object. Also converts values to their respective internal types.
846 * @param object Plain object
847 * @returns DetectedLanguage
848 */
849 public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3.DetectedLanguage;
850
851 /**
852 * Creates a plain object from a DetectedLanguage message. Also converts values to other types if specified.
853 * @param message DetectedLanguage
854 * @param [options] Conversion options
855 * @returns Plain object
856 */
857 public static toObject(message: google.cloud.translation.v3.DetectedLanguage, options?: $protobuf.IConversionOptions): { [k: string]: any };
858
859 /**
860 * Converts this DetectedLanguage to JSON.
861 * @returns JSON object
862 */
863 public toJSON(): { [k: string]: any };
864 }
865
866 /** Properties of a DetectLanguageResponse. */
867 interface IDetectLanguageResponse {
868
869 /** DetectLanguageResponse languages */
870 languages?: (google.cloud.translation.v3.IDetectedLanguage[]|null);
871 }
872
873 /** Represents a DetectLanguageResponse. */
874 class DetectLanguageResponse implements IDetectLanguageResponse {
875
876 /**
877 * Constructs a new DetectLanguageResponse.
878 * @param [properties] Properties to set
879 */
880 constructor(properties?: google.cloud.translation.v3.IDetectLanguageResponse);
881
882 /** DetectLanguageResponse languages. */
883 public languages: google.cloud.translation.v3.IDetectedLanguage[];
884
885 /**
886 * Creates a new DetectLanguageResponse instance using the specified properties.
887 * @param [properties] Properties to set
888 * @returns DetectLanguageResponse instance
889 */
890 public static create(properties?: google.cloud.translation.v3.IDetectLanguageResponse): google.cloud.translation.v3.DetectLanguageResponse;
891
892 /**
893 * Encodes the specified DetectLanguageResponse message. Does not implicitly {@link google.cloud.translation.v3.DetectLanguageResponse.verify|verify} messages.
894 * @param message DetectLanguageResponse message or plain object to encode
895 * @param [writer] Writer to encode to
896 * @returns Writer
897 */
898 public static encode(message: google.cloud.translation.v3.IDetectLanguageResponse, writer?: $protobuf.Writer): $protobuf.Writer;
899
900 /**
901 * Encodes the specified DetectLanguageResponse message, length delimited. Does not implicitly {@link google.cloud.translation.v3.DetectLanguageResponse.verify|verify} messages.
902 * @param message DetectLanguageResponse message or plain object to encode
903 * @param [writer] Writer to encode to
904 * @returns Writer
905 */
906 public static encodeDelimited(message: google.cloud.translation.v3.IDetectLanguageResponse, writer?: $protobuf.Writer): $protobuf.Writer;
907
908 /**
909 * Decodes a DetectLanguageResponse message from the specified reader or buffer.
910 * @param reader Reader or buffer to decode from
911 * @param [length] Message length if known beforehand
912 * @returns DetectLanguageResponse
913 * @throws {Error} If the payload is not a reader or valid buffer
914 * @throws {$protobuf.util.ProtocolError} If required fields are missing
915 */
916 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3.DetectLanguageResponse;
917
918 /**
919 * Decodes a DetectLanguageResponse message from the specified reader or buffer, length delimited.
920 * @param reader Reader or buffer to decode from
921 * @returns DetectLanguageResponse
922 * @throws {Error} If the payload is not a reader or valid buffer
923 * @throws {$protobuf.util.ProtocolError} If required fields are missing
924 */
925 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3.DetectLanguageResponse;
926
927 /**
928 * Verifies a DetectLanguageResponse message.
929 * @param message Plain object to verify
930 * @returns `null` if valid, otherwise the reason why it is not
931 */
932 public static verify(message: { [k: string]: any }): (string|null);
933
934 /**
935 * Creates a DetectLanguageResponse message from a plain object. Also converts values to their respective internal types.
936 * @param object Plain object
937 * @returns DetectLanguageResponse
938 */
939 public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3.DetectLanguageResponse;
940
941 /**
942 * Creates a plain object from a DetectLanguageResponse message. Also converts values to other types if specified.
943 * @param message DetectLanguageResponse
944 * @param [options] Conversion options
945 * @returns Plain object
946 */
947 public static toObject(message: google.cloud.translation.v3.DetectLanguageResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
948
949 /**
950 * Converts this DetectLanguageResponse to JSON.
951 * @returns JSON object
952 */
953 public toJSON(): { [k: string]: any };
954 }
955
956 /** Properties of a GetSupportedLanguagesRequest. */
957 interface IGetSupportedLanguagesRequest {
958
959 /** GetSupportedLanguagesRequest parent */
960 parent?: (string|null);
961
962 /** GetSupportedLanguagesRequest displayLanguageCode */
963 displayLanguageCode?: (string|null);
964
965 /** GetSupportedLanguagesRequest model */
966 model?: (string|null);
967 }
968
969 /** Represents a GetSupportedLanguagesRequest. */
970 class GetSupportedLanguagesRequest implements IGetSupportedLanguagesRequest {
971
972 /**
973 * Constructs a new GetSupportedLanguagesRequest.
974 * @param [properties] Properties to set
975 */
976 constructor(properties?: google.cloud.translation.v3.IGetSupportedLanguagesRequest);
977
978 /** GetSupportedLanguagesRequest parent. */
979 public parent: string;
980
981 /** GetSupportedLanguagesRequest displayLanguageCode. */
982 public displayLanguageCode: string;
983
984 /** GetSupportedLanguagesRequest model. */
985 public model: string;
986
987 /**
988 * Creates a new GetSupportedLanguagesRequest instance using the specified properties.
989 * @param [properties] Properties to set
990 * @returns GetSupportedLanguagesRequest instance
991 */
992 public static create(properties?: google.cloud.translation.v3.IGetSupportedLanguagesRequest): google.cloud.translation.v3.GetSupportedLanguagesRequest;
993
994 /**
995 * Encodes the specified GetSupportedLanguagesRequest message. Does not implicitly {@link google.cloud.translation.v3.GetSupportedLanguagesRequest.verify|verify} messages.
996 * @param message GetSupportedLanguagesRequest message or plain object to encode
997 * @param [writer] Writer to encode to
998 * @returns Writer
999 */
1000 public static encode(message: google.cloud.translation.v3.IGetSupportedLanguagesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
1001
1002 /**
1003 * Encodes the specified GetSupportedLanguagesRequest message, length delimited. Does not implicitly {@link google.cloud.translation.v3.GetSupportedLanguagesRequest.verify|verify} messages.
1004 * @param message GetSupportedLanguagesRequest message or plain object to encode
1005 * @param [writer] Writer to encode to
1006 * @returns Writer
1007 */
1008 public static encodeDelimited(message: google.cloud.translation.v3.IGetSupportedLanguagesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
1009
1010 /**
1011 * Decodes a GetSupportedLanguagesRequest message from the specified reader or buffer.
1012 * @param reader Reader or buffer to decode from
1013 * @param [length] Message length if known beforehand
1014 * @returns GetSupportedLanguagesRequest
1015 * @throws {Error} If the payload is not a reader or valid buffer
1016 * @throws {$protobuf.util.ProtocolError} If required fields are missing
1017 */
1018 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3.GetSupportedLanguagesRequest;
1019
1020 /**
1021 * Decodes a GetSupportedLanguagesRequest message from the specified reader or buffer, length delimited.
1022 * @param reader Reader or buffer to decode from
1023 * @returns GetSupportedLanguagesRequest
1024 * @throws {Error} If the payload is not a reader or valid buffer
1025 * @throws {$protobuf.util.ProtocolError} If required fields are missing
1026 */
1027 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3.GetSupportedLanguagesRequest;
1028
1029 /**
1030 * Verifies a GetSupportedLanguagesRequest message.
1031 * @param message Plain object to verify
1032 * @returns `null` if valid, otherwise the reason why it is not
1033 */
1034 public static verify(message: { [k: string]: any }): (string|null);
1035
1036 /**
1037 * Creates a GetSupportedLanguagesRequest message from a plain object. Also converts values to their respective internal types.
1038 * @param object Plain object
1039 * @returns GetSupportedLanguagesRequest
1040 */
1041 public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3.GetSupportedLanguagesRequest;
1042
1043 /**
1044 * Creates a plain object from a GetSupportedLanguagesRequest message. Also converts values to other types if specified.
1045 * @param message GetSupportedLanguagesRequest
1046 * @param [options] Conversion options
1047 * @returns Plain object
1048 */
1049 public static toObject(message: google.cloud.translation.v3.GetSupportedLanguagesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
1050
1051 /**
1052 * Converts this GetSupportedLanguagesRequest to JSON.
1053 * @returns JSON object
1054 */
1055 public toJSON(): { [k: string]: any };
1056 }
1057
1058 /** Properties of a SupportedLanguages. */
1059 interface ISupportedLanguages {
1060
1061 /** SupportedLanguages languages */
1062 languages?: (google.cloud.translation.v3.ISupportedLanguage[]|null);
1063 }
1064
1065 /** Represents a SupportedLanguages. */
1066 class SupportedLanguages implements ISupportedLanguages {
1067
1068 /**
1069 * Constructs a new SupportedLanguages.
1070 * @param [properties] Properties to set
1071 */
1072 constructor(properties?: google.cloud.translation.v3.ISupportedLanguages);
1073
1074 /** SupportedLanguages languages. */
1075 public languages: google.cloud.translation.v3.ISupportedLanguage[];
1076
1077 /**
1078 * Creates a new SupportedLanguages instance using the specified properties.
1079 * @param [properties] Properties to set
1080 * @returns SupportedLanguages instance
1081 */
1082 public static create(properties?: google.cloud.translation.v3.ISupportedLanguages): google.cloud.translation.v3.SupportedLanguages;
1083
1084 /**
1085 * Encodes the specified SupportedLanguages message. Does not implicitly {@link google.cloud.translation.v3.SupportedLanguages.verify|verify} messages.
1086 * @param message SupportedLanguages message or plain object to encode
1087 * @param [writer] Writer to encode to
1088 * @returns Writer
1089 */
1090 public static encode(message: google.cloud.translation.v3.ISupportedLanguages, writer?: $protobuf.Writer): $protobuf.Writer;
1091
1092 /**
1093 * Encodes the specified SupportedLanguages message, length delimited. Does not implicitly {@link google.cloud.translation.v3.SupportedLanguages.verify|verify} messages.
1094 * @param message SupportedLanguages message or plain object to encode
1095 * @param [writer] Writer to encode to
1096 * @returns Writer
1097 */
1098 public static encodeDelimited(message: google.cloud.translation.v3.ISupportedLanguages, writer?: $protobuf.Writer): $protobuf.Writer;
1099
1100 /**
1101 * Decodes a SupportedLanguages message from the specified reader or buffer.
1102 * @param reader Reader or buffer to decode from
1103 * @param [length] Message length if known beforehand
1104 * @returns SupportedLanguages
1105 * @throws {Error} If the payload is not a reader or valid buffer
1106 * @throws {$protobuf.util.ProtocolError} If required fields are missing
1107 */
1108 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3.SupportedLanguages;
1109
1110 /**
1111 * Decodes a SupportedLanguages message from the specified reader or buffer, length delimited.
1112 * @param reader Reader or buffer to decode from
1113 * @returns SupportedLanguages
1114 * @throws {Error} If the payload is not a reader or valid buffer
1115 * @throws {$protobuf.util.ProtocolError} If required fields are missing
1116 */
1117 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3.SupportedLanguages;
1118
1119 /**
1120 * Verifies a SupportedLanguages message.
1121 * @param message Plain object to verify
1122 * @returns `null` if valid, otherwise the reason why it is not
1123 */
1124 public static verify(message: { [k: string]: any }): (string|null);
1125
1126 /**
1127 * Creates a SupportedLanguages message from a plain object. Also converts values to their respective internal types.
1128 * @param object Plain object
1129 * @returns SupportedLanguages
1130 */
1131 public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3.SupportedLanguages;
1132
1133 /**
1134 * Creates a plain object from a SupportedLanguages message. Also converts values to other types if specified.
1135 * @param message SupportedLanguages
1136 * @param [options] Conversion options
1137 * @returns Plain object
1138 */
1139 public static toObject(message: google.cloud.translation.v3.SupportedLanguages, options?: $protobuf.IConversionOptions): { [k: string]: any };
1140
1141 /**
1142 * Converts this SupportedLanguages to JSON.
1143 * @returns JSON object
1144 */
1145 public toJSON(): { [k: string]: any };
1146 }
1147
1148 /** Properties of a SupportedLanguage. */
1149 interface ISupportedLanguage {
1150
1151 /** SupportedLanguage languageCode */
1152 languageCode?: (string|null);
1153
1154 /** SupportedLanguage displayName */
1155 displayName?: (string|null);
1156
1157 /** SupportedLanguage supportSource */
1158 supportSource?: (boolean|null);
1159
1160 /** SupportedLanguage supportTarget */
1161 supportTarget?: (boolean|null);
1162 }
1163
1164 /** Represents a SupportedLanguage. */
1165 class SupportedLanguage implements ISupportedLanguage {
1166
1167 /**
1168 * Constructs a new SupportedLanguage.
1169 * @param [properties] Properties to set
1170 */
1171 constructor(properties?: google.cloud.translation.v3.ISupportedLanguage);
1172
1173 /** SupportedLanguage languageCode. */
1174 public languageCode: string;
1175
1176 /** SupportedLanguage displayName. */
1177 public displayName: string;
1178
1179 /** SupportedLanguage supportSource. */
1180 public supportSource: boolean;
1181
1182 /** SupportedLanguage supportTarget. */
1183 public supportTarget: boolean;
1184
1185 /**
1186 * Creates a new SupportedLanguage instance using the specified properties.
1187 * @param [properties] Properties to set
1188 * @returns SupportedLanguage instance
1189 */
1190 public static create(properties?: google.cloud.translation.v3.ISupportedLanguage): google.cloud.translation.v3.SupportedLanguage;
1191
1192 /**
1193 * Encodes the specified SupportedLanguage message. Does not implicitly {@link google.cloud.translation.v3.SupportedLanguage.verify|verify} messages.
1194 * @param message SupportedLanguage message or plain object to encode
1195 * @param [writer] Writer to encode to
1196 * @returns Writer
1197 */
1198 public static encode(message: google.cloud.translation.v3.ISupportedLanguage, writer?: $protobuf.Writer): $protobuf.Writer;
1199
1200 /**
1201 * Encodes the specified SupportedLanguage message, length delimited. Does not implicitly {@link google.cloud.translation.v3.SupportedLanguage.verify|verify} messages.
1202 * @param message SupportedLanguage message or plain object to encode
1203 * @param [writer] Writer to encode to
1204 * @returns Writer
1205 */
1206 public static encodeDelimited(message: google.cloud.translation.v3.ISupportedLanguage, writer?: $protobuf.Writer): $protobuf.Writer;
1207
1208 /**
1209 * Decodes a SupportedLanguage message from the specified reader or buffer.
1210 * @param reader Reader or buffer to decode from
1211 * @param [length] Message length if known beforehand
1212 * @returns SupportedLanguage
1213 * @throws {Error} If the payload is not a reader or valid buffer
1214 * @throws {$protobuf.util.ProtocolError} If required fields are missing
1215 */
1216 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3.SupportedLanguage;
1217
1218 /**
1219 * Decodes a SupportedLanguage message from the specified reader or buffer, length delimited.
1220 * @param reader Reader or buffer to decode from
1221 * @returns SupportedLanguage
1222 * @throws {Error} If the payload is not a reader or valid buffer
1223 * @throws {$protobuf.util.ProtocolError} If required fields are missing
1224 */
1225 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3.SupportedLanguage;
1226
1227 /**
1228 * Verifies a SupportedLanguage message.
1229 * @param message Plain object to verify
1230 * @returns `null` if valid, otherwise the reason why it is not
1231 */
1232 public static verify(message: { [k: string]: any }): (string|null);
1233
1234 /**
1235 * Creates a SupportedLanguage message from a plain object. Also converts values to their respective internal types.
1236 * @param object Plain object
1237 * @returns SupportedLanguage
1238 */
1239 public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3.SupportedLanguage;
1240
1241 /**
1242 * Creates a plain object from a SupportedLanguage message. Also converts values to other types if specified.
1243 * @param message SupportedLanguage
1244 * @param [options] Conversion options
1245 * @returns Plain object
1246 */
1247 public static toObject(message: google.cloud.translation.v3.SupportedLanguage, options?: $protobuf.IConversionOptions): { [k: string]: any };
1248
1249 /**
1250 * Converts this SupportedLanguage to JSON.
1251 * @returns JSON object
1252 */
1253 public toJSON(): { [k: string]: any };
1254 }
1255
1256 /** Properties of a GcsSource. */
1257 interface IGcsSource {
1258
1259 /** GcsSource inputUri */
1260 inputUri?: (string|null);
1261 }
1262
1263 /** Represents a GcsSource. */
1264 class GcsSource implements IGcsSource {
1265
1266 /**
1267 * Constructs a new GcsSource.
1268 * @param [properties] Properties to set
1269 */
1270 constructor(properties?: google.cloud.translation.v3.IGcsSource);
1271
1272 /** GcsSource inputUri. */
1273 public inputUri: string;
1274
1275 /**
1276 * Creates a new GcsSource instance using the specified properties.
1277 * @param [properties] Properties to set
1278 * @returns GcsSource instance
1279 */
1280 public static create(properties?: google.cloud.translation.v3.IGcsSource): google.cloud.translation.v3.GcsSource;
1281
1282 /**
1283 * Encodes the specified GcsSource message. Does not implicitly {@link google.cloud.translation.v3.GcsSource.verify|verify} messages.
1284 * @param message GcsSource message or plain object to encode
1285 * @param [writer] Writer to encode to
1286 * @returns Writer
1287 */
1288 public static encode(message: google.cloud.translation.v3.IGcsSource, writer?: $protobuf.Writer): $protobuf.Writer;
1289
1290 /**
1291 * Encodes the specified GcsSource message, length delimited. Does not implicitly {@link google.cloud.translation.v3.GcsSource.verify|verify} messages.
1292 * @param message GcsSource message or plain object to encode
1293 * @param [writer] Writer to encode to
1294 * @returns Writer
1295 */
1296 public static encodeDelimited(message: google.cloud.translation.v3.IGcsSource, writer?: $protobuf.Writer): $protobuf.Writer;
1297
1298 /**
1299 * Decodes a GcsSource message from the specified reader or buffer.
1300 * @param reader Reader or buffer to decode from
1301 * @param [length] Message length if known beforehand
1302 * @returns GcsSource
1303 * @throws {Error} If the payload is not a reader or valid buffer
1304 * @throws {$protobuf.util.ProtocolError} If required fields are missing
1305 */
1306 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3.GcsSource;
1307
1308 /**
1309 * Decodes a GcsSource message from the specified reader or buffer, length delimited.
1310 * @param reader Reader or buffer to decode from
1311 * @returns GcsSource
1312 * @throws {Error} If the payload is not a reader or valid buffer
1313 * @throws {$protobuf.util.ProtocolError} If required fields are missing
1314 */
1315 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3.GcsSource;
1316
1317 /**
1318 * Verifies a GcsSource message.
1319 * @param message Plain object to verify
1320 * @returns `null` if valid, otherwise the reason why it is not
1321 */
1322 public static verify(message: { [k: string]: any }): (string|null);
1323
1324 /**
1325 * Creates a GcsSource message from a plain object. Also converts values to their respective internal types.
1326 * @param object Plain object
1327 * @returns GcsSource
1328 */
1329 public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3.GcsSource;
1330
1331 /**
1332 * Creates a plain object from a GcsSource message. Also converts values to other types if specified.
1333 * @param message GcsSource
1334 * @param [options] Conversion options
1335 * @returns Plain object
1336 */
1337 public static toObject(message: google.cloud.translation.v3.GcsSource, options?: $protobuf.IConversionOptions): { [k: string]: any };
1338
1339 /**
1340 * Converts this GcsSource to JSON.
1341 * @returns JSON object
1342 */
1343 public toJSON(): { [k: string]: any };
1344 }
1345
1346 /** Properties of an InputConfig. */
1347 interface IInputConfig {
1348
1349 /** InputConfig mimeType */
1350 mimeType?: (string|null);
1351
1352 /** InputConfig gcsSource */
1353 gcsSource?: (google.cloud.translation.v3.IGcsSource|null);
1354 }
1355
1356 /** Represents an InputConfig. */
1357 class InputConfig implements IInputConfig {
1358
1359 /**
1360 * Constructs a new InputConfig.
1361 * @param [properties] Properties to set
1362 */
1363 constructor(properties?: google.cloud.translation.v3.IInputConfig);
1364
1365 /** InputConfig mimeType. */
1366 public mimeType: string;
1367
1368 /** InputConfig gcsSource. */
1369 public gcsSource?: (google.cloud.translation.v3.IGcsSource|null);
1370
1371 /** InputConfig source. */
1372 public source?: "gcsSource";
1373
1374 /**
1375 * Creates a new InputConfig instance using the specified properties.
1376 * @param [properties] Properties to set
1377 * @returns InputConfig instance
1378 */
1379 public static create(properties?: google.cloud.translation.v3.IInputConfig): google.cloud.translation.v3.InputConfig;
1380
1381 /**
1382 * Encodes the specified InputConfig message. Does not implicitly {@link google.cloud.translation.v3.InputConfig.verify|verify} messages.
1383 * @param message InputConfig message or plain object to encode
1384 * @param [writer] Writer to encode to
1385 * @returns Writer
1386 */
1387 public static encode(message: google.cloud.translation.v3.IInputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
1388
1389 /**
1390 * Encodes the specified InputConfig message, length delimited. Does not implicitly {@link google.cloud.translation.v3.InputConfig.verify|verify} messages.
1391 * @param message InputConfig message or plain object to encode
1392 * @param [writer] Writer to encode to
1393 * @returns Writer
1394 */
1395 public static encodeDelimited(message: google.cloud.translation.v3.IInputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
1396
1397 /**
1398 * Decodes an InputConfig 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 InputConfig
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.translation.v3.InputConfig;
1406
1407 /**
1408 * Decodes an InputConfig message from the specified reader or buffer, length delimited.
1409 * @param reader Reader or buffer to decode from
1410 * @returns InputConfig
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.translation.v3.InputConfig;
1415
1416 /**
1417 * Verifies an InputConfig 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 an InputConfig message from a plain object. Also converts values to their respective internal types.
1425 * @param object Plain object
1426 * @returns InputConfig
1427 */
1428 public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3.InputConfig;
1429
1430 /**
1431 * Creates a plain object from an InputConfig message. Also converts values to other types if specified.
1432 * @param message InputConfig
1433 * @param [options] Conversion options
1434 * @returns Plain object
1435 */
1436 public static toObject(message: google.cloud.translation.v3.InputConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
1437
1438 /**
1439 * Converts this InputConfig to JSON.
1440 * @returns JSON object
1441 */
1442 public toJSON(): { [k: string]: any };
1443 }
1444
1445 /** Properties of a GcsDestination. */
1446 interface IGcsDestination {
1447
1448 /** GcsDestination outputUriPrefix */
1449 outputUriPrefix?: (string|null);
1450 }
1451
1452 /** Represents a GcsDestination. */
1453 class GcsDestination implements IGcsDestination {
1454
1455 /**
1456 * Constructs a new GcsDestination.
1457 * @param [properties] Properties to set
1458 */
1459 constructor(properties?: google.cloud.translation.v3.IGcsDestination);
1460
1461 /** GcsDestination outputUriPrefix. */
1462 public outputUriPrefix: string;
1463
1464 /**
1465 * Creates a new GcsDestination instance using the specified properties.
1466 * @param [properties] Properties to set
1467 * @returns GcsDestination instance
1468 */
1469 public static create(properties?: google.cloud.translation.v3.IGcsDestination): google.cloud.translation.v3.GcsDestination;
1470
1471 /**
1472 * Encodes the specified GcsDestination message. Does not implicitly {@link google.cloud.translation.v3.GcsDestination.verify|verify} messages.
1473 * @param message GcsDestination message or plain object to encode
1474 * @param [writer] Writer to encode to
1475 * @returns Writer
1476 */
1477 public static encode(message: google.cloud.translation.v3.IGcsDestination, writer?: $protobuf.Writer): $protobuf.Writer;
1478
1479 /**
1480 * Encodes the specified GcsDestination message, length delimited. Does not implicitly {@link google.cloud.translation.v3.GcsDestination.verify|verify} messages.
1481 * @param message GcsDestination message or plain object to encode
1482 * @param [writer] Writer to encode to
1483 * @returns Writer
1484 */
1485 public static encodeDelimited(message: google.cloud.translation.v3.IGcsDestination, writer?: $protobuf.Writer): $protobuf.Writer;
1486
1487 /**
1488 * Decodes a GcsDestination message from the specified reader or buffer.
1489 * @param reader Reader or buffer to decode from
1490 * @param [length] Message length if known beforehand
1491 * @returns GcsDestination
1492 * @throws {Error} If the payload is not a reader or valid buffer
1493 * @throws {$protobuf.util.ProtocolError} If required fields are missing
1494 */
1495 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3.GcsDestination;
1496
1497 /**
1498 * Decodes a GcsDestination message from the specified reader or buffer, length delimited.
1499 * @param reader Reader or buffer to decode from
1500 * @returns GcsDestination
1501 * @throws {Error} If the payload is not a reader or valid buffer
1502 * @throws {$protobuf.util.ProtocolError} If required fields are missing
1503 */
1504 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3.GcsDestination;
1505
1506 /**
1507 * Verifies a GcsDestination message.
1508 * @param message Plain object to verify
1509 * @returns `null` if valid, otherwise the reason why it is not
1510 */
1511 public static verify(message: { [k: string]: any }): (string|null);
1512
1513 /**
1514 * Creates a GcsDestination message from a plain object. Also converts values to their respective internal types.
1515 * @param object Plain object
1516 * @returns GcsDestination
1517 */
1518 public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3.GcsDestination;
1519
1520 /**
1521 * Creates a plain object from a GcsDestination message. Also converts values to other types if specified.
1522 * @param message GcsDestination
1523 * @param [options] Conversion options
1524 * @returns Plain object
1525 */
1526 public static toObject(message: google.cloud.translation.v3.GcsDestination, options?: $protobuf.IConversionOptions): { [k: string]: any };
1527
1528 /**
1529 * Converts this GcsDestination to JSON.
1530 * @returns JSON object
1531 */
1532 public toJSON(): { [k: string]: any };
1533 }
1534
1535 /** Properties of an OutputConfig. */
1536 interface IOutputConfig {
1537
1538 /** OutputConfig gcsDestination */
1539 gcsDestination?: (google.cloud.translation.v3.IGcsDestination|null);
1540 }
1541
1542 /** Represents an OutputConfig. */
1543 class OutputConfig implements IOutputConfig {
1544
1545 /**
1546 * Constructs a new OutputConfig.
1547 * @param [properties] Properties to set
1548 */
1549 constructor(properties?: google.cloud.translation.v3.IOutputConfig);
1550
1551 /** OutputConfig gcsDestination. */
1552 public gcsDestination?: (google.cloud.translation.v3.IGcsDestination|null);
1553
1554 /** OutputConfig destination. */
1555 public destination?: "gcsDestination";
1556
1557 /**
1558 * Creates a new OutputConfig instance using the specified properties.
1559 * @param [properties] Properties to set
1560 * @returns OutputConfig instance
1561 */
1562 public static create(properties?: google.cloud.translation.v3.IOutputConfig): google.cloud.translation.v3.OutputConfig;
1563
1564 /**
1565 * Encodes the specified OutputConfig message. Does not implicitly {@link google.cloud.translation.v3.OutputConfig.verify|verify} messages.
1566 * @param message OutputConfig message or plain object to encode
1567 * @param [writer] Writer to encode to
1568 * @returns Writer
1569 */
1570 public static encode(message: google.cloud.translation.v3.IOutputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
1571
1572 /**
1573 * Encodes the specified OutputConfig message, length delimited. Does not implicitly {@link google.cloud.translation.v3.OutputConfig.verify|verify} messages.
1574 * @param message OutputConfig message or plain object to encode
1575 * @param [writer] Writer to encode to
1576 * @returns Writer
1577 */
1578 public static encodeDelimited(message: google.cloud.translation.v3.IOutputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
1579
1580 /**
1581 * Decodes an OutputConfig message from the specified reader or buffer.
1582 * @param reader Reader or buffer to decode from
1583 * @param [length] Message length if known beforehand
1584 * @returns OutputConfig
1585 * @throws {Error} If the payload is not a reader or valid buffer
1586 * @throws {$protobuf.util.ProtocolError} If required fields are missing
1587 */
1588 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3.OutputConfig;
1589
1590 /**
1591 * Decodes an OutputConfig message from the specified reader or buffer, length delimited.
1592 * @param reader Reader or buffer to decode from
1593 * @returns OutputConfig
1594 * @throws {Error} If the payload is not a reader or valid buffer
1595 * @throws {$protobuf.util.ProtocolError} If required fields are missing
1596 */
1597 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3.OutputConfig;
1598
1599 /**
1600 * Verifies an OutputConfig message.
1601 * @param message Plain object to verify
1602 * @returns `null` if valid, otherwise the reason why it is not
1603 */
1604 public static verify(message: { [k: string]: any }): (string|null);
1605
1606 /**
1607 * Creates an OutputConfig message from a plain object. Also converts values to their respective internal types.
1608 * @param object Plain object
1609 * @returns OutputConfig
1610 */
1611 public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3.OutputConfig;
1612
1613 /**
1614 * Creates a plain object from an OutputConfig message. Also converts values to other types if specified.
1615 * @param message OutputConfig
1616 * @param [options] Conversion options
1617 * @returns Plain object
1618 */
1619 public static toObject(message: google.cloud.translation.v3.OutputConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
1620
1621 /**
1622 * Converts this OutputConfig to JSON.
1623 * @returns JSON object
1624 */
1625 public toJSON(): { [k: string]: any };
1626 }
1627
1628 /** Properties of a BatchTranslateTextRequest. */
1629 interface IBatchTranslateTextRequest {
1630
1631 /** BatchTranslateTextRequest parent */
1632 parent?: (string|null);
1633
1634 /** BatchTranslateTextRequest sourceLanguageCode */
1635 sourceLanguageCode?: (string|null);
1636
1637 /** BatchTranslateTextRequest targetLanguageCodes */
1638 targetLanguageCodes?: (string[]|null);
1639
1640 /** BatchTranslateTextRequest models */
1641 models?: ({ [k: string]: string }|null);
1642
1643 /** BatchTranslateTextRequest inputConfigs */
1644 inputConfigs?: (google.cloud.translation.v3.IInputConfig[]|null);
1645
1646 /** BatchTranslateTextRequest outputConfig */
1647 outputConfig?: (google.cloud.translation.v3.IOutputConfig|null);
1648
1649 /** BatchTranslateTextRequest glossaries */
1650 glossaries?: ({ [k: string]: google.cloud.translation.v3.ITranslateTextGlossaryConfig }|null);
1651
1652 /** BatchTranslateTextRequest labels */
1653 labels?: ({ [k: string]: string }|null);
1654 }
1655
1656 /** Represents a BatchTranslateTextRequest. */
1657 class BatchTranslateTextRequest implements IBatchTranslateTextRequest {
1658
1659 /**
1660 * Constructs a new BatchTranslateTextRequest.
1661 * @param [properties] Properties to set
1662 */
1663 constructor(properties?: google.cloud.translation.v3.IBatchTranslateTextRequest);
1664
1665 /** BatchTranslateTextRequest parent. */
1666 public parent: string;
1667
1668 /** BatchTranslateTextRequest sourceLanguageCode. */
1669 public sourceLanguageCode: string;
1670
1671 /** BatchTranslateTextRequest targetLanguageCodes. */
1672 public targetLanguageCodes: string[];
1673
1674 /** BatchTranslateTextRequest models. */
1675 public models: { [k: string]: string };
1676
1677 /** BatchTranslateTextRequest inputConfigs. */
1678 public inputConfigs: google.cloud.translation.v3.IInputConfig[];
1679
1680 /** BatchTranslateTextRequest outputConfig. */
1681 public outputConfig?: (google.cloud.translation.v3.IOutputConfig|null);
1682
1683 /** BatchTranslateTextRequest glossaries. */
1684 public glossaries: { [k: string]: google.cloud.translation.v3.ITranslateTextGlossaryConfig };
1685
1686 /** BatchTranslateTextRequest labels. */
1687 public labels: { [k: string]: string };
1688
1689 /**
1690 * Creates a new BatchTranslateTextRequest instance using the specified properties.
1691 * @param [properties] Properties to set
1692 * @returns BatchTranslateTextRequest instance
1693 */
1694 public static create(properties?: google.cloud.translation.v3.IBatchTranslateTextRequest): google.cloud.translation.v3.BatchTranslateTextRequest;
1695
1696 /**
1697 * Encodes the specified BatchTranslateTextRequest message. Does not implicitly {@link google.cloud.translation.v3.BatchTranslateTextRequest.verify|verify} messages.
1698 * @param message BatchTranslateTextRequest message or plain object to encode
1699 * @param [writer] Writer to encode to
1700 * @returns Writer
1701 */
1702 public static encode(message: google.cloud.translation.v3.IBatchTranslateTextRequest, writer?: $protobuf.Writer): $protobuf.Writer;
1703
1704 /**
1705 * Encodes the specified BatchTranslateTextRequest message, length delimited. Does not implicitly {@link google.cloud.translation.v3.BatchTranslateTextRequest.verify|verify} messages.
1706 * @param message BatchTranslateTextRequest message or plain object to encode
1707 * @param [writer] Writer to encode to
1708 * @returns Writer
1709 */
1710 public static encodeDelimited(message: google.cloud.translation.v3.IBatchTranslateTextRequest, writer?: $protobuf.Writer): $protobuf.Writer;
1711
1712 /**
1713 * Decodes a BatchTranslateTextRequest message from the specified reader or buffer.
1714 * @param reader Reader or buffer to decode from
1715 * @param [length] Message length if known beforehand
1716 * @returns BatchTranslateTextRequest
1717 * @throws {Error} If the payload is not a reader or valid buffer
1718 * @throws {$protobuf.util.ProtocolError} If required fields are missing
1719 */
1720 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3.BatchTranslateTextRequest;
1721
1722 /**
1723 * Decodes a BatchTranslateTextRequest message from the specified reader or buffer, length delimited.
1724 * @param reader Reader or buffer to decode from
1725 * @returns BatchTranslateTextRequest
1726 * @throws {Error} If the payload is not a reader or valid buffer
1727 * @throws {$protobuf.util.ProtocolError} If required fields are missing
1728 */
1729 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3.BatchTranslateTextRequest;
1730
1731 /**
1732 * Verifies a BatchTranslateTextRequest message.
1733 * @param message Plain object to verify
1734 * @returns `null` if valid, otherwise the reason why it is not
1735 */
1736 public static verify(message: { [k: string]: any }): (string|null);
1737
1738 /**
1739 * Creates a BatchTranslateTextRequest message from a plain object. Also converts values to their respective internal types.
1740 * @param object Plain object
1741 * @returns BatchTranslateTextRequest
1742 */
1743 public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3.BatchTranslateTextRequest;
1744
1745 /**
1746 * Creates a plain object from a BatchTranslateTextRequest message. Also converts values to other types if specified.
1747 * @param message BatchTranslateTextRequest
1748 * @param [options] Conversion options
1749 * @returns Plain object
1750 */
1751 public static toObject(message: google.cloud.translation.v3.BatchTranslateTextRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
1752
1753 /**
1754 * Converts this BatchTranslateTextRequest to JSON.
1755 * @returns JSON object
1756 */
1757 public toJSON(): { [k: string]: any };
1758 }
1759
1760 /** Properties of a BatchTranslateMetadata. */
1761 interface IBatchTranslateMetadata {
1762
1763 /** BatchTranslateMetadata state */
1764 state?: (google.cloud.translation.v3.BatchTranslateMetadata.State|keyof typeof google.cloud.translation.v3.BatchTranslateMetadata.State|null);
1765
1766 /** BatchTranslateMetadata translatedCharacters */
1767 translatedCharacters?: (number|Long|string|null);
1768
1769 /** BatchTranslateMetadata failedCharacters */
1770 failedCharacters?: (number|Long|string|null);
1771
1772 /** BatchTranslateMetadata totalCharacters */
1773 totalCharacters?: (number|Long|string|null);
1774
1775 /** BatchTranslateMetadata submitTime */
1776 submitTime?: (google.protobuf.ITimestamp|null);
1777 }
1778
1779 /** Represents a BatchTranslateMetadata. */
1780 class BatchTranslateMetadata implements IBatchTranslateMetadata {
1781
1782 /**
1783 * Constructs a new BatchTranslateMetadata.
1784 * @param [properties] Properties to set
1785 */
1786 constructor(properties?: google.cloud.translation.v3.IBatchTranslateMetadata);
1787
1788 /** BatchTranslateMetadata state. */
1789 public state: (google.cloud.translation.v3.BatchTranslateMetadata.State|keyof typeof google.cloud.translation.v3.BatchTranslateMetadata.State);
1790
1791 /** BatchTranslateMetadata translatedCharacters. */
1792 public translatedCharacters: (number|Long|string);
1793
1794 /** BatchTranslateMetadata failedCharacters. */
1795 public failedCharacters: (number|Long|string);
1796
1797 /** BatchTranslateMetadata totalCharacters. */
1798 public totalCharacters: (number|Long|string);
1799
1800 /** BatchTranslateMetadata submitTime. */
1801 public submitTime?: (google.protobuf.ITimestamp|null);
1802
1803 /**
1804 * Creates a new BatchTranslateMetadata instance using the specified properties.
1805 * @param [properties] Properties to set
1806 * @returns BatchTranslateMetadata instance
1807 */
1808 public static create(properties?: google.cloud.translation.v3.IBatchTranslateMetadata): google.cloud.translation.v3.BatchTranslateMetadata;
1809
1810 /**
1811 * Encodes the specified BatchTranslateMetadata message. Does not implicitly {@link google.cloud.translation.v3.BatchTranslateMetadata.verify|verify} messages.
1812 * @param message BatchTranslateMetadata message or plain object to encode
1813 * @param [writer] Writer to encode to
1814 * @returns Writer
1815 */
1816 public static encode(message: google.cloud.translation.v3.IBatchTranslateMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
1817
1818 /**
1819 * Encodes the specified BatchTranslateMetadata message, length delimited. Does not implicitly {@link google.cloud.translation.v3.BatchTranslateMetadata.verify|verify} messages.
1820 * @param message BatchTranslateMetadata message or plain object to encode
1821 * @param [writer] Writer to encode to
1822 * @returns Writer
1823 */
1824 public static encodeDelimited(message: google.cloud.translation.v3.IBatchTranslateMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
1825
1826 /**
1827 * Decodes a BatchTranslateMetadata 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 BatchTranslateMetadata
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.translation.v3.BatchTranslateMetadata;
1835
1836 /**
1837 * Decodes a BatchTranslateMetadata message from the specified reader or buffer, length delimited.
1838 * @param reader Reader or buffer to decode from
1839 * @returns BatchTranslateMetadata
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.translation.v3.BatchTranslateMetadata;
1844
1845 /**
1846 * Verifies a BatchTranslateMetadata 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 BatchTranslateMetadata message from a plain object. Also converts values to their respective internal types.
1854 * @param object Plain object
1855 * @returns BatchTranslateMetadata
1856 */
1857 public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3.BatchTranslateMetadata;
1858
1859 /**
1860 * Creates a plain object from a BatchTranslateMetadata message. Also converts values to other types if specified.
1861 * @param message BatchTranslateMetadata
1862 * @param [options] Conversion options
1863 * @returns Plain object
1864 */
1865 public static toObject(message: google.cloud.translation.v3.BatchTranslateMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
1866
1867 /**
1868 * Converts this BatchTranslateMetadata to JSON.
1869 * @returns JSON object
1870 */
1871 public toJSON(): { [k: string]: any };
1872 }
1873
1874 namespace BatchTranslateMetadata {
1875
1876 /** State enum. */
1877 enum State {
1878 STATE_UNSPECIFIED = 0,
1879 RUNNING = 1,
1880 SUCCEEDED = 2,
1881 FAILED = 3,
1882 CANCELLING = 4,
1883 CANCELLED = 5
1884 }
1885 }
1886
1887 /** Properties of a BatchTranslateResponse. */
1888 interface IBatchTranslateResponse {
1889
1890 /** BatchTranslateResponse totalCharacters */
1891 totalCharacters?: (number|Long|string|null);
1892
1893 /** BatchTranslateResponse translatedCharacters */
1894 translatedCharacters?: (number|Long|string|null);
1895
1896 /** BatchTranslateResponse failedCharacters */
1897 failedCharacters?: (number|Long|string|null);
1898
1899 /** BatchTranslateResponse submitTime */
1900 submitTime?: (google.protobuf.ITimestamp|null);
1901
1902 /** BatchTranslateResponse endTime */
1903 endTime?: (google.protobuf.ITimestamp|null);
1904 }
1905
1906 /** Represents a BatchTranslateResponse. */
1907 class BatchTranslateResponse implements IBatchTranslateResponse {
1908
1909 /**
1910 * Constructs a new BatchTranslateResponse.
1911 * @param [properties] Properties to set
1912 */
1913 constructor(properties?: google.cloud.translation.v3.IBatchTranslateResponse);
1914
1915 /** BatchTranslateResponse totalCharacters. */
1916 public totalCharacters: (number|Long|string);
1917
1918 /** BatchTranslateResponse translatedCharacters. */
1919 public translatedCharacters: (number|Long|string);
1920
1921 /** BatchTranslateResponse failedCharacters. */
1922 public failedCharacters: (number|Long|string);
1923
1924 /** BatchTranslateResponse submitTime. */
1925 public submitTime?: (google.protobuf.ITimestamp|null);
1926
1927 /** BatchTranslateResponse endTime. */
1928 public endTime?: (google.protobuf.ITimestamp|null);
1929
1930 /**
1931 * Creates a new BatchTranslateResponse instance using the specified properties.
1932 * @param [properties] Properties to set
1933 * @returns BatchTranslateResponse instance
1934 */
1935 public static create(properties?: google.cloud.translation.v3.IBatchTranslateResponse): google.cloud.translation.v3.BatchTranslateResponse;
1936
1937 /**
1938 * Encodes the specified BatchTranslateResponse message. Does not implicitly {@link google.cloud.translation.v3.BatchTranslateResponse.verify|verify} messages.
1939 * @param message BatchTranslateResponse message or plain object to encode
1940 * @param [writer] Writer to encode to
1941 * @returns Writer
1942 */
1943 public static encode(message: google.cloud.translation.v3.IBatchTranslateResponse, writer?: $protobuf.Writer): $protobuf.Writer;
1944
1945 /**
1946 * Encodes the specified BatchTranslateResponse message, length delimited. Does not implicitly {@link google.cloud.translation.v3.BatchTranslateResponse.verify|verify} messages.
1947 * @param message BatchTranslateResponse message or plain object to encode
1948 * @param [writer] Writer to encode to
1949 * @returns Writer
1950 */
1951 public static encodeDelimited(message: google.cloud.translation.v3.IBatchTranslateResponse, writer?: $protobuf.Writer): $protobuf.Writer;
1952
1953 /**
1954 * Decodes a BatchTranslateResponse message from the specified reader or buffer.
1955 * @param reader Reader or buffer to decode from
1956 * @param [length] Message length if known beforehand
1957 * @returns BatchTranslateResponse
1958 * @throws {Error} If the payload is not a reader or valid buffer
1959 * @throws {$protobuf.util.ProtocolError} If required fields are missing
1960 */
1961 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3.BatchTranslateResponse;
1962
1963 /**
1964 * Decodes a BatchTranslateResponse message from the specified reader or buffer, length delimited.
1965 * @param reader Reader or buffer to decode from
1966 * @returns BatchTranslateResponse
1967 * @throws {Error} If the payload is not a reader or valid buffer
1968 * @throws {$protobuf.util.ProtocolError} If required fields are missing
1969 */
1970 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3.BatchTranslateResponse;
1971
1972 /**
1973 * Verifies a BatchTranslateResponse message.
1974 * @param message Plain object to verify
1975 * @returns `null` if valid, otherwise the reason why it is not
1976 */
1977 public static verify(message: { [k: string]: any }): (string|null);
1978
1979 /**
1980 * Creates a BatchTranslateResponse message from a plain object. Also converts values to their respective internal types.
1981 * @param object Plain object
1982 * @returns BatchTranslateResponse
1983 */
1984 public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3.BatchTranslateResponse;
1985
1986 /**
1987 * Creates a plain object from a BatchTranslateResponse message. Also converts values to other types if specified.
1988 * @param message BatchTranslateResponse
1989 * @param [options] Conversion options
1990 * @returns Plain object
1991 */
1992 public static toObject(message: google.cloud.translation.v3.BatchTranslateResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
1993
1994 /**
1995 * Converts this BatchTranslateResponse to JSON.
1996 * @returns JSON object
1997 */
1998 public toJSON(): { [k: string]: any };
1999 }
2000
2001 /** Properties of a GlossaryInputConfig. */
2002 interface IGlossaryInputConfig {
2003
2004 /** GlossaryInputConfig gcsSource */
2005 gcsSource?: (google.cloud.translation.v3.IGcsSource|null);
2006 }
2007
2008 /** Represents a GlossaryInputConfig. */
2009 class GlossaryInputConfig implements IGlossaryInputConfig {
2010
2011 /**
2012 * Constructs a new GlossaryInputConfig.
2013 * @param [properties] Properties to set
2014 */
2015 constructor(properties?: google.cloud.translation.v3.IGlossaryInputConfig);
2016
2017 /** GlossaryInputConfig gcsSource. */
2018 public gcsSource?: (google.cloud.translation.v3.IGcsSource|null);
2019
2020 /** GlossaryInputConfig source. */
2021 public source?: "gcsSource";
2022
2023 /**
2024 * Creates a new GlossaryInputConfig instance using the specified properties.
2025 * @param [properties] Properties to set
2026 * @returns GlossaryInputConfig instance
2027 */
2028 public static create(properties?: google.cloud.translation.v3.IGlossaryInputConfig): google.cloud.translation.v3.GlossaryInputConfig;
2029
2030 /**
2031 * Encodes the specified GlossaryInputConfig message. Does not implicitly {@link google.cloud.translation.v3.GlossaryInputConfig.verify|verify} messages.
2032 * @param message GlossaryInputConfig message or plain object to encode
2033 * @param [writer] Writer to encode to
2034 * @returns Writer
2035 */
2036 public static encode(message: google.cloud.translation.v3.IGlossaryInputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
2037
2038 /**
2039 * Encodes the specified GlossaryInputConfig message, length delimited. Does not implicitly {@link google.cloud.translation.v3.GlossaryInputConfig.verify|verify} messages.
2040 * @param message GlossaryInputConfig message or plain object to encode
2041 * @param [writer] Writer to encode to
2042 * @returns Writer
2043 */
2044 public static encodeDelimited(message: google.cloud.translation.v3.IGlossaryInputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
2045
2046 /**
2047 * Decodes a GlossaryInputConfig message from the specified reader or buffer.
2048 * @param reader Reader or buffer to decode from
2049 * @param [length] Message length if known beforehand
2050 * @returns GlossaryInputConfig
2051 * @throws {Error} If the payload is not a reader or valid buffer
2052 * @throws {$protobuf.util.ProtocolError} If required fields are missing
2053 */
2054 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3.GlossaryInputConfig;
2055
2056 /**
2057 * Decodes a GlossaryInputConfig message from the specified reader or buffer, length delimited.
2058 * @param reader Reader or buffer to decode from
2059 * @returns GlossaryInputConfig
2060 * @throws {Error} If the payload is not a reader or valid buffer
2061 * @throws {$protobuf.util.ProtocolError} If required fields are missing
2062 */
2063 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3.GlossaryInputConfig;
2064
2065 /**
2066 * Verifies a GlossaryInputConfig message.
2067 * @param message Plain object to verify
2068 * @returns `null` if valid, otherwise the reason why it is not
2069 */
2070 public static verify(message: { [k: string]: any }): (string|null);
2071
2072 /**
2073 * Creates a GlossaryInputConfig message from a plain object. Also converts values to their respective internal types.
2074 * @param object Plain object
2075 * @returns GlossaryInputConfig
2076 */
2077 public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3.GlossaryInputConfig;
2078
2079 /**
2080 * Creates a plain object from a GlossaryInputConfig message. Also converts values to other types if specified.
2081 * @param message GlossaryInputConfig
2082 * @param [options] Conversion options
2083 * @returns Plain object
2084 */
2085 public static toObject(message: google.cloud.translation.v3.GlossaryInputConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
2086
2087 /**
2088 * Converts this GlossaryInputConfig to JSON.
2089 * @returns JSON object
2090 */
2091 public toJSON(): { [k: string]: any };
2092 }
2093
2094 /** Properties of a Glossary. */
2095 interface IGlossary {
2096
2097 /** Glossary name */
2098 name?: (string|null);
2099
2100 /** Glossary languagePair */
2101 languagePair?: (google.cloud.translation.v3.Glossary.ILanguageCodePair|null);
2102
2103 /** Glossary languageCodesSet */
2104 languageCodesSet?: (google.cloud.translation.v3.Glossary.ILanguageCodesSet|null);
2105
2106 /** Glossary inputConfig */
2107 inputConfig?: (google.cloud.translation.v3.IGlossaryInputConfig|null);
2108
2109 /** Glossary entryCount */
2110 entryCount?: (number|null);
2111
2112 /** Glossary submitTime */
2113 submitTime?: (google.protobuf.ITimestamp|null);
2114
2115 /** Glossary endTime */
2116 endTime?: (google.protobuf.ITimestamp|null);
2117 }
2118
2119 /** Represents a Glossary. */
2120 class Glossary implements IGlossary {
2121
2122 /**
2123 * Constructs a new Glossary.
2124 * @param [properties] Properties to set
2125 */
2126 constructor(properties?: google.cloud.translation.v3.IGlossary);
2127
2128 /** Glossary name. */
2129 public name: string;
2130
2131 /** Glossary languagePair. */
2132 public languagePair?: (google.cloud.translation.v3.Glossary.ILanguageCodePair|null);
2133
2134 /** Glossary languageCodesSet. */
2135 public languageCodesSet?: (google.cloud.translation.v3.Glossary.ILanguageCodesSet|null);
2136
2137 /** Glossary inputConfig. */
2138 public inputConfig?: (google.cloud.translation.v3.IGlossaryInputConfig|null);
2139
2140 /** Glossary entryCount. */
2141 public entryCount: number;
2142
2143 /** Glossary submitTime. */
2144 public submitTime?: (google.protobuf.ITimestamp|null);
2145
2146 /** Glossary endTime. */
2147 public endTime?: (google.protobuf.ITimestamp|null);
2148
2149 /** Glossary languages. */
2150 public languages?: ("languagePair"|"languageCodesSet");
2151
2152 /**
2153 * Creates a new Glossary instance using the specified properties.
2154 * @param [properties] Properties to set
2155 * @returns Glossary instance
2156 */
2157 public static create(properties?: google.cloud.translation.v3.IGlossary): google.cloud.translation.v3.Glossary;
2158
2159 /**
2160 * Encodes the specified Glossary message. Does not implicitly {@link google.cloud.translation.v3.Glossary.verify|verify} messages.
2161 * @param message Glossary message or plain object to encode
2162 * @param [writer] Writer to encode to
2163 * @returns Writer
2164 */
2165 public static encode(message: google.cloud.translation.v3.IGlossary, writer?: $protobuf.Writer): $protobuf.Writer;
2166
2167 /**
2168 * Encodes the specified Glossary message, length delimited. Does not implicitly {@link google.cloud.translation.v3.Glossary.verify|verify} messages.
2169 * @param message Glossary message or plain object to encode
2170 * @param [writer] Writer to encode to
2171 * @returns Writer
2172 */
2173 public static encodeDelimited(message: google.cloud.translation.v3.IGlossary, writer?: $protobuf.Writer): $protobuf.Writer;
2174
2175 /**
2176 * Decodes a Glossary message from the specified reader or buffer.
2177 * @param reader Reader or buffer to decode from
2178 * @param [length] Message length if known beforehand
2179 * @returns Glossary
2180 * @throws {Error} If the payload is not a reader or valid buffer
2181 * @throws {$protobuf.util.ProtocolError} If required fields are missing
2182 */
2183 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3.Glossary;
2184
2185 /**
2186 * Decodes a Glossary message from the specified reader or buffer, length delimited.
2187 * @param reader Reader or buffer to decode from
2188 * @returns Glossary
2189 * @throws {Error} If the payload is not a reader or valid buffer
2190 * @throws {$protobuf.util.ProtocolError} If required fields are missing
2191 */
2192 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3.Glossary;
2193
2194 /**
2195 * Verifies a Glossary message.
2196 * @param message Plain object to verify
2197 * @returns `null` if valid, otherwise the reason why it is not
2198 */
2199 public static verify(message: { [k: string]: any }): (string|null);
2200
2201 /**
2202 * Creates a Glossary message from a plain object. Also converts values to their respective internal types.
2203 * @param object Plain object
2204 * @returns Glossary
2205 */
2206 public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3.Glossary;
2207
2208 /**
2209 * Creates a plain object from a Glossary message. Also converts values to other types if specified.
2210 * @param message Glossary
2211 * @param [options] Conversion options
2212 * @returns Plain object
2213 */
2214 public static toObject(message: google.cloud.translation.v3.Glossary, options?: $protobuf.IConversionOptions): { [k: string]: any };
2215
2216 /**
2217 * Converts this Glossary to JSON.
2218 * @returns JSON object
2219 */
2220 public toJSON(): { [k: string]: any };
2221 }
2222
2223 namespace Glossary {
2224
2225 /** Properties of a LanguageCodePair. */
2226 interface ILanguageCodePair {
2227
2228 /** LanguageCodePair sourceLanguageCode */
2229 sourceLanguageCode?: (string|null);
2230
2231 /** LanguageCodePair targetLanguageCode */
2232 targetLanguageCode?: (string|null);
2233 }
2234
2235 /** Represents a LanguageCodePair. */
2236 class LanguageCodePair implements ILanguageCodePair {
2237
2238 /**
2239 * Constructs a new LanguageCodePair.
2240 * @param [properties] Properties to set
2241 */
2242 constructor(properties?: google.cloud.translation.v3.Glossary.ILanguageCodePair);
2243
2244 /** LanguageCodePair sourceLanguageCode. */
2245 public sourceLanguageCode: string;
2246
2247 /** LanguageCodePair targetLanguageCode. */
2248 public targetLanguageCode: string;
2249
2250 /**
2251 * Creates a new LanguageCodePair instance using the specified properties.
2252 * @param [properties] Properties to set
2253 * @returns LanguageCodePair instance
2254 */
2255 public static create(properties?: google.cloud.translation.v3.Glossary.ILanguageCodePair): google.cloud.translation.v3.Glossary.LanguageCodePair;
2256
2257 /**
2258 * Encodes the specified LanguageCodePair message. Does not implicitly {@link google.cloud.translation.v3.Glossary.LanguageCodePair.verify|verify} messages.
2259 * @param message LanguageCodePair message or plain object to encode
2260 * @param [writer] Writer to encode to
2261 * @returns Writer
2262 */
2263 public static encode(message: google.cloud.translation.v3.Glossary.ILanguageCodePair, writer?: $protobuf.Writer): $protobuf.Writer;
2264
2265 /**
2266 * Encodes the specified LanguageCodePair message, length delimited. Does not implicitly {@link google.cloud.translation.v3.Glossary.LanguageCodePair.verify|verify} messages.
2267 * @param message LanguageCodePair message or plain object to encode
2268 * @param [writer] Writer to encode to
2269 * @returns Writer
2270 */
2271 public static encodeDelimited(message: google.cloud.translation.v3.Glossary.ILanguageCodePair, writer?: $protobuf.Writer): $protobuf.Writer;
2272
2273 /**
2274 * Decodes a LanguageCodePair message from the specified reader or buffer.
2275 * @param reader Reader or buffer to decode from
2276 * @param [length] Message length if known beforehand
2277 * @returns LanguageCodePair
2278 * @throws {Error} If the payload is not a reader or valid buffer
2279 * @throws {$protobuf.util.ProtocolError} If required fields are missing
2280 */
2281 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3.Glossary.LanguageCodePair;
2282
2283 /**
2284 * Decodes a LanguageCodePair message from the specified reader or buffer, length delimited.
2285 * @param reader Reader or buffer to decode from
2286 * @returns LanguageCodePair
2287 * @throws {Error} If the payload is not a reader or valid buffer
2288 * @throws {$protobuf.util.ProtocolError} If required fields are missing
2289 */
2290 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3.Glossary.LanguageCodePair;
2291
2292 /**
2293 * Verifies a LanguageCodePair message.
2294 * @param message Plain object to verify
2295 * @returns `null` if valid, otherwise the reason why it is not
2296 */
2297 public static verify(message: { [k: string]: any }): (string|null);
2298
2299 /**
2300 * Creates a LanguageCodePair message from a plain object. Also converts values to their respective internal types.
2301 * @param object Plain object
2302 * @returns LanguageCodePair
2303 */
2304 public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3.Glossary.LanguageCodePair;
2305
2306 /**
2307 * Creates a plain object from a LanguageCodePair message. Also converts values to other types if specified.
2308 * @param message LanguageCodePair
2309 * @param [options] Conversion options
2310 * @returns Plain object
2311 */
2312 public static toObject(message: google.cloud.translation.v3.Glossary.LanguageCodePair, options?: $protobuf.IConversionOptions): { [k: string]: any };
2313
2314 /**
2315 * Converts this LanguageCodePair to JSON.
2316 * @returns JSON object
2317 */
2318 public toJSON(): { [k: string]: any };
2319 }
2320
2321 /** Properties of a LanguageCodesSet. */
2322 interface ILanguageCodesSet {
2323
2324 /** LanguageCodesSet languageCodes */
2325 languageCodes?: (string[]|null);
2326 }
2327
2328 /** Represents a LanguageCodesSet. */
2329 class LanguageCodesSet implements ILanguageCodesSet {
2330
2331 /**
2332 * Constructs a new LanguageCodesSet.
2333 * @param [properties] Properties to set
2334 */
2335 constructor(properties?: google.cloud.translation.v3.Glossary.ILanguageCodesSet);
2336
2337 /** LanguageCodesSet languageCodes. */
2338 public languageCodes: string[];
2339
2340 /**
2341 * Creates a new LanguageCodesSet instance using the specified properties.
2342 * @param [properties] Properties to set
2343 * @returns LanguageCodesSet instance
2344 */
2345 public static create(properties?: google.cloud.translation.v3.Glossary.ILanguageCodesSet): google.cloud.translation.v3.Glossary.LanguageCodesSet;
2346
2347 /**
2348 * Encodes the specified LanguageCodesSet message. Does not implicitly {@link google.cloud.translation.v3.Glossary.LanguageCodesSet.verify|verify} messages.
2349 * @param message LanguageCodesSet message or plain object to encode
2350 * @param [writer] Writer to encode to
2351 * @returns Writer
2352 */
2353 public static encode(message: google.cloud.translation.v3.Glossary.ILanguageCodesSet, writer?: $protobuf.Writer): $protobuf.Writer;
2354
2355 /**
2356 * Encodes the specified LanguageCodesSet message, length delimited. Does not implicitly {@link google.cloud.translation.v3.Glossary.LanguageCodesSet.verify|verify} messages.
2357 * @param message LanguageCodesSet message or plain object to encode
2358 * @param [writer] Writer to encode to
2359 * @returns Writer
2360 */
2361 public static encodeDelimited(message: google.cloud.translation.v3.Glossary.ILanguageCodesSet, writer?: $protobuf.Writer): $protobuf.Writer;
2362
2363 /**
2364 * Decodes a LanguageCodesSet message from the specified reader or buffer.
2365 * @param reader Reader or buffer to decode from
2366 * @param [length] Message length if known beforehand
2367 * @returns LanguageCodesSet
2368 * @throws {Error} If the payload is not a reader or valid buffer
2369 * @throws {$protobuf.util.ProtocolError} If required fields are missing
2370 */
2371 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3.Glossary.LanguageCodesSet;
2372
2373 /**
2374 * Decodes a LanguageCodesSet message from the specified reader or buffer, length delimited.
2375 * @param reader Reader or buffer to decode from
2376 * @returns LanguageCodesSet
2377 * @throws {Error} If the payload is not a reader or valid buffer
2378 * @throws {$protobuf.util.ProtocolError} If required fields are missing
2379 */
2380 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3.Glossary.LanguageCodesSet;
2381
2382 /**
2383 * Verifies a LanguageCodesSet message.
2384 * @param message Plain object to verify
2385 * @returns `null` if valid, otherwise the reason why it is not
2386 */
2387 public static verify(message: { [k: string]: any }): (string|null);
2388
2389 /**
2390 * Creates a LanguageCodesSet message from a plain object. Also converts values to their respective internal types.
2391 * @param object Plain object
2392 * @returns LanguageCodesSet
2393 */
2394 public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3.Glossary.LanguageCodesSet;
2395
2396 /**
2397 * Creates a plain object from a LanguageCodesSet message. Also converts values to other types if specified.
2398 * @param message LanguageCodesSet
2399 * @param [options] Conversion options
2400 * @returns Plain object
2401 */
2402 public static toObject(message: google.cloud.translation.v3.Glossary.LanguageCodesSet, options?: $protobuf.IConversionOptions): { [k: string]: any };
2403
2404 /**
2405 * Converts this LanguageCodesSet to JSON.
2406 * @returns JSON object
2407 */
2408 public toJSON(): { [k: string]: any };
2409 }
2410 }
2411
2412 /** Properties of a CreateGlossaryRequest. */
2413 interface ICreateGlossaryRequest {
2414
2415 /** CreateGlossaryRequest parent */
2416 parent?: (string|null);
2417
2418 /** CreateGlossaryRequest glossary */
2419 glossary?: (google.cloud.translation.v3.IGlossary|null);
2420 }
2421
2422 /** Represents a CreateGlossaryRequest. */
2423 class CreateGlossaryRequest implements ICreateGlossaryRequest {
2424
2425 /**
2426 * Constructs a new CreateGlossaryRequest.
2427 * @param [properties] Properties to set
2428 */
2429 constructor(properties?: google.cloud.translation.v3.ICreateGlossaryRequest);
2430
2431 /** CreateGlossaryRequest parent. */
2432 public parent: string;
2433
2434 /** CreateGlossaryRequest glossary. */
2435 public glossary?: (google.cloud.translation.v3.IGlossary|null);
2436
2437 /**
2438 * Creates a new CreateGlossaryRequest instance using the specified properties.
2439 * @param [properties] Properties to set
2440 * @returns CreateGlossaryRequest instance
2441 */
2442 public static create(properties?: google.cloud.translation.v3.ICreateGlossaryRequest): google.cloud.translation.v3.CreateGlossaryRequest;
2443
2444 /**
2445 * Encodes the specified CreateGlossaryRequest message. Does not implicitly {@link google.cloud.translation.v3.CreateGlossaryRequest.verify|verify} messages.
2446 * @param message CreateGlossaryRequest message or plain object to encode
2447 * @param [writer] Writer to encode to
2448 * @returns Writer
2449 */
2450 public static encode(message: google.cloud.translation.v3.ICreateGlossaryRequest, writer?: $protobuf.Writer): $protobuf.Writer;
2451
2452 /**
2453 * Encodes the specified CreateGlossaryRequest message, length delimited. Does not implicitly {@link google.cloud.translation.v3.CreateGlossaryRequest.verify|verify} messages.
2454 * @param message CreateGlossaryRequest message or plain object to encode
2455 * @param [writer] Writer to encode to
2456 * @returns Writer
2457 */
2458 public static encodeDelimited(message: google.cloud.translation.v3.ICreateGlossaryRequest, writer?: $protobuf.Writer): $protobuf.Writer;
2459
2460 /**
2461 * Decodes a CreateGlossaryRequest message from the specified reader or buffer.
2462 * @param reader Reader or buffer to decode from
2463 * @param [length] Message length if known beforehand
2464 * @returns CreateGlossaryRequest
2465 * @throws {Error} If the payload is not a reader or valid buffer
2466 * @throws {$protobuf.util.ProtocolError} If required fields are missing
2467 */
2468 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3.CreateGlossaryRequest;
2469
2470 /**
2471 * Decodes a CreateGlossaryRequest message from the specified reader or buffer, length delimited.
2472 * @param reader Reader or buffer to decode from
2473 * @returns CreateGlossaryRequest
2474 * @throws {Error} If the payload is not a reader or valid buffer
2475 * @throws {$protobuf.util.ProtocolError} If required fields are missing
2476 */
2477 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3.CreateGlossaryRequest;
2478
2479 /**
2480 * Verifies a CreateGlossaryRequest message.
2481 * @param message Plain object to verify
2482 * @returns `null` if valid, otherwise the reason why it is not
2483 */
2484 public static verify(message: { [k: string]: any }): (string|null);
2485
2486 /**
2487 * Creates a CreateGlossaryRequest message from a plain object. Also converts values to their respective internal types.
2488 * @param object Plain object
2489 * @returns CreateGlossaryRequest
2490 */
2491 public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3.CreateGlossaryRequest;
2492
2493 /**
2494 * Creates a plain object from a CreateGlossaryRequest message. Also converts values to other types if specified.
2495 * @param message CreateGlossaryRequest
2496 * @param [options] Conversion options
2497 * @returns Plain object
2498 */
2499 public static toObject(message: google.cloud.translation.v3.CreateGlossaryRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
2500
2501 /**
2502 * Converts this CreateGlossaryRequest to JSON.
2503 * @returns JSON object
2504 */
2505 public toJSON(): { [k: string]: any };
2506 }
2507
2508 /** Properties of a GetGlossaryRequest. */
2509 interface IGetGlossaryRequest {
2510
2511 /** GetGlossaryRequest name */
2512 name?: (string|null);
2513 }
2514
2515 /** Represents a GetGlossaryRequest. */
2516 class GetGlossaryRequest implements IGetGlossaryRequest {
2517
2518 /**
2519 * Constructs a new GetGlossaryRequest.
2520 * @param [properties] Properties to set
2521 */
2522 constructor(properties?: google.cloud.translation.v3.IGetGlossaryRequest);
2523
2524 /** GetGlossaryRequest name. */
2525 public name: string;
2526
2527 /**
2528 * Creates a new GetGlossaryRequest instance using the specified properties.
2529 * @param [properties] Properties to set
2530 * @returns GetGlossaryRequest instance
2531 */
2532 public static create(properties?: google.cloud.translation.v3.IGetGlossaryRequest): google.cloud.translation.v3.GetGlossaryRequest;
2533
2534 /**
2535 * Encodes the specified GetGlossaryRequest message. Does not implicitly {@link google.cloud.translation.v3.GetGlossaryRequest.verify|verify} messages.
2536 * @param message GetGlossaryRequest message or plain object to encode
2537 * @param [writer] Writer to encode to
2538 * @returns Writer
2539 */
2540 public static encode(message: google.cloud.translation.v3.IGetGlossaryRequest, writer?: $protobuf.Writer): $protobuf.Writer;
2541
2542 /**
2543 * Encodes the specified GetGlossaryRequest message, length delimited. Does not implicitly {@link google.cloud.translation.v3.GetGlossaryRequest.verify|verify} messages.
2544 * @param message GetGlossaryRequest message or plain object to encode
2545 * @param [writer] Writer to encode to
2546 * @returns Writer
2547 */
2548 public static encodeDelimited(message: google.cloud.translation.v3.IGetGlossaryRequest, writer?: $protobuf.Writer): $protobuf.Writer;
2549
2550 /**
2551 * Decodes a GetGlossaryRequest message from the specified reader or buffer.
2552 * @param reader Reader or buffer to decode from
2553 * @param [length] Message length if known beforehand
2554 * @returns GetGlossaryRequest
2555 * @throws {Error} If the payload is not a reader or valid buffer
2556 * @throws {$protobuf.util.ProtocolError} If required fields are missing
2557 */
2558 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3.GetGlossaryRequest;
2559
2560 /**
2561 * Decodes a GetGlossaryRequest message from the specified reader or buffer, length delimited.
2562 * @param reader Reader or buffer to decode from
2563 * @returns GetGlossaryRequest
2564 * @throws {Error} If the payload is not a reader or valid buffer
2565 * @throws {$protobuf.util.ProtocolError} If required fields are missing
2566 */
2567 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3.GetGlossaryRequest;
2568
2569 /**
2570 * Verifies a GetGlossaryRequest message.
2571 * @param message Plain object to verify
2572 * @returns `null` if valid, otherwise the reason why it is not
2573 */
2574 public static verify(message: { [k: string]: any }): (string|null);
2575
2576 /**
2577 * Creates a GetGlossaryRequest message from a plain object. Also converts values to their respective internal types.
2578 * @param object Plain object
2579 * @returns GetGlossaryRequest
2580 */
2581 public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3.GetGlossaryRequest;
2582
2583 /**
2584 * Creates a plain object from a GetGlossaryRequest message. Also converts values to other types if specified.
2585 * @param message GetGlossaryRequest
2586 * @param [options] Conversion options
2587 * @returns Plain object
2588 */
2589 public static toObject(message: google.cloud.translation.v3.GetGlossaryRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
2590
2591 /**
2592 * Converts this GetGlossaryRequest to JSON.
2593 * @returns JSON object
2594 */
2595 public toJSON(): { [k: string]: any };
2596 }
2597
2598 /** Properties of a DeleteGlossaryRequest. */
2599 interface IDeleteGlossaryRequest {
2600
2601 /** DeleteGlossaryRequest name */
2602 name?: (string|null);
2603 }
2604
2605 /** Represents a DeleteGlossaryRequest. */
2606 class DeleteGlossaryRequest implements IDeleteGlossaryRequest {
2607
2608 /**
2609 * Constructs a new DeleteGlossaryRequest.
2610 * @param [properties] Properties to set
2611 */
2612 constructor(properties?: google.cloud.translation.v3.IDeleteGlossaryRequest);
2613
2614 /** DeleteGlossaryRequest name. */
2615 public name: string;
2616
2617 /**
2618 * Creates a new DeleteGlossaryRequest instance using the specified properties.
2619 * @param [properties] Properties to set
2620 * @returns DeleteGlossaryRequest instance
2621 */
2622 public static create(properties?: google.cloud.translation.v3.IDeleteGlossaryRequest): google.cloud.translation.v3.DeleteGlossaryRequest;
2623
2624 /**
2625 * Encodes the specified DeleteGlossaryRequest message. Does not implicitly {@link google.cloud.translation.v3.DeleteGlossaryRequest.verify|verify} messages.
2626 * @param message DeleteGlossaryRequest message or plain object to encode
2627 * @param [writer] Writer to encode to
2628 * @returns Writer
2629 */
2630 public static encode(message: google.cloud.translation.v3.IDeleteGlossaryRequest, writer?: $protobuf.Writer): $protobuf.Writer;
2631
2632 /**
2633 * Encodes the specified DeleteGlossaryRequest message, length delimited. Does not implicitly {@link google.cloud.translation.v3.DeleteGlossaryRequest.verify|verify} messages.
2634 * @param message DeleteGlossaryRequest message or plain object to encode
2635 * @param [writer] Writer to encode to
2636 * @returns Writer
2637 */
2638 public static encodeDelimited(message: google.cloud.translation.v3.IDeleteGlossaryRequest, writer?: $protobuf.Writer): $protobuf.Writer;
2639
2640 /**
2641 * Decodes a DeleteGlossaryRequest message from the specified reader or buffer.
2642 * @param reader Reader or buffer to decode from
2643 * @param [length] Message length if known beforehand
2644 * @returns DeleteGlossaryRequest
2645 * @throws {Error} If the payload is not a reader or valid buffer
2646 * @throws {$protobuf.util.ProtocolError} If required fields are missing
2647 */
2648 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3.DeleteGlossaryRequest;
2649
2650 /**
2651 * Decodes a DeleteGlossaryRequest message from the specified reader or buffer, length delimited.
2652 * @param reader Reader or buffer to decode from
2653 * @returns DeleteGlossaryRequest
2654 * @throws {Error} If the payload is not a reader or valid buffer
2655 * @throws {$protobuf.util.ProtocolError} If required fields are missing
2656 */
2657 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3.DeleteGlossaryRequest;
2658
2659 /**
2660 * Verifies a DeleteGlossaryRequest message.
2661 * @param message Plain object to verify
2662 * @returns `null` if valid, otherwise the reason why it is not
2663 */
2664 public static verify(message: { [k: string]: any }): (string|null);
2665
2666 /**
2667 * Creates a DeleteGlossaryRequest message from a plain object. Also converts values to their respective internal types.
2668 * @param object Plain object
2669 * @returns DeleteGlossaryRequest
2670 */
2671 public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3.DeleteGlossaryRequest;
2672
2673 /**
2674 * Creates a plain object from a DeleteGlossaryRequest message. Also converts values to other types if specified.
2675 * @param message DeleteGlossaryRequest
2676 * @param [options] Conversion options
2677 * @returns Plain object
2678 */
2679 public static toObject(message: google.cloud.translation.v3.DeleteGlossaryRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
2680
2681 /**
2682 * Converts this DeleteGlossaryRequest to JSON.
2683 * @returns JSON object
2684 */
2685 public toJSON(): { [k: string]: any };
2686 }
2687
2688 /** Properties of a ListGlossariesRequest. */
2689 interface IListGlossariesRequest {
2690
2691 /** ListGlossariesRequest parent */
2692 parent?: (string|null);
2693
2694 /** ListGlossariesRequest pageSize */
2695 pageSize?: (number|null);
2696
2697 /** ListGlossariesRequest pageToken */
2698 pageToken?: (string|null);
2699
2700 /** ListGlossariesRequest filter */
2701 filter?: (string|null);
2702 }
2703
2704 /** Represents a ListGlossariesRequest. */
2705 class ListGlossariesRequest implements IListGlossariesRequest {
2706
2707 /**
2708 * Constructs a new ListGlossariesRequest.
2709 * @param [properties] Properties to set
2710 */
2711 constructor(properties?: google.cloud.translation.v3.IListGlossariesRequest);
2712
2713 /** ListGlossariesRequest parent. */
2714 public parent: string;
2715
2716 /** ListGlossariesRequest pageSize. */
2717 public pageSize: number;
2718
2719 /** ListGlossariesRequest pageToken. */
2720 public pageToken: string;
2721
2722 /** ListGlossariesRequest filter. */
2723 public filter: string;
2724
2725 /**
2726 * Creates a new ListGlossariesRequest instance using the specified properties.
2727 * @param [properties] Properties to set
2728 * @returns ListGlossariesRequest instance
2729 */
2730 public static create(properties?: google.cloud.translation.v3.IListGlossariesRequest): google.cloud.translation.v3.ListGlossariesRequest;
2731
2732 /**
2733 * Encodes the specified ListGlossariesRequest message. Does not implicitly {@link google.cloud.translation.v3.ListGlossariesRequest.verify|verify} messages.
2734 * @param message ListGlossariesRequest message or plain object to encode
2735 * @param [writer] Writer to encode to
2736 * @returns Writer
2737 */
2738 public static encode(message: google.cloud.translation.v3.IListGlossariesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
2739
2740 /**
2741 * Encodes the specified ListGlossariesRequest message, length delimited. Does not implicitly {@link google.cloud.translation.v3.ListGlossariesRequest.verify|verify} messages.
2742 * @param message ListGlossariesRequest message or plain object to encode
2743 * @param [writer] Writer to encode to
2744 * @returns Writer
2745 */
2746 public static encodeDelimited(message: google.cloud.translation.v3.IListGlossariesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
2747
2748 /**
2749 * Decodes a ListGlossariesRequest message from the specified reader or buffer.
2750 * @param reader Reader or buffer to decode from
2751 * @param [length] Message length if known beforehand
2752 * @returns ListGlossariesRequest
2753 * @throws {Error} If the payload is not a reader or valid buffer
2754 * @throws {$protobuf.util.ProtocolError} If required fields are missing
2755 */
2756 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3.ListGlossariesRequest;
2757
2758 /**
2759 * Decodes a ListGlossariesRequest message from the specified reader or buffer, length delimited.
2760 * @param reader Reader or buffer to decode from
2761 * @returns ListGlossariesRequest
2762 * @throws {Error} If the payload is not a reader or valid buffer
2763 * @throws {$protobuf.util.ProtocolError} If required fields are missing
2764 */
2765 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3.ListGlossariesRequest;
2766
2767 /**
2768 * Verifies a ListGlossariesRequest message.
2769 * @param message Plain object to verify
2770 * @returns `null` if valid, otherwise the reason why it is not
2771 */
2772 public static verify(message: { [k: string]: any }): (string|null);
2773
2774 /**
2775 * Creates a ListGlossariesRequest message from a plain object. Also converts values to their respective internal types.
2776 * @param object Plain object
2777 * @returns ListGlossariesRequest
2778 */
2779 public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3.ListGlossariesRequest;
2780
2781 /**
2782 * Creates a plain object from a ListGlossariesRequest message. Also converts values to other types if specified.
2783 * @param message ListGlossariesRequest
2784 * @param [options] Conversion options
2785 * @returns Plain object
2786 */
2787 public static toObject(message: google.cloud.translation.v3.ListGlossariesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
2788
2789 /**
2790 * Converts this ListGlossariesRequest to JSON.
2791 * @returns JSON object
2792 */
2793 public toJSON(): { [k: string]: any };
2794 }
2795
2796 /** Properties of a ListGlossariesResponse. */
2797 interface IListGlossariesResponse {
2798
2799 /** ListGlossariesResponse glossaries */
2800 glossaries?: (google.cloud.translation.v3.IGlossary[]|null);
2801
2802 /** ListGlossariesResponse nextPageToken */
2803 nextPageToken?: (string|null);
2804 }
2805
2806 /** Represents a ListGlossariesResponse. */
2807 class ListGlossariesResponse implements IListGlossariesResponse {
2808
2809 /**
2810 * Constructs a new ListGlossariesResponse.
2811 * @param [properties] Properties to set
2812 */
2813 constructor(properties?: google.cloud.translation.v3.IListGlossariesResponse);
2814
2815 /** ListGlossariesResponse glossaries. */
2816 public glossaries: google.cloud.translation.v3.IGlossary[];
2817
2818 /** ListGlossariesResponse nextPageToken. */
2819 public nextPageToken: string;
2820
2821 /**
2822 * Creates a new ListGlossariesResponse instance using the specified properties.
2823 * @param [properties] Properties to set
2824 * @returns ListGlossariesResponse instance
2825 */
2826 public static create(properties?: google.cloud.translation.v3.IListGlossariesResponse): google.cloud.translation.v3.ListGlossariesResponse;
2827
2828 /**
2829 * Encodes the specified ListGlossariesResponse message. Does not implicitly {@link google.cloud.translation.v3.ListGlossariesResponse.verify|verify} messages.
2830 * @param message ListGlossariesResponse message or plain object to encode
2831 * @param [writer] Writer to encode to
2832 * @returns Writer
2833 */
2834 public static encode(message: google.cloud.translation.v3.IListGlossariesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
2835
2836 /**
2837 * Encodes the specified ListGlossariesResponse message, length delimited. Does not implicitly {@link google.cloud.translation.v3.ListGlossariesResponse.verify|verify} messages.
2838 * @param message ListGlossariesResponse message or plain object to encode
2839 * @param [writer] Writer to encode to
2840 * @returns Writer
2841 */
2842 public static encodeDelimited(message: google.cloud.translation.v3.IListGlossariesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
2843
2844 /**
2845 * Decodes a ListGlossariesResponse message from the specified reader or buffer.
2846 * @param reader Reader or buffer to decode from
2847 * @param [length] Message length if known beforehand
2848 * @returns ListGlossariesResponse
2849 * @throws {Error} If the payload is not a reader or valid buffer
2850 * @throws {$protobuf.util.ProtocolError} If required fields are missing
2851 */
2852 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3.ListGlossariesResponse;
2853
2854 /**
2855 * Decodes a ListGlossariesResponse message from the specified reader or buffer, length delimited.
2856 * @param reader Reader or buffer to decode from
2857 * @returns ListGlossariesResponse
2858 * @throws {Error} If the payload is not a reader or valid buffer
2859 * @throws {$protobuf.util.ProtocolError} If required fields are missing
2860 */
2861 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3.ListGlossariesResponse;
2862
2863 /**
2864 * Verifies a ListGlossariesResponse message.
2865 * @param message Plain object to verify
2866 * @returns `null` if valid, otherwise the reason why it is not
2867 */
2868 public static verify(message: { [k: string]: any }): (string|null);
2869
2870 /**
2871 * Creates a ListGlossariesResponse message from a plain object. Also converts values to their respective internal types.
2872 * @param object Plain object
2873 * @returns ListGlossariesResponse
2874 */
2875 public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3.ListGlossariesResponse;
2876
2877 /**
2878 * Creates a plain object from a ListGlossariesResponse message. Also converts values to other types if specified.
2879 * @param message ListGlossariesResponse
2880 * @param [options] Conversion options
2881 * @returns Plain object
2882 */
2883 public static toObject(message: google.cloud.translation.v3.ListGlossariesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
2884
2885 /**
2886 * Converts this ListGlossariesResponse to JSON.
2887 * @returns JSON object
2888 */
2889 public toJSON(): { [k: string]: any };
2890 }
2891
2892 /** Properties of a CreateGlossaryMetadata. */
2893 interface ICreateGlossaryMetadata {
2894
2895 /** CreateGlossaryMetadata name */
2896 name?: (string|null);
2897
2898 /** CreateGlossaryMetadata state */
2899 state?: (google.cloud.translation.v3.CreateGlossaryMetadata.State|keyof typeof google.cloud.translation.v3.CreateGlossaryMetadata.State|null);
2900
2901 /** CreateGlossaryMetadata submitTime */
2902 submitTime?: (google.protobuf.ITimestamp|null);
2903 }
2904
2905 /** Represents a CreateGlossaryMetadata. */
2906 class CreateGlossaryMetadata implements ICreateGlossaryMetadata {
2907
2908 /**
2909 * Constructs a new CreateGlossaryMetadata.
2910 * @param [properties] Properties to set
2911 */
2912 constructor(properties?: google.cloud.translation.v3.ICreateGlossaryMetadata);
2913
2914 /** CreateGlossaryMetadata name. */
2915 public name: string;
2916
2917 /** CreateGlossaryMetadata state. */
2918 public state: (google.cloud.translation.v3.CreateGlossaryMetadata.State|keyof typeof google.cloud.translation.v3.CreateGlossaryMetadata.State);
2919
2920 /** CreateGlossaryMetadata submitTime. */
2921 public submitTime?: (google.protobuf.ITimestamp|null);
2922
2923 /**
2924 * Creates a new CreateGlossaryMetadata instance using the specified properties.
2925 * @param [properties] Properties to set
2926 * @returns CreateGlossaryMetadata instance
2927 */
2928 public static create(properties?: google.cloud.translation.v3.ICreateGlossaryMetadata): google.cloud.translation.v3.CreateGlossaryMetadata;
2929
2930 /**
2931 * Encodes the specified CreateGlossaryMetadata message. Does not implicitly {@link google.cloud.translation.v3.CreateGlossaryMetadata.verify|verify} messages.
2932 * @param message CreateGlossaryMetadata message or plain object to encode
2933 * @param [writer] Writer to encode to
2934 * @returns Writer
2935 */
2936 public static encode(message: google.cloud.translation.v3.ICreateGlossaryMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
2937
2938 /**
2939 * Encodes the specified CreateGlossaryMetadata message, length delimited. Does not implicitly {@link google.cloud.translation.v3.CreateGlossaryMetadata.verify|verify} messages.
2940 * @param message CreateGlossaryMetadata message or plain object to encode
2941 * @param [writer] Writer to encode to
2942 * @returns Writer
2943 */
2944 public static encodeDelimited(message: google.cloud.translation.v3.ICreateGlossaryMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
2945
2946 /**
2947 * Decodes a CreateGlossaryMetadata message from the specified reader or buffer.
2948 * @param reader Reader or buffer to decode from
2949 * @param [length] Message length if known beforehand
2950 * @returns CreateGlossaryMetadata
2951 * @throws {Error} If the payload is not a reader or valid buffer
2952 * @throws {$protobuf.util.ProtocolError} If required fields are missing
2953 */
2954 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3.CreateGlossaryMetadata;
2955
2956 /**
2957 * Decodes a CreateGlossaryMetadata message from the specified reader or buffer, length delimited.
2958 * @param reader Reader or buffer to decode from
2959 * @returns CreateGlossaryMetadata
2960 * @throws {Error} If the payload is not a reader or valid buffer
2961 * @throws {$protobuf.util.ProtocolError} If required fields are missing
2962 */
2963 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3.CreateGlossaryMetadata;
2964
2965 /**
2966 * Verifies a CreateGlossaryMetadata message.
2967 * @param message Plain object to verify
2968 * @returns `null` if valid, otherwise the reason why it is not
2969 */
2970 public static verify(message: { [k: string]: any }): (string|null);
2971
2972 /**
2973 * Creates a CreateGlossaryMetadata message from a plain object. Also converts values to their respective internal types.
2974 * @param object Plain object
2975 * @returns CreateGlossaryMetadata
2976 */
2977 public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3.CreateGlossaryMetadata;
2978
2979 /**
2980 * Creates a plain object from a CreateGlossaryMetadata message. Also converts values to other types if specified.
2981 * @param message CreateGlossaryMetadata
2982 * @param [options] Conversion options
2983 * @returns Plain object
2984 */
2985 public static toObject(message: google.cloud.translation.v3.CreateGlossaryMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
2986
2987 /**
2988 * Converts this CreateGlossaryMetadata to JSON.
2989 * @returns JSON object
2990 */
2991 public toJSON(): { [k: string]: any };
2992 }
2993
2994 namespace CreateGlossaryMetadata {
2995
2996 /** State enum. */
2997 enum State {
2998 STATE_UNSPECIFIED = 0,
2999 RUNNING = 1,
3000 SUCCEEDED = 2,
3001 FAILED = 3,
3002 CANCELLING = 4,
3003 CANCELLED = 5
3004 }
3005 }
3006
3007 /** Properties of a DeleteGlossaryMetadata. */
3008 interface IDeleteGlossaryMetadata {
3009
3010 /** DeleteGlossaryMetadata name */
3011 name?: (string|null);
3012
3013 /** DeleteGlossaryMetadata state */
3014 state?: (google.cloud.translation.v3.DeleteGlossaryMetadata.State|keyof typeof google.cloud.translation.v3.DeleteGlossaryMetadata.State|null);
3015
3016 /** DeleteGlossaryMetadata submitTime */
3017 submitTime?: (google.protobuf.ITimestamp|null);
3018 }
3019
3020 /** Represents a DeleteGlossaryMetadata. */
3021 class DeleteGlossaryMetadata implements IDeleteGlossaryMetadata {
3022
3023 /**
3024 * Constructs a new DeleteGlossaryMetadata.
3025 * @param [properties] Properties to set
3026 */
3027 constructor(properties?: google.cloud.translation.v3.IDeleteGlossaryMetadata);
3028
3029 /** DeleteGlossaryMetadata name. */
3030 public name: string;
3031
3032 /** DeleteGlossaryMetadata state. */
3033 public state: (google.cloud.translation.v3.DeleteGlossaryMetadata.State|keyof typeof google.cloud.translation.v3.DeleteGlossaryMetadata.State);
3034
3035 /** DeleteGlossaryMetadata submitTime. */
3036 public submitTime?: (google.protobuf.ITimestamp|null);
3037
3038 /**
3039 * Creates a new DeleteGlossaryMetadata instance using the specified properties.
3040 * @param [properties] Properties to set
3041 * @returns DeleteGlossaryMetadata instance
3042 */
3043 public static create(properties?: google.cloud.translation.v3.IDeleteGlossaryMetadata): google.cloud.translation.v3.DeleteGlossaryMetadata;
3044
3045 /**
3046 * Encodes the specified DeleteGlossaryMetadata message. Does not implicitly {@link google.cloud.translation.v3.DeleteGlossaryMetadata.verify|verify} messages.
3047 * @param message DeleteGlossaryMetadata message or plain object to encode
3048 * @param [writer] Writer to encode to
3049 * @returns Writer
3050 */
3051 public static encode(message: google.cloud.translation.v3.IDeleteGlossaryMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
3052
3053 /**
3054 * Encodes the specified DeleteGlossaryMetadata message, length delimited. Does not implicitly {@link google.cloud.translation.v3.DeleteGlossaryMetadata.verify|verify} messages.
3055 * @param message DeleteGlossaryMetadata message or plain object to encode
3056 * @param [writer] Writer to encode to
3057 * @returns Writer
3058 */
3059 public static encodeDelimited(message: google.cloud.translation.v3.IDeleteGlossaryMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
3060
3061 /**
3062 * Decodes a DeleteGlossaryMetadata message from the specified reader or buffer.
3063 * @param reader Reader or buffer to decode from
3064 * @param [length] Message length if known beforehand
3065 * @returns DeleteGlossaryMetadata
3066 * @throws {Error} If the payload is not a reader or valid buffer
3067 * @throws {$protobuf.util.ProtocolError} If required fields are missing
3068 */
3069 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3.DeleteGlossaryMetadata;
3070
3071 /**
3072 * Decodes a DeleteGlossaryMetadata message from the specified reader or buffer, length delimited.
3073 * @param reader Reader or buffer to decode from
3074 * @returns DeleteGlossaryMetadata
3075 * @throws {Error} If the payload is not a reader or valid buffer
3076 * @throws {$protobuf.util.ProtocolError} If required fields are missing
3077 */
3078 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3.DeleteGlossaryMetadata;
3079
3080 /**
3081 * Verifies a DeleteGlossaryMetadata message.
3082 * @param message Plain object to verify
3083 * @returns `null` if valid, otherwise the reason why it is not
3084 */
3085 public static verify(message: { [k: string]: any }): (string|null);
3086
3087 /**
3088 * Creates a DeleteGlossaryMetadata message from a plain object. Also converts values to their respective internal types.
3089 * @param object Plain object
3090 * @returns DeleteGlossaryMetadata
3091 */
3092 public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3.DeleteGlossaryMetadata;
3093
3094 /**
3095 * Creates a plain object from a DeleteGlossaryMetadata message. Also converts values to other types if specified.
3096 * @param message DeleteGlossaryMetadata
3097 * @param [options] Conversion options
3098 * @returns Plain object
3099 */
3100 public static toObject(message: google.cloud.translation.v3.DeleteGlossaryMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
3101
3102 /**
3103 * Converts this DeleteGlossaryMetadata to JSON.
3104 * @returns JSON object
3105 */
3106 public toJSON(): { [k: string]: any };
3107 }
3108
3109 namespace DeleteGlossaryMetadata {
3110
3111 /** State enum. */
3112 enum State {
3113 STATE_UNSPECIFIED = 0,
3114 RUNNING = 1,
3115 SUCCEEDED = 2,
3116 FAILED = 3,
3117 CANCELLING = 4,
3118 CANCELLED = 5
3119 }
3120 }
3121
3122 /** Properties of a DeleteGlossaryResponse. */
3123 interface IDeleteGlossaryResponse {
3124
3125 /** DeleteGlossaryResponse name */
3126 name?: (string|null);
3127
3128 /** DeleteGlossaryResponse submitTime */
3129 submitTime?: (google.protobuf.ITimestamp|null);
3130
3131 /** DeleteGlossaryResponse endTime */
3132 endTime?: (google.protobuf.ITimestamp|null);
3133 }
3134
3135 /** Represents a DeleteGlossaryResponse. */
3136 class DeleteGlossaryResponse implements IDeleteGlossaryResponse {
3137
3138 /**
3139 * Constructs a new DeleteGlossaryResponse.
3140 * @param [properties] Properties to set
3141 */
3142 constructor(properties?: google.cloud.translation.v3.IDeleteGlossaryResponse);
3143
3144 /** DeleteGlossaryResponse name. */
3145 public name: string;
3146
3147 /** DeleteGlossaryResponse submitTime. */
3148 public submitTime?: (google.protobuf.ITimestamp|null);
3149
3150 /** DeleteGlossaryResponse endTime. */
3151 public endTime?: (google.protobuf.ITimestamp|null);
3152
3153 /**
3154 * Creates a new DeleteGlossaryResponse instance using the specified properties.
3155 * @param [properties] Properties to set
3156 * @returns DeleteGlossaryResponse instance
3157 */
3158 public static create(properties?: google.cloud.translation.v3.IDeleteGlossaryResponse): google.cloud.translation.v3.DeleteGlossaryResponse;
3159
3160 /**
3161 * Encodes the specified DeleteGlossaryResponse message. Does not implicitly {@link google.cloud.translation.v3.DeleteGlossaryResponse.verify|verify} messages.
3162 * @param message DeleteGlossaryResponse message or plain object to encode
3163 * @param [writer] Writer to encode to
3164 * @returns Writer
3165 */
3166 public static encode(message: google.cloud.translation.v3.IDeleteGlossaryResponse, writer?: $protobuf.Writer): $protobuf.Writer;
3167
3168 /**
3169 * Encodes the specified DeleteGlossaryResponse message, length delimited. Does not implicitly {@link google.cloud.translation.v3.DeleteGlossaryResponse.verify|verify} messages.
3170 * @param message DeleteGlossaryResponse message or plain object to encode
3171 * @param [writer] Writer to encode to
3172 * @returns Writer
3173 */
3174 public static encodeDelimited(message: google.cloud.translation.v3.IDeleteGlossaryResponse, writer?: $protobuf.Writer): $protobuf.Writer;
3175
3176 /**
3177 * Decodes a DeleteGlossaryResponse message from the specified reader or buffer.
3178 * @param reader Reader or buffer to decode from
3179 * @param [length] Message length if known beforehand
3180 * @returns DeleteGlossaryResponse
3181 * @throws {Error} If the payload is not a reader or valid buffer
3182 * @throws {$protobuf.util.ProtocolError} If required fields are missing
3183 */
3184 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3.DeleteGlossaryResponse;
3185
3186 /**
3187 * Decodes a DeleteGlossaryResponse message from the specified reader or buffer, length delimited.
3188 * @param reader Reader or buffer to decode from
3189 * @returns DeleteGlossaryResponse
3190 * @throws {Error} If the payload is not a reader or valid buffer
3191 * @throws {$protobuf.util.ProtocolError} If required fields are missing
3192 */
3193 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3.DeleteGlossaryResponse;
3194
3195 /**
3196 * Verifies a DeleteGlossaryResponse message.
3197 * @param message Plain object to verify
3198 * @returns `null` if valid, otherwise the reason why it is not
3199 */
3200 public static verify(message: { [k: string]: any }): (string|null);
3201
3202 /**
3203 * Creates a DeleteGlossaryResponse message from a plain object. Also converts values to their respective internal types.
3204 * @param object Plain object
3205 * @returns DeleteGlossaryResponse
3206 */
3207 public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3.DeleteGlossaryResponse;
3208
3209 /**
3210 * Creates a plain object from a DeleteGlossaryResponse message. Also converts values to other types if specified.
3211 * @param message DeleteGlossaryResponse
3212 * @param [options] Conversion options
3213 * @returns Plain object
3214 */
3215 public static toObject(message: google.cloud.translation.v3.DeleteGlossaryResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
3216
3217 /**
3218 * Converts this DeleteGlossaryResponse to JSON.
3219 * @returns JSON object
3220 */
3221 public toJSON(): { [k: string]: any };
3222 }
3223 }
3224
3225 /** Namespace v3beta1. */
3226 namespace v3beta1 {
3227
3228 /** Represents a TranslationService */
3229 class TranslationService extends $protobuf.rpc.Service {
3230
3231 /**
3232 * Constructs a new TranslationService service.
3233 * @param rpcImpl RPC implementation
3234 * @param [requestDelimited=false] Whether requests are length-delimited
3235 * @param [responseDelimited=false] Whether responses are length-delimited
3236 */
3237 constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
3238
3239 /**
3240 * Creates new TranslationService service using the specified rpc implementation.
3241 * @param rpcImpl RPC implementation
3242 * @param [requestDelimited=false] Whether requests are length-delimited
3243 * @param [responseDelimited=false] Whether responses are length-delimited
3244 * @returns RPC service. Useful where requests and/or responses are streamed.
3245 */
3246 public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): TranslationService;
3247
3248 /**
3249 * Calls TranslateText.
3250 * @param request TranslateTextRequest message or plain object
3251 * @param callback Node-style callback called with the error, if any, and TranslateTextResponse
3252 */
3253 public translateText(request: google.cloud.translation.v3beta1.ITranslateTextRequest, callback: google.cloud.translation.v3beta1.TranslationService.TranslateTextCallback): void;
3254
3255 /**
3256 * Calls TranslateText.
3257 * @param request TranslateTextRequest message or plain object
3258 * @returns Promise
3259 */
3260 public translateText(request: google.cloud.translation.v3beta1.ITranslateTextRequest): Promise<google.cloud.translation.v3beta1.TranslateTextResponse>;
3261
3262 /**
3263 * Calls DetectLanguage.
3264 * @param request DetectLanguageRequest message or plain object
3265 * @param callback Node-style callback called with the error, if any, and DetectLanguageResponse
3266 */
3267 public detectLanguage(request: google.cloud.translation.v3beta1.IDetectLanguageRequest, callback: google.cloud.translation.v3beta1.TranslationService.DetectLanguageCallback): void;
3268
3269 /**
3270 * Calls DetectLanguage.
3271 * @param request DetectLanguageRequest message or plain object
3272 * @returns Promise
3273 */
3274 public detectLanguage(request: google.cloud.translation.v3beta1.IDetectLanguageRequest): Promise<google.cloud.translation.v3beta1.DetectLanguageResponse>;
3275
3276 /**
3277 * Calls GetSupportedLanguages.
3278 * @param request GetSupportedLanguagesRequest message or plain object
3279 * @param callback Node-style callback called with the error, if any, and SupportedLanguages
3280 */
3281 public getSupportedLanguages(request: google.cloud.translation.v3beta1.IGetSupportedLanguagesRequest, callback: google.cloud.translation.v3beta1.TranslationService.GetSupportedLanguagesCallback): void;
3282
3283 /**
3284 * Calls GetSupportedLanguages.
3285 * @param request GetSupportedLanguagesRequest message or plain object
3286 * @returns Promise
3287 */
3288 public getSupportedLanguages(request: google.cloud.translation.v3beta1.IGetSupportedLanguagesRequest): Promise<google.cloud.translation.v3beta1.SupportedLanguages>;
3289
3290 /**
3291 * Calls TranslateDocument.
3292 * @param request TranslateDocumentRequest message or plain object
3293 * @param callback Node-style callback called with the error, if any, and TranslateDocumentResponse
3294 */
3295 public translateDocument(request: google.cloud.translation.v3beta1.ITranslateDocumentRequest, callback: google.cloud.translation.v3beta1.TranslationService.TranslateDocumentCallback): void;
3296
3297 /**
3298 * Calls TranslateDocument.
3299 * @param request TranslateDocumentRequest message or plain object
3300 * @returns Promise
3301 */
3302 public translateDocument(request: google.cloud.translation.v3beta1.ITranslateDocumentRequest): Promise<google.cloud.translation.v3beta1.TranslateDocumentResponse>;
3303
3304 /**
3305 * Calls BatchTranslateText.
3306 * @param request BatchTranslateTextRequest message or plain object
3307 * @param callback Node-style callback called with the error, if any, and Operation
3308 */
3309 public batchTranslateText(request: google.cloud.translation.v3beta1.IBatchTranslateTextRequest, callback: google.cloud.translation.v3beta1.TranslationService.BatchTranslateTextCallback): void;
3310
3311 /**
3312 * Calls BatchTranslateText.
3313 * @param request BatchTranslateTextRequest message or plain object
3314 * @returns Promise
3315 */
3316 public batchTranslateText(request: google.cloud.translation.v3beta1.IBatchTranslateTextRequest): Promise<google.longrunning.Operation>;
3317
3318 /**
3319 * Calls BatchTranslateDocument.
3320 * @param request BatchTranslateDocumentRequest message or plain object
3321 * @param callback Node-style callback called with the error, if any, and Operation
3322 */
3323 public batchTranslateDocument(request: google.cloud.translation.v3beta1.IBatchTranslateDocumentRequest, callback: google.cloud.translation.v3beta1.TranslationService.BatchTranslateDocumentCallback): void;
3324
3325 /**
3326 * Calls BatchTranslateDocument.
3327 * @param request BatchTranslateDocumentRequest message or plain object
3328 * @returns Promise
3329 */
3330 public batchTranslateDocument(request: google.cloud.translation.v3beta1.IBatchTranslateDocumentRequest): Promise<google.longrunning.Operation>;
3331
3332 /**
3333 * Calls CreateGlossary.
3334 * @param request CreateGlossaryRequest message or plain object
3335 * @param callback Node-style callback called with the error, if any, and Operation
3336 */
3337 public createGlossary(request: google.cloud.translation.v3beta1.ICreateGlossaryRequest, callback: google.cloud.translation.v3beta1.TranslationService.CreateGlossaryCallback): void;
3338
3339 /**
3340 * Calls CreateGlossary.
3341 * @param request CreateGlossaryRequest message or plain object
3342 * @returns Promise
3343 */
3344 public createGlossary(request: google.cloud.translation.v3beta1.ICreateGlossaryRequest): Promise<google.longrunning.Operation>;
3345
3346 /**
3347 * Calls ListGlossaries.
3348 * @param request ListGlossariesRequest message or plain object
3349 * @param callback Node-style callback called with the error, if any, and ListGlossariesResponse
3350 */
3351 public listGlossaries(request: google.cloud.translation.v3beta1.IListGlossariesRequest, callback: google.cloud.translation.v3beta1.TranslationService.ListGlossariesCallback): void;
3352
3353 /**
3354 * Calls ListGlossaries.
3355 * @param request ListGlossariesRequest message or plain object
3356 * @returns Promise
3357 */
3358 public listGlossaries(request: google.cloud.translation.v3beta1.IListGlossariesRequest): Promise<google.cloud.translation.v3beta1.ListGlossariesResponse>;
3359
3360 /**
3361 * Calls GetGlossary.
3362 * @param request GetGlossaryRequest message or plain object
3363 * @param callback Node-style callback called with the error, if any, and Glossary
3364 */
3365 public getGlossary(request: google.cloud.translation.v3beta1.IGetGlossaryRequest, callback: google.cloud.translation.v3beta1.TranslationService.GetGlossaryCallback): void;
3366
3367 /**
3368 * Calls GetGlossary.
3369 * @param request GetGlossaryRequest message or plain object
3370 * @returns Promise
3371 */
3372 public getGlossary(request: google.cloud.translation.v3beta1.IGetGlossaryRequest): Promise<google.cloud.translation.v3beta1.Glossary>;
3373
3374 /**
3375 * Calls DeleteGlossary.
3376 * @param request DeleteGlossaryRequest message or plain object
3377 * @param callback Node-style callback called with the error, if any, and Operation
3378 */
3379 public deleteGlossary(request: google.cloud.translation.v3beta1.IDeleteGlossaryRequest, callback: google.cloud.translation.v3beta1.TranslationService.DeleteGlossaryCallback): void;
3380
3381 /**
3382 * Calls DeleteGlossary.
3383 * @param request DeleteGlossaryRequest message or plain object
3384 * @returns Promise
3385 */
3386 public deleteGlossary(request: google.cloud.translation.v3beta1.IDeleteGlossaryRequest): Promise<google.longrunning.Operation>;
3387 }
3388
3389 namespace TranslationService {
3390
3391 /**
3392 * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService#translateText}.
3393 * @param error Error, if any
3394 * @param [response] TranslateTextResponse
3395 */
3396 type TranslateTextCallback = (error: (Error|null), response?: google.cloud.translation.v3beta1.TranslateTextResponse) => void;
3397
3398 /**
3399 * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService#detectLanguage}.
3400 * @param error Error, if any
3401 * @param [response] DetectLanguageResponse
3402 */
3403 type DetectLanguageCallback = (error: (Error|null), response?: google.cloud.translation.v3beta1.DetectLanguageResponse) => void;
3404
3405 /**
3406 * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService#getSupportedLanguages}.
3407 * @param error Error, if any
3408 * @param [response] SupportedLanguages
3409 */
3410 type GetSupportedLanguagesCallback = (error: (Error|null), response?: google.cloud.translation.v3beta1.SupportedLanguages) => void;
3411
3412 /**
3413 * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService#translateDocument}.
3414 * @param error Error, if any
3415 * @param [response] TranslateDocumentResponse
3416 */
3417 type TranslateDocumentCallback = (error: (Error|null), response?: google.cloud.translation.v3beta1.TranslateDocumentResponse) => void;
3418
3419 /**
3420 * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService#batchTranslateText}.
3421 * @param error Error, if any
3422 * @param [response] Operation
3423 */
3424 type BatchTranslateTextCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
3425
3426 /**
3427 * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService#batchTranslateDocument}.
3428 * @param error Error, if any
3429 * @param [response] Operation
3430 */
3431 type BatchTranslateDocumentCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
3432
3433 /**
3434 * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService#createGlossary}.
3435 * @param error Error, if any
3436 * @param [response] Operation
3437 */
3438 type CreateGlossaryCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
3439
3440 /**
3441 * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService#listGlossaries}.
3442 * @param error Error, if any
3443 * @param [response] ListGlossariesResponse
3444 */
3445 type ListGlossariesCallback = (error: (Error|null), response?: google.cloud.translation.v3beta1.ListGlossariesResponse) => void;
3446
3447 /**
3448 * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService#getGlossary}.
3449 * @param error Error, if any
3450 * @param [response] Glossary
3451 */
3452 type GetGlossaryCallback = (error: (Error|null), response?: google.cloud.translation.v3beta1.Glossary) => void;
3453
3454 /**
3455 * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService#deleteGlossary}.
3456 * @param error Error, if any
3457 * @param [response] Operation
3458 */
3459 type DeleteGlossaryCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
3460 }
3461
3462 /** Properties of a TranslateTextGlossaryConfig. */
3463 interface ITranslateTextGlossaryConfig {
3464
3465 /** TranslateTextGlossaryConfig glossary */
3466 glossary?: (string|null);
3467
3468 /** TranslateTextGlossaryConfig ignoreCase */
3469 ignoreCase?: (boolean|null);
3470 }
3471
3472 /** Represents a TranslateTextGlossaryConfig. */
3473 class TranslateTextGlossaryConfig implements ITranslateTextGlossaryConfig {
3474
3475 /**
3476 * Constructs a new TranslateTextGlossaryConfig.
3477 * @param [properties] Properties to set
3478 */
3479 constructor(properties?: google.cloud.translation.v3beta1.ITranslateTextGlossaryConfig);
3480
3481 /** TranslateTextGlossaryConfig glossary. */
3482 public glossary: string;
3483
3484 /** TranslateTextGlossaryConfig ignoreCase. */
3485 public ignoreCase: boolean;
3486
3487 /**
3488 * Creates a new TranslateTextGlossaryConfig instance using the specified properties.
3489 * @param [properties] Properties to set
3490 * @returns TranslateTextGlossaryConfig instance
3491 */
3492 public static create(properties?: google.cloud.translation.v3beta1.ITranslateTextGlossaryConfig): google.cloud.translation.v3beta1.TranslateTextGlossaryConfig;
3493
3494 /**
3495 * Encodes the specified TranslateTextGlossaryConfig message. Does not implicitly {@link google.cloud.translation.v3beta1.TranslateTextGlossaryConfig.verify|verify} messages.
3496 * @param message TranslateTextGlossaryConfig message or plain object to encode
3497 * @param [writer] Writer to encode to
3498 * @returns Writer
3499 */
3500 public static encode(message: google.cloud.translation.v3beta1.ITranslateTextGlossaryConfig, writer?: $protobuf.Writer): $protobuf.Writer;
3501
3502 /**
3503 * Encodes the specified TranslateTextGlossaryConfig message, length delimited. Does not implicitly {@link google.cloud.translation.v3beta1.TranslateTextGlossaryConfig.verify|verify} messages.
3504 * @param message TranslateTextGlossaryConfig message or plain object to encode
3505 * @param [writer] Writer to encode to
3506 * @returns Writer
3507 */
3508 public static encodeDelimited(message: google.cloud.translation.v3beta1.ITranslateTextGlossaryConfig, writer?: $protobuf.Writer): $protobuf.Writer;
3509
3510 /**
3511 * Decodes a TranslateTextGlossaryConfig message from the specified reader or buffer.
3512 * @param reader Reader or buffer to decode from
3513 * @param [length] Message length if known beforehand
3514 * @returns TranslateTextGlossaryConfig
3515 * @throws {Error} If the payload is not a reader or valid buffer
3516 * @throws {$protobuf.util.ProtocolError} If required fields are missing
3517 */
3518 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3beta1.TranslateTextGlossaryConfig;
3519
3520 /**
3521 * Decodes a TranslateTextGlossaryConfig message from the specified reader or buffer, length delimited.
3522 * @param reader Reader or buffer to decode from
3523 * @returns TranslateTextGlossaryConfig
3524 * @throws {Error} If the payload is not a reader or valid buffer
3525 * @throws {$protobuf.util.ProtocolError} If required fields are missing
3526 */
3527 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3beta1.TranslateTextGlossaryConfig;
3528
3529 /**
3530 * Verifies a TranslateTextGlossaryConfig message.
3531 * @param message Plain object to verify
3532 * @returns `null` if valid, otherwise the reason why it is not
3533 */
3534 public static verify(message: { [k: string]: any }): (string|null);
3535
3536 /**
3537 * Creates a TranslateTextGlossaryConfig message from a plain object. Also converts values to their respective internal types.
3538 * @param object Plain object
3539 * @returns TranslateTextGlossaryConfig
3540 */
3541 public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3beta1.TranslateTextGlossaryConfig;
3542
3543 /**
3544 * Creates a plain object from a TranslateTextGlossaryConfig message. Also converts values to other types if specified.
3545 * @param message TranslateTextGlossaryConfig
3546 * @param [options] Conversion options
3547 * @returns Plain object
3548 */
3549 public static toObject(message: google.cloud.translation.v3beta1.TranslateTextGlossaryConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
3550
3551 /**
3552 * Converts this TranslateTextGlossaryConfig to JSON.
3553 * @returns JSON object
3554 */
3555 public toJSON(): { [k: string]: any };
3556 }
3557
3558 /** Properties of a TranslateTextRequest. */
3559 interface ITranslateTextRequest {
3560
3561 /** TranslateTextRequest contents */
3562 contents?: (string[]|null);
3563
3564 /** TranslateTextRequest mimeType */
3565 mimeType?: (string|null);
3566
3567 /** TranslateTextRequest sourceLanguageCode */
3568 sourceLanguageCode?: (string|null);
3569
3570 /** TranslateTextRequest targetLanguageCode */
3571 targetLanguageCode?: (string|null);
3572
3573 /** TranslateTextRequest parent */
3574 parent?: (string|null);
3575
3576 /** TranslateTextRequest model */
3577 model?: (string|null);
3578
3579 /** TranslateTextRequest glossaryConfig */
3580 glossaryConfig?: (google.cloud.translation.v3beta1.ITranslateTextGlossaryConfig|null);
3581
3582 /** TranslateTextRequest labels */
3583 labels?: ({ [k: string]: string }|null);
3584 }
3585
3586 /** Represents a TranslateTextRequest. */
3587 class TranslateTextRequest implements ITranslateTextRequest {
3588
3589 /**
3590 * Constructs a new TranslateTextRequest.
3591 * @param [properties] Properties to set
3592 */
3593 constructor(properties?: google.cloud.translation.v3beta1.ITranslateTextRequest);
3594
3595 /** TranslateTextRequest contents. */
3596 public contents: string[];
3597
3598 /** TranslateTextRequest mimeType. */
3599 public mimeType: string;
3600
3601 /** TranslateTextRequest sourceLanguageCode. */
3602 public sourceLanguageCode: string;
3603
3604 /** TranslateTextRequest targetLanguageCode. */
3605 public targetLanguageCode: string;
3606
3607 /** TranslateTextRequest parent. */
3608 public parent: string;
3609
3610 /** TranslateTextRequest model. */
3611 public model: string;
3612
3613 /** TranslateTextRequest glossaryConfig. */
3614 public glossaryConfig?: (google.cloud.translation.v3beta1.ITranslateTextGlossaryConfig|null);
3615
3616 /** TranslateTextRequest labels. */
3617 public labels: { [k: string]: string };
3618
3619 /**
3620 * Creates a new TranslateTextRequest instance using the specified properties.
3621 * @param [properties] Properties to set
3622 * @returns TranslateTextRequest instance
3623 */
3624 public static create(properties?: google.cloud.translation.v3beta1.ITranslateTextRequest): google.cloud.translation.v3beta1.TranslateTextRequest;
3625
3626 /**
3627 * Encodes the specified TranslateTextRequest message. Does not implicitly {@link google.cloud.translation.v3beta1.TranslateTextRequest.verify|verify} messages.
3628 * @param message TranslateTextRequest message or plain object to encode
3629 * @param [writer] Writer to encode to
3630 * @returns Writer
3631 */
3632 public static encode(message: google.cloud.translation.v3beta1.ITranslateTextRequest, writer?: $protobuf.Writer): $protobuf.Writer;
3633
3634 /**
3635 * Encodes the specified TranslateTextRequest message, length delimited. Does not implicitly {@link google.cloud.translation.v3beta1.TranslateTextRequest.verify|verify} messages.
3636 * @param message TranslateTextRequest message or plain object to encode
3637 * @param [writer] Writer to encode to
3638 * @returns Writer
3639 */
3640 public static encodeDelimited(message: google.cloud.translation.v3beta1.ITranslateTextRequest, writer?: $protobuf.Writer): $protobuf.Writer;
3641
3642 /**
3643 * Decodes a TranslateTextRequest message from the specified reader or buffer.
3644 * @param reader Reader or buffer to decode from
3645 * @param [length] Message length if known beforehand
3646 * @returns TranslateTextRequest
3647 * @throws {Error} If the payload is not a reader or valid buffer
3648 * @throws {$protobuf.util.ProtocolError} If required fields are missing
3649 */
3650 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3beta1.TranslateTextRequest;
3651
3652 /**
3653 * Decodes a TranslateTextRequest message from the specified reader or buffer, length delimited.
3654 * @param reader Reader or buffer to decode from
3655 * @returns TranslateTextRequest
3656 * @throws {Error} If the payload is not a reader or valid buffer
3657 * @throws {$protobuf.util.ProtocolError} If required fields are missing
3658 */
3659 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3beta1.TranslateTextRequest;
3660
3661 /**
3662 * Verifies a TranslateTextRequest message.
3663 * @param message Plain object to verify
3664 * @returns `null` if valid, otherwise the reason why it is not
3665 */
3666 public static verify(message: { [k: string]: any }): (string|null);
3667
3668 /**
3669 * Creates a TranslateTextRequest message from a plain object. Also converts values to their respective internal types.
3670 * @param object Plain object
3671 * @returns TranslateTextRequest
3672 */
3673 public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3beta1.TranslateTextRequest;
3674
3675 /**
3676 * Creates a plain object from a TranslateTextRequest message. Also converts values to other types if specified.
3677 * @param message TranslateTextRequest
3678 * @param [options] Conversion options
3679 * @returns Plain object
3680 */
3681 public static toObject(message: google.cloud.translation.v3beta1.TranslateTextRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
3682
3683 /**
3684 * Converts this TranslateTextRequest to JSON.
3685 * @returns JSON object
3686 */
3687 public toJSON(): { [k: string]: any };
3688 }
3689
3690 /** Properties of a TranslateTextResponse. */
3691 interface ITranslateTextResponse {
3692
3693 /** TranslateTextResponse translations */
3694 translations?: (google.cloud.translation.v3beta1.ITranslation[]|null);
3695
3696 /** TranslateTextResponse glossaryTranslations */
3697 glossaryTranslations?: (google.cloud.translation.v3beta1.ITranslation[]|null);
3698 }
3699
3700 /** Represents a TranslateTextResponse. */
3701 class TranslateTextResponse implements ITranslateTextResponse {
3702
3703 /**
3704 * Constructs a new TranslateTextResponse.
3705 * @param [properties] Properties to set
3706 */
3707 constructor(properties?: google.cloud.translation.v3beta1.ITranslateTextResponse);
3708
3709 /** TranslateTextResponse translations. */
3710 public translations: google.cloud.translation.v3beta1.ITranslation[];
3711
3712 /** TranslateTextResponse glossaryTranslations. */
3713 public glossaryTranslations: google.cloud.translation.v3beta1.ITranslation[];
3714
3715 /**
3716 * Creates a new TranslateTextResponse instance using the specified properties.
3717 * @param [properties] Properties to set
3718 * @returns TranslateTextResponse instance
3719 */
3720 public static create(properties?: google.cloud.translation.v3beta1.ITranslateTextResponse): google.cloud.translation.v3beta1.TranslateTextResponse;
3721
3722 /**
3723 * Encodes the specified TranslateTextResponse message. Does not implicitly {@link google.cloud.translation.v3beta1.TranslateTextResponse.verify|verify} messages.
3724 * @param message TranslateTextResponse message or plain object to encode
3725 * @param [writer] Writer to encode to
3726 * @returns Writer
3727 */
3728 public static encode(message: google.cloud.translation.v3beta1.ITranslateTextResponse, writer?: $protobuf.Writer): $protobuf.Writer;
3729
3730 /**
3731 * Encodes the specified TranslateTextResponse message, length delimited. Does not implicitly {@link google.cloud.translation.v3beta1.TranslateTextResponse.verify|verify} messages.
3732 * @param message TranslateTextResponse message or plain object to encode
3733 * @param [writer] Writer to encode to
3734 * @returns Writer
3735 */
3736 public static encodeDelimited(message: google.cloud.translation.v3beta1.ITranslateTextResponse, writer?: $protobuf.Writer): $protobuf.Writer;
3737
3738 /**
3739 * Decodes a TranslateTextResponse message from the specified reader or buffer.
3740 * @param reader Reader or buffer to decode from
3741 * @param [length] Message length if known beforehand
3742 * @returns TranslateTextResponse
3743 * @throws {Error} If the payload is not a reader or valid buffer
3744 * @throws {$protobuf.util.ProtocolError} If required fields are missing
3745 */
3746 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3beta1.TranslateTextResponse;
3747
3748 /**
3749 * Decodes a TranslateTextResponse message from the specified reader or buffer, length delimited.
3750 * @param reader Reader or buffer to decode from
3751 * @returns TranslateTextResponse
3752 * @throws {Error} If the payload is not a reader or valid buffer
3753 * @throws {$protobuf.util.ProtocolError} If required fields are missing
3754 */
3755 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3beta1.TranslateTextResponse;
3756
3757 /**
3758 * Verifies a TranslateTextResponse message.
3759 * @param message Plain object to verify
3760 * @returns `null` if valid, otherwise the reason why it is not
3761 */
3762 public static verify(message: { [k: string]: any }): (string|null);
3763
3764 /**
3765 * Creates a TranslateTextResponse message from a plain object. Also converts values to their respective internal types.
3766 * @param object Plain object
3767 * @returns TranslateTextResponse
3768 */
3769 public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3beta1.TranslateTextResponse;
3770
3771 /**
3772 * Creates a plain object from a TranslateTextResponse message. Also converts values to other types if specified.
3773 * @param message TranslateTextResponse
3774 * @param [options] Conversion options
3775 * @returns Plain object
3776 */
3777 public static toObject(message: google.cloud.translation.v3beta1.TranslateTextResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
3778
3779 /**
3780 * Converts this TranslateTextResponse to JSON.
3781 * @returns JSON object
3782 */
3783 public toJSON(): { [k: string]: any };
3784 }
3785
3786 /** Properties of a Translation. */
3787 interface ITranslation {
3788
3789 /** Translation translatedText */
3790 translatedText?: (string|null);
3791
3792 /** Translation model */
3793 model?: (string|null);
3794
3795 /** Translation detectedLanguageCode */
3796 detectedLanguageCode?: (string|null);
3797
3798 /** Translation glossaryConfig */
3799 glossaryConfig?: (google.cloud.translation.v3beta1.ITranslateTextGlossaryConfig|null);
3800 }
3801
3802 /** Represents a Translation. */
3803 class Translation implements ITranslation {
3804
3805 /**
3806 * Constructs a new Translation.
3807 * @param [properties] Properties to set
3808 */
3809 constructor(properties?: google.cloud.translation.v3beta1.ITranslation);
3810
3811 /** Translation translatedText. */
3812 public translatedText: string;
3813
3814 /** Translation model. */
3815 public model: string;
3816
3817 /** Translation detectedLanguageCode. */
3818 public detectedLanguageCode: string;
3819
3820 /** Translation glossaryConfig. */
3821 public glossaryConfig?: (google.cloud.translation.v3beta1.ITranslateTextGlossaryConfig|null);
3822
3823 /**
3824 * Creates a new Translation instance using the specified properties.
3825 * @param [properties] Properties to set
3826 * @returns Translation instance
3827 */
3828 public static create(properties?: google.cloud.translation.v3beta1.ITranslation): google.cloud.translation.v3beta1.Translation;
3829
3830 /**
3831 * Encodes the specified Translation message. Does not implicitly {@link google.cloud.translation.v3beta1.Translation.verify|verify} messages.
3832 * @param message Translation message or plain object to encode
3833 * @param [writer] Writer to encode to
3834 * @returns Writer
3835 */
3836 public static encode(message: google.cloud.translation.v3beta1.ITranslation, writer?: $protobuf.Writer): $protobuf.Writer;
3837
3838 /**
3839 * Encodes the specified Translation message, length delimited. Does not implicitly {@link google.cloud.translation.v3beta1.Translation.verify|verify} messages.
3840 * @param message Translation message or plain object to encode
3841 * @param [writer] Writer to encode to
3842 * @returns Writer
3843 */
3844 public static encodeDelimited(message: google.cloud.translation.v3beta1.ITranslation, writer?: $protobuf.Writer): $protobuf.Writer;
3845
3846 /**
3847 * Decodes a Translation message from the specified reader or buffer.
3848 * @param reader Reader or buffer to decode from
3849 * @param [length] Message length if known beforehand
3850 * @returns Translation
3851 * @throws {Error} If the payload is not a reader or valid buffer
3852 * @throws {$protobuf.util.ProtocolError} If required fields are missing
3853 */
3854 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3beta1.Translation;
3855
3856 /**
3857 * Decodes a Translation message from the specified reader or buffer, length delimited.
3858 * @param reader Reader or buffer to decode from
3859 * @returns Translation
3860 * @throws {Error} If the payload is not a reader or valid buffer
3861 * @throws {$protobuf.util.ProtocolError} If required fields are missing
3862 */
3863 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3beta1.Translation;
3864
3865 /**
3866 * Verifies a Translation message.
3867 * @param message Plain object to verify
3868 * @returns `null` if valid, otherwise the reason why it is not
3869 */
3870 public static verify(message: { [k: string]: any }): (string|null);
3871
3872 /**
3873 * Creates a Translation message from a plain object. Also converts values to their respective internal types.
3874 * @param object Plain object
3875 * @returns Translation
3876 */
3877 public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3beta1.Translation;
3878
3879 /**
3880 * Creates a plain object from a Translation message. Also converts values to other types if specified.
3881 * @param message Translation
3882 * @param [options] Conversion options
3883 * @returns Plain object
3884 */
3885 public static toObject(message: google.cloud.translation.v3beta1.Translation, options?: $protobuf.IConversionOptions): { [k: string]: any };
3886
3887 /**
3888 * Converts this Translation to JSON.
3889 * @returns JSON object
3890 */
3891 public toJSON(): { [k: string]: any };
3892 }
3893
3894 /** Properties of a DetectLanguageRequest. */
3895 interface IDetectLanguageRequest {
3896
3897 /** DetectLanguageRequest parent */
3898 parent?: (string|null);
3899
3900 /** DetectLanguageRequest model */
3901 model?: (string|null);
3902
3903 /** DetectLanguageRequest content */
3904 content?: (string|null);
3905
3906 /** DetectLanguageRequest mimeType */
3907 mimeType?: (string|null);
3908
3909 /** DetectLanguageRequest labels */
3910 labels?: ({ [k: string]: string }|null);
3911 }
3912
3913 /** Represents a DetectLanguageRequest. */
3914 class DetectLanguageRequest implements IDetectLanguageRequest {
3915
3916 /**
3917 * Constructs a new DetectLanguageRequest.
3918 * @param [properties] Properties to set
3919 */
3920 constructor(properties?: google.cloud.translation.v3beta1.IDetectLanguageRequest);
3921
3922 /** DetectLanguageRequest parent. */
3923 public parent: string;
3924
3925 /** DetectLanguageRequest model. */
3926 public model: string;
3927
3928 /** DetectLanguageRequest content. */
3929 public content?: (string|null);
3930
3931 /** DetectLanguageRequest mimeType. */
3932 public mimeType: string;
3933
3934 /** DetectLanguageRequest labels. */
3935 public labels: { [k: string]: string };
3936
3937 /** DetectLanguageRequest source. */
3938 public source?: "content";
3939
3940 /**
3941 * Creates a new DetectLanguageRequest instance using the specified properties.
3942 * @param [properties] Properties to set
3943 * @returns DetectLanguageRequest instance
3944 */
3945 public static create(properties?: google.cloud.translation.v3beta1.IDetectLanguageRequest): google.cloud.translation.v3beta1.DetectLanguageRequest;
3946
3947 /**
3948 * Encodes the specified DetectLanguageRequest message. Does not implicitly {@link google.cloud.translation.v3beta1.DetectLanguageRequest.verify|verify} messages.
3949 * @param message DetectLanguageRequest message or plain object to encode
3950 * @param [writer] Writer to encode to
3951 * @returns Writer
3952 */
3953 public static encode(message: google.cloud.translation.v3beta1.IDetectLanguageRequest, writer?: $protobuf.Writer): $protobuf.Writer;
3954
3955 /**
3956 * Encodes the specified DetectLanguageRequest message, length delimited. Does not implicitly {@link google.cloud.translation.v3beta1.DetectLanguageRequest.verify|verify} messages.
3957 * @param message DetectLanguageRequest message or plain object to encode
3958 * @param [writer] Writer to encode to
3959 * @returns Writer
3960 */
3961 public static encodeDelimited(message: google.cloud.translation.v3beta1.IDetectLanguageRequest, writer?: $protobuf.Writer): $protobuf.Writer;
3962
3963 /**
3964 * Decodes a DetectLanguageRequest message from the specified reader or buffer.
3965 * @param reader Reader or buffer to decode from
3966 * @param [length] Message length if known beforehand
3967 * @returns DetectLanguageRequest
3968 * @throws {Error} If the payload is not a reader or valid buffer
3969 * @throws {$protobuf.util.ProtocolError} If required fields are missing
3970 */
3971 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3beta1.DetectLanguageRequest;
3972
3973 /**
3974 * Decodes a DetectLanguageRequest message from the specified reader or buffer, length delimited.
3975 * @param reader Reader or buffer to decode from
3976 * @returns DetectLanguageRequest
3977 * @throws {Error} If the payload is not a reader or valid buffer
3978 * @throws {$protobuf.util.ProtocolError} If required fields are missing
3979 */
3980 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3beta1.DetectLanguageRequest;
3981
3982 /**
3983 * Verifies a DetectLanguageRequest message.
3984 * @param message Plain object to verify
3985 * @returns `null` if valid, otherwise the reason why it is not
3986 */
3987 public static verify(message: { [k: string]: any }): (string|null);
3988
3989 /**
3990 * Creates a DetectLanguageRequest message from a plain object. Also converts values to their respective internal types.
3991 * @param object Plain object
3992 * @returns DetectLanguageRequest
3993 */
3994 public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3beta1.DetectLanguageRequest;
3995
3996 /**
3997 * Creates a plain object from a DetectLanguageRequest message. Also converts values to other types if specified.
3998 * @param message DetectLanguageRequest
3999 * @param [options] Conversion options
4000 * @returns Plain object
4001 */
4002 public static toObject(message: google.cloud.translation.v3beta1.DetectLanguageRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
4003
4004 /**
4005 * Converts this DetectLanguageRequest to JSON.
4006 * @returns JSON object
4007 */
4008 public toJSON(): { [k: string]: any };
4009 }
4010
4011 /** Properties of a DetectedLanguage. */
4012 interface IDetectedLanguage {
4013
4014 /** DetectedLanguage languageCode */
4015 languageCode?: (string|null);
4016
4017 /** DetectedLanguage confidence */
4018 confidence?: (number|null);
4019 }
4020
4021 /** Represents a DetectedLanguage. */
4022 class DetectedLanguage implements IDetectedLanguage {
4023
4024 /**
4025 * Constructs a new DetectedLanguage.
4026 * @param [properties] Properties to set
4027 */
4028 constructor(properties?: google.cloud.translation.v3beta1.IDetectedLanguage);
4029
4030 /** DetectedLanguage languageCode. */
4031 public languageCode: string;
4032
4033 /** DetectedLanguage confidence. */
4034 public confidence: number;
4035
4036 /**
4037 * Creates a new DetectedLanguage instance using the specified properties.
4038 * @param [properties] Properties to set
4039 * @returns DetectedLanguage instance
4040 */
4041 public static create(properties?: google.cloud.translation.v3beta1.IDetectedLanguage): google.cloud.translation.v3beta1.DetectedLanguage;
4042
4043 /**
4044 * Encodes the specified DetectedLanguage message. Does not implicitly {@link google.cloud.translation.v3beta1.DetectedLanguage.verify|verify} messages.
4045 * @param message DetectedLanguage message or plain object to encode
4046 * @param [writer] Writer to encode to
4047 * @returns Writer
4048 */
4049 public static encode(message: google.cloud.translation.v3beta1.IDetectedLanguage, writer?: $protobuf.Writer): $protobuf.Writer;
4050
4051 /**
4052 * Encodes the specified DetectedLanguage message, length delimited. Does not implicitly {@link google.cloud.translation.v3beta1.DetectedLanguage.verify|verify} messages.
4053 * @param message DetectedLanguage message or plain object to encode
4054 * @param [writer] Writer to encode to
4055 * @returns Writer
4056 */
4057 public static encodeDelimited(message: google.cloud.translation.v3beta1.IDetectedLanguage, writer?: $protobuf.Writer): $protobuf.Writer;
4058
4059 /**
4060 * Decodes a DetectedLanguage message from the specified reader or buffer.
4061 * @param reader Reader or buffer to decode from
4062 * @param [length] Message length if known beforehand
4063 * @returns DetectedLanguage
4064 * @throws {Error} If the payload is not a reader or valid buffer
4065 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4066 */
4067 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3beta1.DetectedLanguage;
4068
4069 /**
4070 * Decodes a DetectedLanguage message from the specified reader or buffer, length delimited.
4071 * @param reader Reader or buffer to decode from
4072 * @returns DetectedLanguage
4073 * @throws {Error} If the payload is not a reader or valid buffer
4074 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4075 */
4076 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3beta1.DetectedLanguage;
4077
4078 /**
4079 * Verifies a DetectedLanguage message.
4080 * @param message Plain object to verify
4081 * @returns `null` if valid, otherwise the reason why it is not
4082 */
4083 public static verify(message: { [k: string]: any }): (string|null);
4084
4085 /**
4086 * Creates a DetectedLanguage message from a plain object. Also converts values to their respective internal types.
4087 * @param object Plain object
4088 * @returns DetectedLanguage
4089 */
4090 public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3beta1.DetectedLanguage;
4091
4092 /**
4093 * Creates a plain object from a DetectedLanguage message. Also converts values to other types if specified.
4094 * @param message DetectedLanguage
4095 * @param [options] Conversion options
4096 * @returns Plain object
4097 */
4098 public static toObject(message: google.cloud.translation.v3beta1.DetectedLanguage, options?: $protobuf.IConversionOptions): { [k: string]: any };
4099
4100 /**
4101 * Converts this DetectedLanguage to JSON.
4102 * @returns JSON object
4103 */
4104 public toJSON(): { [k: string]: any };
4105 }
4106
4107 /** Properties of a DetectLanguageResponse. */
4108 interface IDetectLanguageResponse {
4109
4110 /** DetectLanguageResponse languages */
4111 languages?: (google.cloud.translation.v3beta1.IDetectedLanguage[]|null);
4112 }
4113
4114 /** Represents a DetectLanguageResponse. */
4115 class DetectLanguageResponse implements IDetectLanguageResponse {
4116
4117 /**
4118 * Constructs a new DetectLanguageResponse.
4119 * @param [properties] Properties to set
4120 */
4121 constructor(properties?: google.cloud.translation.v3beta1.IDetectLanguageResponse);
4122
4123 /** DetectLanguageResponse languages. */
4124 public languages: google.cloud.translation.v3beta1.IDetectedLanguage[];
4125
4126 /**
4127 * Creates a new DetectLanguageResponse instance using the specified properties.
4128 * @param [properties] Properties to set
4129 * @returns DetectLanguageResponse instance
4130 */
4131 public static create(properties?: google.cloud.translation.v3beta1.IDetectLanguageResponse): google.cloud.translation.v3beta1.DetectLanguageResponse;
4132
4133 /**
4134 * Encodes the specified DetectLanguageResponse message. Does not implicitly {@link google.cloud.translation.v3beta1.DetectLanguageResponse.verify|verify} messages.
4135 * @param message DetectLanguageResponse message or plain object to encode
4136 * @param [writer] Writer to encode to
4137 * @returns Writer
4138 */
4139 public static encode(message: google.cloud.translation.v3beta1.IDetectLanguageResponse, writer?: $protobuf.Writer): $protobuf.Writer;
4140
4141 /**
4142 * Encodes the specified DetectLanguageResponse message, length delimited. Does not implicitly {@link google.cloud.translation.v3beta1.DetectLanguageResponse.verify|verify} messages.
4143 * @param message DetectLanguageResponse message or plain object to encode
4144 * @param [writer] Writer to encode to
4145 * @returns Writer
4146 */
4147 public static encodeDelimited(message: google.cloud.translation.v3beta1.IDetectLanguageResponse, writer?: $protobuf.Writer): $protobuf.Writer;
4148
4149 /**
4150 * Decodes a DetectLanguageResponse message from the specified reader or buffer.
4151 * @param reader Reader or buffer to decode from
4152 * @param [length] Message length if known beforehand
4153 * @returns DetectLanguageResponse
4154 * @throws {Error} If the payload is not a reader or valid buffer
4155 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4156 */
4157 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3beta1.DetectLanguageResponse;
4158
4159 /**
4160 * Decodes a DetectLanguageResponse message from the specified reader or buffer, length delimited.
4161 * @param reader Reader or buffer to decode from
4162 * @returns DetectLanguageResponse
4163 * @throws {Error} If the payload is not a reader or valid buffer
4164 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4165 */
4166 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3beta1.DetectLanguageResponse;
4167
4168 /**
4169 * Verifies a DetectLanguageResponse message.
4170 * @param message Plain object to verify
4171 * @returns `null` if valid, otherwise the reason why it is not
4172 */
4173 public static verify(message: { [k: string]: any }): (string|null);
4174
4175 /**
4176 * Creates a DetectLanguageResponse message from a plain object. Also converts values to their respective internal types.
4177 * @param object Plain object
4178 * @returns DetectLanguageResponse
4179 */
4180 public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3beta1.DetectLanguageResponse;
4181
4182 /**
4183 * Creates a plain object from a DetectLanguageResponse message. Also converts values to other types if specified.
4184 * @param message DetectLanguageResponse
4185 * @param [options] Conversion options
4186 * @returns Plain object
4187 */
4188 public static toObject(message: google.cloud.translation.v3beta1.DetectLanguageResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
4189
4190 /**
4191 * Converts this DetectLanguageResponse to JSON.
4192 * @returns JSON object
4193 */
4194 public toJSON(): { [k: string]: any };
4195 }
4196
4197 /** Properties of a GetSupportedLanguagesRequest. */
4198 interface IGetSupportedLanguagesRequest {
4199
4200 /** GetSupportedLanguagesRequest parent */
4201 parent?: (string|null);
4202
4203 /** GetSupportedLanguagesRequest displayLanguageCode */
4204 displayLanguageCode?: (string|null);
4205
4206 /** GetSupportedLanguagesRequest model */
4207 model?: (string|null);
4208 }
4209
4210 /** Represents a GetSupportedLanguagesRequest. */
4211 class GetSupportedLanguagesRequest implements IGetSupportedLanguagesRequest {
4212
4213 /**
4214 * Constructs a new GetSupportedLanguagesRequest.
4215 * @param [properties] Properties to set
4216 */
4217 constructor(properties?: google.cloud.translation.v3beta1.IGetSupportedLanguagesRequest);
4218
4219 /** GetSupportedLanguagesRequest parent. */
4220 public parent: string;
4221
4222 /** GetSupportedLanguagesRequest displayLanguageCode. */
4223 public displayLanguageCode: string;
4224
4225 /** GetSupportedLanguagesRequest model. */
4226 public model: string;
4227
4228 /**
4229 * Creates a new GetSupportedLanguagesRequest instance using the specified properties.
4230 * @param [properties] Properties to set
4231 * @returns GetSupportedLanguagesRequest instance
4232 */
4233 public static create(properties?: google.cloud.translation.v3beta1.IGetSupportedLanguagesRequest): google.cloud.translation.v3beta1.GetSupportedLanguagesRequest;
4234
4235 /**
4236 * Encodes the specified GetSupportedLanguagesRequest message. Does not implicitly {@link google.cloud.translation.v3beta1.GetSupportedLanguagesRequest.verify|verify} messages.
4237 * @param message GetSupportedLanguagesRequest message or plain object to encode
4238 * @param [writer] Writer to encode to
4239 * @returns Writer
4240 */
4241 public static encode(message: google.cloud.translation.v3beta1.IGetSupportedLanguagesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
4242
4243 /**
4244 * Encodes the specified GetSupportedLanguagesRequest message, length delimited. Does not implicitly {@link google.cloud.translation.v3beta1.GetSupportedLanguagesRequest.verify|verify} messages.
4245 * @param message GetSupportedLanguagesRequest message or plain object to encode
4246 * @param [writer] Writer to encode to
4247 * @returns Writer
4248 */
4249 public static encodeDelimited(message: google.cloud.translation.v3beta1.IGetSupportedLanguagesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
4250
4251 /**
4252 * Decodes a GetSupportedLanguagesRequest message from the specified reader or buffer.
4253 * @param reader Reader or buffer to decode from
4254 * @param [length] Message length if known beforehand
4255 * @returns GetSupportedLanguagesRequest
4256 * @throws {Error} If the payload is not a reader or valid buffer
4257 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4258 */
4259 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3beta1.GetSupportedLanguagesRequest;
4260
4261 /**
4262 * Decodes a GetSupportedLanguagesRequest message from the specified reader or buffer, length delimited.
4263 * @param reader Reader or buffer to decode from
4264 * @returns GetSupportedLanguagesRequest
4265 * @throws {Error} If the payload is not a reader or valid buffer
4266 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4267 */
4268 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3beta1.GetSupportedLanguagesRequest;
4269
4270 /**
4271 * Verifies a GetSupportedLanguagesRequest message.
4272 * @param message Plain object to verify
4273 * @returns `null` if valid, otherwise the reason why it is not
4274 */
4275 public static verify(message: { [k: string]: any }): (string|null);
4276
4277 /**
4278 * Creates a GetSupportedLanguagesRequest message from a plain object. Also converts values to their respective internal types.
4279 * @param object Plain object
4280 * @returns GetSupportedLanguagesRequest
4281 */
4282 public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3beta1.GetSupportedLanguagesRequest;
4283
4284 /**
4285 * Creates a plain object from a GetSupportedLanguagesRequest message. Also converts values to other types if specified.
4286 * @param message GetSupportedLanguagesRequest
4287 * @param [options] Conversion options
4288 * @returns Plain object
4289 */
4290 public static toObject(message: google.cloud.translation.v3beta1.GetSupportedLanguagesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
4291
4292 /**
4293 * Converts this GetSupportedLanguagesRequest to JSON.
4294 * @returns JSON object
4295 */
4296 public toJSON(): { [k: string]: any };
4297 }
4298
4299 /** Properties of a SupportedLanguages. */
4300 interface ISupportedLanguages {
4301
4302 /** SupportedLanguages languages */
4303 languages?: (google.cloud.translation.v3beta1.ISupportedLanguage[]|null);
4304 }
4305
4306 /** Represents a SupportedLanguages. */
4307 class SupportedLanguages implements ISupportedLanguages {
4308
4309 /**
4310 * Constructs a new SupportedLanguages.
4311 * @param [properties] Properties to set
4312 */
4313 constructor(properties?: google.cloud.translation.v3beta1.ISupportedLanguages);
4314
4315 /** SupportedLanguages languages. */
4316 public languages: google.cloud.translation.v3beta1.ISupportedLanguage[];
4317
4318 /**
4319 * Creates a new SupportedLanguages instance using the specified properties.
4320 * @param [properties] Properties to set
4321 * @returns SupportedLanguages instance
4322 */
4323 public static create(properties?: google.cloud.translation.v3beta1.ISupportedLanguages): google.cloud.translation.v3beta1.SupportedLanguages;
4324
4325 /**
4326 * Encodes the specified SupportedLanguages message. Does not implicitly {@link google.cloud.translation.v3beta1.SupportedLanguages.verify|verify} messages.
4327 * @param message SupportedLanguages message or plain object to encode
4328 * @param [writer] Writer to encode to
4329 * @returns Writer
4330 */
4331 public static encode(message: google.cloud.translation.v3beta1.ISupportedLanguages, writer?: $protobuf.Writer): $protobuf.Writer;
4332
4333 /**
4334 * Encodes the specified SupportedLanguages message, length delimited. Does not implicitly {@link google.cloud.translation.v3beta1.SupportedLanguages.verify|verify} messages.
4335 * @param message SupportedLanguages message or plain object to encode
4336 * @param [writer] Writer to encode to
4337 * @returns Writer
4338 */
4339 public static encodeDelimited(message: google.cloud.translation.v3beta1.ISupportedLanguages, writer?: $protobuf.Writer): $protobuf.Writer;
4340
4341 /**
4342 * Decodes a SupportedLanguages message from the specified reader or buffer.
4343 * @param reader Reader or buffer to decode from
4344 * @param [length] Message length if known beforehand
4345 * @returns SupportedLanguages
4346 * @throws {Error} If the payload is not a reader or valid buffer
4347 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4348 */
4349 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3beta1.SupportedLanguages;
4350
4351 /**
4352 * Decodes a SupportedLanguages message from the specified reader or buffer, length delimited.
4353 * @param reader Reader or buffer to decode from
4354 * @returns SupportedLanguages
4355 * @throws {Error} If the payload is not a reader or valid buffer
4356 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4357 */
4358 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3beta1.SupportedLanguages;
4359
4360 /**
4361 * Verifies a SupportedLanguages message.
4362 * @param message Plain object to verify
4363 * @returns `null` if valid, otherwise the reason why it is not
4364 */
4365 public static verify(message: { [k: string]: any }): (string|null);
4366
4367 /**
4368 * Creates a SupportedLanguages message from a plain object. Also converts values to their respective internal types.
4369 * @param object Plain object
4370 * @returns SupportedLanguages
4371 */
4372 public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3beta1.SupportedLanguages;
4373
4374 /**
4375 * Creates a plain object from a SupportedLanguages message. Also converts values to other types if specified.
4376 * @param message SupportedLanguages
4377 * @param [options] Conversion options
4378 * @returns Plain object
4379 */
4380 public static toObject(message: google.cloud.translation.v3beta1.SupportedLanguages, options?: $protobuf.IConversionOptions): { [k: string]: any };
4381
4382 /**
4383 * Converts this SupportedLanguages to JSON.
4384 * @returns JSON object
4385 */
4386 public toJSON(): { [k: string]: any };
4387 }
4388
4389 /** Properties of a SupportedLanguage. */
4390 interface ISupportedLanguage {
4391
4392 /** SupportedLanguage languageCode */
4393 languageCode?: (string|null);
4394
4395 /** SupportedLanguage displayName */
4396 displayName?: (string|null);
4397
4398 /** SupportedLanguage supportSource */
4399 supportSource?: (boolean|null);
4400
4401 /** SupportedLanguage supportTarget */
4402 supportTarget?: (boolean|null);
4403 }
4404
4405 /** Represents a SupportedLanguage. */
4406 class SupportedLanguage implements ISupportedLanguage {
4407
4408 /**
4409 * Constructs a new SupportedLanguage.
4410 * @param [properties] Properties to set
4411 */
4412 constructor(properties?: google.cloud.translation.v3beta1.ISupportedLanguage);
4413
4414 /** SupportedLanguage languageCode. */
4415 public languageCode: string;
4416
4417 /** SupportedLanguage displayName. */
4418 public displayName: string;
4419
4420 /** SupportedLanguage supportSource. */
4421 public supportSource: boolean;
4422
4423 /** SupportedLanguage supportTarget. */
4424 public supportTarget: boolean;
4425
4426 /**
4427 * Creates a new SupportedLanguage instance using the specified properties.
4428 * @param [properties] Properties to set
4429 * @returns SupportedLanguage instance
4430 */
4431 public static create(properties?: google.cloud.translation.v3beta1.ISupportedLanguage): google.cloud.translation.v3beta1.SupportedLanguage;
4432
4433 /**
4434 * Encodes the specified SupportedLanguage message. Does not implicitly {@link google.cloud.translation.v3beta1.SupportedLanguage.verify|verify} messages.
4435 * @param message SupportedLanguage message or plain object to encode
4436 * @param [writer] Writer to encode to
4437 * @returns Writer
4438 */
4439 public static encode(message: google.cloud.translation.v3beta1.ISupportedLanguage, writer?: $protobuf.Writer): $protobuf.Writer;
4440
4441 /**
4442 * Encodes the specified SupportedLanguage message, length delimited. Does not implicitly {@link google.cloud.translation.v3beta1.SupportedLanguage.verify|verify} messages.
4443 * @param message SupportedLanguage message or plain object to encode
4444 * @param [writer] Writer to encode to
4445 * @returns Writer
4446 */
4447 public static encodeDelimited(message: google.cloud.translation.v3beta1.ISupportedLanguage, writer?: $protobuf.Writer): $protobuf.Writer;
4448
4449 /**
4450 * Decodes a SupportedLanguage message from the specified reader or buffer.
4451 * @param reader Reader or buffer to decode from
4452 * @param [length] Message length if known beforehand
4453 * @returns SupportedLanguage
4454 * @throws {Error} If the payload is not a reader or valid buffer
4455 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4456 */
4457 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3beta1.SupportedLanguage;
4458
4459 /**
4460 * Decodes a SupportedLanguage message from the specified reader or buffer, length delimited.
4461 * @param reader Reader or buffer to decode from
4462 * @returns SupportedLanguage
4463 * @throws {Error} If the payload is not a reader or valid buffer
4464 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4465 */
4466 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3beta1.SupportedLanguage;
4467
4468 /**
4469 * Verifies a SupportedLanguage message.
4470 * @param message Plain object to verify
4471 * @returns `null` if valid, otherwise the reason why it is not
4472 */
4473 public static verify(message: { [k: string]: any }): (string|null);
4474
4475 /**
4476 * Creates a SupportedLanguage message from a plain object. Also converts values to their respective internal types.
4477 * @param object Plain object
4478 * @returns SupportedLanguage
4479 */
4480 public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3beta1.SupportedLanguage;
4481
4482 /**
4483 * Creates a plain object from a SupportedLanguage message. Also converts values to other types if specified.
4484 * @param message SupportedLanguage
4485 * @param [options] Conversion options
4486 * @returns Plain object
4487 */
4488 public static toObject(message: google.cloud.translation.v3beta1.SupportedLanguage, options?: $protobuf.IConversionOptions): { [k: string]: any };
4489
4490 /**
4491 * Converts this SupportedLanguage to JSON.
4492 * @returns JSON object
4493 */
4494 public toJSON(): { [k: string]: any };
4495 }
4496
4497 /** Properties of a GcsSource. */
4498 interface IGcsSource {
4499
4500 /** GcsSource inputUri */
4501 inputUri?: (string|null);
4502 }
4503
4504 /** Represents a GcsSource. */
4505 class GcsSource implements IGcsSource {
4506
4507 /**
4508 * Constructs a new GcsSource.
4509 * @param [properties] Properties to set
4510 */
4511 constructor(properties?: google.cloud.translation.v3beta1.IGcsSource);
4512
4513 /** GcsSource inputUri. */
4514 public inputUri: string;
4515
4516 /**
4517 * Creates a new GcsSource instance using the specified properties.
4518 * @param [properties] Properties to set
4519 * @returns GcsSource instance
4520 */
4521 public static create(properties?: google.cloud.translation.v3beta1.IGcsSource): google.cloud.translation.v3beta1.GcsSource;
4522
4523 /**
4524 * Encodes the specified GcsSource message. Does not implicitly {@link google.cloud.translation.v3beta1.GcsSource.verify|verify} messages.
4525 * @param message GcsSource message or plain object to encode
4526 * @param [writer] Writer to encode to
4527 * @returns Writer
4528 */
4529 public static encode(message: google.cloud.translation.v3beta1.IGcsSource, writer?: $protobuf.Writer): $protobuf.Writer;
4530
4531 /**
4532 * Encodes the specified GcsSource message, length delimited. Does not implicitly {@link google.cloud.translation.v3beta1.GcsSource.verify|verify} messages.
4533 * @param message GcsSource message or plain object to encode
4534 * @param [writer] Writer to encode to
4535 * @returns Writer
4536 */
4537 public static encodeDelimited(message: google.cloud.translation.v3beta1.IGcsSource, writer?: $protobuf.Writer): $protobuf.Writer;
4538
4539 /**
4540 * Decodes a GcsSource message from the specified reader or buffer.
4541 * @param reader Reader or buffer to decode from
4542 * @param [length] Message length if known beforehand
4543 * @returns GcsSource
4544 * @throws {Error} If the payload is not a reader or valid buffer
4545 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4546 */
4547 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3beta1.GcsSource;
4548
4549 /**
4550 * Decodes a GcsSource message from the specified reader or buffer, length delimited.
4551 * @param reader Reader or buffer to decode from
4552 * @returns GcsSource
4553 * @throws {Error} If the payload is not a reader or valid buffer
4554 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4555 */
4556 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3beta1.GcsSource;
4557
4558 /**
4559 * Verifies a GcsSource message.
4560 * @param message Plain object to verify
4561 * @returns `null` if valid, otherwise the reason why it is not
4562 */
4563 public static verify(message: { [k: string]: any }): (string|null);
4564
4565 /**
4566 * Creates a GcsSource message from a plain object. Also converts values to their respective internal types.
4567 * @param object Plain object
4568 * @returns GcsSource
4569 */
4570 public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3beta1.GcsSource;
4571
4572 /**
4573 * Creates a plain object from a GcsSource message. Also converts values to other types if specified.
4574 * @param message GcsSource
4575 * @param [options] Conversion options
4576 * @returns Plain object
4577 */
4578 public static toObject(message: google.cloud.translation.v3beta1.GcsSource, options?: $protobuf.IConversionOptions): { [k: string]: any };
4579
4580 /**
4581 * Converts this GcsSource to JSON.
4582 * @returns JSON object
4583 */
4584 public toJSON(): { [k: string]: any };
4585 }
4586
4587 /** Properties of an InputConfig. */
4588 interface IInputConfig {
4589
4590 /** InputConfig mimeType */
4591 mimeType?: (string|null);
4592
4593 /** InputConfig gcsSource */
4594 gcsSource?: (google.cloud.translation.v3beta1.IGcsSource|null);
4595 }
4596
4597 /** Represents an InputConfig. */
4598 class InputConfig implements IInputConfig {
4599
4600 /**
4601 * Constructs a new InputConfig.
4602 * @param [properties] Properties to set
4603 */
4604 constructor(properties?: google.cloud.translation.v3beta1.IInputConfig);
4605
4606 /** InputConfig mimeType. */
4607 public mimeType: string;
4608
4609 /** InputConfig gcsSource. */
4610 public gcsSource?: (google.cloud.translation.v3beta1.IGcsSource|null);
4611
4612 /** InputConfig source. */
4613 public source?: "gcsSource";
4614
4615 /**
4616 * Creates a new InputConfig instance using the specified properties.
4617 * @param [properties] Properties to set
4618 * @returns InputConfig instance
4619 */
4620 public static create(properties?: google.cloud.translation.v3beta1.IInputConfig): google.cloud.translation.v3beta1.InputConfig;
4621
4622 /**
4623 * Encodes the specified InputConfig message. Does not implicitly {@link google.cloud.translation.v3beta1.InputConfig.verify|verify} messages.
4624 * @param message InputConfig message or plain object to encode
4625 * @param [writer] Writer to encode to
4626 * @returns Writer
4627 */
4628 public static encode(message: google.cloud.translation.v3beta1.IInputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
4629
4630 /**
4631 * Encodes the specified InputConfig message, length delimited. Does not implicitly {@link google.cloud.translation.v3beta1.InputConfig.verify|verify} messages.
4632 * @param message InputConfig message or plain object to encode
4633 * @param [writer] Writer to encode to
4634 * @returns Writer
4635 */
4636 public static encodeDelimited(message: google.cloud.translation.v3beta1.IInputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
4637
4638 /**
4639 * Decodes an InputConfig message from the specified reader or buffer.
4640 * @param reader Reader or buffer to decode from
4641 * @param [length] Message length if known beforehand
4642 * @returns InputConfig
4643 * @throws {Error} If the payload is not a reader or valid buffer
4644 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4645 */
4646 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3beta1.InputConfig;
4647
4648 /**
4649 * Decodes an InputConfig message from the specified reader or buffer, length delimited.
4650 * @param reader Reader or buffer to decode from
4651 * @returns InputConfig
4652 * @throws {Error} If the payload is not a reader or valid buffer
4653 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4654 */
4655 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3beta1.InputConfig;
4656
4657 /**
4658 * Verifies an InputConfig message.
4659 * @param message Plain object to verify
4660 * @returns `null` if valid, otherwise the reason why it is not
4661 */
4662 public static verify(message: { [k: string]: any }): (string|null);
4663
4664 /**
4665 * Creates an InputConfig message from a plain object. Also converts values to their respective internal types.
4666 * @param object Plain object
4667 * @returns InputConfig
4668 */
4669 public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3beta1.InputConfig;
4670
4671 /**
4672 * Creates a plain object from an InputConfig message. Also converts values to other types if specified.
4673 * @param message InputConfig
4674 * @param [options] Conversion options
4675 * @returns Plain object
4676 */
4677 public static toObject(message: google.cloud.translation.v3beta1.InputConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
4678
4679 /**
4680 * Converts this InputConfig to JSON.
4681 * @returns JSON object
4682 */
4683 public toJSON(): { [k: string]: any };
4684 }
4685
4686 /** Properties of a GcsDestination. */
4687 interface IGcsDestination {
4688
4689 /** GcsDestination outputUriPrefix */
4690 outputUriPrefix?: (string|null);
4691 }
4692
4693 /** Represents a GcsDestination. */
4694 class GcsDestination implements IGcsDestination {
4695
4696 /**
4697 * Constructs a new GcsDestination.
4698 * @param [properties] Properties to set
4699 */
4700 constructor(properties?: google.cloud.translation.v3beta1.IGcsDestination);
4701
4702 /** GcsDestination outputUriPrefix. */
4703 public outputUriPrefix: string;
4704
4705 /**
4706 * Creates a new GcsDestination instance using the specified properties.
4707 * @param [properties] Properties to set
4708 * @returns GcsDestination instance
4709 */
4710 public static create(properties?: google.cloud.translation.v3beta1.IGcsDestination): google.cloud.translation.v3beta1.GcsDestination;
4711
4712 /**
4713 * Encodes the specified GcsDestination message. Does not implicitly {@link google.cloud.translation.v3beta1.GcsDestination.verify|verify} messages.
4714 * @param message GcsDestination message or plain object to encode
4715 * @param [writer] Writer to encode to
4716 * @returns Writer
4717 */
4718 public static encode(message: google.cloud.translation.v3beta1.IGcsDestination, writer?: $protobuf.Writer): $protobuf.Writer;
4719
4720 /**
4721 * Encodes the specified GcsDestination message, length delimited. Does not implicitly {@link google.cloud.translation.v3beta1.GcsDestination.verify|verify} messages.
4722 * @param message GcsDestination message or plain object to encode
4723 * @param [writer] Writer to encode to
4724 * @returns Writer
4725 */
4726 public static encodeDelimited(message: google.cloud.translation.v3beta1.IGcsDestination, writer?: $protobuf.Writer): $protobuf.Writer;
4727
4728 /**
4729 * Decodes a GcsDestination message from the specified reader or buffer.
4730 * @param reader Reader or buffer to decode from
4731 * @param [length] Message length if known beforehand
4732 * @returns GcsDestination
4733 * @throws {Error} If the payload is not a reader or valid buffer
4734 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4735 */
4736 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3beta1.GcsDestination;
4737
4738 /**
4739 * Decodes a GcsDestination message from the specified reader or buffer, length delimited.
4740 * @param reader Reader or buffer to decode from
4741 * @returns GcsDestination
4742 * @throws {Error} If the payload is not a reader or valid buffer
4743 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4744 */
4745 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3beta1.GcsDestination;
4746
4747 /**
4748 * Verifies a GcsDestination message.
4749 * @param message Plain object to verify
4750 * @returns `null` if valid, otherwise the reason why it is not
4751 */
4752 public static verify(message: { [k: string]: any }): (string|null);
4753
4754 /**
4755 * Creates a GcsDestination message from a plain object. Also converts values to their respective internal types.
4756 * @param object Plain object
4757 * @returns GcsDestination
4758 */
4759 public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3beta1.GcsDestination;
4760
4761 /**
4762 * Creates a plain object from a GcsDestination message. Also converts values to other types if specified.
4763 * @param message GcsDestination
4764 * @param [options] Conversion options
4765 * @returns Plain object
4766 */
4767 public static toObject(message: google.cloud.translation.v3beta1.GcsDestination, options?: $protobuf.IConversionOptions): { [k: string]: any };
4768
4769 /**
4770 * Converts this GcsDestination to JSON.
4771 * @returns JSON object
4772 */
4773 public toJSON(): { [k: string]: any };
4774 }
4775
4776 /** Properties of an OutputConfig. */
4777 interface IOutputConfig {
4778
4779 /** OutputConfig gcsDestination */
4780 gcsDestination?: (google.cloud.translation.v3beta1.IGcsDestination|null);
4781 }
4782
4783 /** Represents an OutputConfig. */
4784 class OutputConfig implements IOutputConfig {
4785
4786 /**
4787 * Constructs a new OutputConfig.
4788 * @param [properties] Properties to set
4789 */
4790 constructor(properties?: google.cloud.translation.v3beta1.IOutputConfig);
4791
4792 /** OutputConfig gcsDestination. */
4793 public gcsDestination?: (google.cloud.translation.v3beta1.IGcsDestination|null);
4794
4795 /** OutputConfig destination. */
4796 public destination?: "gcsDestination";
4797
4798 /**
4799 * Creates a new OutputConfig instance using the specified properties.
4800 * @param [properties] Properties to set
4801 * @returns OutputConfig instance
4802 */
4803 public static create(properties?: google.cloud.translation.v3beta1.IOutputConfig): google.cloud.translation.v3beta1.OutputConfig;
4804
4805 /**
4806 * Encodes the specified OutputConfig message. Does not implicitly {@link google.cloud.translation.v3beta1.OutputConfig.verify|verify} messages.
4807 * @param message OutputConfig message or plain object to encode
4808 * @param [writer] Writer to encode to
4809 * @returns Writer
4810 */
4811 public static encode(message: google.cloud.translation.v3beta1.IOutputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
4812
4813 /**
4814 * Encodes the specified OutputConfig message, length delimited. Does not implicitly {@link google.cloud.translation.v3beta1.OutputConfig.verify|verify} messages.
4815 * @param message OutputConfig message or plain object to encode
4816 * @param [writer] Writer to encode to
4817 * @returns Writer
4818 */
4819 public static encodeDelimited(message: google.cloud.translation.v3beta1.IOutputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
4820
4821 /**
4822 * Decodes an OutputConfig message from the specified reader or buffer.
4823 * @param reader Reader or buffer to decode from
4824 * @param [length] Message length if known beforehand
4825 * @returns OutputConfig
4826 * @throws {Error} If the payload is not a reader or valid buffer
4827 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4828 */
4829 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3beta1.OutputConfig;
4830
4831 /**
4832 * Decodes an OutputConfig message from the specified reader or buffer, length delimited.
4833 * @param reader Reader or buffer to decode from
4834 * @returns OutputConfig
4835 * @throws {Error} If the payload is not a reader or valid buffer
4836 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4837 */
4838 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3beta1.OutputConfig;
4839
4840 /**
4841 * Verifies an OutputConfig message.
4842 * @param message Plain object to verify
4843 * @returns `null` if valid, otherwise the reason why it is not
4844 */
4845 public static verify(message: { [k: string]: any }): (string|null);
4846
4847 /**
4848 * Creates an OutputConfig message from a plain object. Also converts values to their respective internal types.
4849 * @param object Plain object
4850 * @returns OutputConfig
4851 */
4852 public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3beta1.OutputConfig;
4853
4854 /**
4855 * Creates a plain object from an OutputConfig message. Also converts values to other types if specified.
4856 * @param message OutputConfig
4857 * @param [options] Conversion options
4858 * @returns Plain object
4859 */
4860 public static toObject(message: google.cloud.translation.v3beta1.OutputConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
4861
4862 /**
4863 * Converts this OutputConfig to JSON.
4864 * @returns JSON object
4865 */
4866 public toJSON(): { [k: string]: any };
4867 }
4868
4869 /** Properties of a DocumentInputConfig. */
4870 interface IDocumentInputConfig {
4871
4872 /** DocumentInputConfig content */
4873 content?: (Uint8Array|string|null);
4874
4875 /** DocumentInputConfig gcsSource */
4876 gcsSource?: (google.cloud.translation.v3beta1.IGcsSource|null);
4877
4878 /** DocumentInputConfig mimeType */
4879 mimeType?: (string|null);
4880 }
4881
4882 /** Represents a DocumentInputConfig. */
4883 class DocumentInputConfig implements IDocumentInputConfig {
4884
4885 /**
4886 * Constructs a new DocumentInputConfig.
4887 * @param [properties] Properties to set
4888 */
4889 constructor(properties?: google.cloud.translation.v3beta1.IDocumentInputConfig);
4890
4891 /** DocumentInputConfig content. */
4892 public content?: (Uint8Array|string|null);
4893
4894 /** DocumentInputConfig gcsSource. */
4895 public gcsSource?: (google.cloud.translation.v3beta1.IGcsSource|null);
4896
4897 /** DocumentInputConfig mimeType. */
4898 public mimeType: string;
4899
4900 /** DocumentInputConfig source. */
4901 public source?: ("content"|"gcsSource");
4902
4903 /**
4904 * Creates a new DocumentInputConfig instance using the specified properties.
4905 * @param [properties] Properties to set
4906 * @returns DocumentInputConfig instance
4907 */
4908 public static create(properties?: google.cloud.translation.v3beta1.IDocumentInputConfig): google.cloud.translation.v3beta1.DocumentInputConfig;
4909
4910 /**
4911 * Encodes the specified DocumentInputConfig message. Does not implicitly {@link google.cloud.translation.v3beta1.DocumentInputConfig.verify|verify} messages.
4912 * @param message DocumentInputConfig message or plain object to encode
4913 * @param [writer] Writer to encode to
4914 * @returns Writer
4915 */
4916 public static encode(message: google.cloud.translation.v3beta1.IDocumentInputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
4917
4918 /**
4919 * Encodes the specified DocumentInputConfig message, length delimited. Does not implicitly {@link google.cloud.translation.v3beta1.DocumentInputConfig.verify|verify} messages.
4920 * @param message DocumentInputConfig message or plain object to encode
4921 * @param [writer] Writer to encode to
4922 * @returns Writer
4923 */
4924 public static encodeDelimited(message: google.cloud.translation.v3beta1.IDocumentInputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
4925
4926 /**
4927 * Decodes a DocumentInputConfig message from the specified reader or buffer.
4928 * @param reader Reader or buffer to decode from
4929 * @param [length] Message length if known beforehand
4930 * @returns DocumentInputConfig
4931 * @throws {Error} If the payload is not a reader or valid buffer
4932 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4933 */
4934 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3beta1.DocumentInputConfig;
4935
4936 /**
4937 * Decodes a DocumentInputConfig message from the specified reader or buffer, length delimited.
4938 * @param reader Reader or buffer to decode from
4939 * @returns DocumentInputConfig
4940 * @throws {Error} If the payload is not a reader or valid buffer
4941 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4942 */
4943 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3beta1.DocumentInputConfig;
4944
4945 /**
4946 * Verifies a DocumentInputConfig message.
4947 * @param message Plain object to verify
4948 * @returns `null` if valid, otherwise the reason why it is not
4949 */
4950 public static verify(message: { [k: string]: any }): (string|null);
4951
4952 /**
4953 * Creates a DocumentInputConfig message from a plain object. Also converts values to their respective internal types.
4954 * @param object Plain object
4955 * @returns DocumentInputConfig
4956 */
4957 public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3beta1.DocumentInputConfig;
4958
4959 /**
4960 * Creates a plain object from a DocumentInputConfig message. Also converts values to other types if specified.
4961 * @param message DocumentInputConfig
4962 * @param [options] Conversion options
4963 * @returns Plain object
4964 */
4965 public static toObject(message: google.cloud.translation.v3beta1.DocumentInputConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
4966
4967 /**
4968 * Converts this DocumentInputConfig to JSON.
4969 * @returns JSON object
4970 */
4971 public toJSON(): { [k: string]: any };
4972 }
4973
4974 /** Properties of a DocumentOutputConfig. */
4975 interface IDocumentOutputConfig {
4976
4977 /** DocumentOutputConfig gcsDestination */
4978 gcsDestination?: (google.cloud.translation.v3beta1.IGcsDestination|null);
4979
4980 /** DocumentOutputConfig mimeType */
4981 mimeType?: (string|null);
4982 }
4983
4984 /** Represents a DocumentOutputConfig. */
4985 class DocumentOutputConfig implements IDocumentOutputConfig {
4986
4987 /**
4988 * Constructs a new DocumentOutputConfig.
4989 * @param [properties] Properties to set
4990 */
4991 constructor(properties?: google.cloud.translation.v3beta1.IDocumentOutputConfig);
4992
4993 /** DocumentOutputConfig gcsDestination. */
4994 public gcsDestination?: (google.cloud.translation.v3beta1.IGcsDestination|null);
4995
4996 /** DocumentOutputConfig mimeType. */
4997 public mimeType: string;
4998
4999 /** DocumentOutputConfig destination. */
5000 public destination?: "gcsDestination";
5001
5002 /**
5003 * Creates a new DocumentOutputConfig instance using the specified properties.
5004 * @param [properties] Properties to set
5005 * @returns DocumentOutputConfig instance
5006 */
5007 public static create(properties?: google.cloud.translation.v3beta1.IDocumentOutputConfig): google.cloud.translation.v3beta1.DocumentOutputConfig;
5008
5009 /**
5010 * Encodes the specified DocumentOutputConfig message. Does not implicitly {@link google.cloud.translation.v3beta1.DocumentOutputConfig.verify|verify} messages.
5011 * @param message DocumentOutputConfig message or plain object to encode
5012 * @param [writer] Writer to encode to
5013 * @returns Writer
5014 */
5015 public static encode(message: google.cloud.translation.v3beta1.IDocumentOutputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
5016
5017 /**
5018 * Encodes the specified DocumentOutputConfig message, length delimited. Does not implicitly {@link google.cloud.translation.v3beta1.DocumentOutputConfig.verify|verify} messages.
5019 * @param message DocumentOutputConfig message or plain object to encode
5020 * @param [writer] Writer to encode to
5021 * @returns Writer
5022 */
5023 public static encodeDelimited(message: google.cloud.translation.v3beta1.IDocumentOutputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
5024
5025 /**
5026 * Decodes a DocumentOutputConfig message from the specified reader or buffer.
5027 * @param reader Reader or buffer to decode from
5028 * @param [length] Message length if known beforehand
5029 * @returns DocumentOutputConfig
5030 * @throws {Error} If the payload is not a reader or valid buffer
5031 * @throws {$protobuf.util.ProtocolError} If required fields are missing
5032 */
5033 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3beta1.DocumentOutputConfig;
5034
5035 /**
5036 * Decodes a DocumentOutputConfig message from the specified reader or buffer, length delimited.
5037 * @param reader Reader or buffer to decode from
5038 * @returns DocumentOutputConfig
5039 * @throws {Error} If the payload is not a reader or valid buffer
5040 * @throws {$protobuf.util.ProtocolError} If required fields are missing
5041 */
5042 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3beta1.DocumentOutputConfig;
5043
5044 /**
5045 * Verifies a DocumentOutputConfig message.
5046 * @param message Plain object to verify
5047 * @returns `null` if valid, otherwise the reason why it is not
5048 */
5049 public static verify(message: { [k: string]: any }): (string|null);
5050
5051 /**
5052 * Creates a DocumentOutputConfig message from a plain object. Also converts values to their respective internal types.
5053 * @param object Plain object
5054 * @returns DocumentOutputConfig
5055 */
5056 public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3beta1.DocumentOutputConfig;
5057
5058 /**
5059 * Creates a plain object from a DocumentOutputConfig message. Also converts values to other types if specified.
5060 * @param message DocumentOutputConfig
5061 * @param [options] Conversion options
5062 * @returns Plain object
5063 */
5064 public static toObject(message: google.cloud.translation.v3beta1.DocumentOutputConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
5065
5066 /**
5067 * Converts this DocumentOutputConfig to JSON.
5068 * @returns JSON object
5069 */
5070 public toJSON(): { [k: string]: any };
5071 }
5072
5073 /** Properties of a TranslateDocumentRequest. */
5074 interface ITranslateDocumentRequest {
5075
5076 /** TranslateDocumentRequest parent */
5077 parent?: (string|null);
5078
5079 /** TranslateDocumentRequest sourceLanguageCode */
5080 sourceLanguageCode?: (string|null);
5081
5082 /** TranslateDocumentRequest targetLanguageCode */
5083 targetLanguageCode?: (string|null);
5084
5085 /** TranslateDocumentRequest documentInputConfig */
5086 documentInputConfig?: (google.cloud.translation.v3beta1.IDocumentInputConfig|null);
5087
5088 /** TranslateDocumentRequest documentOutputConfig */
5089 documentOutputConfig?: (google.cloud.translation.v3beta1.IDocumentOutputConfig|null);
5090
5091 /** TranslateDocumentRequest model */
5092 model?: (string|null);
5093
5094 /** TranslateDocumentRequest glossaryConfig */
5095 glossaryConfig?: (google.cloud.translation.v3beta1.ITranslateTextGlossaryConfig|null);
5096
5097 /** TranslateDocumentRequest labels */
5098 labels?: ({ [k: string]: string }|null);
5099 }
5100
5101 /** Represents a TranslateDocumentRequest. */
5102 class TranslateDocumentRequest implements ITranslateDocumentRequest {
5103
5104 /**
5105 * Constructs a new TranslateDocumentRequest.
5106 * @param [properties] Properties to set
5107 */
5108 constructor(properties?: google.cloud.translation.v3beta1.ITranslateDocumentRequest);
5109
5110 /** TranslateDocumentRequest parent. */
5111 public parent: string;
5112
5113 /** TranslateDocumentRequest sourceLanguageCode. */
5114 public sourceLanguageCode: string;
5115
5116 /** TranslateDocumentRequest targetLanguageCode. */
5117 public targetLanguageCode: string;
5118
5119 /** TranslateDocumentRequest documentInputConfig. */
5120 public documentInputConfig?: (google.cloud.translation.v3beta1.IDocumentInputConfig|null);
5121
5122 /** TranslateDocumentRequest documentOutputConfig. */
5123 public documentOutputConfig?: (google.cloud.translation.v3beta1.IDocumentOutputConfig|null);
5124
5125 /** TranslateDocumentRequest model. */
5126 public model: string;
5127
5128 /** TranslateDocumentRequest glossaryConfig. */
5129 public glossaryConfig?: (google.cloud.translation.v3beta1.ITranslateTextGlossaryConfig|null);
5130
5131 /** TranslateDocumentRequest labels. */
5132 public labels: { [k: string]: string };
5133
5134 /**
5135 * Creates a new TranslateDocumentRequest instance using the specified properties.
5136 * @param [properties] Properties to set
5137 * @returns TranslateDocumentRequest instance
5138 */
5139 public static create(properties?: google.cloud.translation.v3beta1.ITranslateDocumentRequest): google.cloud.translation.v3beta1.TranslateDocumentRequest;
5140
5141 /**
5142 * Encodes the specified TranslateDocumentRequest message. Does not implicitly {@link google.cloud.translation.v3beta1.TranslateDocumentRequest.verify|verify} messages.
5143 * @param message TranslateDocumentRequest message or plain object to encode
5144 * @param [writer] Writer to encode to
5145 * @returns Writer
5146 */
5147 public static encode(message: google.cloud.translation.v3beta1.ITranslateDocumentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
5148
5149 /**
5150 * Encodes the specified TranslateDocumentRequest message, length delimited. Does not implicitly {@link google.cloud.translation.v3beta1.TranslateDocumentRequest.verify|verify} messages.
5151 * @param message TranslateDocumentRequest message or plain object to encode
5152 * @param [writer] Writer to encode to
5153 * @returns Writer
5154 */
5155 public static encodeDelimited(message: google.cloud.translation.v3beta1.ITranslateDocumentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
5156
5157 /**
5158 * Decodes a TranslateDocumentRequest message from the specified reader or buffer.
5159 * @param reader Reader or buffer to decode from
5160 * @param [length] Message length if known beforehand
5161 * @returns TranslateDocumentRequest
5162 * @throws {Error} If the payload is not a reader or valid buffer
5163 * @throws {$protobuf.util.ProtocolError} If required fields are missing
5164 */
5165 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3beta1.TranslateDocumentRequest;
5166
5167 /**
5168 * Decodes a TranslateDocumentRequest message from the specified reader or buffer, length delimited.
5169 * @param reader Reader or buffer to decode from
5170 * @returns TranslateDocumentRequest
5171 * @throws {Error} If the payload is not a reader or valid buffer
5172 * @throws {$protobuf.util.ProtocolError} If required fields are missing
5173 */
5174 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3beta1.TranslateDocumentRequest;
5175
5176 /**
5177 * Verifies a TranslateDocumentRequest message.
5178 * @param message Plain object to verify
5179 * @returns `null` if valid, otherwise the reason why it is not
5180 */
5181 public static verify(message: { [k: string]: any }): (string|null);
5182
5183 /**
5184 * Creates a TranslateDocumentRequest message from a plain object. Also converts values to their respective internal types.
5185 * @param object Plain object
5186 * @returns TranslateDocumentRequest
5187 */
5188 public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3beta1.TranslateDocumentRequest;
5189
5190 /**
5191 * Creates a plain object from a TranslateDocumentRequest message. Also converts values to other types if specified.
5192 * @param message TranslateDocumentRequest
5193 * @param [options] Conversion options
5194 * @returns Plain object
5195 */
5196 public static toObject(message: google.cloud.translation.v3beta1.TranslateDocumentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
5197
5198 /**
5199 * Converts this TranslateDocumentRequest to JSON.
5200 * @returns JSON object
5201 */
5202 public toJSON(): { [k: string]: any };
5203 }
5204
5205 /** Properties of a DocumentTranslation. */
5206 interface IDocumentTranslation {
5207
5208 /** DocumentTranslation byteStreamOutputs */
5209 byteStreamOutputs?: (Uint8Array[]|null);
5210
5211 /** DocumentTranslation mimeType */
5212 mimeType?: (string|null);
5213
5214 /** DocumentTranslation detectedLanguageCode */
5215 detectedLanguageCode?: (string|null);
5216 }
5217
5218 /** Represents a DocumentTranslation. */
5219 class DocumentTranslation implements IDocumentTranslation {
5220
5221 /**
5222 * Constructs a new DocumentTranslation.
5223 * @param [properties] Properties to set
5224 */
5225 constructor(properties?: google.cloud.translation.v3beta1.IDocumentTranslation);
5226
5227 /** DocumentTranslation byteStreamOutputs. */
5228 public byteStreamOutputs: Uint8Array[];
5229
5230 /** DocumentTranslation mimeType. */
5231 public mimeType: string;
5232
5233 /** DocumentTranslation detectedLanguageCode. */
5234 public detectedLanguageCode: string;
5235
5236 /**
5237 * Creates a new DocumentTranslation instance using the specified properties.
5238 * @param [properties] Properties to set
5239 * @returns DocumentTranslation instance
5240 */
5241 public static create(properties?: google.cloud.translation.v3beta1.IDocumentTranslation): google.cloud.translation.v3beta1.DocumentTranslation;
5242
5243 /**
5244 * Encodes the specified DocumentTranslation message. Does not implicitly {@link google.cloud.translation.v3beta1.DocumentTranslation.verify|verify} messages.
5245 * @param message DocumentTranslation message or plain object to encode
5246 * @param [writer] Writer to encode to
5247 * @returns Writer
5248 */
5249 public static encode(message: google.cloud.translation.v3beta1.IDocumentTranslation, writer?: $protobuf.Writer): $protobuf.Writer;
5250
5251 /**
5252 * Encodes the specified DocumentTranslation message, length delimited. Does not implicitly {@link google.cloud.translation.v3beta1.DocumentTranslation.verify|verify} messages.
5253 * @param message DocumentTranslation message or plain object to encode
5254 * @param [writer] Writer to encode to
5255 * @returns Writer
5256 */
5257 public static encodeDelimited(message: google.cloud.translation.v3beta1.IDocumentTranslation, writer?: $protobuf.Writer): $protobuf.Writer;
5258
5259 /**
5260 * Decodes a DocumentTranslation message from the specified reader or buffer.
5261 * @param reader Reader or buffer to decode from
5262 * @param [length] Message length if known beforehand
5263 * @returns DocumentTranslation
5264 * @throws {Error} If the payload is not a reader or valid buffer
5265 * @throws {$protobuf.util.ProtocolError} If required fields are missing
5266 */
5267 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3beta1.DocumentTranslation;
5268
5269 /**
5270 * Decodes a DocumentTranslation message from the specified reader or buffer, length delimited.
5271 * @param reader Reader or buffer to decode from
5272 * @returns DocumentTranslation
5273 * @throws {Error} If the payload is not a reader or valid buffer
5274 * @throws {$protobuf.util.ProtocolError} If required fields are missing
5275 */
5276 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3beta1.DocumentTranslation;
5277
5278 /**
5279 * Verifies a DocumentTranslation message.
5280 * @param message Plain object to verify
5281 * @returns `null` if valid, otherwise the reason why it is not
5282 */
5283 public static verify(message: { [k: string]: any }): (string|null);
5284
5285 /**
5286 * Creates a DocumentTranslation message from a plain object. Also converts values to their respective internal types.
5287 * @param object Plain object
5288 * @returns DocumentTranslation
5289 */
5290 public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3beta1.DocumentTranslation;
5291
5292 /**
5293 * Creates a plain object from a DocumentTranslation message. Also converts values to other types if specified.
5294 * @param message DocumentTranslation
5295 * @param [options] Conversion options
5296 * @returns Plain object
5297 */
5298 public static toObject(message: google.cloud.translation.v3beta1.DocumentTranslation, options?: $protobuf.IConversionOptions): { [k: string]: any };
5299
5300 /**
5301 * Converts this DocumentTranslation to JSON.
5302 * @returns JSON object
5303 */
5304 public toJSON(): { [k: string]: any };
5305 }
5306
5307 /** Properties of a TranslateDocumentResponse. */
5308 interface ITranslateDocumentResponse {
5309
5310 /** TranslateDocumentResponse documentTranslation */
5311 documentTranslation?: (google.cloud.translation.v3beta1.IDocumentTranslation|null);
5312
5313 /** TranslateDocumentResponse glossaryDocumentTranslation */
5314 glossaryDocumentTranslation?: (google.cloud.translation.v3beta1.IDocumentTranslation|null);
5315
5316 /** TranslateDocumentResponse model */
5317 model?: (string|null);
5318
5319 /** TranslateDocumentResponse glossaryConfig */
5320 glossaryConfig?: (google.cloud.translation.v3beta1.ITranslateTextGlossaryConfig|null);
5321 }
5322
5323 /** Represents a TranslateDocumentResponse. */
5324 class TranslateDocumentResponse implements ITranslateDocumentResponse {
5325
5326 /**
5327 * Constructs a new TranslateDocumentResponse.
5328 * @param [properties] Properties to set
5329 */
5330 constructor(properties?: google.cloud.translation.v3beta1.ITranslateDocumentResponse);
5331
5332 /** TranslateDocumentResponse documentTranslation. */
5333 public documentTranslation?: (google.cloud.translation.v3beta1.IDocumentTranslation|null);
5334
5335 /** TranslateDocumentResponse glossaryDocumentTranslation. */
5336 public glossaryDocumentTranslation?: (google.cloud.translation.v3beta1.IDocumentTranslation|null);
5337
5338 /** TranslateDocumentResponse model. */
5339 public model: string;
5340
5341 /** TranslateDocumentResponse glossaryConfig. */
5342 public glossaryConfig?: (google.cloud.translation.v3beta1.ITranslateTextGlossaryConfig|null);
5343
5344 /**
5345 * Creates a new TranslateDocumentResponse instance using the specified properties.
5346 * @param [properties] Properties to set
5347 * @returns TranslateDocumentResponse instance
5348 */
5349 public static create(properties?: google.cloud.translation.v3beta1.ITranslateDocumentResponse): google.cloud.translation.v3beta1.TranslateDocumentResponse;
5350
5351 /**
5352 * Encodes the specified TranslateDocumentResponse message. Does not implicitly {@link google.cloud.translation.v3beta1.TranslateDocumentResponse.verify|verify} messages.
5353 * @param message TranslateDocumentResponse message or plain object to encode
5354 * @param [writer] Writer to encode to
5355 * @returns Writer
5356 */
5357 public static encode(message: google.cloud.translation.v3beta1.ITranslateDocumentResponse, writer?: $protobuf.Writer): $protobuf.Writer;
5358
5359 /**
5360 * Encodes the specified TranslateDocumentResponse message, length delimited. Does not implicitly {@link google.cloud.translation.v3beta1.TranslateDocumentResponse.verify|verify} messages.
5361 * @param message TranslateDocumentResponse message or plain object to encode
5362 * @param [writer] Writer to encode to
5363 * @returns Writer
5364 */
5365 public static encodeDelimited(message: google.cloud.translation.v3beta1.ITranslateDocumentResponse, writer?: $protobuf.Writer): $protobuf.Writer;
5366
5367 /**
5368 * Decodes a TranslateDocumentResponse message from the specified reader or buffer.
5369 * @param reader Reader or buffer to decode from
5370 * @param [length] Message length if known beforehand
5371 * @returns TranslateDocumentResponse
5372 * @throws {Error} If the payload is not a reader or valid buffer
5373 * @throws {$protobuf.util.ProtocolError} If required fields are missing
5374 */
5375 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3beta1.TranslateDocumentResponse;
5376
5377 /**
5378 * Decodes a TranslateDocumentResponse message from the specified reader or buffer, length delimited.
5379 * @param reader Reader or buffer to decode from
5380 * @returns TranslateDocumentResponse
5381 * @throws {Error} If the payload is not a reader or valid buffer
5382 * @throws {$protobuf.util.ProtocolError} If required fields are missing
5383 */
5384 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3beta1.TranslateDocumentResponse;
5385
5386 /**
5387 * Verifies a TranslateDocumentResponse message.
5388 * @param message Plain object to verify
5389 * @returns `null` if valid, otherwise the reason why it is not
5390 */
5391 public static verify(message: { [k: string]: any }): (string|null);
5392
5393 /**
5394 * Creates a TranslateDocumentResponse message from a plain object. Also converts values to their respective internal types.
5395 * @param object Plain object
5396 * @returns TranslateDocumentResponse
5397 */
5398 public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3beta1.TranslateDocumentResponse;
5399
5400 /**
5401 * Creates a plain object from a TranslateDocumentResponse message. Also converts values to other types if specified.
5402 * @param message TranslateDocumentResponse
5403 * @param [options] Conversion options
5404 * @returns Plain object
5405 */
5406 public static toObject(message: google.cloud.translation.v3beta1.TranslateDocumentResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
5407
5408 /**
5409 * Converts this TranslateDocumentResponse to JSON.
5410 * @returns JSON object
5411 */
5412 public toJSON(): { [k: string]: any };
5413 }
5414
5415 /** Properties of a BatchTranslateTextRequest. */
5416 interface IBatchTranslateTextRequest {
5417
5418 /** BatchTranslateTextRequest parent */
5419 parent?: (string|null);
5420
5421 /** BatchTranslateTextRequest sourceLanguageCode */
5422 sourceLanguageCode?: (string|null);
5423
5424 /** BatchTranslateTextRequest targetLanguageCodes */
5425 targetLanguageCodes?: (string[]|null);
5426
5427 /** BatchTranslateTextRequest models */
5428 models?: ({ [k: string]: string }|null);
5429
5430 /** BatchTranslateTextRequest inputConfigs */
5431 inputConfigs?: (google.cloud.translation.v3beta1.IInputConfig[]|null);
5432
5433 /** BatchTranslateTextRequest outputConfig */
5434 outputConfig?: (google.cloud.translation.v3beta1.IOutputConfig|null);
5435
5436 /** BatchTranslateTextRequest glossaries */
5437 glossaries?: ({ [k: string]: google.cloud.translation.v3beta1.ITranslateTextGlossaryConfig }|null);
5438
5439 /** BatchTranslateTextRequest labels */
5440 labels?: ({ [k: string]: string }|null);
5441 }
5442
5443 /** Represents a BatchTranslateTextRequest. */
5444 class BatchTranslateTextRequest implements IBatchTranslateTextRequest {
5445
5446 /**
5447 * Constructs a new BatchTranslateTextRequest.
5448 * @param [properties] Properties to set
5449 */
5450 constructor(properties?: google.cloud.translation.v3beta1.IBatchTranslateTextRequest);
5451
5452 /** BatchTranslateTextRequest parent. */
5453 public parent: string;
5454
5455 /** BatchTranslateTextRequest sourceLanguageCode. */
5456 public sourceLanguageCode: string;
5457
5458 /** BatchTranslateTextRequest targetLanguageCodes. */
5459 public targetLanguageCodes: string[];
5460
5461 /** BatchTranslateTextRequest models. */
5462 public models: { [k: string]: string };
5463
5464 /** BatchTranslateTextRequest inputConfigs. */
5465 public inputConfigs: google.cloud.translation.v3beta1.IInputConfig[];
5466
5467 /** BatchTranslateTextRequest outputConfig. */
5468 public outputConfig?: (google.cloud.translation.v3beta1.IOutputConfig|null);
5469
5470 /** BatchTranslateTextRequest glossaries. */
5471 public glossaries: { [k: string]: google.cloud.translation.v3beta1.ITranslateTextGlossaryConfig };
5472
5473 /** BatchTranslateTextRequest labels. */
5474 public labels: { [k: string]: string };
5475
5476 /**
5477 * Creates a new BatchTranslateTextRequest instance using the specified properties.
5478 * @param [properties] Properties to set
5479 * @returns BatchTranslateTextRequest instance
5480 */
5481 public static create(properties?: google.cloud.translation.v3beta1.IBatchTranslateTextRequest): google.cloud.translation.v3beta1.BatchTranslateTextRequest;
5482
5483 /**
5484 * Encodes the specified BatchTranslateTextRequest message. Does not implicitly {@link google.cloud.translation.v3beta1.BatchTranslateTextRequest.verify|verify} messages.
5485 * @param message BatchTranslateTextRequest message or plain object to encode
5486 * @param [writer] Writer to encode to
5487 * @returns Writer
5488 */
5489 public static encode(message: google.cloud.translation.v3beta1.IBatchTranslateTextRequest, writer?: $protobuf.Writer): $protobuf.Writer;
5490
5491 /**
5492 * Encodes the specified BatchTranslateTextRequest message, length delimited. Does not implicitly {@link google.cloud.translation.v3beta1.BatchTranslateTextRequest.verify|verify} messages.
5493 * @param message BatchTranslateTextRequest message or plain object to encode
5494 * @param [writer] Writer to encode to
5495 * @returns Writer
5496 */
5497 public static encodeDelimited(message: google.cloud.translation.v3beta1.IBatchTranslateTextRequest, writer?: $protobuf.Writer): $protobuf.Writer;
5498
5499 /**
5500 * Decodes a BatchTranslateTextRequest message from the specified reader or buffer.
5501 * @param reader Reader or buffer to decode from
5502 * @param [length] Message length if known beforehand
5503 * @returns BatchTranslateTextRequest
5504 * @throws {Error} If the payload is not a reader or valid buffer
5505 * @throws {$protobuf.util.ProtocolError} If required fields are missing
5506 */
5507 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3beta1.BatchTranslateTextRequest;
5508
5509 /**
5510 * Decodes a BatchTranslateTextRequest message from the specified reader or buffer, length delimited.
5511 * @param reader Reader or buffer to decode from
5512 * @returns BatchTranslateTextRequest
5513 * @throws {Error} If the payload is not a reader or valid buffer
5514 * @throws {$protobuf.util.ProtocolError} If required fields are missing
5515 */
5516 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3beta1.BatchTranslateTextRequest;
5517
5518 /**
5519 * Verifies a BatchTranslateTextRequest message.
5520 * @param message Plain object to verify
5521 * @returns `null` if valid, otherwise the reason why it is not
5522 */
5523 public static verify(message: { [k: string]: any }): (string|null);
5524
5525 /**
5526 * Creates a BatchTranslateTextRequest message from a plain object. Also converts values to their respective internal types.
5527 * @param object Plain object
5528 * @returns BatchTranslateTextRequest
5529 */
5530 public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3beta1.BatchTranslateTextRequest;
5531
5532 /**
5533 * Creates a plain object from a BatchTranslateTextRequest message. Also converts values to other types if specified.
5534 * @param message BatchTranslateTextRequest
5535 * @param [options] Conversion options
5536 * @returns Plain object
5537 */
5538 public static toObject(message: google.cloud.translation.v3beta1.BatchTranslateTextRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
5539
5540 /**
5541 * Converts this BatchTranslateTextRequest to JSON.
5542 * @returns JSON object
5543 */
5544 public toJSON(): { [k: string]: any };
5545 }
5546
5547 /** Properties of a BatchTranslateMetadata. */
5548 interface IBatchTranslateMetadata {
5549
5550 /** BatchTranslateMetadata state */
5551 state?: (google.cloud.translation.v3beta1.BatchTranslateMetadata.State|keyof typeof google.cloud.translation.v3beta1.BatchTranslateMetadata.State|null);
5552
5553 /** BatchTranslateMetadata translatedCharacters */
5554 translatedCharacters?: (number|Long|string|null);
5555
5556 /** BatchTranslateMetadata failedCharacters */
5557 failedCharacters?: (number|Long|string|null);
5558
5559 /** BatchTranslateMetadata totalCharacters */
5560 totalCharacters?: (number|Long|string|null);
5561
5562 /** BatchTranslateMetadata submitTime */
5563 submitTime?: (google.protobuf.ITimestamp|null);
5564 }
5565
5566 /** Represents a BatchTranslateMetadata. */
5567 class BatchTranslateMetadata implements IBatchTranslateMetadata {
5568
5569 /**
5570 * Constructs a new BatchTranslateMetadata.
5571 * @param [properties] Properties to set
5572 */
5573 constructor(properties?: google.cloud.translation.v3beta1.IBatchTranslateMetadata);
5574
5575 /** BatchTranslateMetadata state. */
5576 public state: (google.cloud.translation.v3beta1.BatchTranslateMetadata.State|keyof typeof google.cloud.translation.v3beta1.BatchTranslateMetadata.State);
5577
5578 /** BatchTranslateMetadata translatedCharacters. */
5579 public translatedCharacters: (number|Long|string);
5580
5581 /** BatchTranslateMetadata failedCharacters. */
5582 public failedCharacters: (number|Long|string);
5583
5584 /** BatchTranslateMetadata totalCharacters. */
5585 public totalCharacters: (number|Long|string);
5586
5587 /** BatchTranslateMetadata submitTime. */
5588 public submitTime?: (google.protobuf.ITimestamp|null);
5589
5590 /**
5591 * Creates a new BatchTranslateMetadata instance using the specified properties.
5592 * @param [properties] Properties to set
5593 * @returns BatchTranslateMetadata instance
5594 */
5595 public static create(properties?: google.cloud.translation.v3beta1.IBatchTranslateMetadata): google.cloud.translation.v3beta1.BatchTranslateMetadata;
5596
5597 /**
5598 * Encodes the specified BatchTranslateMetadata message. Does not implicitly {@link google.cloud.translation.v3beta1.BatchTranslateMetadata.verify|verify} messages.
5599 * @param message BatchTranslateMetadata message or plain object to encode
5600 * @param [writer] Writer to encode to
5601 * @returns Writer
5602 */
5603 public static encode(message: google.cloud.translation.v3beta1.IBatchTranslateMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
5604
5605 /**
5606 * Encodes the specified BatchTranslateMetadata message, length delimited. Does not implicitly {@link google.cloud.translation.v3beta1.BatchTranslateMetadata.verify|verify} messages.
5607 * @param message BatchTranslateMetadata message or plain object to encode
5608 * @param [writer] Writer to encode to
5609 * @returns Writer
5610 */
5611 public static encodeDelimited(message: google.cloud.translation.v3beta1.IBatchTranslateMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
5612
5613 /**
5614 * Decodes a BatchTranslateMetadata message from the specified reader or buffer.
5615 * @param reader Reader or buffer to decode from
5616 * @param [length] Message length if known beforehand
5617 * @returns BatchTranslateMetadata
5618 * @throws {Error} If the payload is not a reader or valid buffer
5619 * @throws {$protobuf.util.ProtocolError} If required fields are missing
5620 */
5621 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3beta1.BatchTranslateMetadata;
5622
5623 /**
5624 * Decodes a BatchTranslateMetadata message from the specified reader or buffer, length delimited.
5625 * @param reader Reader or buffer to decode from
5626 * @returns BatchTranslateMetadata
5627 * @throws {Error} If the payload is not a reader or valid buffer
5628 * @throws {$protobuf.util.ProtocolError} If required fields are missing
5629 */
5630 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3beta1.BatchTranslateMetadata;
5631
5632 /**
5633 * Verifies a BatchTranslateMetadata message.
5634 * @param message Plain object to verify
5635 * @returns `null` if valid, otherwise the reason why it is not
5636 */
5637 public static verify(message: { [k: string]: any }): (string|null);
5638
5639 /**
5640 * Creates a BatchTranslateMetadata message from a plain object. Also converts values to their respective internal types.
5641 * @param object Plain object
5642 * @returns BatchTranslateMetadata
5643 */
5644 public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3beta1.BatchTranslateMetadata;
5645
5646 /**
5647 * Creates a plain object from a BatchTranslateMetadata message. Also converts values to other types if specified.
5648 * @param message BatchTranslateMetadata
5649 * @param [options] Conversion options
5650 * @returns Plain object
5651 */
5652 public static toObject(message: google.cloud.translation.v3beta1.BatchTranslateMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
5653
5654 /**
5655 * Converts this BatchTranslateMetadata to JSON.
5656 * @returns JSON object
5657 */
5658 public toJSON(): { [k: string]: any };
5659 }
5660
5661 namespace BatchTranslateMetadata {
5662
5663 /** State enum. */
5664 enum State {
5665 STATE_UNSPECIFIED = 0,
5666 RUNNING = 1,
5667 SUCCEEDED = 2,
5668 FAILED = 3,
5669 CANCELLING = 4,
5670 CANCELLED = 5
5671 }
5672 }
5673
5674 /** Properties of a BatchTranslateResponse. */
5675 interface IBatchTranslateResponse {
5676
5677 /** BatchTranslateResponse totalCharacters */
5678 totalCharacters?: (number|Long|string|null);
5679
5680 /** BatchTranslateResponse translatedCharacters */
5681 translatedCharacters?: (number|Long|string|null);
5682
5683 /** BatchTranslateResponse failedCharacters */
5684 failedCharacters?: (number|Long|string|null);
5685
5686 /** BatchTranslateResponse submitTime */
5687 submitTime?: (google.protobuf.ITimestamp|null);
5688
5689 /** BatchTranslateResponse endTime */
5690 endTime?: (google.protobuf.ITimestamp|null);
5691 }
5692
5693 /** Represents a BatchTranslateResponse. */
5694 class BatchTranslateResponse implements IBatchTranslateResponse {
5695
5696 /**
5697 * Constructs a new BatchTranslateResponse.
5698 * @param [properties] Properties to set
5699 */
5700 constructor(properties?: google.cloud.translation.v3beta1.IBatchTranslateResponse);
5701
5702 /** BatchTranslateResponse totalCharacters. */
5703 public totalCharacters: (number|Long|string);
5704
5705 /** BatchTranslateResponse translatedCharacters. */
5706 public translatedCharacters: (number|Long|string);
5707
5708 /** BatchTranslateResponse failedCharacters. */
5709 public failedCharacters: (number|Long|string);
5710
5711 /** BatchTranslateResponse submitTime. */
5712 public submitTime?: (google.protobuf.ITimestamp|null);
5713
5714 /** BatchTranslateResponse endTime. */
5715 public endTime?: (google.protobuf.ITimestamp|null);
5716
5717 /**
5718 * Creates a new BatchTranslateResponse instance using the specified properties.
5719 * @param [properties] Properties to set
5720 * @returns BatchTranslateResponse instance
5721 */
5722 public static create(properties?: google.cloud.translation.v3beta1.IBatchTranslateResponse): google.cloud.translation.v3beta1.BatchTranslateResponse;
5723
5724 /**
5725 * Encodes the specified BatchTranslateResponse message. Does not implicitly {@link google.cloud.translation.v3beta1.BatchTranslateResponse.verify|verify} messages.
5726 * @param message BatchTranslateResponse message or plain object to encode
5727 * @param [writer] Writer to encode to
5728 * @returns Writer
5729 */
5730 public static encode(message: google.cloud.translation.v3beta1.IBatchTranslateResponse, writer?: $protobuf.Writer): $protobuf.Writer;
5731
5732 /**
5733 * Encodes the specified BatchTranslateResponse message, length delimited. Does not implicitly {@link google.cloud.translation.v3beta1.BatchTranslateResponse.verify|verify} messages.
5734 * @param message BatchTranslateResponse message or plain object to encode
5735 * @param [writer] Writer to encode to
5736 * @returns Writer
5737 */
5738 public static encodeDelimited(message: google.cloud.translation.v3beta1.IBatchTranslateResponse, writer?: $protobuf.Writer): $protobuf.Writer;
5739
5740 /**
5741 * Decodes a BatchTranslateResponse message from the specified reader or buffer.
5742 * @param reader Reader or buffer to decode from
5743 * @param [length] Message length if known beforehand
5744 * @returns BatchTranslateResponse
5745 * @throws {Error} If the payload is not a reader or valid buffer
5746 * @throws {$protobuf.util.ProtocolError} If required fields are missing
5747 */
5748 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3beta1.BatchTranslateResponse;
5749
5750 /**
5751 * Decodes a BatchTranslateResponse message from the specified reader or buffer, length delimited.
5752 * @param reader Reader or buffer to decode from
5753 * @returns BatchTranslateResponse
5754 * @throws {Error} If the payload is not a reader or valid buffer
5755 * @throws {$protobuf.util.ProtocolError} If required fields are missing
5756 */
5757 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3beta1.BatchTranslateResponse;
5758
5759 /**
5760 * Verifies a BatchTranslateResponse message.
5761 * @param message Plain object to verify
5762 * @returns `null` if valid, otherwise the reason why it is not
5763 */
5764 public static verify(message: { [k: string]: any }): (string|null);
5765
5766 /**
5767 * Creates a BatchTranslateResponse message from a plain object. Also converts values to their respective internal types.
5768 * @param object Plain object
5769 * @returns BatchTranslateResponse
5770 */
5771 public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3beta1.BatchTranslateResponse;
5772
5773 /**
5774 * Creates a plain object from a BatchTranslateResponse message. Also converts values to other types if specified.
5775 * @param message BatchTranslateResponse
5776 * @param [options] Conversion options
5777 * @returns Plain object
5778 */
5779 public static toObject(message: google.cloud.translation.v3beta1.BatchTranslateResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
5780
5781 /**
5782 * Converts this BatchTranslateResponse to JSON.
5783 * @returns JSON object
5784 */
5785 public toJSON(): { [k: string]: any };
5786 }
5787
5788 /** Properties of a GlossaryInputConfig. */
5789 interface IGlossaryInputConfig {
5790
5791 /** GlossaryInputConfig gcsSource */
5792 gcsSource?: (google.cloud.translation.v3beta1.IGcsSource|null);
5793 }
5794
5795 /** Represents a GlossaryInputConfig. */
5796 class GlossaryInputConfig implements IGlossaryInputConfig {
5797
5798 /**
5799 * Constructs a new GlossaryInputConfig.
5800 * @param [properties] Properties to set
5801 */
5802 constructor(properties?: google.cloud.translation.v3beta1.IGlossaryInputConfig);
5803
5804 /** GlossaryInputConfig gcsSource. */
5805 public gcsSource?: (google.cloud.translation.v3beta1.IGcsSource|null);
5806
5807 /** GlossaryInputConfig source. */
5808 public source?: "gcsSource";
5809
5810 /**
5811 * Creates a new GlossaryInputConfig instance using the specified properties.
5812 * @param [properties] Properties to set
5813 * @returns GlossaryInputConfig instance
5814 */
5815 public static create(properties?: google.cloud.translation.v3beta1.IGlossaryInputConfig): google.cloud.translation.v3beta1.GlossaryInputConfig;
5816
5817 /**
5818 * Encodes the specified GlossaryInputConfig message. Does not implicitly {@link google.cloud.translation.v3beta1.GlossaryInputConfig.verify|verify} messages.
5819 * @param message GlossaryInputConfig message or plain object to encode
5820 * @param [writer] Writer to encode to
5821 * @returns Writer
5822 */
5823 public static encode(message: google.cloud.translation.v3beta1.IGlossaryInputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
5824
5825 /**
5826 * Encodes the specified GlossaryInputConfig message, length delimited. Does not implicitly {@link google.cloud.translation.v3beta1.GlossaryInputConfig.verify|verify} messages.
5827 * @param message GlossaryInputConfig message or plain object to encode
5828 * @param [writer] Writer to encode to
5829 * @returns Writer
5830 */
5831 public static encodeDelimited(message: google.cloud.translation.v3beta1.IGlossaryInputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
5832
5833 /**
5834 * Decodes a GlossaryInputConfig message from the specified reader or buffer.
5835 * @param reader Reader or buffer to decode from
5836 * @param [length] Message length if known beforehand
5837 * @returns GlossaryInputConfig
5838 * @throws {Error} If the payload is not a reader or valid buffer
5839 * @throws {$protobuf.util.ProtocolError} If required fields are missing
5840 */
5841 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3beta1.GlossaryInputConfig;
5842
5843 /**
5844 * Decodes a GlossaryInputConfig message from the specified reader or buffer, length delimited.
5845 * @param reader Reader or buffer to decode from
5846 * @returns GlossaryInputConfig
5847 * @throws {Error} If the payload is not a reader or valid buffer
5848 * @throws {$protobuf.util.ProtocolError} If required fields are missing
5849 */
5850 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3beta1.GlossaryInputConfig;
5851
5852 /**
5853 * Verifies a GlossaryInputConfig message.
5854 * @param message Plain object to verify
5855 * @returns `null` if valid, otherwise the reason why it is not
5856 */
5857 public static verify(message: { [k: string]: any }): (string|null);
5858
5859 /**
5860 * Creates a GlossaryInputConfig message from a plain object. Also converts values to their respective internal types.
5861 * @param object Plain object
5862 * @returns GlossaryInputConfig
5863 */
5864 public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3beta1.GlossaryInputConfig;
5865
5866 /**
5867 * Creates a plain object from a GlossaryInputConfig message. Also converts values to other types if specified.
5868 * @param message GlossaryInputConfig
5869 * @param [options] Conversion options
5870 * @returns Plain object
5871 */
5872 public static toObject(message: google.cloud.translation.v3beta1.GlossaryInputConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
5873
5874 /**
5875 * Converts this GlossaryInputConfig to JSON.
5876 * @returns JSON object
5877 */
5878 public toJSON(): { [k: string]: any };
5879 }
5880
5881 /** Properties of a Glossary. */
5882 interface IGlossary {
5883
5884 /** Glossary name */
5885 name?: (string|null);
5886
5887 /** Glossary languagePair */
5888 languagePair?: (google.cloud.translation.v3beta1.Glossary.ILanguageCodePair|null);
5889
5890 /** Glossary languageCodesSet */
5891 languageCodesSet?: (google.cloud.translation.v3beta1.Glossary.ILanguageCodesSet|null);
5892
5893 /** Glossary inputConfig */
5894 inputConfig?: (google.cloud.translation.v3beta1.IGlossaryInputConfig|null);
5895
5896 /** Glossary entryCount */
5897 entryCount?: (number|null);
5898
5899 /** Glossary submitTime */
5900 submitTime?: (google.protobuf.ITimestamp|null);
5901
5902 /** Glossary endTime */
5903 endTime?: (google.protobuf.ITimestamp|null);
5904 }
5905
5906 /** Represents a Glossary. */
5907 class Glossary implements IGlossary {
5908
5909 /**
5910 * Constructs a new Glossary.
5911 * @param [properties] Properties to set
5912 */
5913 constructor(properties?: google.cloud.translation.v3beta1.IGlossary);
5914
5915 /** Glossary name. */
5916 public name: string;
5917
5918 /** Glossary languagePair. */
5919 public languagePair?: (google.cloud.translation.v3beta1.Glossary.ILanguageCodePair|null);
5920
5921 /** Glossary languageCodesSet. */
5922 public languageCodesSet?: (google.cloud.translation.v3beta1.Glossary.ILanguageCodesSet|null);
5923
5924 /** Glossary inputConfig. */
5925 public inputConfig?: (google.cloud.translation.v3beta1.IGlossaryInputConfig|null);
5926
5927 /** Glossary entryCount. */
5928 public entryCount: number;
5929
5930 /** Glossary submitTime. */
5931 public submitTime?: (google.protobuf.ITimestamp|null);
5932
5933 /** Glossary endTime. */
5934 public endTime?: (google.protobuf.ITimestamp|null);
5935
5936 /** Glossary languages. */
5937 public languages?: ("languagePair"|"languageCodesSet");
5938
5939 /**
5940 * Creates a new Glossary instance using the specified properties.
5941 * @param [properties] Properties to set
5942 * @returns Glossary instance
5943 */
5944 public static create(properties?: google.cloud.translation.v3beta1.IGlossary): google.cloud.translation.v3beta1.Glossary;
5945
5946 /**
5947 * Encodes the specified Glossary message. Does not implicitly {@link google.cloud.translation.v3beta1.Glossary.verify|verify} messages.
5948 * @param message Glossary message or plain object to encode
5949 * @param [writer] Writer to encode to
5950 * @returns Writer
5951 */
5952 public static encode(message: google.cloud.translation.v3beta1.IGlossary, writer?: $protobuf.Writer): $protobuf.Writer;
5953
5954 /**
5955 * Encodes the specified Glossary message, length delimited. Does not implicitly {@link google.cloud.translation.v3beta1.Glossary.verify|verify} messages.
5956 * @param message Glossary message or plain object to encode
5957 * @param [writer] Writer to encode to
5958 * @returns Writer
5959 */
5960 public static encodeDelimited(message: google.cloud.translation.v3beta1.IGlossary, writer?: $protobuf.Writer): $protobuf.Writer;
5961
5962 /**
5963 * Decodes a Glossary message from the specified reader or buffer.
5964 * @param reader Reader or buffer to decode from
5965 * @param [length] Message length if known beforehand
5966 * @returns Glossary
5967 * @throws {Error} If the payload is not a reader or valid buffer
5968 * @throws {$protobuf.util.ProtocolError} If required fields are missing
5969 */
5970 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3beta1.Glossary;
5971
5972 /**
5973 * Decodes a Glossary message from the specified reader or buffer, length delimited.
5974 * @param reader Reader or buffer to decode from
5975 * @returns Glossary
5976 * @throws {Error} If the payload is not a reader or valid buffer
5977 * @throws {$protobuf.util.ProtocolError} If required fields are missing
5978 */
5979 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3beta1.Glossary;
5980
5981 /**
5982 * Verifies a Glossary message.
5983 * @param message Plain object to verify
5984 * @returns `null` if valid, otherwise the reason why it is not
5985 */
5986 public static verify(message: { [k: string]: any }): (string|null);
5987
5988 /**
5989 * Creates a Glossary message from a plain object. Also converts values to their respective internal types.
5990 * @param object Plain object
5991 * @returns Glossary
5992 */
5993 public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3beta1.Glossary;
5994
5995 /**
5996 * Creates a plain object from a Glossary message. Also converts values to other types if specified.
5997 * @param message Glossary
5998 * @param [options] Conversion options
5999 * @returns Plain object
6000 */
6001 public static toObject(message: google.cloud.translation.v3beta1.Glossary, options?: $protobuf.IConversionOptions): { [k: string]: any };
6002
6003 /**
6004 * Converts this Glossary to JSON.
6005 * @returns JSON object
6006 */
6007 public toJSON(): { [k: string]: any };
6008 }
6009
6010 namespace Glossary {
6011
6012 /** Properties of a LanguageCodePair. */
6013 interface ILanguageCodePair {
6014
6015 /** LanguageCodePair sourceLanguageCode */
6016 sourceLanguageCode?: (string|null);
6017
6018 /** LanguageCodePair targetLanguageCode */
6019 targetLanguageCode?: (string|null);
6020 }
6021
6022 /** Represents a LanguageCodePair. */
6023 class LanguageCodePair implements ILanguageCodePair {
6024
6025 /**
6026 * Constructs a new LanguageCodePair.
6027 * @param [properties] Properties to set
6028 */
6029 constructor(properties?: google.cloud.translation.v3beta1.Glossary.ILanguageCodePair);
6030
6031 /** LanguageCodePair sourceLanguageCode. */
6032 public sourceLanguageCode: string;
6033
6034 /** LanguageCodePair targetLanguageCode. */
6035 public targetLanguageCode: string;
6036
6037 /**
6038 * Creates a new LanguageCodePair instance using the specified properties.
6039 * @param [properties] Properties to set
6040 * @returns LanguageCodePair instance
6041 */
6042 public static create(properties?: google.cloud.translation.v3beta1.Glossary.ILanguageCodePair): google.cloud.translation.v3beta1.Glossary.LanguageCodePair;
6043
6044 /**
6045 * Encodes the specified LanguageCodePair message. Does not implicitly {@link google.cloud.translation.v3beta1.Glossary.LanguageCodePair.verify|verify} messages.
6046 * @param message LanguageCodePair message or plain object to encode
6047 * @param [writer] Writer to encode to
6048 * @returns Writer
6049 */
6050 public static encode(message: google.cloud.translation.v3beta1.Glossary.ILanguageCodePair, writer?: $protobuf.Writer): $protobuf.Writer;
6051
6052 /**
6053 * Encodes the specified LanguageCodePair message, length delimited. Does not implicitly {@link google.cloud.translation.v3beta1.Glossary.LanguageCodePair.verify|verify} messages.
6054 * @param message LanguageCodePair message or plain object to encode
6055 * @param [writer] Writer to encode to
6056 * @returns Writer
6057 */
6058 public static encodeDelimited(message: google.cloud.translation.v3beta1.Glossary.ILanguageCodePair, writer?: $protobuf.Writer): $protobuf.Writer;
6059
6060 /**
6061 * Decodes a LanguageCodePair message from the specified reader or buffer.
6062 * @param reader Reader or buffer to decode from
6063 * @param [length] Message length if known beforehand
6064 * @returns LanguageCodePair
6065 * @throws {Error} If the payload is not a reader or valid buffer
6066 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6067 */
6068 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3beta1.Glossary.LanguageCodePair;
6069
6070 /**
6071 * Decodes a LanguageCodePair message from the specified reader or buffer, length delimited.
6072 * @param reader Reader or buffer to decode from
6073 * @returns LanguageCodePair
6074 * @throws {Error} If the payload is not a reader or valid buffer
6075 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6076 */
6077 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3beta1.Glossary.LanguageCodePair;
6078
6079 /**
6080 * Verifies a LanguageCodePair message.
6081 * @param message Plain object to verify
6082 * @returns `null` if valid, otherwise the reason why it is not
6083 */
6084 public static verify(message: { [k: string]: any }): (string|null);
6085
6086 /**
6087 * Creates a LanguageCodePair message from a plain object. Also converts values to their respective internal types.
6088 * @param object Plain object
6089 * @returns LanguageCodePair
6090 */
6091 public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3beta1.Glossary.LanguageCodePair;
6092
6093 /**
6094 * Creates a plain object from a LanguageCodePair message. Also converts values to other types if specified.
6095 * @param message LanguageCodePair
6096 * @param [options] Conversion options
6097 * @returns Plain object
6098 */
6099 public static toObject(message: google.cloud.translation.v3beta1.Glossary.LanguageCodePair, options?: $protobuf.IConversionOptions): { [k: string]: any };
6100
6101 /**
6102 * Converts this LanguageCodePair to JSON.
6103 * @returns JSON object
6104 */
6105 public toJSON(): { [k: string]: any };
6106 }
6107
6108 /** Properties of a LanguageCodesSet. */
6109 interface ILanguageCodesSet {
6110
6111 /** LanguageCodesSet languageCodes */
6112 languageCodes?: (string[]|null);
6113 }
6114
6115 /** Represents a LanguageCodesSet. */
6116 class LanguageCodesSet implements ILanguageCodesSet {
6117
6118 /**
6119 * Constructs a new LanguageCodesSet.
6120 * @param [properties] Properties to set
6121 */
6122 constructor(properties?: google.cloud.translation.v3beta1.Glossary.ILanguageCodesSet);
6123
6124 /** LanguageCodesSet languageCodes. */
6125 public languageCodes: string[];
6126
6127 /**
6128 * Creates a new LanguageCodesSet instance using the specified properties.
6129 * @param [properties] Properties to set
6130 * @returns LanguageCodesSet instance
6131 */
6132 public static create(properties?: google.cloud.translation.v3beta1.Glossary.ILanguageCodesSet): google.cloud.translation.v3beta1.Glossary.LanguageCodesSet;
6133
6134 /**
6135 * Encodes the specified LanguageCodesSet message. Does not implicitly {@link google.cloud.translation.v3beta1.Glossary.LanguageCodesSet.verify|verify} messages.
6136 * @param message LanguageCodesSet message or plain object to encode
6137 * @param [writer] Writer to encode to
6138 * @returns Writer
6139 */
6140 public static encode(message: google.cloud.translation.v3beta1.Glossary.ILanguageCodesSet, writer?: $protobuf.Writer): $protobuf.Writer;
6141
6142 /**
6143 * Encodes the specified LanguageCodesSet message, length delimited. Does not implicitly {@link google.cloud.translation.v3beta1.Glossary.LanguageCodesSet.verify|verify} messages.
6144 * @param message LanguageCodesSet message or plain object to encode
6145 * @param [writer] Writer to encode to
6146 * @returns Writer
6147 */
6148 public static encodeDelimited(message: google.cloud.translation.v3beta1.Glossary.ILanguageCodesSet, writer?: $protobuf.Writer): $protobuf.Writer;
6149
6150 /**
6151 * Decodes a LanguageCodesSet message from the specified reader or buffer.
6152 * @param reader Reader or buffer to decode from
6153 * @param [length] Message length if known beforehand
6154 * @returns LanguageCodesSet
6155 * @throws {Error} If the payload is not a reader or valid buffer
6156 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6157 */
6158 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3beta1.Glossary.LanguageCodesSet;
6159
6160 /**
6161 * Decodes a LanguageCodesSet message from the specified reader or buffer, length delimited.
6162 * @param reader Reader or buffer to decode from
6163 * @returns LanguageCodesSet
6164 * @throws {Error} If the payload is not a reader or valid buffer
6165 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6166 */
6167 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3beta1.Glossary.LanguageCodesSet;
6168
6169 /**
6170 * Verifies a LanguageCodesSet message.
6171 * @param message Plain object to verify
6172 * @returns `null` if valid, otherwise the reason why it is not
6173 */
6174 public static verify(message: { [k: string]: any }): (string|null);
6175
6176 /**
6177 * Creates a LanguageCodesSet message from a plain object. Also converts values to their respective internal types.
6178 * @param object Plain object
6179 * @returns LanguageCodesSet
6180 */
6181 public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3beta1.Glossary.LanguageCodesSet;
6182
6183 /**
6184 * Creates a plain object from a LanguageCodesSet message. Also converts values to other types if specified.
6185 * @param message LanguageCodesSet
6186 * @param [options] Conversion options
6187 * @returns Plain object
6188 */
6189 public static toObject(message: google.cloud.translation.v3beta1.Glossary.LanguageCodesSet, options?: $protobuf.IConversionOptions): { [k: string]: any };
6190
6191 /**
6192 * Converts this LanguageCodesSet to JSON.
6193 * @returns JSON object
6194 */
6195 public toJSON(): { [k: string]: any };
6196 }
6197 }
6198
6199 /** Properties of a CreateGlossaryRequest. */
6200 interface ICreateGlossaryRequest {
6201
6202 /** CreateGlossaryRequest parent */
6203 parent?: (string|null);
6204
6205 /** CreateGlossaryRequest glossary */
6206 glossary?: (google.cloud.translation.v3beta1.IGlossary|null);
6207 }
6208
6209 /** Represents a CreateGlossaryRequest. */
6210 class CreateGlossaryRequest implements ICreateGlossaryRequest {
6211
6212 /**
6213 * Constructs a new CreateGlossaryRequest.
6214 * @param [properties] Properties to set
6215 */
6216 constructor(properties?: google.cloud.translation.v3beta1.ICreateGlossaryRequest);
6217
6218 /** CreateGlossaryRequest parent. */
6219 public parent: string;
6220
6221 /** CreateGlossaryRequest glossary. */
6222 public glossary?: (google.cloud.translation.v3beta1.IGlossary|null);
6223
6224 /**
6225 * Creates a new CreateGlossaryRequest instance using the specified properties.
6226 * @param [properties] Properties to set
6227 * @returns CreateGlossaryRequest instance
6228 */
6229 public static create(properties?: google.cloud.translation.v3beta1.ICreateGlossaryRequest): google.cloud.translation.v3beta1.CreateGlossaryRequest;
6230
6231 /**
6232 * Encodes the specified CreateGlossaryRequest message. Does not implicitly {@link google.cloud.translation.v3beta1.CreateGlossaryRequest.verify|verify} messages.
6233 * @param message CreateGlossaryRequest message or plain object to encode
6234 * @param [writer] Writer to encode to
6235 * @returns Writer
6236 */
6237 public static encode(message: google.cloud.translation.v3beta1.ICreateGlossaryRequest, writer?: $protobuf.Writer): $protobuf.Writer;
6238
6239 /**
6240 * Encodes the specified CreateGlossaryRequest message, length delimited. Does not implicitly {@link google.cloud.translation.v3beta1.CreateGlossaryRequest.verify|verify} messages.
6241 * @param message CreateGlossaryRequest message or plain object to encode
6242 * @param [writer] Writer to encode to
6243 * @returns Writer
6244 */
6245 public static encodeDelimited(message: google.cloud.translation.v3beta1.ICreateGlossaryRequest, writer?: $protobuf.Writer): $protobuf.Writer;
6246
6247 /**
6248 * Decodes a CreateGlossaryRequest message from the specified reader or buffer.
6249 * @param reader Reader or buffer to decode from
6250 * @param [length] Message length if known beforehand
6251 * @returns CreateGlossaryRequest
6252 * @throws {Error} If the payload is not a reader or valid buffer
6253 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6254 */
6255 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3beta1.CreateGlossaryRequest;
6256
6257 /**
6258 * Decodes a CreateGlossaryRequest message from the specified reader or buffer, length delimited.
6259 * @param reader Reader or buffer to decode from
6260 * @returns CreateGlossaryRequest
6261 * @throws {Error} If the payload is not a reader or valid buffer
6262 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6263 */
6264 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3beta1.CreateGlossaryRequest;
6265
6266 /**
6267 * Verifies a CreateGlossaryRequest message.
6268 * @param message Plain object to verify
6269 * @returns `null` if valid, otherwise the reason why it is not
6270 */
6271 public static verify(message: { [k: string]: any }): (string|null);
6272
6273 /**
6274 * Creates a CreateGlossaryRequest message from a plain object. Also converts values to their respective internal types.
6275 * @param object Plain object
6276 * @returns CreateGlossaryRequest
6277 */
6278 public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3beta1.CreateGlossaryRequest;
6279
6280 /**
6281 * Creates a plain object from a CreateGlossaryRequest message. Also converts values to other types if specified.
6282 * @param message CreateGlossaryRequest
6283 * @param [options] Conversion options
6284 * @returns Plain object
6285 */
6286 public static toObject(message: google.cloud.translation.v3beta1.CreateGlossaryRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
6287
6288 /**
6289 * Converts this CreateGlossaryRequest to JSON.
6290 * @returns JSON object
6291 */
6292 public toJSON(): { [k: string]: any };
6293 }
6294
6295 /** Properties of a GetGlossaryRequest. */
6296 interface IGetGlossaryRequest {
6297
6298 /** GetGlossaryRequest name */
6299 name?: (string|null);
6300 }
6301
6302 /** Represents a GetGlossaryRequest. */
6303 class GetGlossaryRequest implements IGetGlossaryRequest {
6304
6305 /**
6306 * Constructs a new GetGlossaryRequest.
6307 * @param [properties] Properties to set
6308 */
6309 constructor(properties?: google.cloud.translation.v3beta1.IGetGlossaryRequest);
6310
6311 /** GetGlossaryRequest name. */
6312 public name: string;
6313
6314 /**
6315 * Creates a new GetGlossaryRequest instance using the specified properties.
6316 * @param [properties] Properties to set
6317 * @returns GetGlossaryRequest instance
6318 */
6319 public static create(properties?: google.cloud.translation.v3beta1.IGetGlossaryRequest): google.cloud.translation.v3beta1.GetGlossaryRequest;
6320
6321 /**
6322 * Encodes the specified GetGlossaryRequest message. Does not implicitly {@link google.cloud.translation.v3beta1.GetGlossaryRequest.verify|verify} messages.
6323 * @param message GetGlossaryRequest message or plain object to encode
6324 * @param [writer] Writer to encode to
6325 * @returns Writer
6326 */
6327 public static encode(message: google.cloud.translation.v3beta1.IGetGlossaryRequest, writer?: $protobuf.Writer): $protobuf.Writer;
6328
6329 /**
6330 * Encodes the specified GetGlossaryRequest message, length delimited. Does not implicitly {@link google.cloud.translation.v3beta1.GetGlossaryRequest.verify|verify} messages.
6331 * @param message GetGlossaryRequest message or plain object to encode
6332 * @param [writer] Writer to encode to
6333 * @returns Writer
6334 */
6335 public static encodeDelimited(message: google.cloud.translation.v3beta1.IGetGlossaryRequest, writer?: $protobuf.Writer): $protobuf.Writer;
6336
6337 /**
6338 * Decodes a GetGlossaryRequest message from the specified reader or buffer.
6339 * @param reader Reader or buffer to decode from
6340 * @param [length] Message length if known beforehand
6341 * @returns GetGlossaryRequest
6342 * @throws {Error} If the payload is not a reader or valid buffer
6343 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6344 */
6345 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3beta1.GetGlossaryRequest;
6346
6347 /**
6348 * Decodes a GetGlossaryRequest message from the specified reader or buffer, length delimited.
6349 * @param reader Reader or buffer to decode from
6350 * @returns GetGlossaryRequest
6351 * @throws {Error} If the payload is not a reader or valid buffer
6352 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6353 */
6354 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3beta1.GetGlossaryRequest;
6355
6356 /**
6357 * Verifies a GetGlossaryRequest message.
6358 * @param message Plain object to verify
6359 * @returns `null` if valid, otherwise the reason why it is not
6360 */
6361 public static verify(message: { [k: string]: any }): (string|null);
6362
6363 /**
6364 * Creates a GetGlossaryRequest message from a plain object. Also converts values to their respective internal types.
6365 * @param object Plain object
6366 * @returns GetGlossaryRequest
6367 */
6368 public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3beta1.GetGlossaryRequest;
6369
6370 /**
6371 * Creates a plain object from a GetGlossaryRequest message. Also converts values to other types if specified.
6372 * @param message GetGlossaryRequest
6373 * @param [options] Conversion options
6374 * @returns Plain object
6375 */
6376 public static toObject(message: google.cloud.translation.v3beta1.GetGlossaryRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
6377
6378 /**
6379 * Converts this GetGlossaryRequest to JSON.
6380 * @returns JSON object
6381 */
6382 public toJSON(): { [k: string]: any };
6383 }
6384
6385 /** Properties of a DeleteGlossaryRequest. */
6386 interface IDeleteGlossaryRequest {
6387
6388 /** DeleteGlossaryRequest name */
6389 name?: (string|null);
6390 }
6391
6392 /** Represents a DeleteGlossaryRequest. */
6393 class DeleteGlossaryRequest implements IDeleteGlossaryRequest {
6394
6395 /**
6396 * Constructs a new DeleteGlossaryRequest.
6397 * @param [properties] Properties to set
6398 */
6399 constructor(properties?: google.cloud.translation.v3beta1.IDeleteGlossaryRequest);
6400
6401 /** DeleteGlossaryRequest name. */
6402 public name: string;
6403
6404 /**
6405 * Creates a new DeleteGlossaryRequest instance using the specified properties.
6406 * @param [properties] Properties to set
6407 * @returns DeleteGlossaryRequest instance
6408 */
6409 public static create(properties?: google.cloud.translation.v3beta1.IDeleteGlossaryRequest): google.cloud.translation.v3beta1.DeleteGlossaryRequest;
6410
6411 /**
6412 * Encodes the specified DeleteGlossaryRequest message. Does not implicitly {@link google.cloud.translation.v3beta1.DeleteGlossaryRequest.verify|verify} messages.
6413 * @param message DeleteGlossaryRequest message or plain object to encode
6414 * @param [writer] Writer to encode to
6415 * @returns Writer
6416 */
6417 public static encode(message: google.cloud.translation.v3beta1.IDeleteGlossaryRequest, writer?: $protobuf.Writer): $protobuf.Writer;
6418
6419 /**
6420 * Encodes the specified DeleteGlossaryRequest message, length delimited. Does not implicitly {@link google.cloud.translation.v3beta1.DeleteGlossaryRequest.verify|verify} messages.
6421 * @param message DeleteGlossaryRequest message or plain object to encode
6422 * @param [writer] Writer to encode to
6423 * @returns Writer
6424 */
6425 public static encodeDelimited(message: google.cloud.translation.v3beta1.IDeleteGlossaryRequest, writer?: $protobuf.Writer): $protobuf.Writer;
6426
6427 /**
6428 * Decodes a DeleteGlossaryRequest message from the specified reader or buffer.
6429 * @param reader Reader or buffer to decode from
6430 * @param [length] Message length if known beforehand
6431 * @returns DeleteGlossaryRequest
6432 * @throws {Error} If the payload is not a reader or valid buffer
6433 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6434 */
6435 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3beta1.DeleteGlossaryRequest;
6436
6437 /**
6438 * Decodes a DeleteGlossaryRequest message from the specified reader or buffer, length delimited.
6439 * @param reader Reader or buffer to decode from
6440 * @returns DeleteGlossaryRequest
6441 * @throws {Error} If the payload is not a reader or valid buffer
6442 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6443 */
6444 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3beta1.DeleteGlossaryRequest;
6445
6446 /**
6447 * Verifies a DeleteGlossaryRequest message.
6448 * @param message Plain object to verify
6449 * @returns `null` if valid, otherwise the reason why it is not
6450 */
6451 public static verify(message: { [k: string]: any }): (string|null);
6452
6453 /**
6454 * Creates a DeleteGlossaryRequest message from a plain object. Also converts values to their respective internal types.
6455 * @param object Plain object
6456 * @returns DeleteGlossaryRequest
6457 */
6458 public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3beta1.DeleteGlossaryRequest;
6459
6460 /**
6461 * Creates a plain object from a DeleteGlossaryRequest message. Also converts values to other types if specified.
6462 * @param message DeleteGlossaryRequest
6463 * @param [options] Conversion options
6464 * @returns Plain object
6465 */
6466 public static toObject(message: google.cloud.translation.v3beta1.DeleteGlossaryRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
6467
6468 /**
6469 * Converts this DeleteGlossaryRequest to JSON.
6470 * @returns JSON object
6471 */
6472 public toJSON(): { [k: string]: any };
6473 }
6474
6475 /** Properties of a ListGlossariesRequest. */
6476 interface IListGlossariesRequest {
6477
6478 /** ListGlossariesRequest parent */
6479 parent?: (string|null);
6480
6481 /** ListGlossariesRequest pageSize */
6482 pageSize?: (number|null);
6483
6484 /** ListGlossariesRequest pageToken */
6485 pageToken?: (string|null);
6486
6487 /** ListGlossariesRequest filter */
6488 filter?: (string|null);
6489 }
6490
6491 /** Represents a ListGlossariesRequest. */
6492 class ListGlossariesRequest implements IListGlossariesRequest {
6493
6494 /**
6495 * Constructs a new ListGlossariesRequest.
6496 * @param [properties] Properties to set
6497 */
6498 constructor(properties?: google.cloud.translation.v3beta1.IListGlossariesRequest);
6499
6500 /** ListGlossariesRequest parent. */
6501 public parent: string;
6502
6503 /** ListGlossariesRequest pageSize. */
6504 public pageSize: number;
6505
6506 /** ListGlossariesRequest pageToken. */
6507 public pageToken: string;
6508
6509 /** ListGlossariesRequest filter. */
6510 public filter: string;
6511
6512 /**
6513 * Creates a new ListGlossariesRequest instance using the specified properties.
6514 * @param [properties] Properties to set
6515 * @returns ListGlossariesRequest instance
6516 */
6517 public static create(properties?: google.cloud.translation.v3beta1.IListGlossariesRequest): google.cloud.translation.v3beta1.ListGlossariesRequest;
6518
6519 /**
6520 * Encodes the specified ListGlossariesRequest message. Does not implicitly {@link google.cloud.translation.v3beta1.ListGlossariesRequest.verify|verify} messages.
6521 * @param message ListGlossariesRequest message or plain object to encode
6522 * @param [writer] Writer to encode to
6523 * @returns Writer
6524 */
6525 public static encode(message: google.cloud.translation.v3beta1.IListGlossariesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
6526
6527 /**
6528 * Encodes the specified ListGlossariesRequest message, length delimited. Does not implicitly {@link google.cloud.translation.v3beta1.ListGlossariesRequest.verify|verify} messages.
6529 * @param message ListGlossariesRequest message or plain object to encode
6530 * @param [writer] Writer to encode to
6531 * @returns Writer
6532 */
6533 public static encodeDelimited(message: google.cloud.translation.v3beta1.IListGlossariesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
6534
6535 /**
6536 * Decodes a ListGlossariesRequest message from the specified reader or buffer.
6537 * @param reader Reader or buffer to decode from
6538 * @param [length] Message length if known beforehand
6539 * @returns ListGlossariesRequest
6540 * @throws {Error} If the payload is not a reader or valid buffer
6541 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6542 */
6543 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3beta1.ListGlossariesRequest;
6544
6545 /**
6546 * Decodes a ListGlossariesRequest message from the specified reader or buffer, length delimited.
6547 * @param reader Reader or buffer to decode from
6548 * @returns ListGlossariesRequest
6549 * @throws {Error} If the payload is not a reader or valid buffer
6550 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6551 */
6552 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3beta1.ListGlossariesRequest;
6553
6554 /**
6555 * Verifies a ListGlossariesRequest message.
6556 * @param message Plain object to verify
6557 * @returns `null` if valid, otherwise the reason why it is not
6558 */
6559 public static verify(message: { [k: string]: any }): (string|null);
6560
6561 /**
6562 * Creates a ListGlossariesRequest message from a plain object. Also converts values to their respective internal types.
6563 * @param object Plain object
6564 * @returns ListGlossariesRequest
6565 */
6566 public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3beta1.ListGlossariesRequest;
6567
6568 /**
6569 * Creates a plain object from a ListGlossariesRequest message. Also converts values to other types if specified.
6570 * @param message ListGlossariesRequest
6571 * @param [options] Conversion options
6572 * @returns Plain object
6573 */
6574 public static toObject(message: google.cloud.translation.v3beta1.ListGlossariesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
6575
6576 /**
6577 * Converts this ListGlossariesRequest to JSON.
6578 * @returns JSON object
6579 */
6580 public toJSON(): { [k: string]: any };
6581 }
6582
6583 /** Properties of a ListGlossariesResponse. */
6584 interface IListGlossariesResponse {
6585
6586 /** ListGlossariesResponse glossaries */
6587 glossaries?: (google.cloud.translation.v3beta1.IGlossary[]|null);
6588
6589 /** ListGlossariesResponse nextPageToken */
6590 nextPageToken?: (string|null);
6591 }
6592
6593 /** Represents a ListGlossariesResponse. */
6594 class ListGlossariesResponse implements IListGlossariesResponse {
6595
6596 /**
6597 * Constructs a new ListGlossariesResponse.
6598 * @param [properties] Properties to set
6599 */
6600 constructor(properties?: google.cloud.translation.v3beta1.IListGlossariesResponse);
6601
6602 /** ListGlossariesResponse glossaries. */
6603 public glossaries: google.cloud.translation.v3beta1.IGlossary[];
6604
6605 /** ListGlossariesResponse nextPageToken. */
6606 public nextPageToken: string;
6607
6608 /**
6609 * Creates a new ListGlossariesResponse instance using the specified properties.
6610 * @param [properties] Properties to set
6611 * @returns ListGlossariesResponse instance
6612 */
6613 public static create(properties?: google.cloud.translation.v3beta1.IListGlossariesResponse): google.cloud.translation.v3beta1.ListGlossariesResponse;
6614
6615 /**
6616 * Encodes the specified ListGlossariesResponse message. Does not implicitly {@link google.cloud.translation.v3beta1.ListGlossariesResponse.verify|verify} messages.
6617 * @param message ListGlossariesResponse message or plain object to encode
6618 * @param [writer] Writer to encode to
6619 * @returns Writer
6620 */
6621 public static encode(message: google.cloud.translation.v3beta1.IListGlossariesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
6622
6623 /**
6624 * Encodes the specified ListGlossariesResponse message, length delimited. Does not implicitly {@link google.cloud.translation.v3beta1.ListGlossariesResponse.verify|verify} messages.
6625 * @param message ListGlossariesResponse message or plain object to encode
6626 * @param [writer] Writer to encode to
6627 * @returns Writer
6628 */
6629 public static encodeDelimited(message: google.cloud.translation.v3beta1.IListGlossariesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
6630
6631 /**
6632 * Decodes a ListGlossariesResponse message from the specified reader or buffer.
6633 * @param reader Reader or buffer to decode from
6634 * @param [length] Message length if known beforehand
6635 * @returns ListGlossariesResponse
6636 * @throws {Error} If the payload is not a reader or valid buffer
6637 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6638 */
6639 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3beta1.ListGlossariesResponse;
6640
6641 /**
6642 * Decodes a ListGlossariesResponse message from the specified reader or buffer, length delimited.
6643 * @param reader Reader or buffer to decode from
6644 * @returns ListGlossariesResponse
6645 * @throws {Error} If the payload is not a reader or valid buffer
6646 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6647 */
6648 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3beta1.ListGlossariesResponse;
6649
6650 /**
6651 * Verifies a ListGlossariesResponse message.
6652 * @param message Plain object to verify
6653 * @returns `null` if valid, otherwise the reason why it is not
6654 */
6655 public static verify(message: { [k: string]: any }): (string|null);
6656
6657 /**
6658 * Creates a ListGlossariesResponse message from a plain object. Also converts values to their respective internal types.
6659 * @param object Plain object
6660 * @returns ListGlossariesResponse
6661 */
6662 public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3beta1.ListGlossariesResponse;
6663
6664 /**
6665 * Creates a plain object from a ListGlossariesResponse message. Also converts values to other types if specified.
6666 * @param message ListGlossariesResponse
6667 * @param [options] Conversion options
6668 * @returns Plain object
6669 */
6670 public static toObject(message: google.cloud.translation.v3beta1.ListGlossariesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
6671
6672 /**
6673 * Converts this ListGlossariesResponse to JSON.
6674 * @returns JSON object
6675 */
6676 public toJSON(): { [k: string]: any };
6677 }
6678
6679 /** Properties of a CreateGlossaryMetadata. */
6680 interface ICreateGlossaryMetadata {
6681
6682 /** CreateGlossaryMetadata name */
6683 name?: (string|null);
6684
6685 /** CreateGlossaryMetadata state */
6686 state?: (google.cloud.translation.v3beta1.CreateGlossaryMetadata.State|keyof typeof google.cloud.translation.v3beta1.CreateGlossaryMetadata.State|null);
6687
6688 /** CreateGlossaryMetadata submitTime */
6689 submitTime?: (google.protobuf.ITimestamp|null);
6690 }
6691
6692 /** Represents a CreateGlossaryMetadata. */
6693 class CreateGlossaryMetadata implements ICreateGlossaryMetadata {
6694
6695 /**
6696 * Constructs a new CreateGlossaryMetadata.
6697 * @param [properties] Properties to set
6698 */
6699 constructor(properties?: google.cloud.translation.v3beta1.ICreateGlossaryMetadata);
6700
6701 /** CreateGlossaryMetadata name. */
6702 public name: string;
6703
6704 /** CreateGlossaryMetadata state. */
6705 public state: (google.cloud.translation.v3beta1.CreateGlossaryMetadata.State|keyof typeof google.cloud.translation.v3beta1.CreateGlossaryMetadata.State);
6706
6707 /** CreateGlossaryMetadata submitTime. */
6708 public submitTime?: (google.protobuf.ITimestamp|null);
6709
6710 /**
6711 * Creates a new CreateGlossaryMetadata instance using the specified properties.
6712 * @param [properties] Properties to set
6713 * @returns CreateGlossaryMetadata instance
6714 */
6715 public static create(properties?: google.cloud.translation.v3beta1.ICreateGlossaryMetadata): google.cloud.translation.v3beta1.CreateGlossaryMetadata;
6716
6717 /**
6718 * Encodes the specified CreateGlossaryMetadata message. Does not implicitly {@link google.cloud.translation.v3beta1.CreateGlossaryMetadata.verify|verify} messages.
6719 * @param message CreateGlossaryMetadata message or plain object to encode
6720 * @param [writer] Writer to encode to
6721 * @returns Writer
6722 */
6723 public static encode(message: google.cloud.translation.v3beta1.ICreateGlossaryMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
6724
6725 /**
6726 * Encodes the specified CreateGlossaryMetadata message, length delimited. Does not implicitly {@link google.cloud.translation.v3beta1.CreateGlossaryMetadata.verify|verify} messages.
6727 * @param message CreateGlossaryMetadata message or plain object to encode
6728 * @param [writer] Writer to encode to
6729 * @returns Writer
6730 */
6731 public static encodeDelimited(message: google.cloud.translation.v3beta1.ICreateGlossaryMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
6732
6733 /**
6734 * Decodes a CreateGlossaryMetadata message from the specified reader or buffer.
6735 * @param reader Reader or buffer to decode from
6736 * @param [length] Message length if known beforehand
6737 * @returns CreateGlossaryMetadata
6738 * @throws {Error} If the payload is not a reader or valid buffer
6739 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6740 */
6741 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3beta1.CreateGlossaryMetadata;
6742
6743 /**
6744 * Decodes a CreateGlossaryMetadata message from the specified reader or buffer, length delimited.
6745 * @param reader Reader or buffer to decode from
6746 * @returns CreateGlossaryMetadata
6747 * @throws {Error} If the payload is not a reader or valid buffer
6748 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6749 */
6750 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3beta1.CreateGlossaryMetadata;
6751
6752 /**
6753 * Verifies a CreateGlossaryMetadata message.
6754 * @param message Plain object to verify
6755 * @returns `null` if valid, otherwise the reason why it is not
6756 */
6757 public static verify(message: { [k: string]: any }): (string|null);
6758
6759 /**
6760 * Creates a CreateGlossaryMetadata message from a plain object. Also converts values to their respective internal types.
6761 * @param object Plain object
6762 * @returns CreateGlossaryMetadata
6763 */
6764 public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3beta1.CreateGlossaryMetadata;
6765
6766 /**
6767 * Creates a plain object from a CreateGlossaryMetadata message. Also converts values to other types if specified.
6768 * @param message CreateGlossaryMetadata
6769 * @param [options] Conversion options
6770 * @returns Plain object
6771 */
6772 public static toObject(message: google.cloud.translation.v3beta1.CreateGlossaryMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
6773
6774 /**
6775 * Converts this CreateGlossaryMetadata to JSON.
6776 * @returns JSON object
6777 */
6778 public toJSON(): { [k: string]: any };
6779 }
6780
6781 namespace CreateGlossaryMetadata {
6782
6783 /** State enum. */
6784 enum State {
6785 STATE_UNSPECIFIED = 0,
6786 RUNNING = 1,
6787 SUCCEEDED = 2,
6788 FAILED = 3,
6789 CANCELLING = 4,
6790 CANCELLED = 5
6791 }
6792 }
6793
6794 /** Properties of a DeleteGlossaryMetadata. */
6795 interface IDeleteGlossaryMetadata {
6796
6797 /** DeleteGlossaryMetadata name */
6798 name?: (string|null);
6799
6800 /** DeleteGlossaryMetadata state */
6801 state?: (google.cloud.translation.v3beta1.DeleteGlossaryMetadata.State|keyof typeof google.cloud.translation.v3beta1.DeleteGlossaryMetadata.State|null);
6802
6803 /** DeleteGlossaryMetadata submitTime */
6804 submitTime?: (google.protobuf.ITimestamp|null);
6805 }
6806
6807 /** Represents a DeleteGlossaryMetadata. */
6808 class DeleteGlossaryMetadata implements IDeleteGlossaryMetadata {
6809
6810 /**
6811 * Constructs a new DeleteGlossaryMetadata.
6812 * @param [properties] Properties to set
6813 */
6814 constructor(properties?: google.cloud.translation.v3beta1.IDeleteGlossaryMetadata);
6815
6816 /** DeleteGlossaryMetadata name. */
6817 public name: string;
6818
6819 /** DeleteGlossaryMetadata state. */
6820 public state: (google.cloud.translation.v3beta1.DeleteGlossaryMetadata.State|keyof typeof google.cloud.translation.v3beta1.DeleteGlossaryMetadata.State);
6821
6822 /** DeleteGlossaryMetadata submitTime. */
6823 public submitTime?: (google.protobuf.ITimestamp|null);
6824
6825 /**
6826 * Creates a new DeleteGlossaryMetadata instance using the specified properties.
6827 * @param [properties] Properties to set
6828 * @returns DeleteGlossaryMetadata instance
6829 */
6830 public static create(properties?: google.cloud.translation.v3beta1.IDeleteGlossaryMetadata): google.cloud.translation.v3beta1.DeleteGlossaryMetadata;
6831
6832 /**
6833 * Encodes the specified DeleteGlossaryMetadata message. Does not implicitly {@link google.cloud.translation.v3beta1.DeleteGlossaryMetadata.verify|verify} messages.
6834 * @param message DeleteGlossaryMetadata message or plain object to encode
6835 * @param [writer] Writer to encode to
6836 * @returns Writer
6837 */
6838 public static encode(message: google.cloud.translation.v3beta1.IDeleteGlossaryMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
6839
6840 /**
6841 * Encodes the specified DeleteGlossaryMetadata message, length delimited. Does not implicitly {@link google.cloud.translation.v3beta1.DeleteGlossaryMetadata.verify|verify} messages.
6842 * @param message DeleteGlossaryMetadata message or plain object to encode
6843 * @param [writer] Writer to encode to
6844 * @returns Writer
6845 */
6846 public static encodeDelimited(message: google.cloud.translation.v3beta1.IDeleteGlossaryMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
6847
6848 /**
6849 * Decodes a DeleteGlossaryMetadata message from the specified reader or buffer.
6850 * @param reader Reader or buffer to decode from
6851 * @param [length] Message length if known beforehand
6852 * @returns DeleteGlossaryMetadata
6853 * @throws {Error} If the payload is not a reader or valid buffer
6854 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6855 */
6856 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3beta1.DeleteGlossaryMetadata;
6857
6858 /**
6859 * Decodes a DeleteGlossaryMetadata message from the specified reader or buffer, length delimited.
6860 * @param reader Reader or buffer to decode from
6861 * @returns DeleteGlossaryMetadata
6862 * @throws {Error} If the payload is not a reader or valid buffer
6863 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6864 */
6865 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3beta1.DeleteGlossaryMetadata;
6866
6867 /**
6868 * Verifies a DeleteGlossaryMetadata message.
6869 * @param message Plain object to verify
6870 * @returns `null` if valid, otherwise the reason why it is not
6871 */
6872 public static verify(message: { [k: string]: any }): (string|null);
6873
6874 /**
6875 * Creates a DeleteGlossaryMetadata message from a plain object. Also converts values to their respective internal types.
6876 * @param object Plain object
6877 * @returns DeleteGlossaryMetadata
6878 */
6879 public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3beta1.DeleteGlossaryMetadata;
6880
6881 /**
6882 * Creates a plain object from a DeleteGlossaryMetadata message. Also converts values to other types if specified.
6883 * @param message DeleteGlossaryMetadata
6884 * @param [options] Conversion options
6885 * @returns Plain object
6886 */
6887 public static toObject(message: google.cloud.translation.v3beta1.DeleteGlossaryMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
6888
6889 /**
6890 * Converts this DeleteGlossaryMetadata to JSON.
6891 * @returns JSON object
6892 */
6893 public toJSON(): { [k: string]: any };
6894 }
6895
6896 namespace DeleteGlossaryMetadata {
6897
6898 /** State enum. */
6899 enum State {
6900 STATE_UNSPECIFIED = 0,
6901 RUNNING = 1,
6902 SUCCEEDED = 2,
6903 FAILED = 3,
6904 CANCELLING = 4,
6905 CANCELLED = 5
6906 }
6907 }
6908
6909 /** Properties of a DeleteGlossaryResponse. */
6910 interface IDeleteGlossaryResponse {
6911
6912 /** DeleteGlossaryResponse name */
6913 name?: (string|null);
6914
6915 /** DeleteGlossaryResponse submitTime */
6916 submitTime?: (google.protobuf.ITimestamp|null);
6917
6918 /** DeleteGlossaryResponse endTime */
6919 endTime?: (google.protobuf.ITimestamp|null);
6920 }
6921
6922 /** Represents a DeleteGlossaryResponse. */
6923 class DeleteGlossaryResponse implements IDeleteGlossaryResponse {
6924
6925 /**
6926 * Constructs a new DeleteGlossaryResponse.
6927 * @param [properties] Properties to set
6928 */
6929 constructor(properties?: google.cloud.translation.v3beta1.IDeleteGlossaryResponse);
6930
6931 /** DeleteGlossaryResponse name. */
6932 public name: string;
6933
6934 /** DeleteGlossaryResponse submitTime. */
6935 public submitTime?: (google.protobuf.ITimestamp|null);
6936
6937 /** DeleteGlossaryResponse endTime. */
6938 public endTime?: (google.protobuf.ITimestamp|null);
6939
6940 /**
6941 * Creates a new DeleteGlossaryResponse instance using the specified properties.
6942 * @param [properties] Properties to set
6943 * @returns DeleteGlossaryResponse instance
6944 */
6945 public static create(properties?: google.cloud.translation.v3beta1.IDeleteGlossaryResponse): google.cloud.translation.v3beta1.DeleteGlossaryResponse;
6946
6947 /**
6948 * Encodes the specified DeleteGlossaryResponse message. Does not implicitly {@link google.cloud.translation.v3beta1.DeleteGlossaryResponse.verify|verify} messages.
6949 * @param message DeleteGlossaryResponse message or plain object to encode
6950 * @param [writer] Writer to encode to
6951 * @returns Writer
6952 */
6953 public static encode(message: google.cloud.translation.v3beta1.IDeleteGlossaryResponse, writer?: $protobuf.Writer): $protobuf.Writer;
6954
6955 /**
6956 * Encodes the specified DeleteGlossaryResponse message, length delimited. Does not implicitly {@link google.cloud.translation.v3beta1.DeleteGlossaryResponse.verify|verify} messages.
6957 * @param message DeleteGlossaryResponse message or plain object to encode
6958 * @param [writer] Writer to encode to
6959 * @returns Writer
6960 */
6961 public static encodeDelimited(message: google.cloud.translation.v3beta1.IDeleteGlossaryResponse, writer?: $protobuf.Writer): $protobuf.Writer;
6962
6963 /**
6964 * Decodes a DeleteGlossaryResponse message from the specified reader or buffer.
6965 * @param reader Reader or buffer to decode from
6966 * @param [length] Message length if known beforehand
6967 * @returns DeleteGlossaryResponse
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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3beta1.DeleteGlossaryResponse;
6972
6973 /**
6974 * Decodes a DeleteGlossaryResponse message from the specified reader or buffer, length delimited.
6975 * @param reader Reader or buffer to decode from
6976 * @returns DeleteGlossaryResponse
6977 * @throws {Error} If the payload is not a reader or valid buffer
6978 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6979 */
6980 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3beta1.DeleteGlossaryResponse;
6981
6982 /**
6983 * Verifies a DeleteGlossaryResponse message.
6984 * @param message Plain object to verify
6985 * @returns `null` if valid, otherwise the reason why it is not
6986 */
6987 public static verify(message: { [k: string]: any }): (string|null);
6988
6989 /**
6990 * Creates a DeleteGlossaryResponse message from a plain object. Also converts values to their respective internal types.
6991 * @param object Plain object
6992 * @returns DeleteGlossaryResponse
6993 */
6994 public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3beta1.DeleteGlossaryResponse;
6995
6996 /**
6997 * Creates a plain object from a DeleteGlossaryResponse message. Also converts values to other types if specified.
6998 * @param message DeleteGlossaryResponse
6999 * @param [options] Conversion options
7000 * @returns Plain object
7001 */
7002 public static toObject(message: google.cloud.translation.v3beta1.DeleteGlossaryResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
7003
7004 /**
7005 * Converts this DeleteGlossaryResponse to JSON.
7006 * @returns JSON object
7007 */
7008 public toJSON(): { [k: string]: any };
7009 }
7010
7011 /** Properties of a BatchTranslateDocumentRequest. */
7012 interface IBatchTranslateDocumentRequest {
7013
7014 /** BatchTranslateDocumentRequest parent */
7015 parent?: (string|null);
7016
7017 /** BatchTranslateDocumentRequest sourceLanguageCode */
7018 sourceLanguageCode?: (string|null);
7019
7020 /** BatchTranslateDocumentRequest targetLanguageCodes */
7021 targetLanguageCodes?: (string[]|null);
7022
7023 /** BatchTranslateDocumentRequest inputConfigs */
7024 inputConfigs?: (google.cloud.translation.v3beta1.IBatchDocumentInputConfig[]|null);
7025
7026 /** BatchTranslateDocumentRequest outputConfig */
7027 outputConfig?: (google.cloud.translation.v3beta1.IBatchDocumentOutputConfig|null);
7028
7029 /** BatchTranslateDocumentRequest models */
7030 models?: ({ [k: string]: string }|null);
7031
7032 /** BatchTranslateDocumentRequest glossaries */
7033 glossaries?: ({ [k: string]: google.cloud.translation.v3beta1.ITranslateTextGlossaryConfig }|null);
7034 }
7035
7036 /** Represents a BatchTranslateDocumentRequest. */
7037 class BatchTranslateDocumentRequest implements IBatchTranslateDocumentRequest {
7038
7039 /**
7040 * Constructs a new BatchTranslateDocumentRequest.
7041 * @param [properties] Properties to set
7042 */
7043 constructor(properties?: google.cloud.translation.v3beta1.IBatchTranslateDocumentRequest);
7044
7045 /** BatchTranslateDocumentRequest parent. */
7046 public parent: string;
7047
7048 /** BatchTranslateDocumentRequest sourceLanguageCode. */
7049 public sourceLanguageCode: string;
7050
7051 /** BatchTranslateDocumentRequest targetLanguageCodes. */
7052 public targetLanguageCodes: string[];
7053
7054 /** BatchTranslateDocumentRequest inputConfigs. */
7055 public inputConfigs: google.cloud.translation.v3beta1.IBatchDocumentInputConfig[];
7056
7057 /** BatchTranslateDocumentRequest outputConfig. */
7058 public outputConfig?: (google.cloud.translation.v3beta1.IBatchDocumentOutputConfig|null);
7059
7060 /** BatchTranslateDocumentRequest models. */
7061 public models: { [k: string]: string };
7062
7063 /** BatchTranslateDocumentRequest glossaries. */
7064 public glossaries: { [k: string]: google.cloud.translation.v3beta1.ITranslateTextGlossaryConfig };
7065
7066 /**
7067 * Creates a new BatchTranslateDocumentRequest instance using the specified properties.
7068 * @param [properties] Properties to set
7069 * @returns BatchTranslateDocumentRequest instance
7070 */
7071 public static create(properties?: google.cloud.translation.v3beta1.IBatchTranslateDocumentRequest): google.cloud.translation.v3beta1.BatchTranslateDocumentRequest;
7072
7073 /**
7074 * Encodes the specified BatchTranslateDocumentRequest message. Does not implicitly {@link google.cloud.translation.v3beta1.BatchTranslateDocumentRequest.verify|verify} messages.
7075 * @param message BatchTranslateDocumentRequest message or plain object to encode
7076 * @param [writer] Writer to encode to
7077 * @returns Writer
7078 */
7079 public static encode(message: google.cloud.translation.v3beta1.IBatchTranslateDocumentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
7080
7081 /**
7082 * Encodes the specified BatchTranslateDocumentRequest message, length delimited. Does not implicitly {@link google.cloud.translation.v3beta1.BatchTranslateDocumentRequest.verify|verify} messages.
7083 * @param message BatchTranslateDocumentRequest message or plain object to encode
7084 * @param [writer] Writer to encode to
7085 * @returns Writer
7086 */
7087 public static encodeDelimited(message: google.cloud.translation.v3beta1.IBatchTranslateDocumentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
7088
7089 /**
7090 * Decodes a BatchTranslateDocumentRequest message from the specified reader or buffer.
7091 * @param reader Reader or buffer to decode from
7092 * @param [length] Message length if known beforehand
7093 * @returns BatchTranslateDocumentRequest
7094 * @throws {Error} If the payload is not a reader or valid buffer
7095 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7096 */
7097 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3beta1.BatchTranslateDocumentRequest;
7098
7099 /**
7100 * Decodes a BatchTranslateDocumentRequest message from the specified reader or buffer, length delimited.
7101 * @param reader Reader or buffer to decode from
7102 * @returns BatchTranslateDocumentRequest
7103 * @throws {Error} If the payload is not a reader or valid buffer
7104 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7105 */
7106 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3beta1.BatchTranslateDocumentRequest;
7107
7108 /**
7109 * Verifies a BatchTranslateDocumentRequest message.
7110 * @param message Plain object to verify
7111 * @returns `null` if valid, otherwise the reason why it is not
7112 */
7113 public static verify(message: { [k: string]: any }): (string|null);
7114
7115 /**
7116 * Creates a BatchTranslateDocumentRequest message from a plain object. Also converts values to their respective internal types.
7117 * @param object Plain object
7118 * @returns BatchTranslateDocumentRequest
7119 */
7120 public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3beta1.BatchTranslateDocumentRequest;
7121
7122 /**
7123 * Creates a plain object from a BatchTranslateDocumentRequest message. Also converts values to other types if specified.
7124 * @param message BatchTranslateDocumentRequest
7125 * @param [options] Conversion options
7126 * @returns Plain object
7127 */
7128 public static toObject(message: google.cloud.translation.v3beta1.BatchTranslateDocumentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
7129
7130 /**
7131 * Converts this BatchTranslateDocumentRequest to JSON.
7132 * @returns JSON object
7133 */
7134 public toJSON(): { [k: string]: any };
7135 }
7136
7137 /** Properties of a BatchDocumentInputConfig. */
7138 interface IBatchDocumentInputConfig {
7139
7140 /** BatchDocumentInputConfig gcsSource */
7141 gcsSource?: (google.cloud.translation.v3beta1.IGcsSource|null);
7142 }
7143
7144 /** Represents a BatchDocumentInputConfig. */
7145 class BatchDocumentInputConfig implements IBatchDocumentInputConfig {
7146
7147 /**
7148 * Constructs a new BatchDocumentInputConfig.
7149 * @param [properties] Properties to set
7150 */
7151 constructor(properties?: google.cloud.translation.v3beta1.IBatchDocumentInputConfig);
7152
7153 /** BatchDocumentInputConfig gcsSource. */
7154 public gcsSource?: (google.cloud.translation.v3beta1.IGcsSource|null);
7155
7156 /** BatchDocumentInputConfig source. */
7157 public source?: "gcsSource";
7158
7159 /**
7160 * Creates a new BatchDocumentInputConfig instance using the specified properties.
7161 * @param [properties] Properties to set
7162 * @returns BatchDocumentInputConfig instance
7163 */
7164 public static create(properties?: google.cloud.translation.v3beta1.IBatchDocumentInputConfig): google.cloud.translation.v3beta1.BatchDocumentInputConfig;
7165
7166 /**
7167 * Encodes the specified BatchDocumentInputConfig message. Does not implicitly {@link google.cloud.translation.v3beta1.BatchDocumentInputConfig.verify|verify} messages.
7168 * @param message BatchDocumentInputConfig message or plain object to encode
7169 * @param [writer] Writer to encode to
7170 * @returns Writer
7171 */
7172 public static encode(message: google.cloud.translation.v3beta1.IBatchDocumentInputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
7173
7174 /**
7175 * Encodes the specified BatchDocumentInputConfig message, length delimited. Does not implicitly {@link google.cloud.translation.v3beta1.BatchDocumentInputConfig.verify|verify} messages.
7176 * @param message BatchDocumentInputConfig message or plain object to encode
7177 * @param [writer] Writer to encode to
7178 * @returns Writer
7179 */
7180 public static encodeDelimited(message: google.cloud.translation.v3beta1.IBatchDocumentInputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
7181
7182 /**
7183 * Decodes a BatchDocumentInputConfig message from the specified reader or buffer.
7184 * @param reader Reader or buffer to decode from
7185 * @param [length] Message length if known beforehand
7186 * @returns BatchDocumentInputConfig
7187 * @throws {Error} If the payload is not a reader or valid buffer
7188 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7189 */
7190 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3beta1.BatchDocumentInputConfig;
7191
7192 /**
7193 * Decodes a BatchDocumentInputConfig message from the specified reader or buffer, length delimited.
7194 * @param reader Reader or buffer to decode from
7195 * @returns BatchDocumentInputConfig
7196 * @throws {Error} If the payload is not a reader or valid buffer
7197 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7198 */
7199 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3beta1.BatchDocumentInputConfig;
7200
7201 /**
7202 * Verifies a BatchDocumentInputConfig message.
7203 * @param message Plain object to verify
7204 * @returns `null` if valid, otherwise the reason why it is not
7205 */
7206 public static verify(message: { [k: string]: any }): (string|null);
7207
7208 /**
7209 * Creates a BatchDocumentInputConfig message from a plain object. Also converts values to their respective internal types.
7210 * @param object Plain object
7211 * @returns BatchDocumentInputConfig
7212 */
7213 public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3beta1.BatchDocumentInputConfig;
7214
7215 /**
7216 * Creates a plain object from a BatchDocumentInputConfig message. Also converts values to other types if specified.
7217 * @param message BatchDocumentInputConfig
7218 * @param [options] Conversion options
7219 * @returns Plain object
7220 */
7221 public static toObject(message: google.cloud.translation.v3beta1.BatchDocumentInputConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
7222
7223 /**
7224 * Converts this BatchDocumentInputConfig to JSON.
7225 * @returns JSON object
7226 */
7227 public toJSON(): { [k: string]: any };
7228 }
7229
7230 /** Properties of a BatchDocumentOutputConfig. */
7231 interface IBatchDocumentOutputConfig {
7232
7233 /** BatchDocumentOutputConfig gcsDestination */
7234 gcsDestination?: (google.cloud.translation.v3beta1.IGcsDestination|null);
7235 }
7236
7237 /** Represents a BatchDocumentOutputConfig. */
7238 class BatchDocumentOutputConfig implements IBatchDocumentOutputConfig {
7239
7240 /**
7241 * Constructs a new BatchDocumentOutputConfig.
7242 * @param [properties] Properties to set
7243 */
7244 constructor(properties?: google.cloud.translation.v3beta1.IBatchDocumentOutputConfig);
7245
7246 /** BatchDocumentOutputConfig gcsDestination. */
7247 public gcsDestination?: (google.cloud.translation.v3beta1.IGcsDestination|null);
7248
7249 /** BatchDocumentOutputConfig destination. */
7250 public destination?: "gcsDestination";
7251
7252 /**
7253 * Creates a new BatchDocumentOutputConfig instance using the specified properties.
7254 * @param [properties] Properties to set
7255 * @returns BatchDocumentOutputConfig instance
7256 */
7257 public static create(properties?: google.cloud.translation.v3beta1.IBatchDocumentOutputConfig): google.cloud.translation.v3beta1.BatchDocumentOutputConfig;
7258
7259 /**
7260 * Encodes the specified BatchDocumentOutputConfig message. Does not implicitly {@link google.cloud.translation.v3beta1.BatchDocumentOutputConfig.verify|verify} messages.
7261 * @param message BatchDocumentOutputConfig message or plain object to encode
7262 * @param [writer] Writer to encode to
7263 * @returns Writer
7264 */
7265 public static encode(message: google.cloud.translation.v3beta1.IBatchDocumentOutputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
7266
7267 /**
7268 * Encodes the specified BatchDocumentOutputConfig message, length delimited. Does not implicitly {@link google.cloud.translation.v3beta1.BatchDocumentOutputConfig.verify|verify} messages.
7269 * @param message BatchDocumentOutputConfig message or plain object to encode
7270 * @param [writer] Writer to encode to
7271 * @returns Writer
7272 */
7273 public static encodeDelimited(message: google.cloud.translation.v3beta1.IBatchDocumentOutputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
7274
7275 /**
7276 * Decodes a BatchDocumentOutputConfig message from the specified reader or buffer.
7277 * @param reader Reader or buffer to decode from
7278 * @param [length] Message length if known beforehand
7279 * @returns BatchDocumentOutputConfig
7280 * @throws {Error} If the payload is not a reader or valid buffer
7281 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7282 */
7283 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3beta1.BatchDocumentOutputConfig;
7284
7285 /**
7286 * Decodes a BatchDocumentOutputConfig message from the specified reader or buffer, length delimited.
7287 * @param reader Reader or buffer to decode from
7288 * @returns BatchDocumentOutputConfig
7289 * @throws {Error} If the payload is not a reader or valid buffer
7290 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7291 */
7292 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3beta1.BatchDocumentOutputConfig;
7293
7294 /**
7295 * Verifies a BatchDocumentOutputConfig message.
7296 * @param message Plain object to verify
7297 * @returns `null` if valid, otherwise the reason why it is not
7298 */
7299 public static verify(message: { [k: string]: any }): (string|null);
7300
7301 /**
7302 * Creates a BatchDocumentOutputConfig message from a plain object. Also converts values to their respective internal types.
7303 * @param object Plain object
7304 * @returns BatchDocumentOutputConfig
7305 */
7306 public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3beta1.BatchDocumentOutputConfig;
7307
7308 /**
7309 * Creates a plain object from a BatchDocumentOutputConfig message. Also converts values to other types if specified.
7310 * @param message BatchDocumentOutputConfig
7311 * @param [options] Conversion options
7312 * @returns Plain object
7313 */
7314 public static toObject(message: google.cloud.translation.v3beta1.BatchDocumentOutputConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
7315
7316 /**
7317 * Converts this BatchDocumentOutputConfig to JSON.
7318 * @returns JSON object
7319 */
7320 public toJSON(): { [k: string]: any };
7321 }
7322
7323 /** Properties of a BatchTranslateDocumentResponse. */
7324 interface IBatchTranslateDocumentResponse {
7325
7326 /** BatchTranslateDocumentResponse totalPages */
7327 totalPages?: (number|Long|string|null);
7328
7329 /** BatchTranslateDocumentResponse translatedPages */
7330 translatedPages?: (number|Long|string|null);
7331
7332 /** BatchTranslateDocumentResponse failedPages */
7333 failedPages?: (number|Long|string|null);
7334
7335 /** BatchTranslateDocumentResponse totalBillablePages */
7336 totalBillablePages?: (number|Long|string|null);
7337
7338 /** BatchTranslateDocumentResponse totalCharacters */
7339 totalCharacters?: (number|Long|string|null);
7340
7341 /** BatchTranslateDocumentResponse translatedCharacters */
7342 translatedCharacters?: (number|Long|string|null);
7343
7344 /** BatchTranslateDocumentResponse failedCharacters */
7345 failedCharacters?: (number|Long|string|null);
7346
7347 /** BatchTranslateDocumentResponse totalBillableCharacters */
7348 totalBillableCharacters?: (number|Long|string|null);
7349
7350 /** BatchTranslateDocumentResponse submitTime */
7351 submitTime?: (google.protobuf.ITimestamp|null);
7352
7353 /** BatchTranslateDocumentResponse endTime */
7354 endTime?: (google.protobuf.ITimestamp|null);
7355 }
7356
7357 /** Represents a BatchTranslateDocumentResponse. */
7358 class BatchTranslateDocumentResponse implements IBatchTranslateDocumentResponse {
7359
7360 /**
7361 * Constructs a new BatchTranslateDocumentResponse.
7362 * @param [properties] Properties to set
7363 */
7364 constructor(properties?: google.cloud.translation.v3beta1.IBatchTranslateDocumentResponse);
7365
7366 /** BatchTranslateDocumentResponse totalPages. */
7367 public totalPages: (number|Long|string);
7368
7369 /** BatchTranslateDocumentResponse translatedPages. */
7370 public translatedPages: (number|Long|string);
7371
7372 /** BatchTranslateDocumentResponse failedPages. */
7373 public failedPages: (number|Long|string);
7374
7375 /** BatchTranslateDocumentResponse totalBillablePages. */
7376 public totalBillablePages: (number|Long|string);
7377
7378 /** BatchTranslateDocumentResponse totalCharacters. */
7379 public totalCharacters: (number|Long|string);
7380
7381 /** BatchTranslateDocumentResponse translatedCharacters. */
7382 public translatedCharacters: (number|Long|string);
7383
7384 /** BatchTranslateDocumentResponse failedCharacters. */
7385 public failedCharacters: (number|Long|string);
7386
7387 /** BatchTranslateDocumentResponse totalBillableCharacters. */
7388 public totalBillableCharacters: (number|Long|string);
7389
7390 /** BatchTranslateDocumentResponse submitTime. */
7391 public submitTime?: (google.protobuf.ITimestamp|null);
7392
7393 /** BatchTranslateDocumentResponse endTime. */
7394 public endTime?: (google.protobuf.ITimestamp|null);
7395
7396 /**
7397 * Creates a new BatchTranslateDocumentResponse instance using the specified properties.
7398 * @param [properties] Properties to set
7399 * @returns BatchTranslateDocumentResponse instance
7400 */
7401 public static create(properties?: google.cloud.translation.v3beta1.IBatchTranslateDocumentResponse): google.cloud.translation.v3beta1.BatchTranslateDocumentResponse;
7402
7403 /**
7404 * Encodes the specified BatchTranslateDocumentResponse message. Does not implicitly {@link google.cloud.translation.v3beta1.BatchTranslateDocumentResponse.verify|verify} messages.
7405 * @param message BatchTranslateDocumentResponse message or plain object to encode
7406 * @param [writer] Writer to encode to
7407 * @returns Writer
7408 */
7409 public static encode(message: google.cloud.translation.v3beta1.IBatchTranslateDocumentResponse, writer?: $protobuf.Writer): $protobuf.Writer;
7410
7411 /**
7412 * Encodes the specified BatchTranslateDocumentResponse message, length delimited. Does not implicitly {@link google.cloud.translation.v3beta1.BatchTranslateDocumentResponse.verify|verify} messages.
7413 * @param message BatchTranslateDocumentResponse message or plain object to encode
7414 * @param [writer] Writer to encode to
7415 * @returns Writer
7416 */
7417 public static encodeDelimited(message: google.cloud.translation.v3beta1.IBatchTranslateDocumentResponse, writer?: $protobuf.Writer): $protobuf.Writer;
7418
7419 /**
7420 * Decodes a BatchTranslateDocumentResponse message from the specified reader or buffer.
7421 * @param reader Reader or buffer to decode from
7422 * @param [length] Message length if known beforehand
7423 * @returns BatchTranslateDocumentResponse
7424 * @throws {Error} If the payload is not a reader or valid buffer
7425 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7426 */
7427 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3beta1.BatchTranslateDocumentResponse;
7428
7429 /**
7430 * Decodes a BatchTranslateDocumentResponse message from the specified reader or buffer, length delimited.
7431 * @param reader Reader or buffer to decode from
7432 * @returns BatchTranslateDocumentResponse
7433 * @throws {Error} If the payload is not a reader or valid buffer
7434 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7435 */
7436 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3beta1.BatchTranslateDocumentResponse;
7437
7438 /**
7439 * Verifies a BatchTranslateDocumentResponse message.
7440 * @param message Plain object to verify
7441 * @returns `null` if valid, otherwise the reason why it is not
7442 */
7443 public static verify(message: { [k: string]: any }): (string|null);
7444
7445 /**
7446 * Creates a BatchTranslateDocumentResponse message from a plain object. Also converts values to their respective internal types.
7447 * @param object Plain object
7448 * @returns BatchTranslateDocumentResponse
7449 */
7450 public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3beta1.BatchTranslateDocumentResponse;
7451
7452 /**
7453 * Creates a plain object from a BatchTranslateDocumentResponse message. Also converts values to other types if specified.
7454 * @param message BatchTranslateDocumentResponse
7455 * @param [options] Conversion options
7456 * @returns Plain object
7457 */
7458 public static toObject(message: google.cloud.translation.v3beta1.BatchTranslateDocumentResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
7459
7460 /**
7461 * Converts this BatchTranslateDocumentResponse to JSON.
7462 * @returns JSON object
7463 */
7464 public toJSON(): { [k: string]: any };
7465 }
7466
7467 /** Properties of a BatchTranslateDocumentMetadata. */
7468 interface IBatchTranslateDocumentMetadata {
7469
7470 /** BatchTranslateDocumentMetadata state */
7471 state?: (google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata.State|keyof typeof google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata.State|null);
7472
7473 /** BatchTranslateDocumentMetadata totalPages */
7474 totalPages?: (number|Long|string|null);
7475
7476 /** BatchTranslateDocumentMetadata translatedPages */
7477 translatedPages?: (number|Long|string|null);
7478
7479 /** BatchTranslateDocumentMetadata failedPages */
7480 failedPages?: (number|Long|string|null);
7481
7482 /** BatchTranslateDocumentMetadata totalBillablePages */
7483 totalBillablePages?: (number|Long|string|null);
7484
7485 /** BatchTranslateDocumentMetadata totalCharacters */
7486 totalCharacters?: (number|Long|string|null);
7487
7488 /** BatchTranslateDocumentMetadata translatedCharacters */
7489 translatedCharacters?: (number|Long|string|null);
7490
7491 /** BatchTranslateDocumentMetadata failedCharacters */
7492 failedCharacters?: (number|Long|string|null);
7493
7494 /** BatchTranslateDocumentMetadata totalBillableCharacters */
7495 totalBillableCharacters?: (number|Long|string|null);
7496
7497 /** BatchTranslateDocumentMetadata submitTime */
7498 submitTime?: (google.protobuf.ITimestamp|null);
7499 }
7500
7501 /** Represents a BatchTranslateDocumentMetadata. */
7502 class BatchTranslateDocumentMetadata implements IBatchTranslateDocumentMetadata {
7503
7504 /**
7505 * Constructs a new BatchTranslateDocumentMetadata.
7506 * @param [properties] Properties to set
7507 */
7508 constructor(properties?: google.cloud.translation.v3beta1.IBatchTranslateDocumentMetadata);
7509
7510 /** BatchTranslateDocumentMetadata state. */
7511 public state: (google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata.State|keyof typeof google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata.State);
7512
7513 /** BatchTranslateDocumentMetadata totalPages. */
7514 public totalPages: (number|Long|string);
7515
7516 /** BatchTranslateDocumentMetadata translatedPages. */
7517 public translatedPages: (number|Long|string);
7518
7519 /** BatchTranslateDocumentMetadata failedPages. */
7520 public failedPages: (number|Long|string);
7521
7522 /** BatchTranslateDocumentMetadata totalBillablePages. */
7523 public totalBillablePages: (number|Long|string);
7524
7525 /** BatchTranslateDocumentMetadata totalCharacters. */
7526 public totalCharacters: (number|Long|string);
7527
7528 /** BatchTranslateDocumentMetadata translatedCharacters. */
7529 public translatedCharacters: (number|Long|string);
7530
7531 /** BatchTranslateDocumentMetadata failedCharacters. */
7532 public failedCharacters: (number|Long|string);
7533
7534 /** BatchTranslateDocumentMetadata totalBillableCharacters. */
7535 public totalBillableCharacters: (number|Long|string);
7536
7537 /** BatchTranslateDocumentMetadata submitTime. */
7538 public submitTime?: (google.protobuf.ITimestamp|null);
7539
7540 /**
7541 * Creates a new BatchTranslateDocumentMetadata instance using the specified properties.
7542 * @param [properties] Properties to set
7543 * @returns BatchTranslateDocumentMetadata instance
7544 */
7545 public static create(properties?: google.cloud.translation.v3beta1.IBatchTranslateDocumentMetadata): google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata;
7546
7547 /**
7548 * Encodes the specified BatchTranslateDocumentMetadata message. Does not implicitly {@link google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata.verify|verify} messages.
7549 * @param message BatchTranslateDocumentMetadata message or plain object to encode
7550 * @param [writer] Writer to encode to
7551 * @returns Writer
7552 */
7553 public static encode(message: google.cloud.translation.v3beta1.IBatchTranslateDocumentMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
7554
7555 /**
7556 * Encodes the specified BatchTranslateDocumentMetadata message, length delimited. Does not implicitly {@link google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata.verify|verify} messages.
7557 * @param message BatchTranslateDocumentMetadata message or plain object to encode
7558 * @param [writer] Writer to encode to
7559 * @returns Writer
7560 */
7561 public static encodeDelimited(message: google.cloud.translation.v3beta1.IBatchTranslateDocumentMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
7562
7563 /**
7564 * Decodes a BatchTranslateDocumentMetadata message from the specified reader or buffer.
7565 * @param reader Reader or buffer to decode from
7566 * @param [length] Message length if known beforehand
7567 * @returns BatchTranslateDocumentMetadata
7568 * @throws {Error} If the payload is not a reader or valid buffer
7569 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7570 */
7571 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata;
7572
7573 /**
7574 * Decodes a BatchTranslateDocumentMetadata message from the specified reader or buffer, length delimited.
7575 * @param reader Reader or buffer to decode from
7576 * @returns BatchTranslateDocumentMetadata
7577 * @throws {Error} If the payload is not a reader or valid buffer
7578 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7579 */
7580 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata;
7581
7582 /**
7583 * Verifies a BatchTranslateDocumentMetadata message.
7584 * @param message Plain object to verify
7585 * @returns `null` if valid, otherwise the reason why it is not
7586 */
7587 public static verify(message: { [k: string]: any }): (string|null);
7588
7589 /**
7590 * Creates a BatchTranslateDocumentMetadata message from a plain object. Also converts values to their respective internal types.
7591 * @param object Plain object
7592 * @returns BatchTranslateDocumentMetadata
7593 */
7594 public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata;
7595
7596 /**
7597 * Creates a plain object from a BatchTranslateDocumentMetadata message. Also converts values to other types if specified.
7598 * @param message BatchTranslateDocumentMetadata
7599 * @param [options] Conversion options
7600 * @returns Plain object
7601 */
7602 public static toObject(message: google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
7603
7604 /**
7605 * Converts this BatchTranslateDocumentMetadata to JSON.
7606 * @returns JSON object
7607 */
7608 public toJSON(): { [k: string]: any };
7609 }
7610
7611 namespace BatchTranslateDocumentMetadata {
7612
7613 /** State enum. */
7614 enum State {
7615 STATE_UNSPECIFIED = 0,
7616 RUNNING = 1,
7617 SUCCEEDED = 2,
7618 FAILED = 3,
7619 CANCELLING = 4,
7620 CANCELLED = 5
7621 }
7622 }
7623 }
7624 }
7625 }
7626
7627 /** Namespace api. */
7628 namespace api {
7629
7630 /** Properties of a Http. */
7631 interface IHttp {
7632
7633 /** Http rules */
7634 rules?: (google.api.IHttpRule[]|null);
7635
7636 /** Http fullyDecodeReservedExpansion */
7637 fullyDecodeReservedExpansion?: (boolean|null);
7638 }
7639
7640 /** Represents a Http. */
7641 class Http implements IHttp {
7642
7643 /**
7644 * Constructs a new Http.
7645 * @param [properties] Properties to set
7646 */
7647 constructor(properties?: google.api.IHttp);
7648
7649 /** Http rules. */
7650 public rules: google.api.IHttpRule[];
7651
7652 /** Http fullyDecodeReservedExpansion. */
7653 public fullyDecodeReservedExpansion: boolean;
7654
7655 /**
7656 * Creates a new Http instance using the specified properties.
7657 * @param [properties] Properties to set
7658 * @returns Http instance
7659 */
7660 public static create(properties?: google.api.IHttp): google.api.Http;
7661
7662 /**
7663 * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages.
7664 * @param message Http message or plain object to encode
7665 * @param [writer] Writer to encode to
7666 * @returns Writer
7667 */
7668 public static encode(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer;
7669
7670 /**
7671 * Encodes the specified Http message, length delimited. Does not implicitly {@link google.api.Http.verify|verify} messages.
7672 * @param message Http message or plain object to encode
7673 * @param [writer] Writer to encode to
7674 * @returns Writer
7675 */
7676 public static encodeDelimited(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer;
7677
7678 /**
7679 * Decodes a Http message from the specified reader or buffer.
7680 * @param reader Reader or buffer to decode from
7681 * @param [length] Message length if known beforehand
7682 * @returns Http
7683 * @throws {Error} If the payload is not a reader or valid buffer
7684 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7685 */
7686 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.Http;
7687
7688 /**
7689 * Decodes a Http message from the specified reader or buffer, length delimited.
7690 * @param reader Reader or buffer to decode from
7691 * @returns Http
7692 * @throws {Error} If the payload is not a reader or valid buffer
7693 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7694 */
7695 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.Http;
7696
7697 /**
7698 * Verifies a Http message.
7699 * @param message Plain object to verify
7700 * @returns `null` if valid, otherwise the reason why it is not
7701 */
7702 public static verify(message: { [k: string]: any }): (string|null);
7703
7704 /**
7705 * Creates a Http message from a plain object. Also converts values to their respective internal types.
7706 * @param object Plain object
7707 * @returns Http
7708 */
7709 public static fromObject(object: { [k: string]: any }): google.api.Http;
7710
7711 /**
7712 * Creates a plain object from a Http message. Also converts values to other types if specified.
7713 * @param message Http
7714 * @param [options] Conversion options
7715 * @returns Plain object
7716 */
7717 public static toObject(message: google.api.Http, options?: $protobuf.IConversionOptions): { [k: string]: any };
7718
7719 /**
7720 * Converts this Http to JSON.
7721 * @returns JSON object
7722 */
7723 public toJSON(): { [k: string]: any };
7724 }
7725
7726 /** Properties of a HttpRule. */
7727 interface IHttpRule {
7728
7729 /** HttpRule selector */
7730 selector?: (string|null);
7731
7732 /** HttpRule get */
7733 get?: (string|null);
7734
7735 /** HttpRule put */
7736 put?: (string|null);
7737
7738 /** HttpRule post */
7739 post?: (string|null);
7740
7741 /** HttpRule delete */
7742 "delete"?: (string|null);
7743
7744 /** HttpRule patch */
7745 patch?: (string|null);
7746
7747 /** HttpRule custom */
7748 custom?: (google.api.ICustomHttpPattern|null);
7749
7750 /** HttpRule body */
7751 body?: (string|null);
7752
7753 /** HttpRule responseBody */
7754 responseBody?: (string|null);
7755
7756 /** HttpRule additionalBindings */
7757 additionalBindings?: (google.api.IHttpRule[]|null);
7758 }
7759
7760 /** Represents a HttpRule. */
7761 class HttpRule implements IHttpRule {
7762
7763 /**
7764 * Constructs a new HttpRule.
7765 * @param [properties] Properties to set
7766 */
7767 constructor(properties?: google.api.IHttpRule);
7768
7769 /** HttpRule selector. */
7770 public selector: string;
7771
7772 /** HttpRule get. */
7773 public get?: (string|null);
7774
7775 /** HttpRule put. */
7776 public put?: (string|null);
7777
7778 /** HttpRule post. */
7779 public post?: (string|null);
7780
7781 /** HttpRule delete. */
7782 public delete?: (string|null);
7783
7784 /** HttpRule patch. */
7785 public patch?: (string|null);
7786
7787 /** HttpRule custom. */
7788 public custom?: (google.api.ICustomHttpPattern|null);
7789
7790 /** HttpRule body. */
7791 public body: string;
7792
7793 /** HttpRule responseBody. */
7794 public responseBody: string;
7795
7796 /** HttpRule additionalBindings. */
7797 public additionalBindings: google.api.IHttpRule[];
7798
7799 /** HttpRule pattern. */
7800 public pattern?: ("get"|"put"|"post"|"delete"|"patch"|"custom");
7801
7802 /**
7803 * Creates a new HttpRule instance using the specified properties.
7804 * @param [properties] Properties to set
7805 * @returns HttpRule instance
7806 */
7807 public static create(properties?: google.api.IHttpRule): google.api.HttpRule;
7808
7809 /**
7810 * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages.
7811 * @param message HttpRule message or plain object to encode
7812 * @param [writer] Writer to encode to
7813 * @returns Writer
7814 */
7815 public static encode(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer;
7816
7817 /**
7818 * Encodes the specified HttpRule message, length delimited. Does not implicitly {@link google.api.HttpRule.verify|verify} messages.
7819 * @param message HttpRule message or plain object to encode
7820 * @param [writer] Writer to encode to
7821 * @returns Writer
7822 */
7823 public static encodeDelimited(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer;
7824
7825 /**
7826 * Decodes a HttpRule message from the specified reader or buffer.
7827 * @param reader Reader or buffer to decode from
7828 * @param [length] Message length if known beforehand
7829 * @returns HttpRule
7830 * @throws {Error} If the payload is not a reader or valid buffer
7831 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7832 */
7833 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.HttpRule;
7834
7835 /**
7836 * Decodes a HttpRule message from the specified reader or buffer, length delimited.
7837 * @param reader Reader or buffer to decode from
7838 * @returns HttpRule
7839 * @throws {Error} If the payload is not a reader or valid buffer
7840 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7841 */
7842 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.HttpRule;
7843
7844 /**
7845 * Verifies a HttpRule message.
7846 * @param message Plain object to verify
7847 * @returns `null` if valid, otherwise the reason why it is not
7848 */
7849 public static verify(message: { [k: string]: any }): (string|null);
7850
7851 /**
7852 * Creates a HttpRule message from a plain object. Also converts values to their respective internal types.
7853 * @param object Plain object
7854 * @returns HttpRule
7855 */
7856 public static fromObject(object: { [k: string]: any }): google.api.HttpRule;
7857
7858 /**
7859 * Creates a plain object from a HttpRule message. Also converts values to other types if specified.
7860 * @param message HttpRule
7861 * @param [options] Conversion options
7862 * @returns Plain object
7863 */
7864 public static toObject(message: google.api.HttpRule, options?: $protobuf.IConversionOptions): { [k: string]: any };
7865
7866 /**
7867 * Converts this HttpRule to JSON.
7868 * @returns JSON object
7869 */
7870 public toJSON(): { [k: string]: any };
7871 }
7872
7873 /** Properties of a CustomHttpPattern. */
7874 interface ICustomHttpPattern {
7875
7876 /** CustomHttpPattern kind */
7877 kind?: (string|null);
7878
7879 /** CustomHttpPattern path */
7880 path?: (string|null);
7881 }
7882
7883 /** Represents a CustomHttpPattern. */
7884 class CustomHttpPattern implements ICustomHttpPattern {
7885
7886 /**
7887 * Constructs a new CustomHttpPattern.
7888 * @param [properties] Properties to set
7889 */
7890 constructor(properties?: google.api.ICustomHttpPattern);
7891
7892 /** CustomHttpPattern kind. */
7893 public kind: string;
7894
7895 /** CustomHttpPattern path. */
7896 public path: string;
7897
7898 /**
7899 * Creates a new CustomHttpPattern instance using the specified properties.
7900 * @param [properties] Properties to set
7901 * @returns CustomHttpPattern instance
7902 */
7903 public static create(properties?: google.api.ICustomHttpPattern): google.api.CustomHttpPattern;
7904
7905 /**
7906 * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages.
7907 * @param message CustomHttpPattern message or plain object to encode
7908 * @param [writer] Writer to encode to
7909 * @returns Writer
7910 */
7911 public static encode(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer;
7912
7913 /**
7914 * Encodes the specified CustomHttpPattern message, length delimited. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages.
7915 * @param message CustomHttpPattern message or plain object to encode
7916 * @param [writer] Writer to encode to
7917 * @returns Writer
7918 */
7919 public static encodeDelimited(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer;
7920
7921 /**
7922 * Decodes a CustomHttpPattern message from the specified reader or buffer.
7923 * @param reader Reader or buffer to decode from
7924 * @param [length] Message length if known beforehand
7925 * @returns CustomHttpPattern
7926 * @throws {Error} If the payload is not a reader or valid buffer
7927 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7928 */
7929 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.CustomHttpPattern;
7930
7931 /**
7932 * Decodes a CustomHttpPattern message from the specified reader or buffer, length delimited.
7933 * @param reader Reader or buffer to decode from
7934 * @returns CustomHttpPattern
7935 * @throws {Error} If the payload is not a reader or valid buffer
7936 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7937 */
7938 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.CustomHttpPattern;
7939
7940 /**
7941 * Verifies a CustomHttpPattern message.
7942 * @param message Plain object to verify
7943 * @returns `null` if valid, otherwise the reason why it is not
7944 */
7945 public static verify(message: { [k: string]: any }): (string|null);
7946
7947 /**
7948 * Creates a CustomHttpPattern message from a plain object. Also converts values to their respective internal types.
7949 * @param object Plain object
7950 * @returns CustomHttpPattern
7951 */
7952 public static fromObject(object: { [k: string]: any }): google.api.CustomHttpPattern;
7953
7954 /**
7955 * Creates a plain object from a CustomHttpPattern message. Also converts values to other types if specified.
7956 * @param message CustomHttpPattern
7957 * @param [options] Conversion options
7958 * @returns Plain object
7959 */
7960 public static toObject(message: google.api.CustomHttpPattern, options?: $protobuf.IConversionOptions): { [k: string]: any };
7961
7962 /**
7963 * Converts this CustomHttpPattern to JSON.
7964 * @returns JSON object
7965 */
7966 public toJSON(): { [k: string]: any };
7967 }
7968
7969 /** FieldBehavior enum. */
7970 enum FieldBehavior {
7971 FIELD_BEHAVIOR_UNSPECIFIED = 0,
7972 OPTIONAL = 1,
7973 REQUIRED = 2,
7974 OUTPUT_ONLY = 3,
7975 INPUT_ONLY = 4,
7976 IMMUTABLE = 5,
7977 UNORDERED_LIST = 6
7978 }
7979
7980 /** Properties of a ResourceDescriptor. */
7981 interface IResourceDescriptor {
7982
7983 /** ResourceDescriptor type */
7984 type?: (string|null);
7985
7986 /** ResourceDescriptor pattern */
7987 pattern?: (string[]|null);
7988
7989 /** ResourceDescriptor nameField */
7990 nameField?: (string|null);
7991
7992 /** ResourceDescriptor history */
7993 history?: (google.api.ResourceDescriptor.History|keyof typeof google.api.ResourceDescriptor.History|null);
7994
7995 /** ResourceDescriptor plural */
7996 plural?: (string|null);
7997
7998 /** ResourceDescriptor singular */
7999 singular?: (string|null);
8000
8001 /** ResourceDescriptor style */
8002 style?: (google.api.ResourceDescriptor.Style[]|null);
8003 }
8004
8005 /** Represents a ResourceDescriptor. */
8006 class ResourceDescriptor implements IResourceDescriptor {
8007
8008 /**
8009 * Constructs a new ResourceDescriptor.
8010 * @param [properties] Properties to set
8011 */
8012 constructor(properties?: google.api.IResourceDescriptor);
8013
8014 /** ResourceDescriptor type. */
8015 public type: string;
8016
8017 /** ResourceDescriptor pattern. */
8018 public pattern: string[];
8019
8020 /** ResourceDescriptor nameField. */
8021 public nameField: string;
8022
8023 /** ResourceDescriptor history. */
8024 public history: (google.api.ResourceDescriptor.History|keyof typeof google.api.ResourceDescriptor.History);
8025
8026 /** ResourceDescriptor plural. */
8027 public plural: string;
8028
8029 /** ResourceDescriptor singular. */
8030 public singular: string;
8031
8032 /** ResourceDescriptor style. */
8033 public style: google.api.ResourceDescriptor.Style[];
8034
8035 /**
8036 * Creates a new ResourceDescriptor instance using the specified properties.
8037 * @param [properties] Properties to set
8038 * @returns ResourceDescriptor instance
8039 */
8040 public static create(properties?: google.api.IResourceDescriptor): google.api.ResourceDescriptor;
8041
8042 /**
8043 * Encodes the specified ResourceDescriptor message. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages.
8044 * @param message ResourceDescriptor message or plain object to encode
8045 * @param [writer] Writer to encode to
8046 * @returns Writer
8047 */
8048 public static encode(message: google.api.IResourceDescriptor, writer?: $protobuf.Writer): $protobuf.Writer;
8049
8050 /**
8051 * Encodes the specified ResourceDescriptor message, length delimited. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages.
8052 * @param message ResourceDescriptor message or plain object to encode
8053 * @param [writer] Writer to encode to
8054 * @returns Writer
8055 */
8056 public static encodeDelimited(message: google.api.IResourceDescriptor, writer?: $protobuf.Writer): $protobuf.Writer;
8057
8058 /**
8059 * Decodes a ResourceDescriptor message from the specified reader or buffer.
8060 * @param reader Reader or buffer to decode from
8061 * @param [length] Message length if known beforehand
8062 * @returns ResourceDescriptor
8063 * @throws {Error} If the payload is not a reader or valid buffer
8064 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8065 */
8066 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.ResourceDescriptor;
8067
8068 /**
8069 * Decodes a ResourceDescriptor message from the specified reader or buffer, length delimited.
8070 * @param reader Reader or buffer to decode from
8071 * @returns ResourceDescriptor
8072 * @throws {Error} If the payload is not a reader or valid buffer
8073 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8074 */
8075 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.ResourceDescriptor;
8076
8077 /**
8078 * Verifies a ResourceDescriptor message.
8079 * @param message Plain object to verify
8080 * @returns `null` if valid, otherwise the reason why it is not
8081 */
8082 public static verify(message: { [k: string]: any }): (string|null);
8083
8084 /**
8085 * Creates a ResourceDescriptor message from a plain object. Also converts values to their respective internal types.
8086 * @param object Plain object
8087 * @returns ResourceDescriptor
8088 */
8089 public static fromObject(object: { [k: string]: any }): google.api.ResourceDescriptor;
8090
8091 /**
8092 * Creates a plain object from a ResourceDescriptor message. Also converts values to other types if specified.
8093 * @param message ResourceDescriptor
8094 * @param [options] Conversion options
8095 * @returns Plain object
8096 */
8097 public static toObject(message: google.api.ResourceDescriptor, options?: $protobuf.IConversionOptions): { [k: string]: any };
8098
8099 /**
8100 * Converts this ResourceDescriptor to JSON.
8101 * @returns JSON object
8102 */
8103 public toJSON(): { [k: string]: any };
8104 }
8105
8106 namespace ResourceDescriptor {
8107
8108 /** History enum. */
8109 enum History {
8110 HISTORY_UNSPECIFIED = 0,
8111 ORIGINALLY_SINGLE_PATTERN = 1,
8112 FUTURE_MULTI_PATTERN = 2
8113 }
8114
8115 /** Style enum. */
8116 enum Style {
8117 STYLE_UNSPECIFIED = 0,
8118 DECLARATIVE_FRIENDLY = 1
8119 }
8120 }
8121
8122 /** Properties of a ResourceReference. */
8123 interface IResourceReference {
8124
8125 /** ResourceReference type */
8126 type?: (string|null);
8127
8128 /** ResourceReference childType */
8129 childType?: (string|null);
8130 }
8131
8132 /** Represents a ResourceReference. */
8133 class ResourceReference implements IResourceReference {
8134
8135 /**
8136 * Constructs a new ResourceReference.
8137 * @param [properties] Properties to set
8138 */
8139 constructor(properties?: google.api.IResourceReference);
8140
8141 /** ResourceReference type. */
8142 public type: string;
8143
8144 /** ResourceReference childType. */
8145 public childType: string;
8146
8147 /**
8148 * Creates a new ResourceReference instance using the specified properties.
8149 * @param [properties] Properties to set
8150 * @returns ResourceReference instance
8151 */
8152 public static create(properties?: google.api.IResourceReference): google.api.ResourceReference;
8153
8154 /**
8155 * Encodes the specified ResourceReference message. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages.
8156 * @param message ResourceReference message or plain object to encode
8157 * @param [writer] Writer to encode to
8158 * @returns Writer
8159 */
8160 public static encode(message: google.api.IResourceReference, writer?: $protobuf.Writer): $protobuf.Writer;
8161
8162 /**
8163 * Encodes the specified ResourceReference message, length delimited. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages.
8164 * @param message ResourceReference message or plain object to encode
8165 * @param [writer] Writer to encode to
8166 * @returns Writer
8167 */
8168 public static encodeDelimited(message: google.api.IResourceReference, writer?: $protobuf.Writer): $protobuf.Writer;
8169
8170 /**
8171 * Decodes a ResourceReference message from the specified reader or buffer.
8172 * @param reader Reader or buffer to decode from
8173 * @param [length] Message length if known beforehand
8174 * @returns ResourceReference
8175 * @throws {Error} If the payload is not a reader or valid buffer
8176 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8177 */
8178 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.ResourceReference;
8179
8180 /**
8181 * Decodes a ResourceReference message from the specified reader or buffer, length delimited.
8182 * @param reader Reader or buffer to decode from
8183 * @returns ResourceReference
8184 * @throws {Error} If the payload is not a reader or valid buffer
8185 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8186 */
8187 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.ResourceReference;
8188
8189 /**
8190 * Verifies a ResourceReference message.
8191 * @param message Plain object to verify
8192 * @returns `null` if valid, otherwise the reason why it is not
8193 */
8194 public static verify(message: { [k: string]: any }): (string|null);
8195
8196 /**
8197 * Creates a ResourceReference message from a plain object. Also converts values to their respective internal types.
8198 * @param object Plain object
8199 * @returns ResourceReference
8200 */
8201 public static fromObject(object: { [k: string]: any }): google.api.ResourceReference;
8202
8203 /**
8204 * Creates a plain object from a ResourceReference message. Also converts values to other types if specified.
8205 * @param message ResourceReference
8206 * @param [options] Conversion options
8207 * @returns Plain object
8208 */
8209 public static toObject(message: google.api.ResourceReference, options?: $protobuf.IConversionOptions): { [k: string]: any };
8210
8211 /**
8212 * Converts this ResourceReference to JSON.
8213 * @returns JSON object
8214 */
8215 public toJSON(): { [k: string]: any };
8216 }
8217 }
8218
8219 /** Namespace protobuf. */
8220 namespace protobuf {
8221
8222 /** Properties of a FileDescriptorSet. */
8223 interface IFileDescriptorSet {
8224
8225 /** FileDescriptorSet file */
8226 file?: (google.protobuf.IFileDescriptorProto[]|null);
8227 }
8228
8229 /** Represents a FileDescriptorSet. */
8230 class FileDescriptorSet implements IFileDescriptorSet {
8231
8232 /**
8233 * Constructs a new FileDescriptorSet.
8234 * @param [properties] Properties to set
8235 */
8236 constructor(properties?: google.protobuf.IFileDescriptorSet);
8237
8238 /** FileDescriptorSet file. */
8239 public file: google.protobuf.IFileDescriptorProto[];
8240
8241 /**
8242 * Creates a new FileDescriptorSet instance using the specified properties.
8243 * @param [properties] Properties to set
8244 * @returns FileDescriptorSet instance
8245 */
8246 public static create(properties?: google.protobuf.IFileDescriptorSet): google.protobuf.FileDescriptorSet;
8247
8248 /**
8249 * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages.
8250 * @param message FileDescriptorSet message or plain object to encode
8251 * @param [writer] Writer to encode to
8252 * @returns Writer
8253 */
8254 public static encode(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer;
8255
8256 /**
8257 * Encodes the specified FileDescriptorSet message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages.
8258 * @param message FileDescriptorSet message or plain object to encode
8259 * @param [writer] Writer to encode to
8260 * @returns Writer
8261 */
8262 public static encodeDelimited(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer;
8263
8264 /**
8265 * Decodes a FileDescriptorSet message from the specified reader or buffer.
8266 * @param reader Reader or buffer to decode from
8267 * @param [length] Message length if known beforehand
8268 * @returns FileDescriptorSet
8269 * @throws {Error} If the payload is not a reader or valid buffer
8270 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8271 */
8272 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorSet;
8273
8274 /**
8275 * Decodes a FileDescriptorSet message from the specified reader or buffer, length delimited.
8276 * @param reader Reader or buffer to decode from
8277 * @returns FileDescriptorSet
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 decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileDescriptorSet;
8282
8283 /**
8284 * Verifies a FileDescriptorSet message.
8285 * @param message Plain object to verify
8286 * @returns `null` if valid, otherwise the reason why it is not
8287 */
8288 public static verify(message: { [k: string]: any }): (string|null);
8289
8290 /**
8291 * Creates a FileDescriptorSet message from a plain object. Also converts values to their respective internal types.
8292 * @param object Plain object
8293 * @returns FileDescriptorSet
8294 */
8295 public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorSet;
8296
8297 /**
8298 * Creates a plain object from a FileDescriptorSet message. Also converts values to other types if specified.
8299 * @param message FileDescriptorSet
8300 * @param [options] Conversion options
8301 * @returns Plain object
8302 */
8303 public static toObject(message: google.protobuf.FileDescriptorSet, options?: $protobuf.IConversionOptions): { [k: string]: any };
8304
8305 /**
8306 * Converts this FileDescriptorSet to JSON.
8307 * @returns JSON object
8308 */
8309 public toJSON(): { [k: string]: any };
8310 }
8311
8312 /** Properties of a FileDescriptorProto. */
8313 interface IFileDescriptorProto {
8314
8315 /** FileDescriptorProto name */
8316 name?: (string|null);
8317
8318 /** FileDescriptorProto package */
8319 "package"?: (string|null);
8320
8321 /** FileDescriptorProto dependency */
8322 dependency?: (string[]|null);
8323
8324 /** FileDescriptorProto publicDependency */
8325 publicDependency?: (number[]|null);
8326
8327 /** FileDescriptorProto weakDependency */
8328 weakDependency?: (number[]|null);
8329
8330 /** FileDescriptorProto messageType */
8331 messageType?: (google.protobuf.IDescriptorProto[]|null);
8332
8333 /** FileDescriptorProto enumType */
8334 enumType?: (google.protobuf.IEnumDescriptorProto[]|null);
8335
8336 /** FileDescriptorProto service */
8337 service?: (google.protobuf.IServiceDescriptorProto[]|null);
8338
8339 /** FileDescriptorProto extension */
8340 extension?: (google.protobuf.IFieldDescriptorProto[]|null);
8341
8342 /** FileDescriptorProto options */
8343 options?: (google.protobuf.IFileOptions|null);
8344
8345 /** FileDescriptorProto sourceCodeInfo */
8346 sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null);
8347
8348 /** FileDescriptorProto syntax */
8349 syntax?: (string|null);
8350 }
8351
8352 /** Represents a FileDescriptorProto. */
8353 class FileDescriptorProto implements IFileDescriptorProto {
8354
8355 /**
8356 * Constructs a new FileDescriptorProto.
8357 * @param [properties] Properties to set
8358 */
8359 constructor(properties?: google.protobuf.IFileDescriptorProto);
8360
8361 /** FileDescriptorProto name. */
8362 public name: string;
8363
8364 /** FileDescriptorProto package. */
8365 public package: string;
8366
8367 /** FileDescriptorProto dependency. */
8368 public dependency: string[];
8369
8370 /** FileDescriptorProto publicDependency. */
8371 public publicDependency: number[];
8372
8373 /** FileDescriptorProto weakDependency. */
8374 public weakDependency: number[];
8375
8376 /** FileDescriptorProto messageType. */
8377 public messageType: google.protobuf.IDescriptorProto[];
8378
8379 /** FileDescriptorProto enumType. */
8380 public enumType: google.protobuf.IEnumDescriptorProto[];
8381
8382 /** FileDescriptorProto service. */
8383 public service: google.protobuf.IServiceDescriptorProto[];
8384
8385 /** FileDescriptorProto extension. */
8386 public extension: google.protobuf.IFieldDescriptorProto[];
8387
8388 /** FileDescriptorProto options. */
8389 public options?: (google.protobuf.IFileOptions|null);
8390
8391 /** FileDescriptorProto sourceCodeInfo. */
8392 public sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null);
8393
8394 /** FileDescriptorProto syntax. */
8395 public syntax: string;
8396
8397 /**
8398 * Creates a new FileDescriptorProto instance using the specified properties.
8399 * @param [properties] Properties to set
8400 * @returns FileDescriptorProto instance
8401 */
8402 public static create(properties?: google.protobuf.IFileDescriptorProto): google.protobuf.FileDescriptorProto;
8403
8404 /**
8405 * Encodes the specified FileDescriptorProto message. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages.
8406 * @param message FileDescriptorProto message or plain object to encode
8407 * @param [writer] Writer to encode to
8408 * @returns Writer
8409 */
8410 public static encode(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
8411
8412 /**
8413 * Encodes the specified FileDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages.
8414 * @param message FileDescriptorProto message or plain object to encode
8415 * @param [writer] Writer to encode to
8416 * @returns Writer
8417 */
8418 public static encodeDelimited(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
8419
8420 /**
8421 * Decodes a FileDescriptorProto message from the specified reader or buffer.
8422 * @param reader Reader or buffer to decode from
8423 * @param [length] Message length if known beforehand
8424 * @returns FileDescriptorProto
8425 * @throws {Error} If the payload is not a reader or valid buffer
8426 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8427 */
8428 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorProto;
8429
8430 /**
8431 * Decodes a FileDescriptorProto message from the specified reader or buffer, length delimited.
8432 * @param reader Reader or buffer to decode from
8433 * @returns FileDescriptorProto
8434 * @throws {Error} If the payload is not a reader or valid buffer
8435 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8436 */
8437 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileDescriptorProto;
8438
8439 /**
8440 * Verifies a FileDescriptorProto message.
8441 * @param message Plain object to verify
8442 * @returns `null` if valid, otherwise the reason why it is not
8443 */
8444 public static verify(message: { [k: string]: any }): (string|null);
8445
8446 /**
8447 * Creates a FileDescriptorProto message from a plain object. Also converts values to their respective internal types.
8448 * @param object Plain object
8449 * @returns FileDescriptorProto
8450 */
8451 public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorProto;
8452
8453 /**
8454 * Creates a plain object from a FileDescriptorProto message. Also converts values to other types if specified.
8455 * @param message FileDescriptorProto
8456 * @param [options] Conversion options
8457 * @returns Plain object
8458 */
8459 public static toObject(message: google.protobuf.FileDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
8460
8461 /**
8462 * Converts this FileDescriptorProto to JSON.
8463 * @returns JSON object
8464 */
8465 public toJSON(): { [k: string]: any };
8466 }
8467
8468 /** Properties of a DescriptorProto. */
8469 interface IDescriptorProto {
8470
8471 /** DescriptorProto name */
8472 name?: (string|null);
8473
8474 /** DescriptorProto field */
8475 field?: (google.protobuf.IFieldDescriptorProto[]|null);
8476
8477 /** DescriptorProto extension */
8478 extension?: (google.protobuf.IFieldDescriptorProto[]|null);
8479
8480 /** DescriptorProto nestedType */
8481 nestedType?: (google.protobuf.IDescriptorProto[]|null);
8482
8483 /** DescriptorProto enumType */
8484 enumType?: (google.protobuf.IEnumDescriptorProto[]|null);
8485
8486 /** DescriptorProto extensionRange */
8487 extensionRange?: (google.protobuf.DescriptorProto.IExtensionRange[]|null);
8488
8489 /** DescriptorProto oneofDecl */
8490 oneofDecl?: (google.protobuf.IOneofDescriptorProto[]|null);
8491
8492 /** DescriptorProto options */
8493 options?: (google.protobuf.IMessageOptions|null);
8494
8495 /** DescriptorProto reservedRange */
8496 reservedRange?: (google.protobuf.DescriptorProto.IReservedRange[]|null);
8497
8498 /** DescriptorProto reservedName */
8499 reservedName?: (string[]|null);
8500 }
8501
8502 /** Represents a DescriptorProto. */
8503 class DescriptorProto implements IDescriptorProto {
8504
8505 /**
8506 * Constructs a new DescriptorProto.
8507 * @param [properties] Properties to set
8508 */
8509 constructor(properties?: google.protobuf.IDescriptorProto);
8510
8511 /** DescriptorProto name. */
8512 public name: string;
8513
8514 /** DescriptorProto field. */
8515 public field: google.protobuf.IFieldDescriptorProto[];
8516
8517 /** DescriptorProto extension. */
8518 public extension: google.protobuf.IFieldDescriptorProto[];
8519
8520 /** DescriptorProto nestedType. */
8521 public nestedType: google.protobuf.IDescriptorProto[];
8522
8523 /** DescriptorProto enumType. */
8524 public enumType: google.protobuf.IEnumDescriptorProto[];
8525
8526 /** DescriptorProto extensionRange. */
8527 public extensionRange: google.protobuf.DescriptorProto.IExtensionRange[];
8528
8529 /** DescriptorProto oneofDecl. */
8530 public oneofDecl: google.protobuf.IOneofDescriptorProto[];
8531
8532 /** DescriptorProto options. */
8533 public options?: (google.protobuf.IMessageOptions|null);
8534
8535 /** DescriptorProto reservedRange. */
8536 public reservedRange: google.protobuf.DescriptorProto.IReservedRange[];
8537
8538 /** DescriptorProto reservedName. */
8539 public reservedName: string[];
8540
8541 /**
8542 * Creates a new DescriptorProto instance using the specified properties.
8543 * @param [properties] Properties to set
8544 * @returns DescriptorProto instance
8545 */
8546 public static create(properties?: google.protobuf.IDescriptorProto): google.protobuf.DescriptorProto;
8547
8548 /**
8549 * Encodes the specified DescriptorProto message. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages.
8550 * @param message DescriptorProto message or plain object to encode
8551 * @param [writer] Writer to encode to
8552 * @returns Writer
8553 */
8554 public static encode(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
8555
8556 /**
8557 * Encodes the specified DescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages.
8558 * @param message DescriptorProto message or plain object to encode
8559 * @param [writer] Writer to encode to
8560 * @returns Writer
8561 */
8562 public static encodeDelimited(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
8563
8564 /**
8565 * Decodes a DescriptorProto message from the specified reader or buffer.
8566 * @param reader Reader or buffer to decode from
8567 * @param [length] Message length if known beforehand
8568 * @returns DescriptorProto
8569 * @throws {Error} If the payload is not a reader or valid buffer
8570 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8571 */
8572 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto;
8573
8574 /**
8575 * Decodes a DescriptorProto message from the specified reader or buffer, length delimited.
8576 * @param reader Reader or buffer to decode from
8577 * @returns DescriptorProto
8578 * @throws {Error} If the payload is not a reader or valid buffer
8579 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8580 */
8581 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto;
8582
8583 /**
8584 * Verifies a DescriptorProto message.
8585 * @param message Plain object to verify
8586 * @returns `null` if valid, otherwise the reason why it is not
8587 */
8588 public static verify(message: { [k: string]: any }): (string|null);
8589
8590 /**
8591 * Creates a DescriptorProto message from a plain object. Also converts values to their respective internal types.
8592 * @param object Plain object
8593 * @returns DescriptorProto
8594 */
8595 public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto;
8596
8597 /**
8598 * Creates a plain object from a DescriptorProto message. Also converts values to other types if specified.
8599 * @param message DescriptorProto
8600 * @param [options] Conversion options
8601 * @returns Plain object
8602 */
8603 public static toObject(message: google.protobuf.DescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
8604
8605 /**
8606 * Converts this DescriptorProto to JSON.
8607 * @returns JSON object
8608 */
8609 public toJSON(): { [k: string]: any };
8610 }
8611
8612 namespace DescriptorProto {
8613
8614 /** Properties of an ExtensionRange. */
8615 interface IExtensionRange {
8616
8617 /** ExtensionRange start */
8618 start?: (number|null);
8619
8620 /** ExtensionRange end */
8621 end?: (number|null);
8622
8623 /** ExtensionRange options */
8624 options?: (google.protobuf.IExtensionRangeOptions|null);
8625 }
8626
8627 /** Represents an ExtensionRange. */
8628 class ExtensionRange implements IExtensionRange {
8629
8630 /**
8631 * Constructs a new ExtensionRange.
8632 * @param [properties] Properties to set
8633 */
8634 constructor(properties?: google.protobuf.DescriptorProto.IExtensionRange);
8635
8636 /** ExtensionRange start. */
8637 public start: number;
8638
8639 /** ExtensionRange end. */
8640 public end: number;
8641
8642 /** ExtensionRange options. */
8643 public options?: (google.protobuf.IExtensionRangeOptions|null);
8644
8645 /**
8646 * Creates a new ExtensionRange instance using the specified properties.
8647 * @param [properties] Properties to set
8648 * @returns ExtensionRange instance
8649 */
8650 public static create(properties?: google.protobuf.DescriptorProto.IExtensionRange): google.protobuf.DescriptorProto.ExtensionRange;
8651
8652 /**
8653 * Encodes the specified ExtensionRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages.
8654 * @param message ExtensionRange message or plain object to encode
8655 * @param [writer] Writer to encode to
8656 * @returns Writer
8657 */
8658 public static encode(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer;
8659
8660 /**
8661 * Encodes the specified ExtensionRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages.
8662 * @param message ExtensionRange message or plain object to encode
8663 * @param [writer] Writer to encode to
8664 * @returns Writer
8665 */
8666 public static encodeDelimited(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer;
8667
8668 /**
8669 * Decodes an ExtensionRange message from the specified reader or buffer.
8670 * @param reader Reader or buffer to decode from
8671 * @param [length] Message length if known beforehand
8672 * @returns ExtensionRange
8673 * @throws {Error} If the payload is not a reader or valid buffer
8674 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8675 */
8676 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto.ExtensionRange;
8677
8678 /**
8679 * Decodes an ExtensionRange message from the specified reader or buffer, length delimited.
8680 * @param reader Reader or buffer to decode from
8681 * @returns ExtensionRange
8682 * @throws {Error} If the payload is not a reader or valid buffer
8683 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8684 */
8685 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto.ExtensionRange;
8686
8687 /**
8688 * Verifies an ExtensionRange message.
8689 * @param message Plain object to verify
8690 * @returns `null` if valid, otherwise the reason why it is not
8691 */
8692 public static verify(message: { [k: string]: any }): (string|null);
8693
8694 /**
8695 * Creates an ExtensionRange message from a plain object. Also converts values to their respective internal types.
8696 * @param object Plain object
8697 * @returns ExtensionRange
8698 */
8699 public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ExtensionRange;
8700
8701 /**
8702 * Creates a plain object from an ExtensionRange message. Also converts values to other types if specified.
8703 * @param message ExtensionRange
8704 * @param [options] Conversion options
8705 * @returns Plain object
8706 */
8707 public static toObject(message: google.protobuf.DescriptorProto.ExtensionRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
8708
8709 /**
8710 * Converts this ExtensionRange to JSON.
8711 * @returns JSON object
8712 */
8713 public toJSON(): { [k: string]: any };
8714 }
8715
8716 /** Properties of a ReservedRange. */
8717 interface IReservedRange {
8718
8719 /** ReservedRange start */
8720 start?: (number|null);
8721
8722 /** ReservedRange end */
8723 end?: (number|null);
8724 }
8725
8726 /** Represents a ReservedRange. */
8727 class ReservedRange implements IReservedRange {
8728
8729 /**
8730 * Constructs a new ReservedRange.
8731 * @param [properties] Properties to set
8732 */
8733 constructor(properties?: google.protobuf.DescriptorProto.IReservedRange);
8734
8735 /** ReservedRange start. */
8736 public start: number;
8737
8738 /** ReservedRange end. */
8739 public end: number;
8740
8741 /**
8742 * Creates a new ReservedRange instance using the specified properties.
8743 * @param [properties] Properties to set
8744 * @returns ReservedRange instance
8745 */
8746 public static create(properties?: google.protobuf.DescriptorProto.IReservedRange): google.protobuf.DescriptorProto.ReservedRange;
8747
8748 /**
8749 * Encodes the specified ReservedRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages.
8750 * @param message ReservedRange message or plain object to encode
8751 * @param [writer] Writer to encode to
8752 * @returns Writer
8753 */
8754 public static encode(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
8755
8756 /**
8757 * Encodes the specified ReservedRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages.
8758 * @param message ReservedRange message or plain object to encode
8759 * @param [writer] Writer to encode to
8760 * @returns Writer
8761 */
8762 public static encodeDelimited(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
8763
8764 /**
8765 * Decodes a ReservedRange message from the specified reader or buffer.
8766 * @param reader Reader or buffer to decode from
8767 * @param [length] Message length if known beforehand
8768 * @returns ReservedRange
8769 * @throws {Error} If the payload is not a reader or valid buffer
8770 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8771 */
8772 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto.ReservedRange;
8773
8774 /**
8775 * Decodes a ReservedRange message from the specified reader or buffer, length delimited.
8776 * @param reader Reader or buffer to decode from
8777 * @returns ReservedRange
8778 * @throws {Error} If the payload is not a reader or valid buffer
8779 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8780 */
8781 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto.ReservedRange;
8782
8783 /**
8784 * Verifies a ReservedRange message.
8785 * @param message Plain object to verify
8786 * @returns `null` if valid, otherwise the reason why it is not
8787 */
8788 public static verify(message: { [k: string]: any }): (string|null);
8789
8790 /**
8791 * Creates a ReservedRange message from a plain object. Also converts values to their respective internal types.
8792 * @param object Plain object
8793 * @returns ReservedRange
8794 */
8795 public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ReservedRange;
8796
8797 /**
8798 * Creates a plain object from a ReservedRange message. Also converts values to other types if specified.
8799 * @param message ReservedRange
8800 * @param [options] Conversion options
8801 * @returns Plain object
8802 */
8803 public static toObject(message: google.protobuf.DescriptorProto.ReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
8804
8805 /**
8806 * Converts this ReservedRange to JSON.
8807 * @returns JSON object
8808 */
8809 public toJSON(): { [k: string]: any };
8810 }
8811 }
8812
8813 /** Properties of an ExtensionRangeOptions. */
8814 interface IExtensionRangeOptions {
8815
8816 /** ExtensionRangeOptions uninterpretedOption */
8817 uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
8818 }
8819
8820 /** Represents an ExtensionRangeOptions. */
8821 class ExtensionRangeOptions implements IExtensionRangeOptions {
8822
8823 /**
8824 * Constructs a new ExtensionRangeOptions.
8825 * @param [properties] Properties to set
8826 */
8827 constructor(properties?: google.protobuf.IExtensionRangeOptions);
8828
8829 /** ExtensionRangeOptions uninterpretedOption. */
8830 public uninterpretedOption: google.protobuf.IUninterpretedOption[];
8831
8832 /**
8833 * Creates a new ExtensionRangeOptions instance using the specified properties.
8834 * @param [properties] Properties to set
8835 * @returns ExtensionRangeOptions instance
8836 */
8837 public static create(properties?: google.protobuf.IExtensionRangeOptions): google.protobuf.ExtensionRangeOptions;
8838
8839 /**
8840 * Encodes the specified ExtensionRangeOptions message. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages.
8841 * @param message ExtensionRangeOptions message or plain object to encode
8842 * @param [writer] Writer to encode to
8843 * @returns Writer
8844 */
8845 public static encode(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer;
8846
8847 /**
8848 * Encodes the specified ExtensionRangeOptions message, length delimited. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages.
8849 * @param message ExtensionRangeOptions message or plain object to encode
8850 * @param [writer] Writer to encode to
8851 * @returns Writer
8852 */
8853 public static encodeDelimited(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer;
8854
8855 /**
8856 * Decodes an ExtensionRangeOptions message from the specified reader or buffer.
8857 * @param reader Reader or buffer to decode from
8858 * @param [length] Message length if known beforehand
8859 * @returns ExtensionRangeOptions
8860 * @throws {Error} If the payload is not a reader or valid buffer
8861 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8862 */
8863 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ExtensionRangeOptions;
8864
8865 /**
8866 * Decodes an ExtensionRangeOptions message from the specified reader or buffer, length delimited.
8867 * @param reader Reader or buffer to decode from
8868 * @returns ExtensionRangeOptions
8869 * @throws {Error} If the payload is not a reader or valid buffer
8870 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8871 */
8872 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ExtensionRangeOptions;
8873
8874 /**
8875 * Verifies an ExtensionRangeOptions message.
8876 * @param message Plain object to verify
8877 * @returns `null` if valid, otherwise the reason why it is not
8878 */
8879 public static verify(message: { [k: string]: any }): (string|null);
8880
8881 /**
8882 * Creates an ExtensionRangeOptions message from a plain object. Also converts values to their respective internal types.
8883 * @param object Plain object
8884 * @returns ExtensionRangeOptions
8885 */
8886 public static fromObject(object: { [k: string]: any }): google.protobuf.ExtensionRangeOptions;
8887
8888 /**
8889 * Creates a plain object from an ExtensionRangeOptions message. Also converts values to other types if specified.
8890 * @param message ExtensionRangeOptions
8891 * @param [options] Conversion options
8892 * @returns Plain object
8893 */
8894 public static toObject(message: google.protobuf.ExtensionRangeOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
8895
8896 /**
8897 * Converts this ExtensionRangeOptions to JSON.
8898 * @returns JSON object
8899 */
8900 public toJSON(): { [k: string]: any };
8901 }
8902
8903 /** Properties of a FieldDescriptorProto. */
8904 interface IFieldDescriptorProto {
8905
8906 /** FieldDescriptorProto name */
8907 name?: (string|null);
8908
8909 /** FieldDescriptorProto number */
8910 number?: (number|null);
8911
8912 /** FieldDescriptorProto label */
8913 label?: (google.protobuf.FieldDescriptorProto.Label|keyof typeof google.protobuf.FieldDescriptorProto.Label|null);
8914
8915 /** FieldDescriptorProto type */
8916 type?: (google.protobuf.FieldDescriptorProto.Type|keyof typeof google.protobuf.FieldDescriptorProto.Type|null);
8917
8918 /** FieldDescriptorProto typeName */
8919 typeName?: (string|null);
8920
8921 /** FieldDescriptorProto extendee */
8922 extendee?: (string|null);
8923
8924 /** FieldDescriptorProto defaultValue */
8925 defaultValue?: (string|null);
8926
8927 /** FieldDescriptorProto oneofIndex */
8928 oneofIndex?: (number|null);
8929
8930 /** FieldDescriptorProto jsonName */
8931 jsonName?: (string|null);
8932
8933 /** FieldDescriptorProto options */
8934 options?: (google.protobuf.IFieldOptions|null);
8935
8936 /** FieldDescriptorProto proto3Optional */
8937 proto3Optional?: (boolean|null);
8938 }
8939
8940 /** Represents a FieldDescriptorProto. */
8941 class FieldDescriptorProto implements IFieldDescriptorProto {
8942
8943 /**
8944 * Constructs a new FieldDescriptorProto.
8945 * @param [properties] Properties to set
8946 */
8947 constructor(properties?: google.protobuf.IFieldDescriptorProto);
8948
8949 /** FieldDescriptorProto name. */
8950 public name: string;
8951
8952 /** FieldDescriptorProto number. */
8953 public number: number;
8954
8955 /** FieldDescriptorProto label. */
8956 public label: (google.protobuf.FieldDescriptorProto.Label|keyof typeof google.protobuf.FieldDescriptorProto.Label);
8957
8958 /** FieldDescriptorProto type. */
8959 public type: (google.protobuf.FieldDescriptorProto.Type|keyof typeof google.protobuf.FieldDescriptorProto.Type);
8960
8961 /** FieldDescriptorProto typeName. */
8962 public typeName: string;
8963
8964 /** FieldDescriptorProto extendee. */
8965 public extendee: string;
8966
8967 /** FieldDescriptorProto defaultValue. */
8968 public defaultValue: string;
8969
8970 /** FieldDescriptorProto oneofIndex. */
8971 public oneofIndex: number;
8972
8973 /** FieldDescriptorProto jsonName. */
8974 public jsonName: string;
8975
8976 /** FieldDescriptorProto options. */
8977 public options?: (google.protobuf.IFieldOptions|null);
8978
8979 /** FieldDescriptorProto proto3Optional. */
8980 public proto3Optional: boolean;
8981
8982 /**
8983 * Creates a new FieldDescriptorProto instance using the specified properties.
8984 * @param [properties] Properties to set
8985 * @returns FieldDescriptorProto instance
8986 */
8987 public static create(properties?: google.protobuf.IFieldDescriptorProto): google.protobuf.FieldDescriptorProto;
8988
8989 /**
8990 * Encodes the specified FieldDescriptorProto message. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages.
8991 * @param message FieldDescriptorProto message or plain object to encode
8992 * @param [writer] Writer to encode to
8993 * @returns Writer
8994 */
8995 public static encode(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
8996
8997 /**
8998 * Encodes the specified FieldDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages.
8999 * @param message FieldDescriptorProto message or plain object to encode
9000 * @param [writer] Writer to encode to
9001 * @returns Writer
9002 */
9003 public static encodeDelimited(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
9004
9005 /**
9006 * Decodes a FieldDescriptorProto message from the specified reader or buffer.
9007 * @param reader Reader or buffer to decode from
9008 * @param [length] Message length if known beforehand
9009 * @returns FieldDescriptorProto
9010 * @throws {Error} If the payload is not a reader or valid buffer
9011 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9012 */
9013 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldDescriptorProto;
9014
9015 /**
9016 * Decodes a FieldDescriptorProto message from the specified reader or buffer, length delimited.
9017 * @param reader Reader or buffer to decode from
9018 * @returns FieldDescriptorProto
9019 * @throws {Error} If the payload is not a reader or valid buffer
9020 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9021 */
9022 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldDescriptorProto;
9023
9024 /**
9025 * Verifies a FieldDescriptorProto message.
9026 * @param message Plain object to verify
9027 * @returns `null` if valid, otherwise the reason why it is not
9028 */
9029 public static verify(message: { [k: string]: any }): (string|null);
9030
9031 /**
9032 * Creates a FieldDescriptorProto message from a plain object. Also converts values to their respective internal types.
9033 * @param object Plain object
9034 * @returns FieldDescriptorProto
9035 */
9036 public static fromObject(object: { [k: string]: any }): google.protobuf.FieldDescriptorProto;
9037
9038 /**
9039 * Creates a plain object from a FieldDescriptorProto message. Also converts values to other types if specified.
9040 * @param message FieldDescriptorProto
9041 * @param [options] Conversion options
9042 * @returns Plain object
9043 */
9044 public static toObject(message: google.protobuf.FieldDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
9045
9046 /**
9047 * Converts this FieldDescriptorProto to JSON.
9048 * @returns JSON object
9049 */
9050 public toJSON(): { [k: string]: any };
9051 }
9052
9053 namespace FieldDescriptorProto {
9054
9055 /** Type enum. */
9056 enum Type {
9057 TYPE_DOUBLE = 1,
9058 TYPE_FLOAT = 2,
9059 TYPE_INT64 = 3,
9060 TYPE_UINT64 = 4,
9061 TYPE_INT32 = 5,
9062 TYPE_FIXED64 = 6,
9063 TYPE_FIXED32 = 7,
9064 TYPE_BOOL = 8,
9065 TYPE_STRING = 9,
9066 TYPE_GROUP = 10,
9067 TYPE_MESSAGE = 11,
9068 TYPE_BYTES = 12,
9069 TYPE_UINT32 = 13,
9070 TYPE_ENUM = 14,
9071 TYPE_SFIXED32 = 15,
9072 TYPE_SFIXED64 = 16,
9073 TYPE_SINT32 = 17,
9074 TYPE_SINT64 = 18
9075 }
9076
9077 /** Label enum. */
9078 enum Label {
9079 LABEL_OPTIONAL = 1,
9080 LABEL_REQUIRED = 2,
9081 LABEL_REPEATED = 3
9082 }
9083 }
9084
9085 /** Properties of an OneofDescriptorProto. */
9086 interface IOneofDescriptorProto {
9087
9088 /** OneofDescriptorProto name */
9089 name?: (string|null);
9090
9091 /** OneofDescriptorProto options */
9092 options?: (google.protobuf.IOneofOptions|null);
9093 }
9094
9095 /** Represents an OneofDescriptorProto. */
9096 class OneofDescriptorProto implements IOneofDescriptorProto {
9097
9098 /**
9099 * Constructs a new OneofDescriptorProto.
9100 * @param [properties] Properties to set
9101 */
9102 constructor(properties?: google.protobuf.IOneofDescriptorProto);
9103
9104 /** OneofDescriptorProto name. */
9105 public name: string;
9106
9107 /** OneofDescriptorProto options. */
9108 public options?: (google.protobuf.IOneofOptions|null);
9109
9110 /**
9111 * Creates a new OneofDescriptorProto instance using the specified properties.
9112 * @param [properties] Properties to set
9113 * @returns OneofDescriptorProto instance
9114 */
9115 public static create(properties?: google.protobuf.IOneofDescriptorProto): google.protobuf.OneofDescriptorProto;
9116
9117 /**
9118 * Encodes the specified OneofDescriptorProto message. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages.
9119 * @param message OneofDescriptorProto message or plain object to encode
9120 * @param [writer] Writer to encode to
9121 * @returns Writer
9122 */
9123 public static encode(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
9124
9125 /**
9126 * Encodes the specified OneofDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages.
9127 * @param message OneofDescriptorProto message or plain object to encode
9128 * @param [writer] Writer to encode to
9129 * @returns Writer
9130 */
9131 public static encodeDelimited(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
9132
9133 /**
9134 * Decodes an OneofDescriptorProto message from the specified reader or buffer.
9135 * @param reader Reader or buffer to decode from
9136 * @param [length] Message length if known beforehand
9137 * @returns OneofDescriptorProto
9138 * @throws {Error} If the payload is not a reader or valid buffer
9139 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9140 */
9141 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofDescriptorProto;
9142
9143 /**
9144 * Decodes an OneofDescriptorProto message from the specified reader or buffer, length delimited.
9145 * @param reader Reader or buffer to decode from
9146 * @returns OneofDescriptorProto
9147 * @throws {Error} If the payload is not a reader or valid buffer
9148 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9149 */
9150 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.OneofDescriptorProto;
9151
9152 /**
9153 * Verifies an OneofDescriptorProto message.
9154 * @param message Plain object to verify
9155 * @returns `null` if valid, otherwise the reason why it is not
9156 */
9157 public static verify(message: { [k: string]: any }): (string|null);
9158
9159 /**
9160 * Creates an OneofDescriptorProto message from a plain object. Also converts values to their respective internal types.
9161 * @param object Plain object
9162 * @returns OneofDescriptorProto
9163 */
9164 public static fromObject(object: { [k: string]: any }): google.protobuf.OneofDescriptorProto;
9165
9166 /**
9167 * Creates a plain object from an OneofDescriptorProto message. Also converts values to other types if specified.
9168 * @param message OneofDescriptorProto
9169 * @param [options] Conversion options
9170 * @returns Plain object
9171 */
9172 public static toObject(message: google.protobuf.OneofDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
9173
9174 /**
9175 * Converts this OneofDescriptorProto to JSON.
9176 * @returns JSON object
9177 */
9178 public toJSON(): { [k: string]: any };
9179 }
9180
9181 /** Properties of an EnumDescriptorProto. */
9182 interface IEnumDescriptorProto {
9183
9184 /** EnumDescriptorProto name */
9185 name?: (string|null);
9186
9187 /** EnumDescriptorProto value */
9188 value?: (google.protobuf.IEnumValueDescriptorProto[]|null);
9189
9190 /** EnumDescriptorProto options */
9191 options?: (google.protobuf.IEnumOptions|null);
9192
9193 /** EnumDescriptorProto reservedRange */
9194 reservedRange?: (google.protobuf.EnumDescriptorProto.IEnumReservedRange[]|null);
9195
9196 /** EnumDescriptorProto reservedName */
9197 reservedName?: (string[]|null);
9198 }
9199
9200 /** Represents an EnumDescriptorProto. */
9201 class EnumDescriptorProto implements IEnumDescriptorProto {
9202
9203 /**
9204 * Constructs a new EnumDescriptorProto.
9205 * @param [properties] Properties to set
9206 */
9207 constructor(properties?: google.protobuf.IEnumDescriptorProto);
9208
9209 /** EnumDescriptorProto name. */
9210 public name: string;
9211
9212 /** EnumDescriptorProto value. */
9213 public value: google.protobuf.IEnumValueDescriptorProto[];
9214
9215 /** EnumDescriptorProto options. */
9216 public options?: (google.protobuf.IEnumOptions|null);
9217
9218 /** EnumDescriptorProto reservedRange. */
9219 public reservedRange: google.protobuf.EnumDescriptorProto.IEnumReservedRange[];
9220
9221 /** EnumDescriptorProto reservedName. */
9222 public reservedName: string[];
9223
9224 /**
9225 * Creates a new EnumDescriptorProto instance using the specified properties.
9226 * @param [properties] Properties to set
9227 * @returns EnumDescriptorProto instance
9228 */
9229 public static create(properties?: google.protobuf.IEnumDescriptorProto): google.protobuf.EnumDescriptorProto;
9230
9231 /**
9232 * Encodes the specified EnumDescriptorProto message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages.
9233 * @param message EnumDescriptorProto message or plain object to encode
9234 * @param [writer] Writer to encode to
9235 * @returns Writer
9236 */
9237 public static encode(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
9238
9239 /**
9240 * Encodes the specified EnumDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages.
9241 * @param message EnumDescriptorProto message or plain object to encode
9242 * @param [writer] Writer to encode to
9243 * @returns Writer
9244 */
9245 public static encodeDelimited(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
9246
9247 /**
9248 * Decodes an EnumDescriptorProto message from the specified reader or buffer.
9249 * @param reader Reader or buffer to decode from
9250 * @param [length] Message length if known beforehand
9251 * @returns EnumDescriptorProto
9252 * @throws {Error} If the payload is not a reader or valid buffer
9253 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9254 */
9255 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumDescriptorProto;
9256
9257 /**
9258 * Decodes an EnumDescriptorProto message from the specified reader or buffer, length delimited.
9259 * @param reader Reader or buffer to decode from
9260 * @returns EnumDescriptorProto
9261 * @throws {Error} If the payload is not a reader or valid buffer
9262 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9263 */
9264 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumDescriptorProto;
9265
9266 /**
9267 * Verifies an EnumDescriptorProto message.
9268 * @param message Plain object to verify
9269 * @returns `null` if valid, otherwise the reason why it is not
9270 */
9271 public static verify(message: { [k: string]: any }): (string|null);
9272
9273 /**
9274 * Creates an EnumDescriptorProto message from a plain object. Also converts values to their respective internal types.
9275 * @param object Plain object
9276 * @returns EnumDescriptorProto
9277 */
9278 public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto;
9279
9280 /**
9281 * Creates a plain object from an EnumDescriptorProto message. Also converts values to other types if specified.
9282 * @param message EnumDescriptorProto
9283 * @param [options] Conversion options
9284 * @returns Plain object
9285 */
9286 public static toObject(message: google.protobuf.EnumDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
9287
9288 /**
9289 * Converts this EnumDescriptorProto to JSON.
9290 * @returns JSON object
9291 */
9292 public toJSON(): { [k: string]: any };
9293 }
9294
9295 namespace EnumDescriptorProto {
9296
9297 /** Properties of an EnumReservedRange. */
9298 interface IEnumReservedRange {
9299
9300 /** EnumReservedRange start */
9301 start?: (number|null);
9302
9303 /** EnumReservedRange end */
9304 end?: (number|null);
9305 }
9306
9307 /** Represents an EnumReservedRange. */
9308 class EnumReservedRange implements IEnumReservedRange {
9309
9310 /**
9311 * Constructs a new EnumReservedRange.
9312 * @param [properties] Properties to set
9313 */
9314 constructor(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange);
9315
9316 /** EnumReservedRange start. */
9317 public start: number;
9318
9319 /** EnumReservedRange end. */
9320 public end: number;
9321
9322 /**
9323 * Creates a new EnumReservedRange instance using the specified properties.
9324 * @param [properties] Properties to set
9325 * @returns EnumReservedRange instance
9326 */
9327 public static create(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange): google.protobuf.EnumDescriptorProto.EnumReservedRange;
9328
9329 /**
9330 * Encodes the specified EnumReservedRange message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages.
9331 * @param message EnumReservedRange message or plain object to encode
9332 * @param [writer] Writer to encode to
9333 * @returns Writer
9334 */
9335 public static encode(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
9336
9337 /**
9338 * Encodes the specified EnumReservedRange message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages.
9339 * @param message EnumReservedRange message or plain object to encode
9340 * @param [writer] Writer to encode to
9341 * @returns Writer
9342 */
9343 public static encodeDelimited(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
9344
9345 /**
9346 * Decodes an EnumReservedRange message from the specified reader or buffer.
9347 * @param reader Reader or buffer to decode from
9348 * @param [length] Message length if known beforehand
9349 * @returns EnumReservedRange
9350 * @throws {Error} If the payload is not a reader or valid buffer
9351 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9352 */
9353 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumDescriptorProto.EnumReservedRange;
9354
9355 /**
9356 * Decodes an EnumReservedRange message from the specified reader or buffer, length delimited.
9357 * @param reader Reader or buffer to decode from
9358 * @returns EnumReservedRange
9359 * @throws {Error} If the payload is not a reader or valid buffer
9360 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9361 */
9362 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumDescriptorProto.EnumReservedRange;
9363
9364 /**
9365 * Verifies an EnumReservedRange message.
9366 * @param message Plain object to verify
9367 * @returns `null` if valid, otherwise the reason why it is not
9368 */
9369 public static verify(message: { [k: string]: any }): (string|null);
9370
9371 /**
9372 * Creates an EnumReservedRange message from a plain object. Also converts values to their respective internal types.
9373 * @param object Plain object
9374 * @returns EnumReservedRange
9375 */
9376 public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto.EnumReservedRange;
9377
9378 /**
9379 * Creates a plain object from an EnumReservedRange message. Also converts values to other types if specified.
9380 * @param message EnumReservedRange
9381 * @param [options] Conversion options
9382 * @returns Plain object
9383 */
9384 public static toObject(message: google.protobuf.EnumDescriptorProto.EnumReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
9385
9386 /**
9387 * Converts this EnumReservedRange to JSON.
9388 * @returns JSON object
9389 */
9390 public toJSON(): { [k: string]: any };
9391 }
9392 }
9393
9394 /** Properties of an EnumValueDescriptorProto. */
9395 interface IEnumValueDescriptorProto {
9396
9397 /** EnumValueDescriptorProto name */
9398 name?: (string|null);
9399
9400 /** EnumValueDescriptorProto number */
9401 number?: (number|null);
9402
9403 /** EnumValueDescriptorProto options */
9404 options?: (google.protobuf.IEnumValueOptions|null);
9405 }
9406
9407 /** Represents an EnumValueDescriptorProto. */
9408 class EnumValueDescriptorProto implements IEnumValueDescriptorProto {
9409
9410 /**
9411 * Constructs a new EnumValueDescriptorProto.
9412 * @param [properties] Properties to set
9413 */
9414 constructor(properties?: google.protobuf.IEnumValueDescriptorProto);
9415
9416 /** EnumValueDescriptorProto name. */
9417 public name: string;
9418
9419 /** EnumValueDescriptorProto number. */
9420 public number: number;
9421
9422 /** EnumValueDescriptorProto options. */
9423 public options?: (google.protobuf.IEnumValueOptions|null);
9424
9425 /**
9426 * Creates a new EnumValueDescriptorProto instance using the specified properties.
9427 * @param [properties] Properties to set
9428 * @returns EnumValueDescriptorProto instance
9429 */
9430 public static create(properties?: google.protobuf.IEnumValueDescriptorProto): google.protobuf.EnumValueDescriptorProto;
9431
9432 /**
9433 * Encodes the specified EnumValueDescriptorProto message. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages.
9434 * @param message EnumValueDescriptorProto message or plain object to encode
9435 * @param [writer] Writer to encode to
9436 * @returns Writer
9437 */
9438 public static encode(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
9439
9440 /**
9441 * Encodes the specified EnumValueDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages.
9442 * @param message EnumValueDescriptorProto message or plain object to encode
9443 * @param [writer] Writer to encode to
9444 * @returns Writer
9445 */
9446 public static encodeDelimited(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
9447
9448 /**
9449 * Decodes an EnumValueDescriptorProto message from the specified reader or buffer.
9450 * @param reader Reader or buffer to decode from
9451 * @param [length] Message length if known beforehand
9452 * @returns EnumValueDescriptorProto
9453 * @throws {Error} If the payload is not a reader or valid buffer
9454 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9455 */
9456 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueDescriptorProto;
9457
9458 /**
9459 * Decodes an EnumValueDescriptorProto message from the specified reader or buffer, length delimited.
9460 * @param reader Reader or buffer to decode from
9461 * @returns EnumValueDescriptorProto
9462 * @throws {Error} If the payload is not a reader or valid buffer
9463 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9464 */
9465 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumValueDescriptorProto;
9466
9467 /**
9468 * Verifies an EnumValueDescriptorProto message.
9469 * @param message Plain object to verify
9470 * @returns `null` if valid, otherwise the reason why it is not
9471 */
9472 public static verify(message: { [k: string]: any }): (string|null);
9473
9474 /**
9475 * Creates an EnumValueDescriptorProto message from a plain object. Also converts values to their respective internal types.
9476 * @param object Plain object
9477 * @returns EnumValueDescriptorProto
9478 */
9479 public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueDescriptorProto;
9480
9481 /**
9482 * Creates a plain object from an EnumValueDescriptorProto message. Also converts values to other types if specified.
9483 * @param message EnumValueDescriptorProto
9484 * @param [options] Conversion options
9485 * @returns Plain object
9486 */
9487 public static toObject(message: google.protobuf.EnumValueDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
9488
9489 /**
9490 * Converts this EnumValueDescriptorProto to JSON.
9491 * @returns JSON object
9492 */
9493 public toJSON(): { [k: string]: any };
9494 }
9495
9496 /** Properties of a ServiceDescriptorProto. */
9497 interface IServiceDescriptorProto {
9498
9499 /** ServiceDescriptorProto name */
9500 name?: (string|null);
9501
9502 /** ServiceDescriptorProto method */
9503 method?: (google.protobuf.IMethodDescriptorProto[]|null);
9504
9505 /** ServiceDescriptorProto options */
9506 options?: (google.protobuf.IServiceOptions|null);
9507 }
9508
9509 /** Represents a ServiceDescriptorProto. */
9510 class ServiceDescriptorProto implements IServiceDescriptorProto {
9511
9512 /**
9513 * Constructs a new ServiceDescriptorProto.
9514 * @param [properties] Properties to set
9515 */
9516 constructor(properties?: google.protobuf.IServiceDescriptorProto);
9517
9518 /** ServiceDescriptorProto name. */
9519 public name: string;
9520
9521 /** ServiceDescriptorProto method. */
9522 public method: google.protobuf.IMethodDescriptorProto[];
9523
9524 /** ServiceDescriptorProto options. */
9525 public options?: (google.protobuf.IServiceOptions|null);
9526
9527 /**
9528 * Creates a new ServiceDescriptorProto instance using the specified properties.
9529 * @param [properties] Properties to set
9530 * @returns ServiceDescriptorProto instance
9531 */
9532 public static create(properties?: google.protobuf.IServiceDescriptorProto): google.protobuf.ServiceDescriptorProto;
9533
9534 /**
9535 * Encodes the specified ServiceDescriptorProto message. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages.
9536 * @param message ServiceDescriptorProto message or plain object to encode
9537 * @param [writer] Writer to encode to
9538 * @returns Writer
9539 */
9540 public static encode(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
9541
9542 /**
9543 * Encodes the specified ServiceDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages.
9544 * @param message ServiceDescriptorProto message or plain object to encode
9545 * @param [writer] Writer to encode to
9546 * @returns Writer
9547 */
9548 public static encodeDelimited(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
9549
9550 /**
9551 * Decodes a ServiceDescriptorProto message from the specified reader or buffer.
9552 * @param reader Reader or buffer to decode from
9553 * @param [length] Message length if known beforehand
9554 * @returns ServiceDescriptorProto
9555 * @throws {Error} If the payload is not a reader or valid buffer
9556 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9557 */
9558 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceDescriptorProto;
9559
9560 /**
9561 * Decodes a ServiceDescriptorProto message from the specified reader or buffer, length delimited.
9562 * @param reader Reader or buffer to decode from
9563 * @returns ServiceDescriptorProto
9564 * @throws {Error} If the payload is not a reader or valid buffer
9565 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9566 */
9567 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ServiceDescriptorProto;
9568
9569 /**
9570 * Verifies a ServiceDescriptorProto message.
9571 * @param message Plain object to verify
9572 * @returns `null` if valid, otherwise the reason why it is not
9573 */
9574 public static verify(message: { [k: string]: any }): (string|null);
9575
9576 /**
9577 * Creates a ServiceDescriptorProto message from a plain object. Also converts values to their respective internal types.
9578 * @param object Plain object
9579 * @returns ServiceDescriptorProto
9580 */
9581 public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceDescriptorProto;
9582
9583 /**
9584 * Creates a plain object from a ServiceDescriptorProto message. Also converts values to other types if specified.
9585 * @param message ServiceDescriptorProto
9586 * @param [options] Conversion options
9587 * @returns Plain object
9588 */
9589 public static toObject(message: google.protobuf.ServiceDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
9590
9591 /**
9592 * Converts this ServiceDescriptorProto to JSON.
9593 * @returns JSON object
9594 */
9595 public toJSON(): { [k: string]: any };
9596 }
9597
9598 /** Properties of a MethodDescriptorProto. */
9599 interface IMethodDescriptorProto {
9600
9601 /** MethodDescriptorProto name */
9602 name?: (string|null);
9603
9604 /** MethodDescriptorProto inputType */
9605 inputType?: (string|null);
9606
9607 /** MethodDescriptorProto outputType */
9608 outputType?: (string|null);
9609
9610 /** MethodDescriptorProto options */
9611 options?: (google.protobuf.IMethodOptions|null);
9612
9613 /** MethodDescriptorProto clientStreaming */
9614 clientStreaming?: (boolean|null);
9615
9616 /** MethodDescriptorProto serverStreaming */
9617 serverStreaming?: (boolean|null);
9618 }
9619
9620 /** Represents a MethodDescriptorProto. */
9621 class MethodDescriptorProto implements IMethodDescriptorProto {
9622
9623 /**
9624 * Constructs a new MethodDescriptorProto.
9625 * @param [properties] Properties to set
9626 */
9627 constructor(properties?: google.protobuf.IMethodDescriptorProto);
9628
9629 /** MethodDescriptorProto name. */
9630 public name: string;
9631
9632 /** MethodDescriptorProto inputType. */
9633 public inputType: string;
9634
9635 /** MethodDescriptorProto outputType. */
9636 public outputType: string;
9637
9638 /** MethodDescriptorProto options. */
9639 public options?: (google.protobuf.IMethodOptions|null);
9640
9641 /** MethodDescriptorProto clientStreaming. */
9642 public clientStreaming: boolean;
9643
9644 /** MethodDescriptorProto serverStreaming. */
9645 public serverStreaming: boolean;
9646
9647 /**
9648 * Creates a new MethodDescriptorProto instance using the specified properties.
9649 * @param [properties] Properties to set
9650 * @returns MethodDescriptorProto instance
9651 */
9652 public static create(properties?: google.protobuf.IMethodDescriptorProto): google.protobuf.MethodDescriptorProto;
9653
9654 /**
9655 * Encodes the specified MethodDescriptorProto message. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages.
9656 * @param message MethodDescriptorProto message or plain object to encode
9657 * @param [writer] Writer to encode to
9658 * @returns Writer
9659 */
9660 public static encode(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
9661
9662 /**
9663 * Encodes the specified MethodDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages.
9664 * @param message MethodDescriptorProto message or plain object to encode
9665 * @param [writer] Writer to encode to
9666 * @returns Writer
9667 */
9668 public static encodeDelimited(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
9669
9670 /**
9671 * Decodes a MethodDescriptorProto message from the specified reader or buffer.
9672 * @param reader Reader or buffer to decode from
9673 * @param [length] Message length if known beforehand
9674 * @returns MethodDescriptorProto
9675 * @throws {Error} If the payload is not a reader or valid buffer
9676 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9677 */
9678 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodDescriptorProto;
9679
9680 /**
9681 * Decodes a MethodDescriptorProto message from the specified reader or buffer, length delimited.
9682 * @param reader Reader or buffer to decode from
9683 * @returns MethodDescriptorProto
9684 * @throws {Error} If the payload is not a reader or valid buffer
9685 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9686 */
9687 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MethodDescriptorProto;
9688
9689 /**
9690 * Verifies a MethodDescriptorProto message.
9691 * @param message Plain object to verify
9692 * @returns `null` if valid, otherwise the reason why it is not
9693 */
9694 public static verify(message: { [k: string]: any }): (string|null);
9695
9696 /**
9697 * Creates a MethodDescriptorProto message from a plain object. Also converts values to their respective internal types.
9698 * @param object Plain object
9699 * @returns MethodDescriptorProto
9700 */
9701 public static fromObject(object: { [k: string]: any }): google.protobuf.MethodDescriptorProto;
9702
9703 /**
9704 * Creates a plain object from a MethodDescriptorProto message. Also converts values to other types if specified.
9705 * @param message MethodDescriptorProto
9706 * @param [options] Conversion options
9707 * @returns Plain object
9708 */
9709 public static toObject(message: google.protobuf.MethodDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
9710
9711 /**
9712 * Converts this MethodDescriptorProto to JSON.
9713 * @returns JSON object
9714 */
9715 public toJSON(): { [k: string]: any };
9716 }
9717
9718 /** Properties of a FileOptions. */
9719 interface IFileOptions {
9720
9721 /** FileOptions javaPackage */
9722 javaPackage?: (string|null);
9723
9724 /** FileOptions javaOuterClassname */
9725 javaOuterClassname?: (string|null);
9726
9727 /** FileOptions javaMultipleFiles */
9728 javaMultipleFiles?: (boolean|null);
9729
9730 /** FileOptions javaGenerateEqualsAndHash */
9731 javaGenerateEqualsAndHash?: (boolean|null);
9732
9733 /** FileOptions javaStringCheckUtf8 */
9734 javaStringCheckUtf8?: (boolean|null);
9735
9736 /** FileOptions optimizeFor */
9737 optimizeFor?: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode|null);
9738
9739 /** FileOptions goPackage */
9740 goPackage?: (string|null);
9741
9742 /** FileOptions ccGenericServices */
9743 ccGenericServices?: (boolean|null);
9744
9745 /** FileOptions javaGenericServices */
9746 javaGenericServices?: (boolean|null);
9747
9748 /** FileOptions pyGenericServices */
9749 pyGenericServices?: (boolean|null);
9750
9751 /** FileOptions phpGenericServices */
9752 phpGenericServices?: (boolean|null);
9753
9754 /** FileOptions deprecated */
9755 deprecated?: (boolean|null);
9756
9757 /** FileOptions ccEnableArenas */
9758 ccEnableArenas?: (boolean|null);
9759
9760 /** FileOptions objcClassPrefix */
9761 objcClassPrefix?: (string|null);
9762
9763 /** FileOptions csharpNamespace */
9764 csharpNamespace?: (string|null);
9765
9766 /** FileOptions swiftPrefix */
9767 swiftPrefix?: (string|null);
9768
9769 /** FileOptions phpClassPrefix */
9770 phpClassPrefix?: (string|null);
9771
9772 /** FileOptions phpNamespace */
9773 phpNamespace?: (string|null);
9774
9775 /** FileOptions phpMetadataNamespace */
9776 phpMetadataNamespace?: (string|null);
9777
9778 /** FileOptions rubyPackage */
9779 rubyPackage?: (string|null);
9780
9781 /** FileOptions uninterpretedOption */
9782 uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
9783
9784 /** FileOptions .google.api.resourceDefinition */
9785 ".google.api.resourceDefinition"?: (google.api.IResourceDescriptor[]|null);
9786 }
9787
9788 /** Represents a FileOptions. */
9789 class FileOptions implements IFileOptions {
9790
9791 /**
9792 * Constructs a new FileOptions.
9793 * @param [properties] Properties to set
9794 */
9795 constructor(properties?: google.protobuf.IFileOptions);
9796
9797 /** FileOptions javaPackage. */
9798 public javaPackage: string;
9799
9800 /** FileOptions javaOuterClassname. */
9801 public javaOuterClassname: string;
9802
9803 /** FileOptions javaMultipleFiles. */
9804 public javaMultipleFiles: boolean;
9805
9806 /** FileOptions javaGenerateEqualsAndHash. */
9807 public javaGenerateEqualsAndHash: boolean;
9808
9809 /** FileOptions javaStringCheckUtf8. */
9810 public javaStringCheckUtf8: boolean;
9811
9812 /** FileOptions optimizeFor. */
9813 public optimizeFor: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode);
9814
9815 /** FileOptions goPackage. */
9816 public goPackage: string;
9817
9818 /** FileOptions ccGenericServices. */
9819 public ccGenericServices: boolean;
9820
9821 /** FileOptions javaGenericServices. */
9822 public javaGenericServices: boolean;
9823
9824 /** FileOptions pyGenericServices. */
9825 public pyGenericServices: boolean;
9826
9827 /** FileOptions phpGenericServices. */
9828 public phpGenericServices: boolean;
9829
9830 /** FileOptions deprecated. */
9831 public deprecated: boolean;
9832
9833 /** FileOptions ccEnableArenas. */
9834 public ccEnableArenas: boolean;
9835
9836 /** FileOptions objcClassPrefix. */
9837 public objcClassPrefix: string;
9838
9839 /** FileOptions csharpNamespace. */
9840 public csharpNamespace: string;
9841
9842 /** FileOptions swiftPrefix. */
9843 public swiftPrefix: string;
9844
9845 /** FileOptions phpClassPrefix. */
9846 public phpClassPrefix: string;
9847
9848 /** FileOptions phpNamespace. */
9849 public phpNamespace: string;
9850
9851 /** FileOptions phpMetadataNamespace. */
9852 public phpMetadataNamespace: string;
9853
9854 /** FileOptions rubyPackage. */
9855 public rubyPackage: string;
9856
9857 /** FileOptions uninterpretedOption. */
9858 public uninterpretedOption: google.protobuf.IUninterpretedOption[];
9859
9860 /**
9861 * Creates a new FileOptions instance using the specified properties.
9862 * @param [properties] Properties to set
9863 * @returns FileOptions instance
9864 */
9865 public static create(properties?: google.protobuf.IFileOptions): google.protobuf.FileOptions;
9866
9867 /**
9868 * Encodes the specified FileOptions message. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages.
9869 * @param message FileOptions message or plain object to encode
9870 * @param [writer] Writer to encode to
9871 * @returns Writer
9872 */
9873 public static encode(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer;
9874
9875 /**
9876 * Encodes the specified FileOptions message, length delimited. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages.
9877 * @param message FileOptions message or plain object to encode
9878 * @param [writer] Writer to encode to
9879 * @returns Writer
9880 */
9881 public static encodeDelimited(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer;
9882
9883 /**
9884 * Decodes a FileOptions message from the specified reader or buffer.
9885 * @param reader Reader or buffer to decode from
9886 * @param [length] Message length if known beforehand
9887 * @returns FileOptions
9888 * @throws {Error} If the payload is not a reader or valid buffer
9889 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9890 */
9891 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileOptions;
9892
9893 /**
9894 * Decodes a FileOptions message from the specified reader or buffer, length delimited.
9895 * @param reader Reader or buffer to decode from
9896 * @returns FileOptions
9897 * @throws {Error} If the payload is not a reader or valid buffer
9898 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9899 */
9900 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileOptions;
9901
9902 /**
9903 * Verifies a FileOptions message.
9904 * @param message Plain object to verify
9905 * @returns `null` if valid, otherwise the reason why it is not
9906 */
9907 public static verify(message: { [k: string]: any }): (string|null);
9908
9909 /**
9910 * Creates a FileOptions message from a plain object. Also converts values to their respective internal types.
9911 * @param object Plain object
9912 * @returns FileOptions
9913 */
9914 public static fromObject(object: { [k: string]: any }): google.protobuf.FileOptions;
9915
9916 /**
9917 * Creates a plain object from a FileOptions message. Also converts values to other types if specified.
9918 * @param message FileOptions
9919 * @param [options] Conversion options
9920 * @returns Plain object
9921 */
9922 public static toObject(message: google.protobuf.FileOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
9923
9924 /**
9925 * Converts this FileOptions to JSON.
9926 * @returns JSON object
9927 */
9928 public toJSON(): { [k: string]: any };
9929 }
9930
9931 namespace FileOptions {
9932
9933 /** OptimizeMode enum. */
9934 enum OptimizeMode {
9935 SPEED = 1,
9936 CODE_SIZE = 2,
9937 LITE_RUNTIME = 3
9938 }
9939 }
9940
9941 /** Properties of a MessageOptions. */
9942 interface IMessageOptions {
9943
9944 /** MessageOptions messageSetWireFormat */
9945 messageSetWireFormat?: (boolean|null);
9946
9947 /** MessageOptions noStandardDescriptorAccessor */
9948 noStandardDescriptorAccessor?: (boolean|null);
9949
9950 /** MessageOptions deprecated */
9951 deprecated?: (boolean|null);
9952
9953 /** MessageOptions mapEntry */
9954 mapEntry?: (boolean|null);
9955
9956 /** MessageOptions uninterpretedOption */
9957 uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
9958
9959 /** MessageOptions .google.api.resource */
9960 ".google.api.resource"?: (google.api.IResourceDescriptor|null);
9961 }
9962
9963 /** Represents a MessageOptions. */
9964 class MessageOptions implements IMessageOptions {
9965
9966 /**
9967 * Constructs a new MessageOptions.
9968 * @param [properties] Properties to set
9969 */
9970 constructor(properties?: google.protobuf.IMessageOptions);
9971
9972 /** MessageOptions messageSetWireFormat. */
9973 public messageSetWireFormat: boolean;
9974
9975 /** MessageOptions noStandardDescriptorAccessor. */
9976 public noStandardDescriptorAccessor: boolean;
9977
9978 /** MessageOptions deprecated. */
9979 public deprecated: boolean;
9980
9981 /** MessageOptions mapEntry. */
9982 public mapEntry: boolean;
9983
9984 /** MessageOptions uninterpretedOption. */
9985 public uninterpretedOption: google.protobuf.IUninterpretedOption[];
9986
9987 /**
9988 * Creates a new MessageOptions instance using the specified properties.
9989 * @param [properties] Properties to set
9990 * @returns MessageOptions instance
9991 */
9992 public static create(properties?: google.protobuf.IMessageOptions): google.protobuf.MessageOptions;
9993
9994 /**
9995 * Encodes the specified MessageOptions message. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages.
9996 * @param message MessageOptions message or plain object to encode
9997 * @param [writer] Writer to encode to
9998 * @returns Writer
9999 */
10000 public static encode(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer;
10001
10002 /**
10003 * Encodes the specified MessageOptions message, length delimited. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages.
10004 * @param message MessageOptions message or plain object to encode
10005 * @param [writer] Writer to encode to
10006 * @returns Writer
10007 */
10008 public static encodeDelimited(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer;
10009
10010 /**
10011 * Decodes a MessageOptions message from the specified reader or buffer.
10012 * @param reader Reader or buffer to decode from
10013 * @param [length] Message length if known beforehand
10014 * @returns MessageOptions
10015 * @throws {Error} If the payload is not a reader or valid buffer
10016 * @throws {$protobuf.util.ProtocolError} If required fields are missing
10017 */
10018 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MessageOptions;
10019
10020 /**
10021 * Decodes a MessageOptions message from the specified reader or buffer, length delimited.
10022 * @param reader Reader or buffer to decode from
10023 * @returns MessageOptions
10024 * @throws {Error} If the payload is not a reader or valid buffer
10025 * @throws {$protobuf.util.ProtocolError} If required fields are missing
10026 */
10027 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MessageOptions;
10028
10029 /**
10030 * Verifies a MessageOptions message.
10031 * @param message Plain object to verify
10032 * @returns `null` if valid, otherwise the reason why it is not
10033 */
10034 public static verify(message: { [k: string]: any }): (string|null);
10035
10036 /**
10037 * Creates a MessageOptions message from a plain object. Also converts values to their respective internal types.
10038 * @param object Plain object
10039 * @returns MessageOptions
10040 */
10041 public static fromObject(object: { [k: string]: any }): google.protobuf.MessageOptions;
10042
10043 /**
10044 * Creates a plain object from a MessageOptions message. Also converts values to other types if specified.
10045 * @param message MessageOptions
10046 * @param [options] Conversion options
10047 * @returns Plain object
10048 */
10049 public static toObject(message: google.protobuf.MessageOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
10050
10051 /**
10052 * Converts this MessageOptions to JSON.
10053 * @returns JSON object
10054 */
10055 public toJSON(): { [k: string]: any };
10056 }
10057
10058 /** Properties of a FieldOptions. */
10059 interface IFieldOptions {
10060
10061 /** FieldOptions ctype */
10062 ctype?: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType|null);
10063
10064 /** FieldOptions packed */
10065 packed?: (boolean|null);
10066
10067 /** FieldOptions jstype */
10068 jstype?: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType|null);
10069
10070 /** FieldOptions lazy */
10071 lazy?: (boolean|null);
10072
10073 /** FieldOptions deprecated */
10074 deprecated?: (boolean|null);
10075
10076 /** FieldOptions weak */
10077 weak?: (boolean|null);
10078
10079 /** FieldOptions uninterpretedOption */
10080 uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
10081
10082 /** FieldOptions .google.api.fieldBehavior */
10083 ".google.api.fieldBehavior"?: (google.api.FieldBehavior[]|null);
10084
10085 /** FieldOptions .google.api.resourceReference */
10086 ".google.api.resourceReference"?: (google.api.IResourceReference|null);
10087 }
10088
10089 /** Represents a FieldOptions. */
10090 class FieldOptions implements IFieldOptions {
10091
10092 /**
10093 * Constructs a new FieldOptions.
10094 * @param [properties] Properties to set
10095 */
10096 constructor(properties?: google.protobuf.IFieldOptions);
10097
10098 /** FieldOptions ctype. */
10099 public ctype: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType);
10100
10101 /** FieldOptions packed. */
10102 public packed: boolean;
10103
10104 /** FieldOptions jstype. */
10105 public jstype: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType);
10106
10107 /** FieldOptions lazy. */
10108 public lazy: boolean;
10109
10110 /** FieldOptions deprecated. */
10111 public deprecated: boolean;
10112
10113 /** FieldOptions weak. */
10114 public weak: boolean;
10115
10116 /** FieldOptions uninterpretedOption. */
10117 public uninterpretedOption: google.protobuf.IUninterpretedOption[];
10118
10119 /**
10120 * Creates a new FieldOptions instance using the specified properties.
10121 * @param [properties] Properties to set
10122 * @returns FieldOptions instance
10123 */
10124 public static create(properties?: google.protobuf.IFieldOptions): google.protobuf.FieldOptions;
10125
10126 /**
10127 * Encodes the specified FieldOptions message. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages.
10128 * @param message FieldOptions message or plain object to encode
10129 * @param [writer] Writer to encode to
10130 * @returns Writer
10131 */
10132 public static encode(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer;
10133
10134 /**
10135 * Encodes the specified FieldOptions message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages.
10136 * @param message FieldOptions message or plain object to encode
10137 * @param [writer] Writer to encode to
10138 * @returns Writer
10139 */
10140 public static encodeDelimited(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer;
10141
10142 /**
10143 * Decodes a FieldOptions message from the specified reader or buffer.
10144 * @param reader Reader or buffer to decode from
10145 * @param [length] Message length if known beforehand
10146 * @returns FieldOptions
10147 * @throws {Error} If the payload is not a reader or valid buffer
10148 * @throws {$protobuf.util.ProtocolError} If required fields are missing
10149 */
10150 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldOptions;
10151
10152 /**
10153 * Decodes a FieldOptions message from the specified reader or buffer, length delimited.
10154 * @param reader Reader or buffer to decode from
10155 * @returns FieldOptions
10156 * @throws {Error} If the payload is not a reader or valid buffer
10157 * @throws {$protobuf.util.ProtocolError} If required fields are missing
10158 */
10159 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldOptions;
10160
10161 /**
10162 * Verifies a FieldOptions message.
10163 * @param message Plain object to verify
10164 * @returns `null` if valid, otherwise the reason why it is not
10165 */
10166 public static verify(message: { [k: string]: any }): (string|null);
10167
10168 /**
10169 * Creates a FieldOptions message from a plain object. Also converts values to their respective internal types.
10170 * @param object Plain object
10171 * @returns FieldOptions
10172 */
10173 public static fromObject(object: { [k: string]: any }): google.protobuf.FieldOptions;
10174
10175 /**
10176 * Creates a plain object from a FieldOptions message. Also converts values to other types if specified.
10177 * @param message FieldOptions
10178 * @param [options] Conversion options
10179 * @returns Plain object
10180 */
10181 public static toObject(message: google.protobuf.FieldOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
10182
10183 /**
10184 * Converts this FieldOptions to JSON.
10185 * @returns JSON object
10186 */
10187 public toJSON(): { [k: string]: any };
10188 }
10189
10190 namespace FieldOptions {
10191
10192 /** CType enum. */
10193 enum CType {
10194 STRING = 0,
10195 CORD = 1,
10196 STRING_PIECE = 2
10197 }
10198
10199 /** JSType enum. */
10200 enum JSType {
10201 JS_NORMAL = 0,
10202 JS_STRING = 1,
10203 JS_NUMBER = 2
10204 }
10205 }
10206
10207 /** Properties of an OneofOptions. */
10208 interface IOneofOptions {
10209
10210 /** OneofOptions uninterpretedOption */
10211 uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
10212 }
10213
10214 /** Represents an OneofOptions. */
10215 class OneofOptions implements IOneofOptions {
10216
10217 /**
10218 * Constructs a new OneofOptions.
10219 * @param [properties] Properties to set
10220 */
10221 constructor(properties?: google.protobuf.IOneofOptions);
10222
10223 /** OneofOptions uninterpretedOption. */
10224 public uninterpretedOption: google.protobuf.IUninterpretedOption[];
10225
10226 /**
10227 * Creates a new OneofOptions instance using the specified properties.
10228 * @param [properties] Properties to set
10229 * @returns OneofOptions instance
10230 */
10231 public static create(properties?: google.protobuf.IOneofOptions): google.protobuf.OneofOptions;
10232
10233 /**
10234 * Encodes the specified OneofOptions message. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages.
10235 * @param message OneofOptions message or plain object to encode
10236 * @param [writer] Writer to encode to
10237 * @returns Writer
10238 */
10239 public static encode(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer;
10240
10241 /**
10242 * Encodes the specified OneofOptions message, length delimited. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages.
10243 * @param message OneofOptions message or plain object to encode
10244 * @param [writer] Writer to encode to
10245 * @returns Writer
10246 */
10247 public static encodeDelimited(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer;
10248
10249 /**
10250 * Decodes an OneofOptions message from the specified reader or buffer.
10251 * @param reader Reader or buffer to decode from
10252 * @param [length] Message length if known beforehand
10253 * @returns OneofOptions
10254 * @throws {Error} If the payload is not a reader or valid buffer
10255 * @throws {$protobuf.util.ProtocolError} If required fields are missing
10256 */
10257 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofOptions;
10258
10259 /**
10260 * Decodes an OneofOptions message from the specified reader or buffer, length delimited.
10261 * @param reader Reader or buffer to decode from
10262 * @returns OneofOptions
10263 * @throws {Error} If the payload is not a reader or valid buffer
10264 * @throws {$protobuf.util.ProtocolError} If required fields are missing
10265 */
10266 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.OneofOptions;
10267
10268 /**
10269 * Verifies an OneofOptions message.
10270 * @param message Plain object to verify
10271 * @returns `null` if valid, otherwise the reason why it is not
10272 */
10273 public static verify(message: { [k: string]: any }): (string|null);
10274
10275 /**
10276 * Creates an OneofOptions message from a plain object. Also converts values to their respective internal types.
10277 * @param object Plain object
10278 * @returns OneofOptions
10279 */
10280 public static fromObject(object: { [k: string]: any }): google.protobuf.OneofOptions;
10281
10282 /**
10283 * Creates a plain object from an OneofOptions message. Also converts values to other types if specified.
10284 * @param message OneofOptions
10285 * @param [options] Conversion options
10286 * @returns Plain object
10287 */
10288 public static toObject(message: google.protobuf.OneofOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
10289
10290 /**
10291 * Converts this OneofOptions to JSON.
10292 * @returns JSON object
10293 */
10294 public toJSON(): { [k: string]: any };
10295 }
10296
10297 /** Properties of an EnumOptions. */
10298 interface IEnumOptions {
10299
10300 /** EnumOptions allowAlias */
10301 allowAlias?: (boolean|null);
10302
10303 /** EnumOptions deprecated */
10304 deprecated?: (boolean|null);
10305
10306 /** EnumOptions uninterpretedOption */
10307 uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
10308 }
10309
10310 /** Represents an EnumOptions. */
10311 class EnumOptions implements IEnumOptions {
10312
10313 /**
10314 * Constructs a new EnumOptions.
10315 * @param [properties] Properties to set
10316 */
10317 constructor(properties?: google.protobuf.IEnumOptions);
10318
10319 /** EnumOptions allowAlias. */
10320 public allowAlias: boolean;
10321
10322 /** EnumOptions deprecated. */
10323 public deprecated: boolean;
10324
10325 /** EnumOptions uninterpretedOption. */
10326 public uninterpretedOption: google.protobuf.IUninterpretedOption[];
10327
10328 /**
10329 * Creates a new EnumOptions instance using the specified properties.
10330 * @param [properties] Properties to set
10331 * @returns EnumOptions instance
10332 */
10333 public static create(properties?: google.protobuf.IEnumOptions): google.protobuf.EnumOptions;
10334
10335 /**
10336 * Encodes the specified EnumOptions message. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages.
10337 * @param message EnumOptions message or plain object to encode
10338 * @param [writer] Writer to encode to
10339 * @returns Writer
10340 */
10341 public static encode(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer;
10342
10343 /**
10344 * Encodes the specified EnumOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages.
10345 * @param message EnumOptions message or plain object to encode
10346 * @param [writer] Writer to encode to
10347 * @returns Writer
10348 */
10349 public static encodeDelimited(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer;
10350
10351 /**
10352 * Decodes an EnumOptions message from the specified reader or buffer.
10353 * @param reader Reader or buffer to decode from
10354 * @param [length] Message length if known beforehand
10355 * @returns EnumOptions
10356 * @throws {Error} If the payload is not a reader or valid buffer
10357 * @throws {$protobuf.util.ProtocolError} If required fields are missing
10358 */
10359 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumOptions;
10360
10361 /**
10362 * Decodes an EnumOptions message from the specified reader or buffer, length delimited.
10363 * @param reader Reader or buffer to decode from
10364 * @returns EnumOptions
10365 * @throws {Error} If the payload is not a reader or valid buffer
10366 * @throws {$protobuf.util.ProtocolError} If required fields are missing
10367 */
10368 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumOptions;
10369
10370 /**
10371 * Verifies an EnumOptions message.
10372 * @param message Plain object to verify
10373 * @returns `null` if valid, otherwise the reason why it is not
10374 */
10375 public static verify(message: { [k: string]: any }): (string|null);
10376
10377 /**
10378 * Creates an EnumOptions message from a plain object. Also converts values to their respective internal types.
10379 * @param object Plain object
10380 * @returns EnumOptions
10381 */
10382 public static fromObject(object: { [k: string]: any }): google.protobuf.EnumOptions;
10383
10384 /**
10385 * Creates a plain object from an EnumOptions message. Also converts values to other types if specified.
10386 * @param message EnumOptions
10387 * @param [options] Conversion options
10388 * @returns Plain object
10389 */
10390 public static toObject(message: google.protobuf.EnumOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
10391
10392 /**
10393 * Converts this EnumOptions to JSON.
10394 * @returns JSON object
10395 */
10396 public toJSON(): { [k: string]: any };
10397 }
10398
10399 /** Properties of an EnumValueOptions. */
10400 interface IEnumValueOptions {
10401
10402 /** EnumValueOptions deprecated */
10403 deprecated?: (boolean|null);
10404
10405 /** EnumValueOptions uninterpretedOption */
10406 uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
10407 }
10408
10409 /** Represents an EnumValueOptions. */
10410 class EnumValueOptions implements IEnumValueOptions {
10411
10412 /**
10413 * Constructs a new EnumValueOptions.
10414 * @param [properties] Properties to set
10415 */
10416 constructor(properties?: google.protobuf.IEnumValueOptions);
10417
10418 /** EnumValueOptions deprecated. */
10419 public deprecated: boolean;
10420
10421 /** EnumValueOptions uninterpretedOption. */
10422 public uninterpretedOption: google.protobuf.IUninterpretedOption[];
10423
10424 /**
10425 * Creates a new EnumValueOptions instance using the specified properties.
10426 * @param [properties] Properties to set
10427 * @returns EnumValueOptions instance
10428 */
10429 public static create(properties?: google.protobuf.IEnumValueOptions): google.protobuf.EnumValueOptions;
10430
10431 /**
10432 * Encodes the specified EnumValueOptions message. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages.
10433 * @param message EnumValueOptions message or plain object to encode
10434 * @param [writer] Writer to encode to
10435 * @returns Writer
10436 */
10437 public static encode(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer;
10438
10439 /**
10440 * Encodes the specified EnumValueOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages.
10441 * @param message EnumValueOptions message or plain object to encode
10442 * @param [writer] Writer to encode to
10443 * @returns Writer
10444 */
10445 public static encodeDelimited(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer;
10446
10447 /**
10448 * Decodes an EnumValueOptions message from the specified reader or buffer.
10449 * @param reader Reader or buffer to decode from
10450 * @param [length] Message length if known beforehand
10451 * @returns EnumValueOptions
10452 * @throws {Error} If the payload is not a reader or valid buffer
10453 * @throws {$protobuf.util.ProtocolError} If required fields are missing
10454 */
10455 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueOptions;
10456
10457 /**
10458 * Decodes an EnumValueOptions message from the specified reader or buffer, length delimited.
10459 * @param reader Reader or buffer to decode from
10460 * @returns EnumValueOptions
10461 * @throws {Error} If the payload is not a reader or valid buffer
10462 * @throws {$protobuf.util.ProtocolError} If required fields are missing
10463 */
10464 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumValueOptions;
10465
10466 /**
10467 * Verifies an EnumValueOptions message.
10468 * @param message Plain object to verify
10469 * @returns `null` if valid, otherwise the reason why it is not
10470 */
10471 public static verify(message: { [k: string]: any }): (string|null);
10472
10473 /**
10474 * Creates an EnumValueOptions message from a plain object. Also converts values to their respective internal types.
10475 * @param object Plain object
10476 * @returns EnumValueOptions
10477 */
10478 public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueOptions;
10479
10480 /**
10481 * Creates a plain object from an EnumValueOptions message. Also converts values to other types if specified.
10482 * @param message EnumValueOptions
10483 * @param [options] Conversion options
10484 * @returns Plain object
10485 */
10486 public static toObject(message: google.protobuf.EnumValueOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
10487
10488 /**
10489 * Converts this EnumValueOptions to JSON.
10490 * @returns JSON object
10491 */
10492 public toJSON(): { [k: string]: any };
10493 }
10494
10495 /** Properties of a ServiceOptions. */
10496 interface IServiceOptions {
10497
10498 /** ServiceOptions deprecated */
10499 deprecated?: (boolean|null);
10500
10501 /** ServiceOptions uninterpretedOption */
10502 uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
10503
10504 /** ServiceOptions .google.api.defaultHost */
10505 ".google.api.defaultHost"?: (string|null);
10506
10507 /** ServiceOptions .google.api.oauthScopes */
10508 ".google.api.oauthScopes"?: (string|null);
10509 }
10510
10511 /** Represents a ServiceOptions. */
10512 class ServiceOptions implements IServiceOptions {
10513
10514 /**
10515 * Constructs a new ServiceOptions.
10516 * @param [properties] Properties to set
10517 */
10518 constructor(properties?: google.protobuf.IServiceOptions);
10519
10520 /** ServiceOptions deprecated. */
10521 public deprecated: boolean;
10522
10523 /** ServiceOptions uninterpretedOption. */
10524 public uninterpretedOption: google.protobuf.IUninterpretedOption[];
10525
10526 /**
10527 * Creates a new ServiceOptions instance using the specified properties.
10528 * @param [properties] Properties to set
10529 * @returns ServiceOptions instance
10530 */
10531 public static create(properties?: google.protobuf.IServiceOptions): google.protobuf.ServiceOptions;
10532
10533 /**
10534 * Encodes the specified ServiceOptions message. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages.
10535 * @param message ServiceOptions message or plain object to encode
10536 * @param [writer] Writer to encode to
10537 * @returns Writer
10538 */
10539 public static encode(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer;
10540
10541 /**
10542 * Encodes the specified ServiceOptions message, length delimited. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages.
10543 * @param message ServiceOptions message or plain object to encode
10544 * @param [writer] Writer to encode to
10545 * @returns Writer
10546 */
10547 public static encodeDelimited(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer;
10548
10549 /**
10550 * Decodes a ServiceOptions message from the specified reader or buffer.
10551 * @param reader Reader or buffer to decode from
10552 * @param [length] Message length if known beforehand
10553 * @returns ServiceOptions
10554 * @throws {Error} If the payload is not a reader or valid buffer
10555 * @throws {$protobuf.util.ProtocolError} If required fields are missing
10556 */
10557 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceOptions;
10558
10559 /**
10560 * Decodes a ServiceOptions message from the specified reader or buffer, length delimited.
10561 * @param reader Reader or buffer to decode from
10562 * @returns ServiceOptions
10563 * @throws {Error} If the payload is not a reader or valid buffer
10564 * @throws {$protobuf.util.ProtocolError} If required fields are missing
10565 */
10566 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ServiceOptions;
10567
10568 /**
10569 * Verifies a ServiceOptions message.
10570 * @param message Plain object to verify
10571 * @returns `null` if valid, otherwise the reason why it is not
10572 */
10573 public static verify(message: { [k: string]: any }): (string|null);
10574
10575 /**
10576 * Creates a ServiceOptions message from a plain object. Also converts values to their respective internal types.
10577 * @param object Plain object
10578 * @returns ServiceOptions
10579 */
10580 public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceOptions;
10581
10582 /**
10583 * Creates a plain object from a ServiceOptions message. Also converts values to other types if specified.
10584 * @param message ServiceOptions
10585 * @param [options] Conversion options
10586 * @returns Plain object
10587 */
10588 public static toObject(message: google.protobuf.ServiceOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
10589
10590 /**
10591 * Converts this ServiceOptions to JSON.
10592 * @returns JSON object
10593 */
10594 public toJSON(): { [k: string]: any };
10595 }
10596
10597 /** Properties of a MethodOptions. */
10598 interface IMethodOptions {
10599
10600 /** MethodOptions deprecated */
10601 deprecated?: (boolean|null);
10602
10603 /** MethodOptions idempotencyLevel */
10604 idempotencyLevel?: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel|null);
10605
10606 /** MethodOptions uninterpretedOption */
10607 uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
10608
10609 /** MethodOptions .google.api.http */
10610 ".google.api.http"?: (google.api.IHttpRule|null);
10611
10612 /** MethodOptions .google.api.methodSignature */
10613 ".google.api.methodSignature"?: (string[]|null);
10614
10615 /** MethodOptions .google.longrunning.operationInfo */
10616 ".google.longrunning.operationInfo"?: (google.longrunning.IOperationInfo|null);
10617 }
10618
10619 /** Represents a MethodOptions. */
10620 class MethodOptions implements IMethodOptions {
10621
10622 /**
10623 * Constructs a new MethodOptions.
10624 * @param [properties] Properties to set
10625 */
10626 constructor(properties?: google.protobuf.IMethodOptions);
10627
10628 /** MethodOptions deprecated. */
10629 public deprecated: boolean;
10630
10631 /** MethodOptions idempotencyLevel. */
10632 public idempotencyLevel: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel);
10633
10634 /** MethodOptions uninterpretedOption. */
10635 public uninterpretedOption: google.protobuf.IUninterpretedOption[];
10636
10637 /**
10638 * Creates a new MethodOptions instance using the specified properties.
10639 * @param [properties] Properties to set
10640 * @returns MethodOptions instance
10641 */
10642 public static create(properties?: google.protobuf.IMethodOptions): google.protobuf.MethodOptions;
10643
10644 /**
10645 * Encodes the specified MethodOptions message. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages.
10646 * @param message MethodOptions message or plain object to encode
10647 * @param [writer] Writer to encode to
10648 * @returns Writer
10649 */
10650 public static encode(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer;
10651
10652 /**
10653 * Encodes the specified MethodOptions message, length delimited. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages.
10654 * @param message MethodOptions message or plain object to encode
10655 * @param [writer] Writer to encode to
10656 * @returns Writer
10657 */
10658 public static encodeDelimited(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer;
10659
10660 /**
10661 * Decodes a MethodOptions message from the specified reader or buffer.
10662 * @param reader Reader or buffer to decode from
10663 * @param [length] Message length if known beforehand
10664 * @returns MethodOptions
10665 * @throws {Error} If the payload is not a reader or valid buffer
10666 * @throws {$protobuf.util.ProtocolError} If required fields are missing
10667 */
10668 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodOptions;
10669
10670 /**
10671 * Decodes a MethodOptions message from the specified reader or buffer, length delimited.
10672 * @param reader Reader or buffer to decode from
10673 * @returns MethodOptions
10674 * @throws {Error} If the payload is not a reader or valid buffer
10675 * @throws {$protobuf.util.ProtocolError} If required fields are missing
10676 */
10677 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MethodOptions;
10678
10679 /**
10680 * Verifies a MethodOptions message.
10681 * @param message Plain object to verify
10682 * @returns `null` if valid, otherwise the reason why it is not
10683 */
10684 public static verify(message: { [k: string]: any }): (string|null);
10685
10686 /**
10687 * Creates a MethodOptions message from a plain object. Also converts values to their respective internal types.
10688 * @param object Plain object
10689 * @returns MethodOptions
10690 */
10691 public static fromObject(object: { [k: string]: any }): google.protobuf.MethodOptions;
10692
10693 /**
10694 * Creates a plain object from a MethodOptions message. Also converts values to other types if specified.
10695 * @param message MethodOptions
10696 * @param [options] Conversion options
10697 * @returns Plain object
10698 */
10699 public static toObject(message: google.protobuf.MethodOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
10700
10701 /**
10702 * Converts this MethodOptions to JSON.
10703 * @returns JSON object
10704 */
10705 public toJSON(): { [k: string]: any };
10706 }
10707
10708 namespace MethodOptions {
10709
10710 /** IdempotencyLevel enum. */
10711 enum IdempotencyLevel {
10712 IDEMPOTENCY_UNKNOWN = 0,
10713 NO_SIDE_EFFECTS = 1,
10714 IDEMPOTENT = 2
10715 }
10716 }
10717
10718 /** Properties of an UninterpretedOption. */
10719 interface IUninterpretedOption {
10720
10721 /** UninterpretedOption name */
10722 name?: (google.protobuf.UninterpretedOption.INamePart[]|null);
10723
10724 /** UninterpretedOption identifierValue */
10725 identifierValue?: (string|null);
10726
10727 /** UninterpretedOption positiveIntValue */
10728 positiveIntValue?: (number|Long|string|null);
10729
10730 /** UninterpretedOption negativeIntValue */
10731 negativeIntValue?: (number|Long|string|null);
10732
10733 /** UninterpretedOption doubleValue */
10734 doubleValue?: (number|null);
10735
10736 /** UninterpretedOption stringValue */
10737 stringValue?: (Uint8Array|string|null);
10738
10739 /** UninterpretedOption aggregateValue */
10740 aggregateValue?: (string|null);
10741 }
10742
10743 /** Represents an UninterpretedOption. */
10744 class UninterpretedOption implements IUninterpretedOption {
10745
10746 /**
10747 * Constructs a new UninterpretedOption.
10748 * @param [properties] Properties to set
10749 */
10750 constructor(properties?: google.protobuf.IUninterpretedOption);
10751
10752 /** UninterpretedOption name. */
10753 public name: google.protobuf.UninterpretedOption.INamePart[];
10754
10755 /** UninterpretedOption identifierValue. */
10756 public identifierValue: string;
10757
10758 /** UninterpretedOption positiveIntValue. */
10759 public positiveIntValue: (number|Long|string);
10760
10761 /** UninterpretedOption negativeIntValue. */
10762 public negativeIntValue: (number|Long|string);
10763
10764 /** UninterpretedOption doubleValue. */
10765 public doubleValue: number;
10766
10767 /** UninterpretedOption stringValue. */
10768 public stringValue: (Uint8Array|string);
10769
10770 /** UninterpretedOption aggregateValue. */
10771 public aggregateValue: string;
10772
10773 /**
10774 * Creates a new UninterpretedOption instance using the specified properties.
10775 * @param [properties] Properties to set
10776 * @returns UninterpretedOption instance
10777 */
10778 public static create(properties?: google.protobuf.IUninterpretedOption): google.protobuf.UninterpretedOption;
10779
10780 /**
10781 * Encodes the specified UninterpretedOption message. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages.
10782 * @param message UninterpretedOption message or plain object to encode
10783 * @param [writer] Writer to encode to
10784 * @returns Writer
10785 */
10786 public static encode(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer;
10787
10788 /**
10789 * Encodes the specified UninterpretedOption message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages.
10790 * @param message UninterpretedOption message or plain object to encode
10791 * @param [writer] Writer to encode to
10792 * @returns Writer
10793 */
10794 public static encodeDelimited(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer;
10795
10796 /**
10797 * Decodes an UninterpretedOption message from the specified reader or buffer.
10798 * @param reader Reader or buffer to decode from
10799 * @param [length] Message length if known beforehand
10800 * @returns UninterpretedOption
10801 * @throws {Error} If the payload is not a reader or valid buffer
10802 * @throws {$protobuf.util.ProtocolError} If required fields are missing
10803 */
10804 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption;
10805
10806 /**
10807 * Decodes an UninterpretedOption message from the specified reader or buffer, length delimited.
10808 * @param reader Reader or buffer to decode from
10809 * @returns UninterpretedOption
10810 * @throws {Error} If the payload is not a reader or valid buffer
10811 * @throws {$protobuf.util.ProtocolError} If required fields are missing
10812 */
10813 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UninterpretedOption;
10814
10815 /**
10816 * Verifies an UninterpretedOption message.
10817 * @param message Plain object to verify
10818 * @returns `null` if valid, otherwise the reason why it is not
10819 */
10820 public static verify(message: { [k: string]: any }): (string|null);
10821
10822 /**
10823 * Creates an UninterpretedOption message from a plain object. Also converts values to their respective internal types.
10824 * @param object Plain object
10825 * @returns UninterpretedOption
10826 */
10827 public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption;
10828
10829 /**
10830 * Creates a plain object from an UninterpretedOption message. Also converts values to other types if specified.
10831 * @param message UninterpretedOption
10832 * @param [options] Conversion options
10833 * @returns Plain object
10834 */
10835 public static toObject(message: google.protobuf.UninterpretedOption, options?: $protobuf.IConversionOptions): { [k: string]: any };
10836
10837 /**
10838 * Converts this UninterpretedOption to JSON.
10839 * @returns JSON object
10840 */
10841 public toJSON(): { [k: string]: any };
10842 }
10843
10844 namespace UninterpretedOption {
10845
10846 /** Properties of a NamePart. */
10847 interface INamePart {
10848
10849 /** NamePart namePart */
10850 namePart: string;
10851
10852 /** NamePart isExtension */
10853 isExtension: boolean;
10854 }
10855
10856 /** Represents a NamePart. */
10857 class NamePart implements INamePart {
10858
10859 /**
10860 * Constructs a new NamePart.
10861 * @param [properties] Properties to set
10862 */
10863 constructor(properties?: google.protobuf.UninterpretedOption.INamePart);
10864
10865 /** NamePart namePart. */
10866 public namePart: string;
10867
10868 /** NamePart isExtension. */
10869 public isExtension: boolean;
10870
10871 /**
10872 * Creates a new NamePart instance using the specified properties.
10873 * @param [properties] Properties to set
10874 * @returns NamePart instance
10875 */
10876 public static create(properties?: google.protobuf.UninterpretedOption.INamePart): google.protobuf.UninterpretedOption.NamePart;
10877
10878 /**
10879 * Encodes the specified NamePart message. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages.
10880 * @param message NamePart message or plain object to encode
10881 * @param [writer] Writer to encode to
10882 * @returns Writer
10883 */
10884 public static encode(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer;
10885
10886 /**
10887 * Encodes the specified NamePart message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages.
10888 * @param message NamePart message or plain object to encode
10889 * @param [writer] Writer to encode to
10890 * @returns Writer
10891 */
10892 public static encodeDelimited(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer;
10893
10894 /**
10895 * Decodes a NamePart message from the specified reader or buffer.
10896 * @param reader Reader or buffer to decode from
10897 * @param [length] Message length if known beforehand
10898 * @returns NamePart
10899 * @throws {Error} If the payload is not a reader or valid buffer
10900 * @throws {$protobuf.util.ProtocolError} If required fields are missing
10901 */
10902 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption.NamePart;
10903
10904 /**
10905 * Decodes a NamePart message from the specified reader or buffer, length delimited.
10906 * @param reader Reader or buffer to decode from
10907 * @returns NamePart
10908 * @throws {Error} If the payload is not a reader or valid buffer
10909 * @throws {$protobuf.util.ProtocolError} If required fields are missing
10910 */
10911 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UninterpretedOption.NamePart;
10912
10913 /**
10914 * Verifies a NamePart message.
10915 * @param message Plain object to verify
10916 * @returns `null` if valid, otherwise the reason why it is not
10917 */
10918 public static verify(message: { [k: string]: any }): (string|null);
10919
10920 /**
10921 * Creates a NamePart message from a plain object. Also converts values to their respective internal types.
10922 * @param object Plain object
10923 * @returns NamePart
10924 */
10925 public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption.NamePart;
10926
10927 /**
10928 * Creates a plain object from a NamePart message. Also converts values to other types if specified.
10929 * @param message NamePart
10930 * @param [options] Conversion options
10931 * @returns Plain object
10932 */
10933 public static toObject(message: google.protobuf.UninterpretedOption.NamePart, options?: $protobuf.IConversionOptions): { [k: string]: any };
10934
10935 /**
10936 * Converts this NamePart to JSON.
10937 * @returns JSON object
10938 */
10939 public toJSON(): { [k: string]: any };
10940 }
10941 }
10942
10943 /** Properties of a SourceCodeInfo. */
10944 interface ISourceCodeInfo {
10945
10946 /** SourceCodeInfo location */
10947 location?: (google.protobuf.SourceCodeInfo.ILocation[]|null);
10948 }
10949
10950 /** Represents a SourceCodeInfo. */
10951 class SourceCodeInfo implements ISourceCodeInfo {
10952
10953 /**
10954 * Constructs a new SourceCodeInfo.
10955 * @param [properties] Properties to set
10956 */
10957 constructor(properties?: google.protobuf.ISourceCodeInfo);
10958
10959 /** SourceCodeInfo location. */
10960 public location: google.protobuf.SourceCodeInfo.ILocation[];
10961
10962 /**
10963 * Creates a new SourceCodeInfo instance using the specified properties.
10964 * @param [properties] Properties to set
10965 * @returns SourceCodeInfo instance
10966 */
10967 public static create(properties?: google.protobuf.ISourceCodeInfo): google.protobuf.SourceCodeInfo;
10968
10969 /**
10970 * Encodes the specified SourceCodeInfo message. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages.
10971 * @param message SourceCodeInfo message or plain object to encode
10972 * @param [writer] Writer to encode to
10973 * @returns Writer
10974 */
10975 public static encode(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
10976
10977 /**
10978 * Encodes the specified SourceCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages.
10979 * @param message SourceCodeInfo message or plain object to encode
10980 * @param [writer] Writer to encode to
10981 * @returns Writer
10982 */
10983 public static encodeDelimited(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
10984
10985 /**
10986 * Decodes a SourceCodeInfo message from the specified reader or buffer.
10987 * @param reader Reader or buffer to decode from
10988 * @param [length] Message length if known beforehand
10989 * @returns SourceCodeInfo
10990 * @throws {Error} If the payload is not a reader or valid buffer
10991 * @throws {$protobuf.util.ProtocolError} If required fields are missing
10992 */
10993 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo;
10994
10995 /**
10996 * Decodes a SourceCodeInfo message from the specified reader or buffer, length delimited.
10997 * @param reader Reader or buffer to decode from
10998 * @returns SourceCodeInfo
10999 * @throws {Error} If the payload is not a reader or valid buffer
11000 * @throws {$protobuf.util.ProtocolError} If required fields are missing
11001 */
11002 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.SourceCodeInfo;
11003
11004 /**
11005 * Verifies a SourceCodeInfo message.
11006 * @param message Plain object to verify
11007 * @returns `null` if valid, otherwise the reason why it is not
11008 */
11009 public static verify(message: { [k: string]: any }): (string|null);
11010
11011 /**
11012 * Creates a SourceCodeInfo message from a plain object. Also converts values to their respective internal types.
11013 * @param object Plain object
11014 * @returns SourceCodeInfo
11015 */
11016 public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo;
11017
11018 /**
11019 * Creates a plain object from a SourceCodeInfo message. Also converts values to other types if specified.
11020 * @param message SourceCodeInfo
11021 * @param [options] Conversion options
11022 * @returns Plain object
11023 */
11024 public static toObject(message: google.protobuf.SourceCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
11025
11026 /**
11027 * Converts this SourceCodeInfo to JSON.
11028 * @returns JSON object
11029 */
11030 public toJSON(): { [k: string]: any };
11031 }
11032
11033 namespace SourceCodeInfo {
11034
11035 /** Properties of a Location. */
11036 interface ILocation {
11037
11038 /** Location path */
11039 path?: (number[]|null);
11040
11041 /** Location span */
11042 span?: (number[]|null);
11043
11044 /** Location leadingComments */
11045 leadingComments?: (string|null);
11046
11047 /** Location trailingComments */
11048 trailingComments?: (string|null);
11049
11050 /** Location leadingDetachedComments */
11051 leadingDetachedComments?: (string[]|null);
11052 }
11053
11054 /** Represents a Location. */
11055 class Location implements ILocation {
11056
11057 /**
11058 * Constructs a new Location.
11059 * @param [properties] Properties to set
11060 */
11061 constructor(properties?: google.protobuf.SourceCodeInfo.ILocation);
11062
11063 /** Location path. */
11064 public path: number[];
11065
11066 /** Location span. */
11067 public span: number[];
11068
11069 /** Location leadingComments. */
11070 public leadingComments: string;
11071
11072 /** Location trailingComments. */
11073 public trailingComments: string;
11074
11075 /** Location leadingDetachedComments. */
11076 public leadingDetachedComments: string[];
11077
11078 /**
11079 * Creates a new Location instance using the specified properties.
11080 * @param [properties] Properties to set
11081 * @returns Location instance
11082 */
11083 public static create(properties?: google.protobuf.SourceCodeInfo.ILocation): google.protobuf.SourceCodeInfo.Location;
11084
11085 /**
11086 * Encodes the specified Location message. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages.
11087 * @param message Location message or plain object to encode
11088 * @param [writer] Writer to encode to
11089 * @returns Writer
11090 */
11091 public static encode(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer;
11092
11093 /**
11094 * Encodes the specified Location message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages.
11095 * @param message Location message or plain object to encode
11096 * @param [writer] Writer to encode to
11097 * @returns Writer
11098 */
11099 public static encodeDelimited(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer;
11100
11101 /**
11102 * Decodes a Location message from the specified reader or buffer.
11103 * @param reader Reader or buffer to decode from
11104 * @param [length] Message length if known beforehand
11105 * @returns Location
11106 * @throws {Error} If the payload is not a reader or valid buffer
11107 * @throws {$protobuf.util.ProtocolError} If required fields are missing
11108 */
11109 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo.Location;
11110
11111 /**
11112 * Decodes a Location message from the specified reader or buffer, length delimited.
11113 * @param reader Reader or buffer to decode from
11114 * @returns Location
11115 * @throws {Error} If the payload is not a reader or valid buffer
11116 * @throws {$protobuf.util.ProtocolError} If required fields are missing
11117 */
11118 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.SourceCodeInfo.Location;
11119
11120 /**
11121 * Verifies a Location message.
11122 * @param message Plain object to verify
11123 * @returns `null` if valid, otherwise the reason why it is not
11124 */
11125 public static verify(message: { [k: string]: any }): (string|null);
11126
11127 /**
11128 * Creates a Location message from a plain object. Also converts values to their respective internal types.
11129 * @param object Plain object
11130 * @returns Location
11131 */
11132 public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo.Location;
11133
11134 /**
11135 * Creates a plain object from a Location message. Also converts values to other types if specified.
11136 * @param message Location
11137 * @param [options] Conversion options
11138 * @returns Plain object
11139 */
11140 public static toObject(message: google.protobuf.SourceCodeInfo.Location, options?: $protobuf.IConversionOptions): { [k: string]: any };
11141
11142 /**
11143 * Converts this Location to JSON.
11144 * @returns JSON object
11145 */
11146 public toJSON(): { [k: string]: any };
11147 }
11148 }
11149
11150 /** Properties of a GeneratedCodeInfo. */
11151 interface IGeneratedCodeInfo {
11152
11153 /** GeneratedCodeInfo annotation */
11154 annotation?: (google.protobuf.GeneratedCodeInfo.IAnnotation[]|null);
11155 }
11156
11157 /** Represents a GeneratedCodeInfo. */
11158 class GeneratedCodeInfo implements IGeneratedCodeInfo {
11159
11160 /**
11161 * Constructs a new GeneratedCodeInfo.
11162 * @param [properties] Properties to set
11163 */
11164 constructor(properties?: google.protobuf.IGeneratedCodeInfo);
11165
11166 /** GeneratedCodeInfo annotation. */
11167 public annotation: google.protobuf.GeneratedCodeInfo.IAnnotation[];
11168
11169 /**
11170 * Creates a new GeneratedCodeInfo instance using the specified properties.
11171 * @param [properties] Properties to set
11172 * @returns GeneratedCodeInfo instance
11173 */
11174 public static create(properties?: google.protobuf.IGeneratedCodeInfo): google.protobuf.GeneratedCodeInfo;
11175
11176 /**
11177 * Encodes the specified GeneratedCodeInfo message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages.
11178 * @param message GeneratedCodeInfo message or plain object to encode
11179 * @param [writer] Writer to encode to
11180 * @returns Writer
11181 */
11182 public static encode(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
11183
11184 /**
11185 * Encodes the specified GeneratedCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages.
11186 * @param message GeneratedCodeInfo message or plain object to encode
11187 * @param [writer] Writer to encode to
11188 * @returns Writer
11189 */
11190 public static encodeDelimited(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
11191
11192 /**
11193 * Decodes a GeneratedCodeInfo message from the specified reader or buffer.
11194 * @param reader Reader or buffer to decode from
11195 * @param [length] Message length if known beforehand
11196 * @returns GeneratedCodeInfo
11197 * @throws {Error} If the payload is not a reader or valid buffer
11198 * @throws {$protobuf.util.ProtocolError} If required fields are missing
11199 */
11200 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo;
11201
11202 /**
11203 * Decodes a GeneratedCodeInfo message from the specified reader or buffer, length delimited.
11204 * @param reader Reader or buffer to decode from
11205 * @returns GeneratedCodeInfo
11206 * @throws {Error} If the payload is not a reader or valid buffer
11207 * @throws {$protobuf.util.ProtocolError} If required fields are missing
11208 */
11209 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.GeneratedCodeInfo;
11210
11211 /**
11212 * Verifies a GeneratedCodeInfo message.
11213 * @param message Plain object to verify
11214 * @returns `null` if valid, otherwise the reason why it is not
11215 */
11216 public static verify(message: { [k: string]: any }): (string|null);
11217
11218 /**
11219 * Creates a GeneratedCodeInfo message from a plain object. Also converts values to their respective internal types.
11220 * @param object Plain object
11221 * @returns GeneratedCodeInfo
11222 */
11223 public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo;
11224
11225 /**
11226 * Creates a plain object from a GeneratedCodeInfo message. Also converts values to other types if specified.
11227 * @param message GeneratedCodeInfo
11228 * @param [options] Conversion options
11229 * @returns Plain object
11230 */
11231 public static toObject(message: google.protobuf.GeneratedCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
11232
11233 /**
11234 * Converts this GeneratedCodeInfo to JSON.
11235 * @returns JSON object
11236 */
11237 public toJSON(): { [k: string]: any };
11238 }
11239
11240 namespace GeneratedCodeInfo {
11241
11242 /** Properties of an Annotation. */
11243 interface IAnnotation {
11244
11245 /** Annotation path */
11246 path?: (number[]|null);
11247
11248 /** Annotation sourceFile */
11249 sourceFile?: (string|null);
11250
11251 /** Annotation begin */
11252 begin?: (number|null);
11253
11254 /** Annotation end */
11255 end?: (number|null);
11256 }
11257
11258 /** Represents an Annotation. */
11259 class Annotation implements IAnnotation {
11260
11261 /**
11262 * Constructs a new Annotation.
11263 * @param [properties] Properties to set
11264 */
11265 constructor(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation);
11266
11267 /** Annotation path. */
11268 public path: number[];
11269
11270 /** Annotation sourceFile. */
11271 public sourceFile: string;
11272
11273 /** Annotation begin. */
11274 public begin: number;
11275
11276 /** Annotation end. */
11277 public end: number;
11278
11279 /**
11280 * Creates a new Annotation instance using the specified properties.
11281 * @param [properties] Properties to set
11282 * @returns Annotation instance
11283 */
11284 public static create(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation): google.protobuf.GeneratedCodeInfo.Annotation;
11285
11286 /**
11287 * Encodes the specified Annotation message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages.
11288 * @param message Annotation message or plain object to encode
11289 * @param [writer] Writer to encode to
11290 * @returns Writer
11291 */
11292 public static encode(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
11293
11294 /**
11295 * Encodes the specified Annotation message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages.
11296 * @param message Annotation message or plain object to encode
11297 * @param [writer] Writer to encode to
11298 * @returns Writer
11299 */
11300 public static encodeDelimited(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
11301
11302 /**
11303 * Decodes an Annotation message from the specified reader or buffer.
11304 * @param reader Reader or buffer to decode from
11305 * @param [length] Message length if known beforehand
11306 * @returns Annotation
11307 * @throws {Error} If the payload is not a reader or valid buffer
11308 * @throws {$protobuf.util.ProtocolError} If required fields are missing
11309 */
11310 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo.Annotation;
11311
11312 /**
11313 * Decodes an Annotation message from the specified reader or buffer, length delimited.
11314 * @param reader Reader or buffer to decode from
11315 * @returns Annotation
11316 * @throws {Error} If the payload is not a reader or valid buffer
11317 * @throws {$protobuf.util.ProtocolError} If required fields are missing
11318 */
11319 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.GeneratedCodeInfo.Annotation;
11320
11321 /**
11322 * Verifies an Annotation message.
11323 * @param message Plain object to verify
11324 * @returns `null` if valid, otherwise the reason why it is not
11325 */
11326 public static verify(message: { [k: string]: any }): (string|null);
11327
11328 /**
11329 * Creates an Annotation message from a plain object. Also converts values to their respective internal types.
11330 * @param object Plain object
11331 * @returns Annotation
11332 */
11333 public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo.Annotation;
11334
11335 /**
11336 * Creates a plain object from an Annotation message. Also converts values to other types if specified.
11337 * @param message Annotation
11338 * @param [options] Conversion options
11339 * @returns Plain object
11340 */
11341 public static toObject(message: google.protobuf.GeneratedCodeInfo.Annotation, options?: $protobuf.IConversionOptions): { [k: string]: any };
11342
11343 /**
11344 * Converts this Annotation to JSON.
11345 * @returns JSON object
11346 */
11347 public toJSON(): { [k: string]: any };
11348 }
11349 }
11350
11351 /** Properties of an Any. */
11352 interface IAny {
11353
11354 /** Any type_url */
11355 type_url?: (string|null);
11356
11357 /** Any value */
11358 value?: (Uint8Array|string|null);
11359 }
11360
11361 /** Represents an Any. */
11362 class Any implements IAny {
11363
11364 /**
11365 * Constructs a new Any.
11366 * @param [properties] Properties to set
11367 */
11368 constructor(properties?: google.protobuf.IAny);
11369
11370 /** Any type_url. */
11371 public type_url: string;
11372
11373 /** Any value. */
11374 public value: (Uint8Array|string);
11375
11376 /**
11377 * Creates a new Any instance using the specified properties.
11378 * @param [properties] Properties to set
11379 * @returns Any instance
11380 */
11381 public static create(properties?: google.protobuf.IAny): google.protobuf.Any;
11382
11383 /**
11384 * Encodes the specified Any message. Does not implicitly {@link google.protobuf.Any.verify|verify} messages.
11385 * @param message Any message or plain object to encode
11386 * @param [writer] Writer to encode to
11387 * @returns Writer
11388 */
11389 public static encode(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer;
11390
11391 /**
11392 * Encodes the specified Any message, length delimited. Does not implicitly {@link google.protobuf.Any.verify|verify} messages.
11393 * @param message Any message or plain object to encode
11394 * @param [writer] Writer to encode to
11395 * @returns Writer
11396 */
11397 public static encodeDelimited(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer;
11398
11399 /**
11400 * Decodes an Any message from the specified reader or buffer.
11401 * @param reader Reader or buffer to decode from
11402 * @param [length] Message length if known beforehand
11403 * @returns Any
11404 * @throws {Error} If the payload is not a reader or valid buffer
11405 * @throws {$protobuf.util.ProtocolError} If required fields are missing
11406 */
11407 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Any;
11408
11409 /**
11410 * Decodes an Any message from the specified reader or buffer, length delimited.
11411 * @param reader Reader or buffer to decode from
11412 * @returns Any
11413 * @throws {Error} If the payload is not a reader or valid buffer
11414 * @throws {$protobuf.util.ProtocolError} If required fields are missing
11415 */
11416 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Any;
11417
11418 /**
11419 * Verifies an Any message.
11420 * @param message Plain object to verify
11421 * @returns `null` if valid, otherwise the reason why it is not
11422 */
11423 public static verify(message: { [k: string]: any }): (string|null);
11424
11425 /**
11426 * Creates an Any message from a plain object. Also converts values to their respective internal types.
11427 * @param object Plain object
11428 * @returns Any
11429 */
11430 public static fromObject(object: { [k: string]: any }): google.protobuf.Any;
11431
11432 /**
11433 * Creates a plain object from an Any message. Also converts values to other types if specified.
11434 * @param message Any
11435 * @param [options] Conversion options
11436 * @returns Plain object
11437 */
11438 public static toObject(message: google.protobuf.Any, options?: $protobuf.IConversionOptions): { [k: string]: any };
11439
11440 /**
11441 * Converts this Any to JSON.
11442 * @returns JSON object
11443 */
11444 public toJSON(): { [k: string]: any };
11445 }
11446
11447 /** Properties of a Duration. */
11448 interface IDuration {
11449
11450 /** Duration seconds */
11451 seconds?: (number|Long|string|null);
11452
11453 /** Duration nanos */
11454 nanos?: (number|null);
11455 }
11456
11457 /** Represents a Duration. */
11458 class Duration implements IDuration {
11459
11460 /**
11461 * Constructs a new Duration.
11462 * @param [properties] Properties to set
11463 */
11464 constructor(properties?: google.protobuf.IDuration);
11465
11466 /** Duration seconds. */
11467 public seconds: (number|Long|string);
11468
11469 /** Duration nanos. */
11470 public nanos: number;
11471
11472 /**
11473 * Creates a new Duration instance using the specified properties.
11474 * @param [properties] Properties to set
11475 * @returns Duration instance
11476 */
11477 public static create(properties?: google.protobuf.IDuration): google.protobuf.Duration;
11478
11479 /**
11480 * Encodes the specified Duration message. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages.
11481 * @param message Duration message or plain object to encode
11482 * @param [writer] Writer to encode to
11483 * @returns Writer
11484 */
11485 public static encode(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer;
11486
11487 /**
11488 * Encodes the specified Duration message, length delimited. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages.
11489 * @param message Duration message or plain object to encode
11490 * @param [writer] Writer to encode to
11491 * @returns Writer
11492 */
11493 public static encodeDelimited(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer;
11494
11495 /**
11496 * Decodes a Duration message from the specified reader or buffer.
11497 * @param reader Reader or buffer to decode from
11498 * @param [length] Message length if known beforehand
11499 * @returns Duration
11500 * @throws {Error} If the payload is not a reader or valid buffer
11501 * @throws {$protobuf.util.ProtocolError} If required fields are missing
11502 */
11503 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Duration;
11504
11505 /**
11506 * Decodes a Duration message from the specified reader or buffer, length delimited.
11507 * @param reader Reader or buffer to decode from
11508 * @returns Duration
11509 * @throws {Error} If the payload is not a reader or valid buffer
11510 * @throws {$protobuf.util.ProtocolError} If required fields are missing
11511 */
11512 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Duration;
11513
11514 /**
11515 * Verifies a Duration message.
11516 * @param message Plain object to verify
11517 * @returns `null` if valid, otherwise the reason why it is not
11518 */
11519 public static verify(message: { [k: string]: any }): (string|null);
11520
11521 /**
11522 * Creates a Duration message from a plain object. Also converts values to their respective internal types.
11523 * @param object Plain object
11524 * @returns Duration
11525 */
11526 public static fromObject(object: { [k: string]: any }): google.protobuf.Duration;
11527
11528 /**
11529 * Creates a plain object from a Duration message. Also converts values to other types if specified.
11530 * @param message Duration
11531 * @param [options] Conversion options
11532 * @returns Plain object
11533 */
11534 public static toObject(message: google.protobuf.Duration, options?: $protobuf.IConversionOptions): { [k: string]: any };
11535
11536 /**
11537 * Converts this Duration to JSON.
11538 * @returns JSON object
11539 */
11540 public toJSON(): { [k: string]: any };
11541 }
11542
11543 /** Properties of an Empty. */
11544 interface IEmpty {
11545 }
11546
11547 /** Represents an Empty. */
11548 class Empty implements IEmpty {
11549
11550 /**
11551 * Constructs a new Empty.
11552 * @param [properties] Properties to set
11553 */
11554 constructor(properties?: google.protobuf.IEmpty);
11555
11556 /**
11557 * Creates a new Empty instance using the specified properties.
11558 * @param [properties] Properties to set
11559 * @returns Empty instance
11560 */
11561 public static create(properties?: google.protobuf.IEmpty): google.protobuf.Empty;
11562
11563 /**
11564 * Encodes the specified Empty message. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages.
11565 * @param message Empty message or plain object to encode
11566 * @param [writer] Writer to encode to
11567 * @returns Writer
11568 */
11569 public static encode(message: google.protobuf.IEmpty, writer?: $protobuf.Writer): $protobuf.Writer;
11570
11571 /**
11572 * Encodes the specified Empty message, length delimited. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages.
11573 * @param message Empty message or plain object to encode
11574 * @param [writer] Writer to encode to
11575 * @returns Writer
11576 */
11577 public static encodeDelimited(message: google.protobuf.IEmpty, writer?: $protobuf.Writer): $protobuf.Writer;
11578
11579 /**
11580 * Decodes an Empty message from the specified reader or buffer.
11581 * @param reader Reader or buffer to decode from
11582 * @param [length] Message length if known beforehand
11583 * @returns Empty
11584 * @throws {Error} If the payload is not a reader or valid buffer
11585 * @throws {$protobuf.util.ProtocolError} If required fields are missing
11586 */
11587 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Empty;
11588
11589 /**
11590 * Decodes an Empty message from the specified reader or buffer, length delimited.
11591 * @param reader Reader or buffer to decode from
11592 * @returns Empty
11593 * @throws {Error} If the payload is not a reader or valid buffer
11594 * @throws {$protobuf.util.ProtocolError} If required fields are missing
11595 */
11596 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Empty;
11597
11598 /**
11599 * Verifies an Empty message.
11600 * @param message Plain object to verify
11601 * @returns `null` if valid, otherwise the reason why it is not
11602 */
11603 public static verify(message: { [k: string]: any }): (string|null);
11604
11605 /**
11606 * Creates an Empty message from a plain object. Also converts values to their respective internal types.
11607 * @param object Plain object
11608 * @returns Empty
11609 */
11610 public static fromObject(object: { [k: string]: any }): google.protobuf.Empty;
11611
11612 /**
11613 * Creates a plain object from an Empty message. Also converts values to other types if specified.
11614 * @param message Empty
11615 * @param [options] Conversion options
11616 * @returns Plain object
11617 */
11618 public static toObject(message: google.protobuf.Empty, options?: $protobuf.IConversionOptions): { [k: string]: any };
11619
11620 /**
11621 * Converts this Empty to JSON.
11622 * @returns JSON object
11623 */
11624 public toJSON(): { [k: string]: any };
11625 }
11626
11627 /** Properties of a Timestamp. */
11628 interface ITimestamp {
11629
11630 /** Timestamp seconds */
11631 seconds?: (number|Long|string|null);
11632
11633 /** Timestamp nanos */
11634 nanos?: (number|null);
11635 }
11636
11637 /** Represents a Timestamp. */
11638 class Timestamp implements ITimestamp {
11639
11640 /**
11641 * Constructs a new Timestamp.
11642 * @param [properties] Properties to set
11643 */
11644 constructor(properties?: google.protobuf.ITimestamp);
11645
11646 /** Timestamp seconds. */
11647 public seconds: (number|Long|string);
11648
11649 /** Timestamp nanos. */
11650 public nanos: number;
11651
11652 /**
11653 * Creates a new Timestamp instance using the specified properties.
11654 * @param [properties] Properties to set
11655 * @returns Timestamp instance
11656 */
11657 public static create(properties?: google.protobuf.ITimestamp): google.protobuf.Timestamp;
11658
11659 /**
11660 * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages.
11661 * @param message Timestamp message or plain object to encode
11662 * @param [writer] Writer to encode to
11663 * @returns Writer
11664 */
11665 public static encode(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer;
11666
11667 /**
11668 * Encodes the specified Timestamp message, length delimited. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages.
11669 * @param message Timestamp message or plain object to encode
11670 * @param [writer] Writer to encode to
11671 * @returns Writer
11672 */
11673 public static encodeDelimited(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer;
11674
11675 /**
11676 * Decodes a Timestamp message from the specified reader or buffer.
11677 * @param reader Reader or buffer to decode from
11678 * @param [length] Message length if known beforehand
11679 * @returns Timestamp
11680 * @throws {Error} If the payload is not a reader or valid buffer
11681 * @throws {$protobuf.util.ProtocolError} If required fields are missing
11682 */
11683 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Timestamp;
11684
11685 /**
11686 * Decodes a Timestamp message from the specified reader or buffer, length delimited.
11687 * @param reader Reader or buffer to decode from
11688 * @returns Timestamp
11689 * @throws {Error} If the payload is not a reader or valid buffer
11690 * @throws {$protobuf.util.ProtocolError} If required fields are missing
11691 */
11692 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Timestamp;
11693
11694 /**
11695 * Verifies a Timestamp message.
11696 * @param message Plain object to verify
11697 * @returns `null` if valid, otherwise the reason why it is not
11698 */
11699 public static verify(message: { [k: string]: any }): (string|null);
11700
11701 /**
11702 * Creates a Timestamp message from a plain object. Also converts values to their respective internal types.
11703 * @param object Plain object
11704 * @returns Timestamp
11705 */
11706 public static fromObject(object: { [k: string]: any }): google.protobuf.Timestamp;
11707
11708 /**
11709 * Creates a plain object from a Timestamp message. Also converts values to other types if specified.
11710 * @param message Timestamp
11711 * @param [options] Conversion options
11712 * @returns Plain object
11713 */
11714 public static toObject(message: google.protobuf.Timestamp, options?: $protobuf.IConversionOptions): { [k: string]: any };
11715
11716 /**
11717 * Converts this Timestamp to JSON.
11718 * @returns JSON object
11719 */
11720 public toJSON(): { [k: string]: any };
11721 }
11722 }
11723
11724 /** Namespace longrunning. */
11725 namespace longrunning {
11726
11727 /** Represents an Operations */
11728 class Operations extends $protobuf.rpc.Service {
11729
11730 /**
11731 * Constructs a new Operations service.
11732 * @param rpcImpl RPC implementation
11733 * @param [requestDelimited=false] Whether requests are length-delimited
11734 * @param [responseDelimited=false] Whether responses are length-delimited
11735 */
11736 constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
11737
11738 /**
11739 * Creates new Operations service using the specified rpc implementation.
11740 * @param rpcImpl RPC implementation
11741 * @param [requestDelimited=false] Whether requests are length-delimited
11742 * @param [responseDelimited=false] Whether responses are length-delimited
11743 * @returns RPC service. Useful where requests and/or responses are streamed.
11744 */
11745 public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Operations;
11746
11747 /**
11748 * Calls ListOperations.
11749 * @param request ListOperationsRequest message or plain object
11750 * @param callback Node-style callback called with the error, if any, and ListOperationsResponse
11751 */
11752 public listOperations(request: google.longrunning.IListOperationsRequest, callback: google.longrunning.Operations.ListOperationsCallback): void;
11753
11754 /**
11755 * Calls ListOperations.
11756 * @param request ListOperationsRequest message or plain object
11757 * @returns Promise
11758 */
11759 public listOperations(request: google.longrunning.IListOperationsRequest): Promise<google.longrunning.ListOperationsResponse>;
11760
11761 /**
11762 * Calls GetOperation.
11763 * @param request GetOperationRequest message or plain object
11764 * @param callback Node-style callback called with the error, if any, and Operation
11765 */
11766 public getOperation(request: google.longrunning.IGetOperationRequest, callback: google.longrunning.Operations.GetOperationCallback): void;
11767
11768 /**
11769 * Calls GetOperation.
11770 * @param request GetOperationRequest message or plain object
11771 * @returns Promise
11772 */
11773 public getOperation(request: google.longrunning.IGetOperationRequest): Promise<google.longrunning.Operation>;
11774
11775 /**
11776 * Calls DeleteOperation.
11777 * @param request DeleteOperationRequest message or plain object
11778 * @param callback Node-style callback called with the error, if any, and Empty
11779 */
11780 public deleteOperation(request: google.longrunning.IDeleteOperationRequest, callback: google.longrunning.Operations.DeleteOperationCallback): void;
11781
11782 /**
11783 * Calls DeleteOperation.
11784 * @param request DeleteOperationRequest message or plain object
11785 * @returns Promise
11786 */
11787 public deleteOperation(request: google.longrunning.IDeleteOperationRequest): Promise<google.protobuf.Empty>;
11788
11789 /**
11790 * Calls CancelOperation.
11791 * @param request CancelOperationRequest message or plain object
11792 * @param callback Node-style callback called with the error, if any, and Empty
11793 */
11794 public cancelOperation(request: google.longrunning.ICancelOperationRequest, callback: google.longrunning.Operations.CancelOperationCallback): void;
11795
11796 /**
11797 * Calls CancelOperation.
11798 * @param request CancelOperationRequest message or plain object
11799 * @returns Promise
11800 */
11801 public cancelOperation(request: google.longrunning.ICancelOperationRequest): Promise<google.protobuf.Empty>;
11802
11803 /**
11804 * Calls WaitOperation.
11805 * @param request WaitOperationRequest message or plain object
11806 * @param callback Node-style callback called with the error, if any, and Operation
11807 */
11808 public waitOperation(request: google.longrunning.IWaitOperationRequest, callback: google.longrunning.Operations.WaitOperationCallback): void;
11809
11810 /**
11811 * Calls WaitOperation.
11812 * @param request WaitOperationRequest message or plain object
11813 * @returns Promise
11814 */
11815 public waitOperation(request: google.longrunning.IWaitOperationRequest): Promise<google.longrunning.Operation>;
11816 }
11817
11818 namespace Operations {
11819
11820 /**
11821 * Callback as used by {@link google.longrunning.Operations#listOperations}.
11822 * @param error Error, if any
11823 * @param [response] ListOperationsResponse
11824 */
11825 type ListOperationsCallback = (error: (Error|null), response?: google.longrunning.ListOperationsResponse) => void;
11826
11827 /**
11828 * Callback as used by {@link google.longrunning.Operations#getOperation}.
11829 * @param error Error, if any
11830 * @param [response] Operation
11831 */
11832 type GetOperationCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
11833
11834 /**
11835 * Callback as used by {@link google.longrunning.Operations#deleteOperation}.
11836 * @param error Error, if any
11837 * @param [response] Empty
11838 */
11839 type DeleteOperationCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
11840
11841 /**
11842 * Callback as used by {@link google.longrunning.Operations#cancelOperation}.
11843 * @param error Error, if any
11844 * @param [response] Empty
11845 */
11846 type CancelOperationCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
11847
11848 /**
11849 * Callback as used by {@link google.longrunning.Operations#waitOperation}.
11850 * @param error Error, if any
11851 * @param [response] Operation
11852 */
11853 type WaitOperationCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
11854 }
11855
11856 /** Properties of an Operation. */
11857 interface IOperation {
11858
11859 /** Operation name */
11860 name?: (string|null);
11861
11862 /** Operation metadata */
11863 metadata?: (google.protobuf.IAny|null);
11864
11865 /** Operation done */
11866 done?: (boolean|null);
11867
11868 /** Operation error */
11869 error?: (google.rpc.IStatus|null);
11870
11871 /** Operation response */
11872 response?: (google.protobuf.IAny|null);
11873 }
11874
11875 /** Represents an Operation. */
11876 class Operation implements IOperation {
11877
11878 /**
11879 * Constructs a new Operation.
11880 * @param [properties] Properties to set
11881 */
11882 constructor(properties?: google.longrunning.IOperation);
11883
11884 /** Operation name. */
11885 public name: string;
11886
11887 /** Operation metadata. */
11888 public metadata?: (google.protobuf.IAny|null);
11889
11890 /** Operation done. */
11891 public done: boolean;
11892
11893 /** Operation error. */
11894 public error?: (google.rpc.IStatus|null);
11895
11896 /** Operation response. */
11897 public response?: (google.protobuf.IAny|null);
11898
11899 /** Operation result. */
11900 public result?: ("error"|"response");
11901
11902 /**
11903 * Creates a new Operation instance using the specified properties.
11904 * @param [properties] Properties to set
11905 * @returns Operation instance
11906 */
11907 public static create(properties?: google.longrunning.IOperation): google.longrunning.Operation;
11908
11909 /**
11910 * Encodes the specified Operation message. Does not implicitly {@link google.longrunning.Operation.verify|verify} messages.
11911 * @param message Operation message or plain object to encode
11912 * @param [writer] Writer to encode to
11913 * @returns Writer
11914 */
11915 public static encode(message: google.longrunning.IOperation, writer?: $protobuf.Writer): $protobuf.Writer;
11916
11917 /**
11918 * Encodes the specified Operation message, length delimited. Does not implicitly {@link google.longrunning.Operation.verify|verify} messages.
11919 * @param message Operation message or plain object to encode
11920 * @param [writer] Writer to encode to
11921 * @returns Writer
11922 */
11923 public static encodeDelimited(message: google.longrunning.IOperation, writer?: $protobuf.Writer): $protobuf.Writer;
11924
11925 /**
11926 * Decodes an Operation message from the specified reader or buffer.
11927 * @param reader Reader or buffer to decode from
11928 * @param [length] Message length if known beforehand
11929 * @returns Operation
11930 * @throws {Error} If the payload is not a reader or valid buffer
11931 * @throws {$protobuf.util.ProtocolError} If required fields are missing
11932 */
11933 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.Operation;
11934
11935 /**
11936 * Decodes an Operation message from the specified reader or buffer, length delimited.
11937 * @param reader Reader or buffer to decode from
11938 * @returns Operation
11939 * @throws {Error} If the payload is not a reader or valid buffer
11940 * @throws {$protobuf.util.ProtocolError} If required fields are missing
11941 */
11942 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.Operation;
11943
11944 /**
11945 * Verifies an Operation message.
11946 * @param message Plain object to verify
11947 * @returns `null` if valid, otherwise the reason why it is not
11948 */
11949 public static verify(message: { [k: string]: any }): (string|null);
11950
11951 /**
11952 * Creates an Operation message from a plain object. Also converts values to their respective internal types.
11953 * @param object Plain object
11954 * @returns Operation
11955 */
11956 public static fromObject(object: { [k: string]: any }): google.longrunning.Operation;
11957
11958 /**
11959 * Creates a plain object from an Operation message. Also converts values to other types if specified.
11960 * @param message Operation
11961 * @param [options] Conversion options
11962 * @returns Plain object
11963 */
11964 public static toObject(message: google.longrunning.Operation, options?: $protobuf.IConversionOptions): { [k: string]: any };
11965
11966 /**
11967 * Converts this Operation to JSON.
11968 * @returns JSON object
11969 */
11970 public toJSON(): { [k: string]: any };
11971 }
11972
11973 /** Properties of a GetOperationRequest. */
11974 interface IGetOperationRequest {
11975
11976 /** GetOperationRequest name */
11977 name?: (string|null);
11978 }
11979
11980 /** Represents a GetOperationRequest. */
11981 class GetOperationRequest implements IGetOperationRequest {
11982
11983 /**
11984 * Constructs a new GetOperationRequest.
11985 * @param [properties] Properties to set
11986 */
11987 constructor(properties?: google.longrunning.IGetOperationRequest);
11988
11989 /** GetOperationRequest name. */
11990 public name: string;
11991
11992 /**
11993 * Creates a new GetOperationRequest instance using the specified properties.
11994 * @param [properties] Properties to set
11995 * @returns GetOperationRequest instance
11996 */
11997 public static create(properties?: google.longrunning.IGetOperationRequest): google.longrunning.GetOperationRequest;
11998
11999 /**
12000 * Encodes the specified GetOperationRequest message. Does not implicitly {@link google.longrunning.GetOperationRequest.verify|verify} messages.
12001 * @param message GetOperationRequest message or plain object to encode
12002 * @param [writer] Writer to encode to
12003 * @returns Writer
12004 */
12005 public static encode(message: google.longrunning.IGetOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
12006
12007 /**
12008 * Encodes the specified GetOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.GetOperationRequest.verify|verify} messages.
12009 * @param message GetOperationRequest message or plain object to encode
12010 * @param [writer] Writer to encode to
12011 * @returns Writer
12012 */
12013 public static encodeDelimited(message: google.longrunning.IGetOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
12014
12015 /**
12016 * Decodes a GetOperationRequest message from the specified reader or buffer.
12017 * @param reader Reader or buffer to decode from
12018 * @param [length] Message length if known beforehand
12019 * @returns GetOperationRequest
12020 * @throws {Error} If the payload is not a reader or valid buffer
12021 * @throws {$protobuf.util.ProtocolError} If required fields are missing
12022 */
12023 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.GetOperationRequest;
12024
12025 /**
12026 * Decodes a GetOperationRequest message from the specified reader or buffer, length delimited.
12027 * @param reader Reader or buffer to decode from
12028 * @returns GetOperationRequest
12029 * @throws {Error} If the payload is not a reader or valid buffer
12030 * @throws {$protobuf.util.ProtocolError} If required fields are missing
12031 */
12032 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.GetOperationRequest;
12033
12034 /**
12035 * Verifies a GetOperationRequest message.
12036 * @param message Plain object to verify
12037 * @returns `null` if valid, otherwise the reason why it is not
12038 */
12039 public static verify(message: { [k: string]: any }): (string|null);
12040
12041 /**
12042 * Creates a GetOperationRequest message from a plain object. Also converts values to their respective internal types.
12043 * @param object Plain object
12044 * @returns GetOperationRequest
12045 */
12046 public static fromObject(object: { [k: string]: any }): google.longrunning.GetOperationRequest;
12047
12048 /**
12049 * Creates a plain object from a GetOperationRequest message. Also converts values to other types if specified.
12050 * @param message GetOperationRequest
12051 * @param [options] Conversion options
12052 * @returns Plain object
12053 */
12054 public static toObject(message: google.longrunning.GetOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
12055
12056 /**
12057 * Converts this GetOperationRequest to JSON.
12058 * @returns JSON object
12059 */
12060 public toJSON(): { [k: string]: any };
12061 }
12062
12063 /** Properties of a ListOperationsRequest. */
12064 interface IListOperationsRequest {
12065
12066 /** ListOperationsRequest name */
12067 name?: (string|null);
12068
12069 /** ListOperationsRequest filter */
12070 filter?: (string|null);
12071
12072 /** ListOperationsRequest pageSize */
12073 pageSize?: (number|null);
12074
12075 /** ListOperationsRequest pageToken */
12076 pageToken?: (string|null);
12077 }
12078
12079 /** Represents a ListOperationsRequest. */
12080 class ListOperationsRequest implements IListOperationsRequest {
12081
12082 /**
12083 * Constructs a new ListOperationsRequest.
12084 * @param [properties] Properties to set
12085 */
12086 constructor(properties?: google.longrunning.IListOperationsRequest);
12087
12088 /** ListOperationsRequest name. */
12089 public name: string;
12090
12091 /** ListOperationsRequest filter. */
12092 public filter: string;
12093
12094 /** ListOperationsRequest pageSize. */
12095 public pageSize: number;
12096
12097 /** ListOperationsRequest pageToken. */
12098 public pageToken: string;
12099
12100 /**
12101 * Creates a new ListOperationsRequest instance using the specified properties.
12102 * @param [properties] Properties to set
12103 * @returns ListOperationsRequest instance
12104 */
12105 public static create(properties?: google.longrunning.IListOperationsRequest): google.longrunning.ListOperationsRequest;
12106
12107 /**
12108 * Encodes the specified ListOperationsRequest message. Does not implicitly {@link google.longrunning.ListOperationsRequest.verify|verify} messages.
12109 * @param message ListOperationsRequest message or plain object to encode
12110 * @param [writer] Writer to encode to
12111 * @returns Writer
12112 */
12113 public static encode(message: google.longrunning.IListOperationsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
12114
12115 /**
12116 * Encodes the specified ListOperationsRequest message, length delimited. Does not implicitly {@link google.longrunning.ListOperationsRequest.verify|verify} messages.
12117 * @param message ListOperationsRequest message or plain object to encode
12118 * @param [writer] Writer to encode to
12119 * @returns Writer
12120 */
12121 public static encodeDelimited(message: google.longrunning.IListOperationsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
12122
12123 /**
12124 * Decodes a ListOperationsRequest message from the specified reader or buffer.
12125 * @param reader Reader or buffer to decode from
12126 * @param [length] Message length if known beforehand
12127 * @returns ListOperationsRequest
12128 * @throws {Error} If the payload is not a reader or valid buffer
12129 * @throws {$protobuf.util.ProtocolError} If required fields are missing
12130 */
12131 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.ListOperationsRequest;
12132
12133 /**
12134 * Decodes a ListOperationsRequest message from the specified reader or buffer, length delimited.
12135 * @param reader Reader or buffer to decode from
12136 * @returns ListOperationsRequest
12137 * @throws {Error} If the payload is not a reader or valid buffer
12138 * @throws {$protobuf.util.ProtocolError} If required fields are missing
12139 */
12140 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.ListOperationsRequest;
12141
12142 /**
12143 * Verifies a ListOperationsRequest message.
12144 * @param message Plain object to verify
12145 * @returns `null` if valid, otherwise the reason why it is not
12146 */
12147 public static verify(message: { [k: string]: any }): (string|null);
12148
12149 /**
12150 * Creates a ListOperationsRequest message from a plain object. Also converts values to their respective internal types.
12151 * @param object Plain object
12152 * @returns ListOperationsRequest
12153 */
12154 public static fromObject(object: { [k: string]: any }): google.longrunning.ListOperationsRequest;
12155
12156 /**
12157 * Creates a plain object from a ListOperationsRequest message. Also converts values to other types if specified.
12158 * @param message ListOperationsRequest
12159 * @param [options] Conversion options
12160 * @returns Plain object
12161 */
12162 public static toObject(message: google.longrunning.ListOperationsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
12163
12164 /**
12165 * Converts this ListOperationsRequest to JSON.
12166 * @returns JSON object
12167 */
12168 public toJSON(): { [k: string]: any };
12169 }
12170
12171 /** Properties of a ListOperationsResponse. */
12172 interface IListOperationsResponse {
12173
12174 /** ListOperationsResponse operations */
12175 operations?: (google.longrunning.IOperation[]|null);
12176
12177 /** ListOperationsResponse nextPageToken */
12178 nextPageToken?: (string|null);
12179 }
12180
12181 /** Represents a ListOperationsResponse. */
12182 class ListOperationsResponse implements IListOperationsResponse {
12183
12184 /**
12185 * Constructs a new ListOperationsResponse.
12186 * @param [properties] Properties to set
12187 */
12188 constructor(properties?: google.longrunning.IListOperationsResponse);
12189
12190 /** ListOperationsResponse operations. */
12191 public operations: google.longrunning.IOperation[];
12192
12193 /** ListOperationsResponse nextPageToken. */
12194 public nextPageToken: string;
12195
12196 /**
12197 * Creates a new ListOperationsResponse instance using the specified properties.
12198 * @param [properties] Properties to set
12199 * @returns ListOperationsResponse instance
12200 */
12201 public static create(properties?: google.longrunning.IListOperationsResponse): google.longrunning.ListOperationsResponse;
12202
12203 /**
12204 * Encodes the specified ListOperationsResponse message. Does not implicitly {@link google.longrunning.ListOperationsResponse.verify|verify} messages.
12205 * @param message ListOperationsResponse message or plain object to encode
12206 * @param [writer] Writer to encode to
12207 * @returns Writer
12208 */
12209 public static encode(message: google.longrunning.IListOperationsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
12210
12211 /**
12212 * Encodes the specified ListOperationsResponse message, length delimited. Does not implicitly {@link google.longrunning.ListOperationsResponse.verify|verify} messages.
12213 * @param message ListOperationsResponse message or plain object to encode
12214 * @param [writer] Writer to encode to
12215 * @returns Writer
12216 */
12217 public static encodeDelimited(message: google.longrunning.IListOperationsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
12218
12219 /**
12220 * Decodes a ListOperationsResponse message from the specified reader or buffer.
12221 * @param reader Reader or buffer to decode from
12222 * @param [length] Message length if known beforehand
12223 * @returns ListOperationsResponse
12224 * @throws {Error} If the payload is not a reader or valid buffer
12225 * @throws {$protobuf.util.ProtocolError} If required fields are missing
12226 */
12227 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.ListOperationsResponse;
12228
12229 /**
12230 * Decodes a ListOperationsResponse message from the specified reader or buffer, length delimited.
12231 * @param reader Reader or buffer to decode from
12232 * @returns ListOperationsResponse
12233 * @throws {Error} If the payload is not a reader or valid buffer
12234 * @throws {$protobuf.util.ProtocolError} If required fields are missing
12235 */
12236 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.ListOperationsResponse;
12237
12238 /**
12239 * Verifies a ListOperationsResponse message.
12240 * @param message Plain object to verify
12241 * @returns `null` if valid, otherwise the reason why it is not
12242 */
12243 public static verify(message: { [k: string]: any }): (string|null);
12244
12245 /**
12246 * Creates a ListOperationsResponse message from a plain object. Also converts values to their respective internal types.
12247 * @param object Plain object
12248 * @returns ListOperationsResponse
12249 */
12250 public static fromObject(object: { [k: string]: any }): google.longrunning.ListOperationsResponse;
12251
12252 /**
12253 * Creates a plain object from a ListOperationsResponse message. Also converts values to other types if specified.
12254 * @param message ListOperationsResponse
12255 * @param [options] Conversion options
12256 * @returns Plain object
12257 */
12258 public static toObject(message: google.longrunning.ListOperationsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
12259
12260 /**
12261 * Converts this ListOperationsResponse to JSON.
12262 * @returns JSON object
12263 */
12264 public toJSON(): { [k: string]: any };
12265 }
12266
12267 /** Properties of a CancelOperationRequest. */
12268 interface ICancelOperationRequest {
12269
12270 /** CancelOperationRequest name */
12271 name?: (string|null);
12272 }
12273
12274 /** Represents a CancelOperationRequest. */
12275 class CancelOperationRequest implements ICancelOperationRequest {
12276
12277 /**
12278 * Constructs a new CancelOperationRequest.
12279 * @param [properties] Properties to set
12280 */
12281 constructor(properties?: google.longrunning.ICancelOperationRequest);
12282
12283 /** CancelOperationRequest name. */
12284 public name: string;
12285
12286 /**
12287 * Creates a new CancelOperationRequest instance using the specified properties.
12288 * @param [properties] Properties to set
12289 * @returns CancelOperationRequest instance
12290 */
12291 public static create(properties?: google.longrunning.ICancelOperationRequest): google.longrunning.CancelOperationRequest;
12292
12293 /**
12294 * Encodes the specified CancelOperationRequest message. Does not implicitly {@link google.longrunning.CancelOperationRequest.verify|verify} messages.
12295 * @param message CancelOperationRequest message or plain object to encode
12296 * @param [writer] Writer to encode to
12297 * @returns Writer
12298 */
12299 public static encode(message: google.longrunning.ICancelOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
12300
12301 /**
12302 * Encodes the specified CancelOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.CancelOperationRequest.verify|verify} messages.
12303 * @param message CancelOperationRequest message or plain object to encode
12304 * @param [writer] Writer to encode to
12305 * @returns Writer
12306 */
12307 public static encodeDelimited(message: google.longrunning.ICancelOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
12308
12309 /**
12310 * Decodes a CancelOperationRequest message from the specified reader or buffer.
12311 * @param reader Reader or buffer to decode from
12312 * @param [length] Message length if known beforehand
12313 * @returns CancelOperationRequest
12314 * @throws {Error} If the payload is not a reader or valid buffer
12315 * @throws {$protobuf.util.ProtocolError} If required fields are missing
12316 */
12317 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.CancelOperationRequest;
12318
12319 /**
12320 * Decodes a CancelOperationRequest message from the specified reader or buffer, length delimited.
12321 * @param reader Reader or buffer to decode from
12322 * @returns CancelOperationRequest
12323 * @throws {Error} If the payload is not a reader or valid buffer
12324 * @throws {$protobuf.util.ProtocolError} If required fields are missing
12325 */
12326 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.CancelOperationRequest;
12327
12328 /**
12329 * Verifies a CancelOperationRequest message.
12330 * @param message Plain object to verify
12331 * @returns `null` if valid, otherwise the reason why it is not
12332 */
12333 public static verify(message: { [k: string]: any }): (string|null);
12334
12335 /**
12336 * Creates a CancelOperationRequest message from a plain object. Also converts values to their respective internal types.
12337 * @param object Plain object
12338 * @returns CancelOperationRequest
12339 */
12340 public static fromObject(object: { [k: string]: any }): google.longrunning.CancelOperationRequest;
12341
12342 /**
12343 * Creates a plain object from a CancelOperationRequest message. Also converts values to other types if specified.
12344 * @param message CancelOperationRequest
12345 * @param [options] Conversion options
12346 * @returns Plain object
12347 */
12348 public static toObject(message: google.longrunning.CancelOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
12349
12350 /**
12351 * Converts this CancelOperationRequest to JSON.
12352 * @returns JSON object
12353 */
12354 public toJSON(): { [k: string]: any };
12355 }
12356
12357 /** Properties of a DeleteOperationRequest. */
12358 interface IDeleteOperationRequest {
12359
12360 /** DeleteOperationRequest name */
12361 name?: (string|null);
12362 }
12363
12364 /** Represents a DeleteOperationRequest. */
12365 class DeleteOperationRequest implements IDeleteOperationRequest {
12366
12367 /**
12368 * Constructs a new DeleteOperationRequest.
12369 * @param [properties] Properties to set
12370 */
12371 constructor(properties?: google.longrunning.IDeleteOperationRequest);
12372
12373 /** DeleteOperationRequest name. */
12374 public name: string;
12375
12376 /**
12377 * Creates a new DeleteOperationRequest instance using the specified properties.
12378 * @param [properties] Properties to set
12379 * @returns DeleteOperationRequest instance
12380 */
12381 public static create(properties?: google.longrunning.IDeleteOperationRequest): google.longrunning.DeleteOperationRequest;
12382
12383 /**
12384 * Encodes the specified DeleteOperationRequest message. Does not implicitly {@link google.longrunning.DeleteOperationRequest.verify|verify} messages.
12385 * @param message DeleteOperationRequest message or plain object to encode
12386 * @param [writer] Writer to encode to
12387 * @returns Writer
12388 */
12389 public static encode(message: google.longrunning.IDeleteOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
12390
12391 /**
12392 * Encodes the specified DeleteOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.DeleteOperationRequest.verify|verify} messages.
12393 * @param message DeleteOperationRequest message or plain object to encode
12394 * @param [writer] Writer to encode to
12395 * @returns Writer
12396 */
12397 public static encodeDelimited(message: google.longrunning.IDeleteOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
12398
12399 /**
12400 * Decodes a DeleteOperationRequest message from the specified reader or buffer.
12401 * @param reader Reader or buffer to decode from
12402 * @param [length] Message length if known beforehand
12403 * @returns DeleteOperationRequest
12404 * @throws {Error} If the payload is not a reader or valid buffer
12405 * @throws {$protobuf.util.ProtocolError} If required fields are missing
12406 */
12407 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.DeleteOperationRequest;
12408
12409 /**
12410 * Decodes a DeleteOperationRequest message from the specified reader or buffer, length delimited.
12411 * @param reader Reader or buffer to decode from
12412 * @returns DeleteOperationRequest
12413 * @throws {Error} If the payload is not a reader or valid buffer
12414 * @throws {$protobuf.util.ProtocolError} If required fields are missing
12415 */
12416 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.DeleteOperationRequest;
12417
12418 /**
12419 * Verifies a DeleteOperationRequest message.
12420 * @param message Plain object to verify
12421 * @returns `null` if valid, otherwise the reason why it is not
12422 */
12423 public static verify(message: { [k: string]: any }): (string|null);
12424
12425 /**
12426 * Creates a DeleteOperationRequest message from a plain object. Also converts values to their respective internal types.
12427 * @param object Plain object
12428 * @returns DeleteOperationRequest
12429 */
12430 public static fromObject(object: { [k: string]: any }): google.longrunning.DeleteOperationRequest;
12431
12432 /**
12433 * Creates a plain object from a DeleteOperationRequest message. Also converts values to other types if specified.
12434 * @param message DeleteOperationRequest
12435 * @param [options] Conversion options
12436 * @returns Plain object
12437 */
12438 public static toObject(message: google.longrunning.DeleteOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
12439
12440 /**
12441 * Converts this DeleteOperationRequest to JSON.
12442 * @returns JSON object
12443 */
12444 public toJSON(): { [k: string]: any };
12445 }
12446
12447 /** Properties of a WaitOperationRequest. */
12448 interface IWaitOperationRequest {
12449
12450 /** WaitOperationRequest name */
12451 name?: (string|null);
12452
12453 /** WaitOperationRequest timeout */
12454 timeout?: (google.protobuf.IDuration|null);
12455 }
12456
12457 /** Represents a WaitOperationRequest. */
12458 class WaitOperationRequest implements IWaitOperationRequest {
12459
12460 /**
12461 * Constructs a new WaitOperationRequest.
12462 * @param [properties] Properties to set
12463 */
12464 constructor(properties?: google.longrunning.IWaitOperationRequest);
12465
12466 /** WaitOperationRequest name. */
12467 public name: string;
12468
12469 /** WaitOperationRequest timeout. */
12470 public timeout?: (google.protobuf.IDuration|null);
12471
12472 /**
12473 * Creates a new WaitOperationRequest instance using the specified properties.
12474 * @param [properties] Properties to set
12475 * @returns WaitOperationRequest instance
12476 */
12477 public static create(properties?: google.longrunning.IWaitOperationRequest): google.longrunning.WaitOperationRequest;
12478
12479 /**
12480 * Encodes the specified WaitOperationRequest message. Does not implicitly {@link google.longrunning.WaitOperationRequest.verify|verify} messages.
12481 * @param message WaitOperationRequest message or plain object to encode
12482 * @param [writer] Writer to encode to
12483 * @returns Writer
12484 */
12485 public static encode(message: google.longrunning.IWaitOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
12486
12487 /**
12488 * Encodes the specified WaitOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.WaitOperationRequest.verify|verify} messages.
12489 * @param message WaitOperationRequest message or plain object to encode
12490 * @param [writer] Writer to encode to
12491 * @returns Writer
12492 */
12493 public static encodeDelimited(message: google.longrunning.IWaitOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
12494
12495 /**
12496 * Decodes a WaitOperationRequest message from the specified reader or buffer.
12497 * @param reader Reader or buffer to decode from
12498 * @param [length] Message length if known beforehand
12499 * @returns WaitOperationRequest
12500 * @throws {Error} If the payload is not a reader or valid buffer
12501 * @throws {$protobuf.util.ProtocolError} If required fields are missing
12502 */
12503 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.WaitOperationRequest;
12504
12505 /**
12506 * Decodes a WaitOperationRequest message from the specified reader or buffer, length delimited.
12507 * @param reader Reader or buffer to decode from
12508 * @returns WaitOperationRequest
12509 * @throws {Error} If the payload is not a reader or valid buffer
12510 * @throws {$protobuf.util.ProtocolError} If required fields are missing
12511 */
12512 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.WaitOperationRequest;
12513
12514 /**
12515 * Verifies a WaitOperationRequest message.
12516 * @param message Plain object to verify
12517 * @returns `null` if valid, otherwise the reason why it is not
12518 */
12519 public static verify(message: { [k: string]: any }): (string|null);
12520
12521 /**
12522 * Creates a WaitOperationRequest message from a plain object. Also converts values to their respective internal types.
12523 * @param object Plain object
12524 * @returns WaitOperationRequest
12525 */
12526 public static fromObject(object: { [k: string]: any }): google.longrunning.WaitOperationRequest;
12527
12528 /**
12529 * Creates a plain object from a WaitOperationRequest message. Also converts values to other types if specified.
12530 * @param message WaitOperationRequest
12531 * @param [options] Conversion options
12532 * @returns Plain object
12533 */
12534 public static toObject(message: google.longrunning.WaitOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
12535
12536 /**
12537 * Converts this WaitOperationRequest to JSON.
12538 * @returns JSON object
12539 */
12540 public toJSON(): { [k: string]: any };
12541 }
12542
12543 /** Properties of an OperationInfo. */
12544 interface IOperationInfo {
12545
12546 /** OperationInfo responseType */
12547 responseType?: (string|null);
12548
12549 /** OperationInfo metadataType */
12550 metadataType?: (string|null);
12551 }
12552
12553 /** Represents an OperationInfo. */
12554 class OperationInfo implements IOperationInfo {
12555
12556 /**
12557 * Constructs a new OperationInfo.
12558 * @param [properties] Properties to set
12559 */
12560 constructor(properties?: google.longrunning.IOperationInfo);
12561
12562 /** OperationInfo responseType. */
12563 public responseType: string;
12564
12565 /** OperationInfo metadataType. */
12566 public metadataType: string;
12567
12568 /**
12569 * Creates a new OperationInfo instance using the specified properties.
12570 * @param [properties] Properties to set
12571 * @returns OperationInfo instance
12572 */
12573 public static create(properties?: google.longrunning.IOperationInfo): google.longrunning.OperationInfo;
12574
12575 /**
12576 * Encodes the specified OperationInfo message. Does not implicitly {@link google.longrunning.OperationInfo.verify|verify} messages.
12577 * @param message OperationInfo message or plain object to encode
12578 * @param [writer] Writer to encode to
12579 * @returns Writer
12580 */
12581 public static encode(message: google.longrunning.IOperationInfo, writer?: $protobuf.Writer): $protobuf.Writer;
12582
12583 /**
12584 * Encodes the specified OperationInfo message, length delimited. Does not implicitly {@link google.longrunning.OperationInfo.verify|verify} messages.
12585 * @param message OperationInfo message or plain object to encode
12586 * @param [writer] Writer to encode to
12587 * @returns Writer
12588 */
12589 public static encodeDelimited(message: google.longrunning.IOperationInfo, writer?: $protobuf.Writer): $protobuf.Writer;
12590
12591 /**
12592 * Decodes an OperationInfo message from the specified reader or buffer.
12593 * @param reader Reader or buffer to decode from
12594 * @param [length] Message length if known beforehand
12595 * @returns OperationInfo
12596 * @throws {Error} If the payload is not a reader or valid buffer
12597 * @throws {$protobuf.util.ProtocolError} If required fields are missing
12598 */
12599 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.OperationInfo;
12600
12601 /**
12602 * Decodes an OperationInfo message from the specified reader or buffer, length delimited.
12603 * @param reader Reader or buffer to decode from
12604 * @returns OperationInfo
12605 * @throws {Error} If the payload is not a reader or valid buffer
12606 * @throws {$protobuf.util.ProtocolError} If required fields are missing
12607 */
12608 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.OperationInfo;
12609
12610 /**
12611 * Verifies an OperationInfo message.
12612 * @param message Plain object to verify
12613 * @returns `null` if valid, otherwise the reason why it is not
12614 */
12615 public static verify(message: { [k: string]: any }): (string|null);
12616
12617 /**
12618 * Creates an OperationInfo message from a plain object. Also converts values to their respective internal types.
12619 * @param object Plain object
12620 * @returns OperationInfo
12621 */
12622 public static fromObject(object: { [k: string]: any }): google.longrunning.OperationInfo;
12623
12624 /**
12625 * Creates a plain object from an OperationInfo message. Also converts values to other types if specified.
12626 * @param message OperationInfo
12627 * @param [options] Conversion options
12628 * @returns Plain object
12629 */
12630 public static toObject(message: google.longrunning.OperationInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
12631
12632 /**
12633 * Converts this OperationInfo to JSON.
12634 * @returns JSON object
12635 */
12636 public toJSON(): { [k: string]: any };
12637 }
12638 }
12639
12640 /** Namespace rpc. */
12641 namespace rpc {
12642
12643 /** Properties of a Status. */
12644 interface IStatus {
12645
12646 /** Status code */
12647 code?: (number|null);
12648
12649 /** Status message */
12650 message?: (string|null);
12651
12652 /** Status details */
12653 details?: (google.protobuf.IAny[]|null);
12654 }
12655
12656 /** Represents a Status. */
12657 class Status implements IStatus {
12658
12659 /**
12660 * Constructs a new Status.
12661 * @param [properties] Properties to set
12662 */
12663 constructor(properties?: google.rpc.IStatus);
12664
12665 /** Status code. */
12666 public code: number;
12667
12668 /** Status message. */
12669 public message: string;
12670
12671 /** Status details. */
12672 public details: google.protobuf.IAny[];
12673
12674 /**
12675 * Creates a new Status instance using the specified properties.
12676 * @param [properties] Properties to set
12677 * @returns Status instance
12678 */
12679 public static create(properties?: google.rpc.IStatus): google.rpc.Status;
12680
12681 /**
12682 * Encodes the specified Status message. Does not implicitly {@link google.rpc.Status.verify|verify} messages.
12683 * @param message Status message or plain object to encode
12684 * @param [writer] Writer to encode to
12685 * @returns Writer
12686 */
12687 public static encode(message: google.rpc.IStatus, writer?: $protobuf.Writer): $protobuf.Writer;
12688
12689 /**
12690 * Encodes the specified Status message, length delimited. Does not implicitly {@link google.rpc.Status.verify|verify} messages.
12691 * @param message Status message or plain object to encode
12692 * @param [writer] Writer to encode to
12693 * @returns Writer
12694 */
12695 public static encodeDelimited(message: google.rpc.IStatus, writer?: $protobuf.Writer): $protobuf.Writer;
12696
12697 /**
12698 * Decodes a Status message from the specified reader or buffer.
12699 * @param reader Reader or buffer to decode from
12700 * @param [length] Message length if known beforehand
12701 * @returns Status
12702 * @throws {Error} If the payload is not a reader or valid buffer
12703 * @throws {$protobuf.util.ProtocolError} If required fields are missing
12704 */
12705 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.rpc.Status;
12706
12707 /**
12708 * Decodes a Status message from the specified reader or buffer, length delimited.
12709 * @param reader Reader or buffer to decode from
12710 * @returns Status
12711 * @throws {Error} If the payload is not a reader or valid buffer
12712 * @throws {$protobuf.util.ProtocolError} If required fields are missing
12713 */
12714 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.rpc.Status;
12715
12716 /**
12717 * Verifies a Status message.
12718 * @param message Plain object to verify
12719 * @returns `null` if valid, otherwise the reason why it is not
12720 */
12721 public static verify(message: { [k: string]: any }): (string|null);
12722
12723 /**
12724 * Creates a Status message from a plain object. Also converts values to their respective internal types.
12725 * @param object Plain object
12726 * @returns Status
12727 */
12728 public static fromObject(object: { [k: string]: any }): google.rpc.Status;
12729
12730 /**
12731 * Creates a plain object from a Status message. Also converts values to other types if specified.
12732 * @param message Status
12733 * @param [options] Conversion options
12734 * @returns Plain object
12735 */
12736 public static toObject(message: google.rpc.Status, options?: $protobuf.IConversionOptions): { [k: string]: any };
12737
12738 /**
12739 * Converts this Status to JSON.
12740 * @returns JSON object
12741 */
12742 public toJSON(): { [k: string]: any };
12743 }
12744 }
12745}