1 | // Copyright 2021 Google LLC
|
2 | //
|
3 | // Licensed under the Apache License, Version 2.0 (the "License");
|
4 | // you may not use this file except in compliance with the License.
|
5 | // You may obtain a copy of the License at
|
6 | //
|
7 | // http://www.apache.org/licenses/LICENSE-2.0
|
8 | //
|
9 | // Unless required by applicable law or agreed to in writing, software
|
10 | // distributed under the License is distributed on an "AS IS" BASIS,
|
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12 | // See the License for the specific language governing permissions and
|
13 | // limitations under the License.
|
14 |
|
15 | import * as Long from "long";
|
16 | import {protobuf as $protobuf} from "google-gax";
|
17 | /** Namespace google. */
|
18 | export namespace google {
|
19 |
|
20 | /** Namespace cloud. */
|
21 | namespace cloud {
|
22 |
|
23 | /** Namespace 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 TranslateDocument.
|
93 | * @param request TranslateDocumentRequest message or plain object
|
94 | * @param callback Node-style callback called with the error, if any, and TranslateDocumentResponse
|
95 | */
|
96 | public translateDocument(request: google.cloud.translation.v3.ITranslateDocumentRequest, callback: google.cloud.translation.v3.TranslationService.TranslateDocumentCallback): void;
|
97 |
|
98 | /**
|
99 | * Calls TranslateDocument.
|
100 | * @param request TranslateDocumentRequest message or plain object
|
101 | * @returns Promise
|
102 | */
|
103 | public translateDocument(request: google.cloud.translation.v3.ITranslateDocumentRequest): Promise<google.cloud.translation.v3.TranslateDocumentResponse>;
|
104 |
|
105 | /**
|
106 | * Calls BatchTranslateText.
|
107 | * @param request BatchTranslateTextRequest message or plain object
|
108 | * @param callback Node-style callback called with the error, if any, and Operation
|
109 | */
|
110 | public batchTranslateText(request: google.cloud.translation.v3.IBatchTranslateTextRequest, callback: google.cloud.translation.v3.TranslationService.BatchTranslateTextCallback): void;
|
111 |
|
112 | /**
|
113 | * Calls BatchTranslateText.
|
114 | * @param request BatchTranslateTextRequest message or plain object
|
115 | * @returns Promise
|
116 | */
|
117 | public batchTranslateText(request: google.cloud.translation.v3.IBatchTranslateTextRequest): Promise<google.longrunning.Operation>;
|
118 |
|
119 | /**
|
120 | * Calls BatchTranslateDocument.
|
121 | * @param request BatchTranslateDocumentRequest message or plain object
|
122 | * @param callback Node-style callback called with the error, if any, and Operation
|
123 | */
|
124 | public batchTranslateDocument(request: google.cloud.translation.v3.IBatchTranslateDocumentRequest, callback: google.cloud.translation.v3.TranslationService.BatchTranslateDocumentCallback): void;
|
125 |
|
126 | /**
|
127 | * Calls BatchTranslateDocument.
|
128 | * @param request BatchTranslateDocumentRequest message or plain object
|
129 | * @returns Promise
|
130 | */
|
131 | public batchTranslateDocument(request: google.cloud.translation.v3.IBatchTranslateDocumentRequest): Promise<google.longrunning.Operation>;
|
132 |
|
133 | /**
|
134 | * Calls CreateGlossary.
|
135 | * @param request CreateGlossaryRequest message or plain object
|
136 | * @param callback Node-style callback called with the error, if any, and Operation
|
137 | */
|
138 | public createGlossary(request: google.cloud.translation.v3.ICreateGlossaryRequest, callback: google.cloud.translation.v3.TranslationService.CreateGlossaryCallback): void;
|
139 |
|
140 | /**
|
141 | * Calls CreateGlossary.
|
142 | * @param request CreateGlossaryRequest message or plain object
|
143 | * @returns Promise
|
144 | */
|
145 | public createGlossary(request: google.cloud.translation.v3.ICreateGlossaryRequest): Promise<google.longrunning.Operation>;
|
146 |
|
147 | /**
|
148 | * Calls ListGlossaries.
|
149 | * @param request ListGlossariesRequest message or plain object
|
150 | * @param callback Node-style callback called with the error, if any, and ListGlossariesResponse
|
151 | */
|
152 | public listGlossaries(request: google.cloud.translation.v3.IListGlossariesRequest, callback: google.cloud.translation.v3.TranslationService.ListGlossariesCallback): void;
|
153 |
|
154 | /**
|
155 | * Calls ListGlossaries.
|
156 | * @param request ListGlossariesRequest message or plain object
|
157 | * @returns Promise
|
158 | */
|
159 | public listGlossaries(request: google.cloud.translation.v3.IListGlossariesRequest): Promise<google.cloud.translation.v3.ListGlossariesResponse>;
|
160 |
|
161 | /**
|
162 | * Calls GetGlossary.
|
163 | * @param request GetGlossaryRequest message or plain object
|
164 | * @param callback Node-style callback called with the error, if any, and Glossary
|
165 | */
|
166 | public getGlossary(request: google.cloud.translation.v3.IGetGlossaryRequest, callback: google.cloud.translation.v3.TranslationService.GetGlossaryCallback): void;
|
167 |
|
168 | /**
|
169 | * Calls GetGlossary.
|
170 | * @param request GetGlossaryRequest message or plain object
|
171 | * @returns Promise
|
172 | */
|
173 | public getGlossary(request: google.cloud.translation.v3.IGetGlossaryRequest): Promise<google.cloud.translation.v3.Glossary>;
|
174 |
|
175 | /**
|
176 | * Calls DeleteGlossary.
|
177 | * @param request DeleteGlossaryRequest message or plain object
|
178 | * @param callback Node-style callback called with the error, if any, and Operation
|
179 | */
|
180 | public deleteGlossary(request: google.cloud.translation.v3.IDeleteGlossaryRequest, callback: google.cloud.translation.v3.TranslationService.DeleteGlossaryCallback): void;
|
181 |
|
182 | /**
|
183 | * Calls DeleteGlossary.
|
184 | * @param request DeleteGlossaryRequest message or plain object
|
185 | * @returns Promise
|
186 | */
|
187 | public deleteGlossary(request: google.cloud.translation.v3.IDeleteGlossaryRequest): Promise<google.longrunning.Operation>;
|
188 | }
|
189 |
|
190 | namespace TranslationService {
|
191 |
|
192 | /**
|
193 | * Callback as used by {@link google.cloud.translation.v3.TranslationService#translateText}.
|
194 | * @param error Error, if any
|
195 | * @param [response] TranslateTextResponse
|
196 | */
|
197 | type TranslateTextCallback = (error: (Error|null), response?: google.cloud.translation.v3.TranslateTextResponse) => void;
|
198 |
|
199 | /**
|
200 | * Callback as used by {@link google.cloud.translation.v3.TranslationService#detectLanguage}.
|
201 | * @param error Error, if any
|
202 | * @param [response] DetectLanguageResponse
|
203 | */
|
204 | type DetectLanguageCallback = (error: (Error|null), response?: google.cloud.translation.v3.DetectLanguageResponse) => void;
|
205 |
|
206 | /**
|
207 | * Callback as used by {@link google.cloud.translation.v3.TranslationService#getSupportedLanguages}.
|
208 | * @param error Error, if any
|
209 | * @param [response] SupportedLanguages
|
210 | */
|
211 | type GetSupportedLanguagesCallback = (error: (Error|null), response?: google.cloud.translation.v3.SupportedLanguages) => void;
|
212 |
|
213 | /**
|
214 | * Callback as used by {@link google.cloud.translation.v3.TranslationService#translateDocument}.
|
215 | * @param error Error, if any
|
216 | * @param [response] TranslateDocumentResponse
|
217 | */
|
218 | type TranslateDocumentCallback = (error: (Error|null), response?: google.cloud.translation.v3.TranslateDocumentResponse) => void;
|
219 |
|
220 | /**
|
221 | * Callback as used by {@link google.cloud.translation.v3.TranslationService#batchTranslateText}.
|
222 | * @param error Error, if any
|
223 | * @param [response] Operation
|
224 | */
|
225 | type BatchTranslateTextCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
|
226 |
|
227 | /**
|
228 | * Callback as used by {@link google.cloud.translation.v3.TranslationService#batchTranslateDocument}.
|
229 | * @param error Error, if any
|
230 | * @param [response] Operation
|
231 | */
|
232 | type BatchTranslateDocumentCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
|
233 |
|
234 | /**
|
235 | * Callback as used by {@link google.cloud.translation.v3.TranslationService#createGlossary}.
|
236 | * @param error Error, if any
|
237 | * @param [response] Operation
|
238 | */
|
239 | type CreateGlossaryCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
|
240 |
|
241 | /**
|
242 | * Callback as used by {@link google.cloud.translation.v3.TranslationService#listGlossaries}.
|
243 | * @param error Error, if any
|
244 | * @param [response] ListGlossariesResponse
|
245 | */
|
246 | type ListGlossariesCallback = (error: (Error|null), response?: google.cloud.translation.v3.ListGlossariesResponse) => void;
|
247 |
|
248 | /**
|
249 | * Callback as used by {@link google.cloud.translation.v3.TranslationService#getGlossary}.
|
250 | * @param error Error, if any
|
251 | * @param [response] Glossary
|
252 | */
|
253 | type GetGlossaryCallback = (error: (Error|null), response?: google.cloud.translation.v3.Glossary) => void;
|
254 |
|
255 | /**
|
256 | * Callback as used by {@link google.cloud.translation.v3.TranslationService#deleteGlossary}.
|
257 | * @param error Error, if any
|
258 | * @param [response] Operation
|
259 | */
|
260 | type DeleteGlossaryCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
|
261 | }
|
262 |
|
263 | /** Properties of a TranslateTextGlossaryConfig. */
|
264 | interface ITranslateTextGlossaryConfig {
|
265 |
|
266 | /** TranslateTextGlossaryConfig glossary */
|
267 | glossary?: (string|null);
|
268 |
|
269 | /** TranslateTextGlossaryConfig ignoreCase */
|
270 | ignoreCase?: (boolean|null);
|
271 | }
|
272 |
|
273 | /** Represents a TranslateTextGlossaryConfig. */
|
274 | class TranslateTextGlossaryConfig implements ITranslateTextGlossaryConfig {
|
275 |
|
276 | /**
|
277 | * Constructs a new TranslateTextGlossaryConfig.
|
278 | * @param [properties] Properties to set
|
279 | */
|
280 | constructor(properties?: google.cloud.translation.v3.ITranslateTextGlossaryConfig);
|
281 |
|
282 | /** TranslateTextGlossaryConfig glossary. */
|
283 | public glossary: string;
|
284 |
|
285 | /** TranslateTextGlossaryConfig ignoreCase. */
|
286 | public ignoreCase: boolean;
|
287 |
|
288 | /**
|
289 | * Creates a new TranslateTextGlossaryConfig instance using the specified properties.
|
290 | * @param [properties] Properties to set
|
291 | * @returns TranslateTextGlossaryConfig instance
|
292 | */
|
293 | public static create(properties?: google.cloud.translation.v3.ITranslateTextGlossaryConfig): google.cloud.translation.v3.TranslateTextGlossaryConfig;
|
294 |
|
295 | /**
|
296 | * Encodes the specified TranslateTextGlossaryConfig message. Does not implicitly { google.cloud.translation.v3.TranslateTextGlossaryConfig.verify|verify} messages.
|
297 | * message TranslateTextGlossaryConfig message or plain object to encode
|
298 | * [writer] Writer to encode to
|
299 | * Writer
|
300 | */
|
301 | public static encode(message: google.cloud.translation.v3.ITranslateTextGlossaryConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
302 |
|
303 | /**
|
304 | * Encodes the specified TranslateTextGlossaryConfig message, length delimited. Does not implicitly {@link google.cloud.translation.v3.TranslateTextGlossaryConfig.verify|verify} messages.
|
305 | * @param message TranslateTextGlossaryConfig message or plain object to encode
|
306 | * @param [writer] Writer to encode to
|
307 | * @returns Writer
|
308 | */
|
309 | public static encodeDelimited(message: google.cloud.translation.v3.ITranslateTextGlossaryConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
310 |
|
311 | /**
|
312 | * Decodes a TranslateTextGlossaryConfig message from the specified reader or buffer.
|
313 | * @param reader Reader or buffer to decode from
|
314 | * @param [length] Message length if known beforehand
|
315 | * @returns TranslateTextGlossaryConfig
|
316 | * @throws {Error} If the payload is not a reader or valid buffer
|
317 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
318 | */
|
319 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3.TranslateTextGlossaryConfig;
|
320 |
|
321 | /**
|
322 | * Decodes a TranslateTextGlossaryConfig message from the specified reader or buffer, length delimited.
|
323 | * @param reader Reader or buffer to decode from
|
324 | * @returns TranslateTextGlossaryConfig
|
325 | * @throws {Error} If the payload is not a reader or valid buffer
|
326 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
327 | */
|
328 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3.TranslateTextGlossaryConfig;
|
329 |
|
330 | /**
|
331 | * Verifies a TranslateTextGlossaryConfig message.
|
332 | * @param message Plain object to verify
|
333 | * @returns `null` if valid, otherwise the reason why it is not
|
334 | */
|
335 | public static verify(message: { [k: string]: any }): (string|null);
|
336 |
|
337 | /**
|
338 | * Creates a TranslateTextGlossaryConfig message from a plain object. Also converts values to their respective internal types.
|
339 | * @param object Plain object
|
340 | * @returns TranslateTextGlossaryConfig
|
341 | */
|
342 | public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3.TranslateTextGlossaryConfig;
|
343 |
|
344 | /**
|
345 | * Creates a plain object from a TranslateTextGlossaryConfig message. Also converts values to other types if specified.
|
346 | * @param message TranslateTextGlossaryConfig
|
347 | * @param [options] Conversion options
|
348 | * @returns Plain object
|
349 | */
|
350 | public static toObject(message: google.cloud.translation.v3.TranslateTextGlossaryConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
351 |
|
352 | /**
|
353 | * Converts this TranslateTextGlossaryConfig to JSON.
|
354 | * @returns JSON object
|
355 | */
|
356 | public toJSON(): { [k: string]: any };
|
357 | }
|
358 |
|
359 | /** Properties of a TranslateTextRequest. */
|
360 | interface ITranslateTextRequest {
|
361 |
|
362 | /** TranslateTextRequest contents */
|
363 | contents?: (string[]|null);
|
364 |
|
365 | /** TranslateTextRequest mimeType */
|
366 | mimeType?: (string|null);
|
367 |
|
368 | /** TranslateTextRequest sourceLanguageCode */
|
369 | sourceLanguageCode?: (string|null);
|
370 |
|
371 | /** TranslateTextRequest targetLanguageCode */
|
372 | targetLanguageCode?: (string|null);
|
373 |
|
374 | /** TranslateTextRequest parent */
|
375 | parent?: (string|null);
|
376 |
|
377 | /** TranslateTextRequest model */
|
378 | model?: (string|null);
|
379 |
|
380 | /** TranslateTextRequest glossaryConfig */
|
381 | glossaryConfig?: (google.cloud.translation.v3.ITranslateTextGlossaryConfig|null);
|
382 |
|
383 | /** TranslateTextRequest labels */
|
384 | labels?: ({ [k: string]: string }|null);
|
385 | }
|
386 |
|
387 | /** Represents a TranslateTextRequest. */
|
388 | class TranslateTextRequest implements ITranslateTextRequest {
|
389 |
|
390 | /**
|
391 | * Constructs a new TranslateTextRequest.
|
392 | * @param [properties] Properties to set
|
393 | */
|
394 | constructor(properties?: google.cloud.translation.v3.ITranslateTextRequest);
|
395 |
|
396 | /** TranslateTextRequest contents. */
|
397 | public contents: string[];
|
398 |
|
399 | /** TranslateTextRequest mimeType. */
|
400 | public mimeType: string;
|
401 |
|
402 | /** TranslateTextRequest sourceLanguageCode. */
|
403 | public sourceLanguageCode: string;
|
404 |
|
405 | /** TranslateTextRequest targetLanguageCode. */
|
406 | public targetLanguageCode: string;
|
407 |
|
408 | /** TranslateTextRequest parent. */
|
409 | public parent: string;
|
410 |
|
411 | /** TranslateTextRequest model. */
|
412 | public model: string;
|
413 |
|
414 | /** TranslateTextRequest glossaryConfig. */
|
415 | public glossaryConfig?: (google.cloud.translation.v3.ITranslateTextGlossaryConfig|null);
|
416 |
|
417 | /** TranslateTextRequest labels. */
|
418 | public labels: { [k: string]: string };
|
419 |
|
420 | /**
|
421 | * Creates a new TranslateTextRequest instance using the specified properties.
|
422 | * @param [properties] Properties to set
|
423 | * @returns TranslateTextRequest instance
|
424 | */
|
425 | public static create(properties?: google.cloud.translation.v3.ITranslateTextRequest): google.cloud.translation.v3.TranslateTextRequest;
|
426 |
|
427 | /**
|
428 | * Encodes the specified TranslateTextRequest message. Does not implicitly {@link google.cloud.translation.v3.TranslateTextRequest.verify|verify} messages.
|
429 | * @param message TranslateTextRequest message or plain object to encode
|
430 | * @param [writer] Writer to encode to
|
431 | * @returns Writer
|
432 | */
|
433 | public static encode(message: google.cloud.translation.v3.ITranslateTextRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
434 |
|
435 | /**
|
436 | * Encodes the specified TranslateTextRequest message, length delimited. Does not implicitly {@link google.cloud.translation.v3.TranslateTextRequest.verify|verify} messages.
|
437 | * @param message TranslateTextRequest message or plain object to encode
|
438 | * @param [writer] Writer to encode to
|
439 | * @returns Writer
|
440 | */
|
441 | public static encodeDelimited(message: google.cloud.translation.v3.ITranslateTextRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
442 |
|
443 | /**
|
444 | * Decodes a TranslateTextRequest message from the specified reader or buffer.
|
445 | * @param reader Reader or buffer to decode from
|
446 | * @param [length] Message length if known beforehand
|
447 | * @returns TranslateTextRequest
|
448 | * @throws {Error} If the payload is not a reader or valid buffer
|
449 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
450 | */
|
451 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3.TranslateTextRequest;
|
452 |
|
453 | /**
|
454 | * Decodes a TranslateTextRequest message from the specified reader or buffer, length delimited.
|
455 | * @param reader Reader or buffer to decode from
|
456 | * @returns TranslateTextRequest
|
457 | * @throws {Error} If the payload is not a reader or valid buffer
|
458 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
459 | */
|
460 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3.TranslateTextRequest;
|
461 |
|
462 | /**
|
463 | * Verifies a TranslateTextRequest message.
|
464 | * @param message Plain object to verify
|
465 | * @returns `null` if valid, otherwise the reason why it is not
|
466 | */
|
467 | public static verify(message: { [k: string]: any }): (string|null);
|
468 |
|
469 | /**
|
470 | * Creates a TranslateTextRequest message from a plain object. Also converts values to their respective internal types.
|
471 | * @param object Plain object
|
472 | * @returns TranslateTextRequest
|
473 | */
|
474 | public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3.TranslateTextRequest;
|
475 |
|
476 | /**
|
477 | * Creates a plain object from a TranslateTextRequest message. Also converts values to other types if specified.
|
478 | * @param message TranslateTextRequest
|
479 | * @param [options] Conversion options
|
480 | * @returns Plain object
|
481 | */
|
482 | public static toObject(message: google.cloud.translation.v3.TranslateTextRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
483 |
|
484 | /**
|
485 | * Converts this TranslateTextRequest to JSON.
|
486 | * @returns JSON object
|
487 | */
|
488 | public toJSON(): { [k: string]: any };
|
489 | }
|
490 |
|
491 | /** Properties of a TranslateTextResponse. */
|
492 | interface ITranslateTextResponse {
|
493 |
|
494 | /** TranslateTextResponse translations */
|
495 | translations?: (google.cloud.translation.v3.ITranslation[]|null);
|
496 |
|
497 | /** TranslateTextResponse glossaryTranslations */
|
498 | glossaryTranslations?: (google.cloud.translation.v3.ITranslation[]|null);
|
499 | }
|
500 |
|
501 | /** Represents a TranslateTextResponse. */
|
502 | class TranslateTextResponse implements ITranslateTextResponse {
|
503 |
|
504 | /**
|
505 | * Constructs a new TranslateTextResponse.
|
506 | * @param [properties] Properties to set
|
507 | */
|
508 | constructor(properties?: google.cloud.translation.v3.ITranslateTextResponse);
|
509 |
|
510 | /** TranslateTextResponse translations. */
|
511 | public translations: google.cloud.translation.v3.ITranslation[];
|
512 |
|
513 | /** TranslateTextResponse glossaryTranslations. */
|
514 | public glossaryTranslations: google.cloud.translation.v3.ITranslation[];
|
515 |
|
516 | /**
|
517 | * Creates a new TranslateTextResponse instance using the specified properties.
|
518 | * @param [properties] Properties to set
|
519 | * @returns TranslateTextResponse instance
|
520 | */
|
521 | public static create(properties?: google.cloud.translation.v3.ITranslateTextResponse): google.cloud.translation.v3.TranslateTextResponse;
|
522 |
|
523 | /**
|
524 | * Encodes the specified TranslateTextResponse message. Does not implicitly { google.cloud.translation.v3.TranslateTextResponse.verify|verify} messages.
|
525 | * message TranslateTextResponse message or plain object to encode
|
526 | * [writer] Writer to encode to
|
527 | * Writer
|
528 | */
|
529 | public static encode(message: google.cloud.translation.v3.ITranslateTextResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
530 |
|
531 | /**
|
532 | * Encodes the specified TranslateTextResponse message, length delimited. Does not implicitly {@link google.cloud.translation.v3.TranslateTextResponse.verify|verify} messages.
|
533 | * @param message TranslateTextResponse message or plain object to encode
|
534 | * @param [writer] Writer to encode to
|
535 | * @returns Writer
|
536 | */
|
537 | public static encodeDelimited(message: google.cloud.translation.v3.ITranslateTextResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
538 |
|
539 | /**
|
540 | * Decodes a TranslateTextResponse message from the specified reader or buffer.
|
541 | * @param reader Reader or buffer to decode from
|
542 | * @param [length] Message length if known beforehand
|
543 | * @returns TranslateTextResponse
|
544 | * @throws {Error} If the payload is not a reader or valid buffer
|
545 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
546 | */
|
547 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3.TranslateTextResponse;
|
548 |
|
549 | /**
|
550 | * Decodes a TranslateTextResponse message from the specified reader or buffer, length delimited.
|
551 | * @param reader Reader or buffer to decode from
|
552 | * @returns TranslateTextResponse
|
553 | * @throws {Error} If the payload is not a reader or valid buffer
|
554 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
555 | */
|
556 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3.TranslateTextResponse;
|
557 |
|
558 | /**
|
559 | * Verifies a TranslateTextResponse message.
|
560 | * @param message Plain object to verify
|
561 | * @returns `null` if valid, otherwise the reason why it is not
|
562 | */
|
563 | public static verify(message: { [k: string]: any }): (string|null);
|
564 |
|
565 | /**
|
566 | * Creates a TranslateTextResponse message from a plain object. Also converts values to their respective internal types.
|
567 | * @param object Plain object
|
568 | * @returns TranslateTextResponse
|
569 | */
|
570 | public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3.TranslateTextResponse;
|
571 |
|
572 | /**
|
573 | * Creates a plain object from a TranslateTextResponse message. Also converts values to other types if specified.
|
574 | * @param message TranslateTextResponse
|
575 | * @param [options] Conversion options
|
576 | * @returns Plain object
|
577 | */
|
578 | public static toObject(message: google.cloud.translation.v3.TranslateTextResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
579 |
|
580 | /**
|
581 | * Converts this TranslateTextResponse to JSON.
|
582 | * @returns JSON object
|
583 | */
|
584 | public toJSON(): { [k: string]: any };
|
585 | }
|
586 |
|
587 | /** Properties of a Translation. */
|
588 | interface ITranslation {
|
589 |
|
590 | /** Translation translatedText */
|
591 | translatedText?: (string|null);
|
592 |
|
593 | /** Translation model */
|
594 | model?: (string|null);
|
595 |
|
596 | /** Translation detectedLanguageCode */
|
597 | detectedLanguageCode?: (string|null);
|
598 |
|
599 | /** Translation glossaryConfig */
|
600 | glossaryConfig?: (google.cloud.translation.v3.ITranslateTextGlossaryConfig|null);
|
601 | }
|
602 |
|
603 | /** Represents a Translation. */
|
604 | class Translation implements ITranslation {
|
605 |
|
606 | /**
|
607 | * Constructs a new Translation.
|
608 | * @param [properties] Properties to set
|
609 | */
|
610 | constructor(properties?: google.cloud.translation.v3.ITranslation);
|
611 |
|
612 | /** Translation translatedText. */
|
613 | public translatedText: string;
|
614 |
|
615 | /** Translation model. */
|
616 | public model: string;
|
617 |
|
618 | /** Translation detectedLanguageCode. */
|
619 | public detectedLanguageCode: string;
|
620 |
|
621 | /** Translation glossaryConfig. */
|
622 | public glossaryConfig?: (google.cloud.translation.v3.ITranslateTextGlossaryConfig|null);
|
623 |
|
624 | /**
|
625 | * Creates a new Translation instance using the specified properties.
|
626 | * @param [properties] Properties to set
|
627 | * @returns Translation instance
|
628 | */
|
629 | public static create(properties?: google.cloud.translation.v3.ITranslation): google.cloud.translation.v3.Translation;
|
630 |
|
631 | /**
|
632 | * Encodes the specified Translation message. Does not implicitly { google.cloud.translation.v3.Translation.verify|verify} messages.
|
633 | * message Translation message or plain object to encode
|
634 | * [writer] Writer to encode to
|
635 | * Writer
|
636 | */
|
637 | public static encode(message: google.cloud.translation.v3.ITranslation, writer?: $protobuf.Writer): $protobuf.Writer;
|
638 |
|
639 | /**
|
640 | * Encodes the specified Translation message, length delimited. Does not implicitly {@link google.cloud.translation.v3.Translation.verify|verify} messages.
|
641 | * @param message Translation message or plain object to encode
|
642 | * @param [writer] Writer to encode to
|
643 | * @returns Writer
|
644 | */
|
645 | public static encodeDelimited(message: google.cloud.translation.v3.ITranslation, writer?: $protobuf.Writer): $protobuf.Writer;
|
646 |
|
647 | /**
|
648 | * Decodes a Translation message from the specified reader or buffer.
|
649 | * @param reader Reader or buffer to decode from
|
650 | * @param [length] Message length if known beforehand
|
651 | * @returns Translation
|
652 | * @throws {Error} If the payload is not a reader or valid buffer
|
653 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
654 | */
|
655 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3.Translation;
|
656 |
|
657 | /**
|
658 | * Decodes a Translation message from the specified reader or buffer, length delimited.
|
659 | * @param reader Reader or buffer to decode from
|
660 | * @returns Translation
|
661 | * @throws {Error} If the payload is not a reader or valid buffer
|
662 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
663 | */
|
664 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3.Translation;
|
665 |
|
666 | /**
|
667 | * Verifies a Translation message.
|
668 | * @param message Plain object to verify
|
669 | * @returns `null` if valid, otherwise the reason why it is not
|
670 | */
|
671 | public static verify(message: { [k: string]: any }): (string|null);
|
672 |
|
673 | /**
|
674 | * Creates a Translation message from a plain object. Also converts values to their respective internal types.
|
675 | * @param object Plain object
|
676 | * @returns Translation
|
677 | */
|
678 | public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3.Translation;
|
679 |
|
680 | /**
|
681 | * Creates a plain object from a Translation message. Also converts values to other types if specified.
|
682 | * @param message Translation
|
683 | * @param [options] Conversion options
|
684 | * @returns Plain object
|
685 | */
|
686 | public static toObject(message: google.cloud.translation.v3.Translation, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
687 |
|
688 | /**
|
689 | * Converts this Translation to JSON.
|
690 | * @returns JSON object
|
691 | */
|
692 | public toJSON(): { [k: string]: any };
|
693 | }
|
694 |
|
695 | /** Properties of a DetectLanguageRequest. */
|
696 | interface IDetectLanguageRequest {
|
697 |
|
698 | /** DetectLanguageRequest parent */
|
699 | parent?: (string|null);
|
700 |
|
701 | /** DetectLanguageRequest model */
|
702 | model?: (string|null);
|
703 |
|
704 | /** DetectLanguageRequest content */
|
705 | content?: (string|null);
|
706 |
|
707 | /** DetectLanguageRequest mimeType */
|
708 | mimeType?: (string|null);
|
709 |
|
710 | /** DetectLanguageRequest labels */
|
711 | labels?: ({ [k: string]: string }|null);
|
712 | }
|
713 |
|
714 | /** Represents a DetectLanguageRequest. */
|
715 | class DetectLanguageRequest implements IDetectLanguageRequest {
|
716 |
|
717 | /**
|
718 | * Constructs a new DetectLanguageRequest.
|
719 | * @param [properties] Properties to set
|
720 | */
|
721 | constructor(properties?: google.cloud.translation.v3.IDetectLanguageRequest);
|
722 |
|
723 | /** DetectLanguageRequest parent. */
|
724 | public parent: string;
|
725 |
|
726 | /** DetectLanguageRequest model. */
|
727 | public model: string;
|
728 |
|
729 | /** DetectLanguageRequest content. */
|
730 | public content?: (string|null);
|
731 |
|
732 | /** DetectLanguageRequest mimeType. */
|
733 | public mimeType: string;
|
734 |
|
735 | /** DetectLanguageRequest labels. */
|
736 | public labels: { [k: string]: string };
|
737 |
|
738 | /** DetectLanguageRequest source. */
|
739 | public source?: "content";
|
740 |
|
741 | /**
|
742 | * Creates a new DetectLanguageRequest instance using the specified properties.
|
743 | * @param [properties] Properties to set
|
744 | * @returns DetectLanguageRequest instance
|
745 | */
|
746 | public static create(properties?: google.cloud.translation.v3.IDetectLanguageRequest): google.cloud.translation.v3.DetectLanguageRequest;
|
747 |
|
748 | /**
|
749 | * Encodes the specified DetectLanguageRequest message. Does not implicitly {@link google.cloud.translation.v3.DetectLanguageRequest.verify|verify} messages.
|
750 | * @param message DetectLanguageRequest message or plain object to encode
|
751 | * @param [writer] Writer to encode to
|
752 | * @returns Writer
|
753 | */
|
754 | public static encode(message: google.cloud.translation.v3.IDetectLanguageRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
755 |
|
756 | /**
|
757 | * Encodes the specified DetectLanguageRequest message, length delimited. Does not implicitly {@link google.cloud.translation.v3.DetectLanguageRequest.verify|verify} messages.
|
758 | * @param message DetectLanguageRequest message or plain object to encode
|
759 | * @param [writer] Writer to encode to
|
760 | * @returns Writer
|
761 | */
|
762 | public static encodeDelimited(message: google.cloud.translation.v3.IDetectLanguageRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
763 |
|
764 | /**
|
765 | * Decodes a DetectLanguageRequest message from the specified reader or buffer.
|
766 | * @param reader Reader or buffer to decode from
|
767 | * @param [length] Message length if known beforehand
|
768 | * @returns DetectLanguageRequest
|
769 | * @throws {Error} If the payload is not a reader or valid buffer
|
770 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
771 | */
|
772 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3.DetectLanguageRequest;
|
773 |
|
774 | /**
|
775 | * Decodes a DetectLanguageRequest message from the specified reader or buffer, length delimited.
|
776 | * @param reader Reader or buffer to decode from
|
777 | * @returns DetectLanguageRequest
|
778 | * @throws {Error} If the payload is not a reader or valid buffer
|
779 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
780 | */
|
781 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3.DetectLanguageRequest;
|
782 |
|
783 | /**
|
784 | * Verifies a DetectLanguageRequest message.
|
785 | * @param message Plain object to verify
|
786 | * @returns `null` if valid, otherwise the reason why it is not
|
787 | */
|
788 | public static verify(message: { [k: string]: any }): (string|null);
|
789 |
|
790 | /**
|
791 | * Creates a DetectLanguageRequest message from a plain object. Also converts values to their respective internal types.
|
792 | * @param object Plain object
|
793 | * @returns DetectLanguageRequest
|
794 | */
|
795 | public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3.DetectLanguageRequest;
|
796 |
|
797 | /**
|
798 | * Creates a plain object from a DetectLanguageRequest message. Also converts values to other types if specified.
|
799 | * @param message DetectLanguageRequest
|
800 | * @param [options] Conversion options
|
801 | * @returns Plain object
|
802 | */
|
803 | public static toObject(message: google.cloud.translation.v3.DetectLanguageRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
804 |
|
805 | /**
|
806 | * Converts this DetectLanguageRequest to JSON.
|
807 | * @returns JSON object
|
808 | */
|
809 | public toJSON(): { [k: string]: any };
|
810 | }
|
811 |
|
812 | /** Properties of a DetectedLanguage. */
|
813 | interface IDetectedLanguage {
|
814 |
|
815 | /** DetectedLanguage languageCode */
|
816 | languageCode?: (string|null);
|
817 |
|
818 | /** DetectedLanguage confidence */
|
819 | confidence?: (number|null);
|
820 | }
|
821 |
|
822 | /** Represents a DetectedLanguage. */
|
823 | class DetectedLanguage implements IDetectedLanguage {
|
824 |
|
825 | /**
|
826 | * Constructs a new DetectedLanguage.
|
827 | * @param [properties] Properties to set
|
828 | */
|
829 | constructor(properties?: google.cloud.translation.v3.IDetectedLanguage);
|
830 |
|
831 | /** DetectedLanguage languageCode. */
|
832 | public languageCode: string;
|
833 |
|
834 | /** DetectedLanguage confidence. */
|
835 | public confidence: number;
|
836 |
|
837 | /**
|
838 | * Creates a new DetectedLanguage instance using the specified properties.
|
839 | * @param [properties] Properties to set
|
840 | * @returns DetectedLanguage instance
|
841 | */
|
842 | public static create(properties?: google.cloud.translation.v3.IDetectedLanguage): google.cloud.translation.v3.DetectedLanguage;
|
843 |
|
844 | /**
|
845 | * Encodes the specified DetectedLanguage message. Does not implicitly { google.cloud.translation.v3.DetectedLanguage.verify|verify} messages.
|
846 | * message DetectedLanguage message or plain object to encode
|
847 | * [writer] Writer to encode to
|
848 | * Writer
|
849 | */
|
850 | public static encode(message: google.cloud.translation.v3.IDetectedLanguage, writer?: $protobuf.Writer): $protobuf.Writer;
|
851 |
|
852 | /**
|
853 | * Encodes the specified DetectedLanguage message, length delimited. Does not implicitly {@link google.cloud.translation.v3.DetectedLanguage.verify|verify} messages.
|
854 | * @param message DetectedLanguage message or plain object to encode
|
855 | * @param [writer] Writer to encode to
|
856 | * @returns Writer
|
857 | */
|
858 | public static encodeDelimited(message: google.cloud.translation.v3.IDetectedLanguage, writer?: $protobuf.Writer): $protobuf.Writer;
|
859 |
|
860 | /**
|
861 | * Decodes a DetectedLanguage message from the specified reader or buffer.
|
862 | * @param reader Reader or buffer to decode from
|
863 | * @param [length] Message length if known beforehand
|
864 | * @returns DetectedLanguage
|
865 | * @throws {Error} If the payload is not a reader or valid buffer
|
866 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
867 | */
|
868 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3.DetectedLanguage;
|
869 |
|
870 | /**
|
871 | * Decodes a DetectedLanguage message from the specified reader or buffer, length delimited.
|
872 | * @param reader Reader or buffer to decode from
|
873 | * @returns DetectedLanguage
|
874 | * @throws {Error} If the payload is not a reader or valid buffer
|
875 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
876 | */
|
877 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3.DetectedLanguage;
|
878 |
|
879 | /**
|
880 | * Verifies a DetectedLanguage message.
|
881 | * @param message Plain object to verify
|
882 | * @returns `null` if valid, otherwise the reason why it is not
|
883 | */
|
884 | public static verify(message: { [k: string]: any }): (string|null);
|
885 |
|
886 | /**
|
887 | * Creates a DetectedLanguage message from a plain object. Also converts values to their respective internal types.
|
888 | * @param object Plain object
|
889 | * @returns DetectedLanguage
|
890 | */
|
891 | public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3.DetectedLanguage;
|
892 |
|
893 | /**
|
894 | * Creates a plain object from a DetectedLanguage message. Also converts values to other types if specified.
|
895 | * @param message DetectedLanguage
|
896 | * @param [options] Conversion options
|
897 | * @returns Plain object
|
898 | */
|
899 | public static toObject(message: google.cloud.translation.v3.DetectedLanguage, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
900 |
|
901 | /**
|
902 | * Converts this DetectedLanguage to JSON.
|
903 | * @returns JSON object
|
904 | */
|
905 | public toJSON(): { [k: string]: any };
|
906 | }
|
907 |
|
908 | /** Properties of a DetectLanguageResponse. */
|
909 | interface IDetectLanguageResponse {
|
910 |
|
911 | /** DetectLanguageResponse languages */
|
912 | languages?: (google.cloud.translation.v3.IDetectedLanguage[]|null);
|
913 | }
|
914 |
|
915 | /** Represents a DetectLanguageResponse. */
|
916 | class DetectLanguageResponse implements IDetectLanguageResponse {
|
917 |
|
918 | /**
|
919 | * Constructs a new DetectLanguageResponse.
|
920 | * @param [properties] Properties to set
|
921 | */
|
922 | constructor(properties?: google.cloud.translation.v3.IDetectLanguageResponse);
|
923 |
|
924 | /** DetectLanguageResponse languages. */
|
925 | public languages: google.cloud.translation.v3.IDetectedLanguage[];
|
926 |
|
927 | /**
|
928 | * Creates a new DetectLanguageResponse instance using the specified properties.
|
929 | * @param [properties] Properties to set
|
930 | * @returns DetectLanguageResponse instance
|
931 | */
|
932 | public static create(properties?: google.cloud.translation.v3.IDetectLanguageResponse): google.cloud.translation.v3.DetectLanguageResponse;
|
933 |
|
934 | /**
|
935 | * Encodes the specified DetectLanguageResponse message. Does not implicitly { google.cloud.translation.v3.DetectLanguageResponse.verify|verify} messages.
|
936 | * message DetectLanguageResponse message or plain object to encode
|
937 | * [writer] Writer to encode to
|
938 | * Writer
|
939 | */
|
940 | public static encode(message: google.cloud.translation.v3.IDetectLanguageResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
941 |
|
942 | /**
|
943 | * Encodes the specified DetectLanguageResponse message, length delimited. Does not implicitly {@link google.cloud.translation.v3.DetectLanguageResponse.verify|verify} messages.
|
944 | * @param message DetectLanguageResponse message or plain object to encode
|
945 | * @param [writer] Writer to encode to
|
946 | * @returns Writer
|
947 | */
|
948 | public static encodeDelimited(message: google.cloud.translation.v3.IDetectLanguageResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
949 |
|
950 | /**
|
951 | * Decodes a DetectLanguageResponse message from the specified reader or buffer.
|
952 | * @param reader Reader or buffer to decode from
|
953 | * @param [length] Message length if known beforehand
|
954 | * @returns DetectLanguageResponse
|
955 | * @throws {Error} If the payload is not a reader or valid buffer
|
956 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
957 | */
|
958 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3.DetectLanguageResponse;
|
959 |
|
960 | /**
|
961 | * Decodes a DetectLanguageResponse message from the specified reader or buffer, length delimited.
|
962 | * @param reader Reader or buffer to decode from
|
963 | * @returns DetectLanguageResponse
|
964 | * @throws {Error} If the payload is not a reader or valid buffer
|
965 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
966 | */
|
967 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3.DetectLanguageResponse;
|
968 |
|
969 | /**
|
970 | * Verifies a DetectLanguageResponse message.
|
971 | * @param message Plain object to verify
|
972 | * @returns `null` if valid, otherwise the reason why it is not
|
973 | */
|
974 | public static verify(message: { [k: string]: any }): (string|null);
|
975 |
|
976 | /**
|
977 | * Creates a DetectLanguageResponse message from a plain object. Also converts values to their respective internal types.
|
978 | * @param object Plain object
|
979 | * @returns DetectLanguageResponse
|
980 | */
|
981 | public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3.DetectLanguageResponse;
|
982 |
|
983 | /**
|
984 | * Creates a plain object from a DetectLanguageResponse message. Also converts values to other types if specified.
|
985 | * @param message DetectLanguageResponse
|
986 | * @param [options] Conversion options
|
987 | * @returns Plain object
|
988 | */
|
989 | public static toObject(message: google.cloud.translation.v3.DetectLanguageResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
990 |
|
991 | /**
|
992 | * Converts this DetectLanguageResponse to JSON.
|
993 | * @returns JSON object
|
994 | */
|
995 | public toJSON(): { [k: string]: any };
|
996 | }
|
997 |
|
998 | /** Properties of a GetSupportedLanguagesRequest. */
|
999 | interface IGetSupportedLanguagesRequest {
|
1000 |
|
1001 | /** GetSupportedLanguagesRequest parent */
|
1002 | parent?: (string|null);
|
1003 |
|
1004 | /** GetSupportedLanguagesRequest displayLanguageCode */
|
1005 | displayLanguageCode?: (string|null);
|
1006 |
|
1007 | /** GetSupportedLanguagesRequest model */
|
1008 | model?: (string|null);
|
1009 | }
|
1010 |
|
1011 | /** Represents a GetSupportedLanguagesRequest. */
|
1012 | class GetSupportedLanguagesRequest implements IGetSupportedLanguagesRequest {
|
1013 |
|
1014 | /**
|
1015 | * Constructs a new GetSupportedLanguagesRequest.
|
1016 | * @param [properties] Properties to set
|
1017 | */
|
1018 | constructor(properties?: google.cloud.translation.v3.IGetSupportedLanguagesRequest);
|
1019 |
|
1020 | /** GetSupportedLanguagesRequest parent. */
|
1021 | public parent: string;
|
1022 |
|
1023 | /** GetSupportedLanguagesRequest displayLanguageCode. */
|
1024 | public displayLanguageCode: string;
|
1025 |
|
1026 | /** GetSupportedLanguagesRequest model. */
|
1027 | public model: string;
|
1028 |
|
1029 | /**
|
1030 | * Creates a new GetSupportedLanguagesRequest instance using the specified properties.
|
1031 | * @param [properties] Properties to set
|
1032 | * @returns GetSupportedLanguagesRequest instance
|
1033 | */
|
1034 | public static create(properties?: google.cloud.translation.v3.IGetSupportedLanguagesRequest): google.cloud.translation.v3.GetSupportedLanguagesRequest;
|
1035 |
|
1036 | /**
|
1037 | * Encodes the specified GetSupportedLanguagesRequest message. Does not implicitly { google.cloud.translation.v3.GetSupportedLanguagesRequest.verify|verify} messages.
|
1038 | * message GetSupportedLanguagesRequest message or plain object to encode
|
1039 | * [writer] Writer to encode to
|
1040 | * Writer
|
1041 | */
|
1042 | public static encode(message: google.cloud.translation.v3.IGetSupportedLanguagesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
1043 |
|
1044 | /**
|
1045 | * Encodes the specified GetSupportedLanguagesRequest message, length delimited. Does not implicitly {@link google.cloud.translation.v3.GetSupportedLanguagesRequest.verify|verify} messages.
|
1046 | * @param message GetSupportedLanguagesRequest message or plain object to encode
|
1047 | * @param [writer] Writer to encode to
|
1048 | * @returns Writer
|
1049 | */
|
1050 | public static encodeDelimited(message: google.cloud.translation.v3.IGetSupportedLanguagesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
1051 |
|
1052 | /**
|
1053 | * Decodes a GetSupportedLanguagesRequest message from the specified reader or buffer.
|
1054 | * @param reader Reader or buffer to decode from
|
1055 | * @param [length] Message length if known beforehand
|
1056 | * @returns GetSupportedLanguagesRequest
|
1057 | * @throws {Error} If the payload is not a reader or valid buffer
|
1058 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1059 | */
|
1060 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3.GetSupportedLanguagesRequest;
|
1061 |
|
1062 | /**
|
1063 | * Decodes a GetSupportedLanguagesRequest message from the specified reader or buffer, length delimited.
|
1064 | * @param reader Reader or buffer to decode from
|
1065 | * @returns GetSupportedLanguagesRequest
|
1066 | * @throws {Error} If the payload is not a reader or valid buffer
|
1067 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1068 | */
|
1069 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3.GetSupportedLanguagesRequest;
|
1070 |
|
1071 | /**
|
1072 | * Verifies a GetSupportedLanguagesRequest message.
|
1073 | * @param message Plain object to verify
|
1074 | * @returns `null` if valid, otherwise the reason why it is not
|
1075 | */
|
1076 | public static verify(message: { [k: string]: any }): (string|null);
|
1077 |
|
1078 | /**
|
1079 | * Creates a GetSupportedLanguagesRequest message from a plain object. Also converts values to their respective internal types.
|
1080 | * @param object Plain object
|
1081 | * @returns GetSupportedLanguagesRequest
|
1082 | */
|
1083 | public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3.GetSupportedLanguagesRequest;
|
1084 |
|
1085 | /**
|
1086 | * Creates a plain object from a GetSupportedLanguagesRequest message. Also converts values to other types if specified.
|
1087 | * @param message GetSupportedLanguagesRequest
|
1088 | * @param [options] Conversion options
|
1089 | * @returns Plain object
|
1090 | */
|
1091 | public static toObject(message: google.cloud.translation.v3.GetSupportedLanguagesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
1092 |
|
1093 | /**
|
1094 | * Converts this GetSupportedLanguagesRequest to JSON.
|
1095 | * @returns JSON object
|
1096 | */
|
1097 | public toJSON(): { [k: string]: any };
|
1098 | }
|
1099 |
|
1100 | /** Properties of a SupportedLanguages. */
|
1101 | interface ISupportedLanguages {
|
1102 |
|
1103 | /** SupportedLanguages languages */
|
1104 | languages?: (google.cloud.translation.v3.ISupportedLanguage[]|null);
|
1105 | }
|
1106 |
|
1107 | /** Represents a SupportedLanguages. */
|
1108 | class SupportedLanguages implements ISupportedLanguages {
|
1109 |
|
1110 | /**
|
1111 | * Constructs a new SupportedLanguages.
|
1112 | * @param [properties] Properties to set
|
1113 | */
|
1114 | constructor(properties?: google.cloud.translation.v3.ISupportedLanguages);
|
1115 |
|
1116 | /** SupportedLanguages languages. */
|
1117 | public languages: google.cloud.translation.v3.ISupportedLanguage[];
|
1118 |
|
1119 | /**
|
1120 | * Creates a new SupportedLanguages instance using the specified properties.
|
1121 | * @param [properties] Properties to set
|
1122 | * @returns SupportedLanguages instance
|
1123 | */
|
1124 | public static create(properties?: google.cloud.translation.v3.ISupportedLanguages): google.cloud.translation.v3.SupportedLanguages;
|
1125 |
|
1126 | /**
|
1127 | * Encodes the specified SupportedLanguages message. Does not implicitly { google.cloud.translation.v3.SupportedLanguages.verify|verify} messages.
|
1128 | * message SupportedLanguages message or plain object to encode
|
1129 | * [writer] Writer to encode to
|
1130 | * Writer
|
1131 | */
|
1132 | public static encode(message: google.cloud.translation.v3.ISupportedLanguages, writer?: $protobuf.Writer): $protobuf.Writer;
|
1133 |
|
1134 | /**
|
1135 | * Encodes the specified SupportedLanguages message, length delimited. Does not implicitly {@link google.cloud.translation.v3.SupportedLanguages.verify|verify} messages.
|
1136 | * @param message SupportedLanguages message or plain object to encode
|
1137 | * @param [writer] Writer to encode to
|
1138 | * @returns Writer
|
1139 | */
|
1140 | public static encodeDelimited(message: google.cloud.translation.v3.ISupportedLanguages, writer?: $protobuf.Writer): $protobuf.Writer;
|
1141 |
|
1142 | /**
|
1143 | * Decodes a SupportedLanguages message from the specified reader or buffer.
|
1144 | * @param reader Reader or buffer to decode from
|
1145 | * @param [length] Message length if known beforehand
|
1146 | * @returns SupportedLanguages
|
1147 | * @throws {Error} If the payload is not a reader or valid buffer
|
1148 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1149 | */
|
1150 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3.SupportedLanguages;
|
1151 |
|
1152 | /**
|
1153 | * Decodes a SupportedLanguages message from the specified reader or buffer, length delimited.
|
1154 | * @param reader Reader or buffer to decode from
|
1155 | * @returns SupportedLanguages
|
1156 | * @throws {Error} If the payload is not a reader or valid buffer
|
1157 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1158 | */
|
1159 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3.SupportedLanguages;
|
1160 |
|
1161 | /**
|
1162 | * Verifies a SupportedLanguages message.
|
1163 | * @param message Plain object to verify
|
1164 | * @returns `null` if valid, otherwise the reason why it is not
|
1165 | */
|
1166 | public static verify(message: { [k: string]: any }): (string|null);
|
1167 |
|
1168 | /**
|
1169 | * Creates a SupportedLanguages message from a plain object. Also converts values to their respective internal types.
|
1170 | * @param object Plain object
|
1171 | * @returns SupportedLanguages
|
1172 | */
|
1173 | public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3.SupportedLanguages;
|
1174 |
|
1175 | /**
|
1176 | * Creates a plain object from a SupportedLanguages message. Also converts values to other types if specified.
|
1177 | * @param message SupportedLanguages
|
1178 | * @param [options] Conversion options
|
1179 | * @returns Plain object
|
1180 | */
|
1181 | public static toObject(message: google.cloud.translation.v3.SupportedLanguages, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
1182 |
|
1183 | /**
|
1184 | * Converts this SupportedLanguages to JSON.
|
1185 | * @returns JSON object
|
1186 | */
|
1187 | public toJSON(): { [k: string]: any };
|
1188 | }
|
1189 |
|
1190 | /** Properties of a SupportedLanguage. */
|
1191 | interface ISupportedLanguage {
|
1192 |
|
1193 | /** SupportedLanguage languageCode */
|
1194 | languageCode?: (string|null);
|
1195 |
|
1196 | /** SupportedLanguage displayName */
|
1197 | displayName?: (string|null);
|
1198 |
|
1199 | /** SupportedLanguage supportSource */
|
1200 | supportSource?: (boolean|null);
|
1201 |
|
1202 | /** SupportedLanguage supportTarget */
|
1203 | supportTarget?: (boolean|null);
|
1204 | }
|
1205 |
|
1206 | /** Represents a SupportedLanguage. */
|
1207 | class SupportedLanguage implements ISupportedLanguage {
|
1208 |
|
1209 | /**
|
1210 | * Constructs a new SupportedLanguage.
|
1211 | * @param [properties] Properties to set
|
1212 | */
|
1213 | constructor(properties?: google.cloud.translation.v3.ISupportedLanguage);
|
1214 |
|
1215 | /** SupportedLanguage languageCode. */
|
1216 | public languageCode: string;
|
1217 |
|
1218 | /** SupportedLanguage displayName. */
|
1219 | public displayName: string;
|
1220 |
|
1221 | /** SupportedLanguage supportSource. */
|
1222 | public supportSource: boolean;
|
1223 |
|
1224 | /** SupportedLanguage supportTarget. */
|
1225 | public supportTarget: boolean;
|
1226 |
|
1227 | /**
|
1228 | * Creates a new SupportedLanguage instance using the specified properties.
|
1229 | * @param [properties] Properties to set
|
1230 | * @returns SupportedLanguage instance
|
1231 | */
|
1232 | public static create(properties?: google.cloud.translation.v3.ISupportedLanguage): google.cloud.translation.v3.SupportedLanguage;
|
1233 |
|
1234 | /**
|
1235 | * Encodes the specified SupportedLanguage message. Does not implicitly { google.cloud.translation.v3.SupportedLanguage.verify|verify} messages.
|
1236 | * message SupportedLanguage message or plain object to encode
|
1237 | * [writer] Writer to encode to
|
1238 | * Writer
|
1239 | */
|
1240 | public static encode(message: google.cloud.translation.v3.ISupportedLanguage, writer?: $protobuf.Writer): $protobuf.Writer;
|
1241 |
|
1242 | /**
|
1243 | * Encodes the specified SupportedLanguage message, length delimited. Does not implicitly {@link google.cloud.translation.v3.SupportedLanguage.verify|verify} messages.
|
1244 | * @param message SupportedLanguage message or plain object to encode
|
1245 | * @param [writer] Writer to encode to
|
1246 | * @returns Writer
|
1247 | */
|
1248 | public static encodeDelimited(message: google.cloud.translation.v3.ISupportedLanguage, writer?: $protobuf.Writer): $protobuf.Writer;
|
1249 |
|
1250 | /**
|
1251 | * Decodes a SupportedLanguage message from the specified reader or buffer.
|
1252 | * @param reader Reader or buffer to decode from
|
1253 | * @param [length] Message length if known beforehand
|
1254 | * @returns SupportedLanguage
|
1255 | * @throws {Error} If the payload is not a reader or valid buffer
|
1256 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1257 | */
|
1258 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3.SupportedLanguage;
|
1259 |
|
1260 | /**
|
1261 | * Decodes a SupportedLanguage message from the specified reader or buffer, length delimited.
|
1262 | * @param reader Reader or buffer to decode from
|
1263 | * @returns SupportedLanguage
|
1264 | * @throws {Error} If the payload is not a reader or valid buffer
|
1265 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1266 | */
|
1267 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3.SupportedLanguage;
|
1268 |
|
1269 | /**
|
1270 | * Verifies a SupportedLanguage message.
|
1271 | * @param message Plain object to verify
|
1272 | * @returns `null` if valid, otherwise the reason why it is not
|
1273 | */
|
1274 | public static verify(message: { [k: string]: any }): (string|null);
|
1275 |
|
1276 | /**
|
1277 | * Creates a SupportedLanguage message from a plain object. Also converts values to their respective internal types.
|
1278 | * @param object Plain object
|
1279 | * @returns SupportedLanguage
|
1280 | */
|
1281 | public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3.SupportedLanguage;
|
1282 |
|
1283 | /**
|
1284 | * Creates a plain object from a SupportedLanguage message. Also converts values to other types if specified.
|
1285 | * @param message SupportedLanguage
|
1286 | * @param [options] Conversion options
|
1287 | * @returns Plain object
|
1288 | */
|
1289 | public static toObject(message: google.cloud.translation.v3.SupportedLanguage, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
1290 |
|
1291 | /**
|
1292 | * Converts this SupportedLanguage to JSON.
|
1293 | * @returns JSON object
|
1294 | */
|
1295 | public toJSON(): { [k: string]: any };
|
1296 | }
|
1297 |
|
1298 | /** Properties of a GcsSource. */
|
1299 | interface IGcsSource {
|
1300 |
|
1301 | /** GcsSource inputUri */
|
1302 | inputUri?: (string|null);
|
1303 | }
|
1304 |
|
1305 | /** Represents a GcsSource. */
|
1306 | class GcsSource implements IGcsSource {
|
1307 |
|
1308 | /**
|
1309 | * Constructs a new GcsSource.
|
1310 | * @param [properties] Properties to set
|
1311 | */
|
1312 | constructor(properties?: google.cloud.translation.v3.IGcsSource);
|
1313 |
|
1314 | /** GcsSource inputUri. */
|
1315 | public inputUri: string;
|
1316 |
|
1317 | /**
|
1318 | * Creates a new GcsSource instance using the specified properties.
|
1319 | * @param [properties] Properties to set
|
1320 | * @returns GcsSource instance
|
1321 | */
|
1322 | public static create(properties?: google.cloud.translation.v3.IGcsSource): google.cloud.translation.v3.GcsSource;
|
1323 |
|
1324 | /**
|
1325 | * Encodes the specified GcsSource message. Does not implicitly { google.cloud.translation.v3.GcsSource.verify|verify} messages.
|
1326 | * message GcsSource message or plain object to encode
|
1327 | * [writer] Writer to encode to
|
1328 | * Writer
|
1329 | */
|
1330 | public static encode(message: google.cloud.translation.v3.IGcsSource, writer?: $protobuf.Writer): $protobuf.Writer;
|
1331 |
|
1332 | /**
|
1333 | * Encodes the specified GcsSource message, length delimited. Does not implicitly {@link google.cloud.translation.v3.GcsSource.verify|verify} messages.
|
1334 | * @param message GcsSource message or plain object to encode
|
1335 | * @param [writer] Writer to encode to
|
1336 | * @returns Writer
|
1337 | */
|
1338 | public static encodeDelimited(message: google.cloud.translation.v3.IGcsSource, writer?: $protobuf.Writer): $protobuf.Writer;
|
1339 |
|
1340 | /**
|
1341 | * Decodes a GcsSource message from the specified reader or buffer.
|
1342 | * @param reader Reader or buffer to decode from
|
1343 | * @param [length] Message length if known beforehand
|
1344 | * @returns GcsSource
|
1345 | * @throws {Error} If the payload is not a reader or valid buffer
|
1346 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1347 | */
|
1348 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3.GcsSource;
|
1349 |
|
1350 | /**
|
1351 | * Decodes a GcsSource message from the specified reader or buffer, length delimited.
|
1352 | * @param reader Reader or buffer to decode from
|
1353 | * @returns GcsSource
|
1354 | * @throws {Error} If the payload is not a reader or valid buffer
|
1355 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1356 | */
|
1357 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3.GcsSource;
|
1358 |
|
1359 | /**
|
1360 | * Verifies a GcsSource message.
|
1361 | * @param message Plain object to verify
|
1362 | * @returns `null` if valid, otherwise the reason why it is not
|
1363 | */
|
1364 | public static verify(message: { [k: string]: any }): (string|null);
|
1365 |
|
1366 | /**
|
1367 | * Creates a GcsSource message from a plain object. Also converts values to their respective internal types.
|
1368 | * @param object Plain object
|
1369 | * @returns GcsSource
|
1370 | */
|
1371 | public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3.GcsSource;
|
1372 |
|
1373 | /**
|
1374 | * Creates a plain object from a GcsSource message. Also converts values to other types if specified.
|
1375 | * @param message GcsSource
|
1376 | * @param [options] Conversion options
|
1377 | * @returns Plain object
|
1378 | */
|
1379 | public static toObject(message: google.cloud.translation.v3.GcsSource, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
1380 |
|
1381 | /**
|
1382 | * Converts this GcsSource to JSON.
|
1383 | * @returns JSON object
|
1384 | */
|
1385 | public toJSON(): { [k: string]: any };
|
1386 | }
|
1387 |
|
1388 | /** Properties of an InputConfig. */
|
1389 | interface IInputConfig {
|
1390 |
|
1391 | /** InputConfig mimeType */
|
1392 | mimeType?: (string|null);
|
1393 |
|
1394 | /** InputConfig gcsSource */
|
1395 | gcsSource?: (google.cloud.translation.v3.IGcsSource|null);
|
1396 | }
|
1397 |
|
1398 | /** Represents an InputConfig. */
|
1399 | class InputConfig implements IInputConfig {
|
1400 |
|
1401 | /**
|
1402 | * Constructs a new InputConfig.
|
1403 | * @param [properties] Properties to set
|
1404 | */
|
1405 | constructor(properties?: google.cloud.translation.v3.IInputConfig);
|
1406 |
|
1407 | /** InputConfig mimeType. */
|
1408 | public mimeType: string;
|
1409 |
|
1410 | /** InputConfig gcsSource. */
|
1411 | public gcsSource?: (google.cloud.translation.v3.IGcsSource|null);
|
1412 |
|
1413 | /** InputConfig source. */
|
1414 | public source?: "gcsSource";
|
1415 |
|
1416 | /**
|
1417 | * Creates a new InputConfig instance using the specified properties.
|
1418 | * @param [properties] Properties to set
|
1419 | * @returns InputConfig instance
|
1420 | */
|
1421 | public static create(properties?: google.cloud.translation.v3.IInputConfig): google.cloud.translation.v3.InputConfig;
|
1422 |
|
1423 | /**
|
1424 | * Encodes the specified InputConfig message. Does not implicitly { google.cloud.translation.v3.InputConfig.verify|verify} messages.
|
1425 | * message InputConfig message or plain object to encode
|
1426 | * [writer] Writer to encode to
|
1427 | * Writer
|
1428 | */
|
1429 | public static encode(message: google.cloud.translation.v3.IInputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
1430 |
|
1431 | /**
|
1432 | * Encodes the specified InputConfig message, length delimited. Does not implicitly {@link google.cloud.translation.v3.InputConfig.verify|verify} messages.
|
1433 | * @param message InputConfig message or plain object to encode
|
1434 | * @param [writer] Writer to encode to
|
1435 | * @returns Writer
|
1436 | */
|
1437 | public static encodeDelimited(message: google.cloud.translation.v3.IInputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
1438 |
|
1439 | /**
|
1440 | * Decodes an InputConfig message from the specified reader or buffer.
|
1441 | * @param reader Reader or buffer to decode from
|
1442 | * @param [length] Message length if known beforehand
|
1443 | * @returns InputConfig
|
1444 | * @throws {Error} If the payload is not a reader or valid buffer
|
1445 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1446 | */
|
1447 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3.InputConfig;
|
1448 |
|
1449 | /**
|
1450 | * Decodes an InputConfig message from the specified reader or buffer, length delimited.
|
1451 | * @param reader Reader or buffer to decode from
|
1452 | * @returns InputConfig
|
1453 | * @throws {Error} If the payload is not a reader or valid buffer
|
1454 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1455 | */
|
1456 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3.InputConfig;
|
1457 |
|
1458 | /**
|
1459 | * Verifies an InputConfig message.
|
1460 | * @param message Plain object to verify
|
1461 | * @returns `null` if valid, otherwise the reason why it is not
|
1462 | */
|
1463 | public static verify(message: { [k: string]: any }): (string|null);
|
1464 |
|
1465 | /**
|
1466 | * Creates an InputConfig message from a plain object. Also converts values to their respective internal types.
|
1467 | * @param object Plain object
|
1468 | * @returns InputConfig
|
1469 | */
|
1470 | public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3.InputConfig;
|
1471 |
|
1472 | /**
|
1473 | * Creates a plain object from an InputConfig message. Also converts values to other types if specified.
|
1474 | * @param message InputConfig
|
1475 | * @param [options] Conversion options
|
1476 | * @returns Plain object
|
1477 | */
|
1478 | public static toObject(message: google.cloud.translation.v3.InputConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
1479 |
|
1480 | /**
|
1481 | * Converts this InputConfig to JSON.
|
1482 | * @returns JSON object
|
1483 | */
|
1484 | public toJSON(): { [k: string]: any };
|
1485 | }
|
1486 |
|
1487 | /** Properties of a GcsDestination. */
|
1488 | interface IGcsDestination {
|
1489 |
|
1490 | /** GcsDestination outputUriPrefix */
|
1491 | outputUriPrefix?: (string|null);
|
1492 | }
|
1493 |
|
1494 | /** Represents a GcsDestination. */
|
1495 | class GcsDestination implements IGcsDestination {
|
1496 |
|
1497 | /**
|
1498 | * Constructs a new GcsDestination.
|
1499 | * @param [properties] Properties to set
|
1500 | */
|
1501 | constructor(properties?: google.cloud.translation.v3.IGcsDestination);
|
1502 |
|
1503 | /** GcsDestination outputUriPrefix. */
|
1504 | public outputUriPrefix: string;
|
1505 |
|
1506 | /**
|
1507 | * Creates a new GcsDestination instance using the specified properties.
|
1508 | * @param [properties] Properties to set
|
1509 | * @returns GcsDestination instance
|
1510 | */
|
1511 | public static create(properties?: google.cloud.translation.v3.IGcsDestination): google.cloud.translation.v3.GcsDestination;
|
1512 |
|
1513 | /**
|
1514 | * Encodes the specified GcsDestination message. Does not implicitly { google.cloud.translation.v3.GcsDestination.verify|verify} messages.
|
1515 | * message GcsDestination message or plain object to encode
|
1516 | * [writer] Writer to encode to
|
1517 | * Writer
|
1518 | */
|
1519 | public static encode(message: google.cloud.translation.v3.IGcsDestination, writer?: $protobuf.Writer): $protobuf.Writer;
|
1520 |
|
1521 | /**
|
1522 | * Encodes the specified GcsDestination message, length delimited. Does not implicitly {@link google.cloud.translation.v3.GcsDestination.verify|verify} messages.
|
1523 | * @param message GcsDestination message or plain object to encode
|
1524 | * @param [writer] Writer to encode to
|
1525 | * @returns Writer
|
1526 | */
|
1527 | public static encodeDelimited(message: google.cloud.translation.v3.IGcsDestination, writer?: $protobuf.Writer): $protobuf.Writer;
|
1528 |
|
1529 | /**
|
1530 | * Decodes a GcsDestination message from the specified reader or buffer.
|
1531 | * @param reader Reader or buffer to decode from
|
1532 | * @param [length] Message length if known beforehand
|
1533 | * @returns GcsDestination
|
1534 | * @throws {Error} If the payload is not a reader or valid buffer
|
1535 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1536 | */
|
1537 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3.GcsDestination;
|
1538 |
|
1539 | /**
|
1540 | * Decodes a GcsDestination message from the specified reader or buffer, length delimited.
|
1541 | * @param reader Reader or buffer to decode from
|
1542 | * @returns GcsDestination
|
1543 | * @throws {Error} If the payload is not a reader or valid buffer
|
1544 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1545 | */
|
1546 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3.GcsDestination;
|
1547 |
|
1548 | /**
|
1549 | * Verifies a GcsDestination message.
|
1550 | * @param message Plain object to verify
|
1551 | * @returns `null` if valid, otherwise the reason why it is not
|
1552 | */
|
1553 | public static verify(message: { [k: string]: any }): (string|null);
|
1554 |
|
1555 | /**
|
1556 | * Creates a GcsDestination message from a plain object. Also converts values to their respective internal types.
|
1557 | * @param object Plain object
|
1558 | * @returns GcsDestination
|
1559 | */
|
1560 | public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3.GcsDestination;
|
1561 |
|
1562 | /**
|
1563 | * Creates a plain object from a GcsDestination message. Also converts values to other types if specified.
|
1564 | * @param message GcsDestination
|
1565 | * @param [options] Conversion options
|
1566 | * @returns Plain object
|
1567 | */
|
1568 | public static toObject(message: google.cloud.translation.v3.GcsDestination, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
1569 |
|
1570 | /**
|
1571 | * Converts this GcsDestination to JSON.
|
1572 | * @returns JSON object
|
1573 | */
|
1574 | public toJSON(): { [k: string]: any };
|
1575 | }
|
1576 |
|
1577 | /** Properties of an OutputConfig. */
|
1578 | interface IOutputConfig {
|
1579 |
|
1580 | /** OutputConfig gcsDestination */
|
1581 | gcsDestination?: (google.cloud.translation.v3.IGcsDestination|null);
|
1582 | }
|
1583 |
|
1584 | /** Represents an OutputConfig. */
|
1585 | class OutputConfig implements IOutputConfig {
|
1586 |
|
1587 | /**
|
1588 | * Constructs a new OutputConfig.
|
1589 | * @param [properties] Properties to set
|
1590 | */
|
1591 | constructor(properties?: google.cloud.translation.v3.IOutputConfig);
|
1592 |
|
1593 | /** OutputConfig gcsDestination. */
|
1594 | public gcsDestination?: (google.cloud.translation.v3.IGcsDestination|null);
|
1595 |
|
1596 | /** OutputConfig destination. */
|
1597 | public destination?: "gcsDestination";
|
1598 |
|
1599 | /**
|
1600 | * Creates a new OutputConfig instance using the specified properties.
|
1601 | * @param [properties] Properties to set
|
1602 | * @returns OutputConfig instance
|
1603 | */
|
1604 | public static create(properties?: google.cloud.translation.v3.IOutputConfig): google.cloud.translation.v3.OutputConfig;
|
1605 |
|
1606 | /**
|
1607 | * Encodes the specified OutputConfig message. Does not implicitly { google.cloud.translation.v3.OutputConfig.verify|verify} messages.
|
1608 | * message OutputConfig message or plain object to encode
|
1609 | * [writer] Writer to encode to
|
1610 | * Writer
|
1611 | */
|
1612 | public static encode(message: google.cloud.translation.v3.IOutputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
1613 |
|
1614 | /**
|
1615 | * Encodes the specified OutputConfig message, length delimited. Does not implicitly {@link google.cloud.translation.v3.OutputConfig.verify|verify} messages.
|
1616 | * @param message OutputConfig message or plain object to encode
|
1617 | * @param [writer] Writer to encode to
|
1618 | * @returns Writer
|
1619 | */
|
1620 | public static encodeDelimited(message: google.cloud.translation.v3.IOutputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
1621 |
|
1622 | /**
|
1623 | * Decodes an OutputConfig message from the specified reader or buffer.
|
1624 | * @param reader Reader or buffer to decode from
|
1625 | * @param [length] Message length if known beforehand
|
1626 | * @returns OutputConfig
|
1627 | * @throws {Error} If the payload is not a reader or valid buffer
|
1628 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1629 | */
|
1630 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3.OutputConfig;
|
1631 |
|
1632 | /**
|
1633 | * Decodes an OutputConfig message from the specified reader or buffer, length delimited.
|
1634 | * @param reader Reader or buffer to decode from
|
1635 | * @returns OutputConfig
|
1636 | * @throws {Error} If the payload is not a reader or valid buffer
|
1637 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1638 | */
|
1639 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3.OutputConfig;
|
1640 |
|
1641 | /**
|
1642 | * Verifies an OutputConfig message.
|
1643 | * @param message Plain object to verify
|
1644 | * @returns `null` if valid, otherwise the reason why it is not
|
1645 | */
|
1646 | public static verify(message: { [k: string]: any }): (string|null);
|
1647 |
|
1648 | /**
|
1649 | * Creates an OutputConfig message from a plain object. Also converts values to their respective internal types.
|
1650 | * @param object Plain object
|
1651 | * @returns OutputConfig
|
1652 | */
|
1653 | public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3.OutputConfig;
|
1654 |
|
1655 | /**
|
1656 | * Creates a plain object from an OutputConfig message. Also converts values to other types if specified.
|
1657 | * @param message OutputConfig
|
1658 | * @param [options] Conversion options
|
1659 | * @returns Plain object
|
1660 | */
|
1661 | public static toObject(message: google.cloud.translation.v3.OutputConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
1662 |
|
1663 | /**
|
1664 | * Converts this OutputConfig to JSON.
|
1665 | * @returns JSON object
|
1666 | */
|
1667 | public toJSON(): { [k: string]: any };
|
1668 | }
|
1669 |
|
1670 | /** Properties of a DocumentInputConfig. */
|
1671 | interface IDocumentInputConfig {
|
1672 |
|
1673 | /** DocumentInputConfig content */
|
1674 | content?: (Uint8Array|string|null);
|
1675 |
|
1676 | /** DocumentInputConfig gcsSource */
|
1677 | gcsSource?: (google.cloud.translation.v3.IGcsSource|null);
|
1678 |
|
1679 | /** DocumentInputConfig mimeType */
|
1680 | mimeType?: (string|null);
|
1681 | }
|
1682 |
|
1683 | /** Represents a DocumentInputConfig. */
|
1684 | class DocumentInputConfig implements IDocumentInputConfig {
|
1685 |
|
1686 | /**
|
1687 | * Constructs a new DocumentInputConfig.
|
1688 | * @param [properties] Properties to set
|
1689 | */
|
1690 | constructor(properties?: google.cloud.translation.v3.IDocumentInputConfig);
|
1691 |
|
1692 | /** DocumentInputConfig content. */
|
1693 | public content?: (Uint8Array|string|null);
|
1694 |
|
1695 | /** DocumentInputConfig gcsSource. */
|
1696 | public gcsSource?: (google.cloud.translation.v3.IGcsSource|null);
|
1697 |
|
1698 | /** DocumentInputConfig mimeType. */
|
1699 | public mimeType: string;
|
1700 |
|
1701 | /** DocumentInputConfig source. */
|
1702 | public source?: ("content"|"gcsSource");
|
1703 |
|
1704 | /**
|
1705 | * Creates a new DocumentInputConfig instance using the specified properties.
|
1706 | * @param [properties] Properties to set
|
1707 | * @returns DocumentInputConfig instance
|
1708 | */
|
1709 | public static create(properties?: google.cloud.translation.v3.IDocumentInputConfig): google.cloud.translation.v3.DocumentInputConfig;
|
1710 |
|
1711 | /**
|
1712 | * Encodes the specified DocumentInputConfig message. Does not implicitly { google.cloud.translation.v3.DocumentInputConfig.verify|verify} messages.
|
1713 | * message DocumentInputConfig message or plain object to encode
|
1714 | * [writer] Writer to encode to
|
1715 | * Writer
|
1716 | */
|
1717 | public static encode(message: google.cloud.translation.v3.IDocumentInputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
1718 |
|
1719 | /**
|
1720 | * Encodes the specified DocumentInputConfig message, length delimited. Does not implicitly {@link google.cloud.translation.v3.DocumentInputConfig.verify|verify} messages.
|
1721 | * @param message DocumentInputConfig message or plain object to encode
|
1722 | * @param [writer] Writer to encode to
|
1723 | * @returns Writer
|
1724 | */
|
1725 | public static encodeDelimited(message: google.cloud.translation.v3.IDocumentInputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
1726 |
|
1727 | /**
|
1728 | * Decodes a DocumentInputConfig message from the specified reader or buffer.
|
1729 | * @param reader Reader or buffer to decode from
|
1730 | * @param [length] Message length if known beforehand
|
1731 | * @returns DocumentInputConfig
|
1732 | * @throws {Error} If the payload is not a reader or valid buffer
|
1733 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1734 | */
|
1735 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3.DocumentInputConfig;
|
1736 |
|
1737 | /**
|
1738 | * Decodes a DocumentInputConfig message from the specified reader or buffer, length delimited.
|
1739 | * @param reader Reader or buffer to decode from
|
1740 | * @returns DocumentInputConfig
|
1741 | * @throws {Error} If the payload is not a reader or valid buffer
|
1742 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1743 | */
|
1744 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3.DocumentInputConfig;
|
1745 |
|
1746 | /**
|
1747 | * Verifies a DocumentInputConfig message.
|
1748 | * @param message Plain object to verify
|
1749 | * @returns `null` if valid, otherwise the reason why it is not
|
1750 | */
|
1751 | public static verify(message: { [k: string]: any }): (string|null);
|
1752 |
|
1753 | /**
|
1754 | * Creates a DocumentInputConfig message from a plain object. Also converts values to their respective internal types.
|
1755 | * @param object Plain object
|
1756 | * @returns DocumentInputConfig
|
1757 | */
|
1758 | public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3.DocumentInputConfig;
|
1759 |
|
1760 | /**
|
1761 | * Creates a plain object from a DocumentInputConfig message. Also converts values to other types if specified.
|
1762 | * @param message DocumentInputConfig
|
1763 | * @param [options] Conversion options
|
1764 | * @returns Plain object
|
1765 | */
|
1766 | public static toObject(message: google.cloud.translation.v3.DocumentInputConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
1767 |
|
1768 | /**
|
1769 | * Converts this DocumentInputConfig to JSON.
|
1770 | * @returns JSON object
|
1771 | */
|
1772 | public toJSON(): { [k: string]: any };
|
1773 | }
|
1774 |
|
1775 | /** Properties of a DocumentOutputConfig. */
|
1776 | interface IDocumentOutputConfig {
|
1777 |
|
1778 | /** DocumentOutputConfig gcsDestination */
|
1779 | gcsDestination?: (google.cloud.translation.v3.IGcsDestination|null);
|
1780 |
|
1781 | /** DocumentOutputConfig mimeType */
|
1782 | mimeType?: (string|null);
|
1783 | }
|
1784 |
|
1785 | /** Represents a DocumentOutputConfig. */
|
1786 | class DocumentOutputConfig implements IDocumentOutputConfig {
|
1787 |
|
1788 | /**
|
1789 | * Constructs a new DocumentOutputConfig.
|
1790 | * @param [properties] Properties to set
|
1791 | */
|
1792 | constructor(properties?: google.cloud.translation.v3.IDocumentOutputConfig);
|
1793 |
|
1794 | /** DocumentOutputConfig gcsDestination. */
|
1795 | public gcsDestination?: (google.cloud.translation.v3.IGcsDestination|null);
|
1796 |
|
1797 | /** DocumentOutputConfig mimeType. */
|
1798 | public mimeType: string;
|
1799 |
|
1800 | /** DocumentOutputConfig destination. */
|
1801 | public destination?: "gcsDestination";
|
1802 |
|
1803 | /**
|
1804 | * Creates a new DocumentOutputConfig instance using the specified properties.
|
1805 | * @param [properties] Properties to set
|
1806 | * @returns DocumentOutputConfig instance
|
1807 | */
|
1808 | public static create(properties?: google.cloud.translation.v3.IDocumentOutputConfig): google.cloud.translation.v3.DocumentOutputConfig;
|
1809 |
|
1810 | /**
|
1811 | * Encodes the specified DocumentOutputConfig message. Does not implicitly { google.cloud.translation.v3.DocumentOutputConfig.verify|verify} messages.
|
1812 | * message DocumentOutputConfig message or plain object to encode
|
1813 | * [writer] Writer to encode to
|
1814 | * Writer
|
1815 | */
|
1816 | public static encode(message: google.cloud.translation.v3.IDocumentOutputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
1817 |
|
1818 | /**
|
1819 | * Encodes the specified DocumentOutputConfig message, length delimited. Does not implicitly {@link google.cloud.translation.v3.DocumentOutputConfig.verify|verify} messages.
|
1820 | * @param message DocumentOutputConfig 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.IDocumentOutputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
1825 |
|
1826 | /**
|
1827 | * Decodes a DocumentOutputConfig 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 DocumentOutputConfig
|
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.DocumentOutputConfig;
|
1835 |
|
1836 | /**
|
1837 | * Decodes a DocumentOutputConfig message from the specified reader or buffer, length delimited.
|
1838 | * @param reader Reader or buffer to decode from
|
1839 | * @returns DocumentOutputConfig
|
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.DocumentOutputConfig;
|
1844 |
|
1845 | /**
|
1846 | * Verifies a DocumentOutputConfig 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 DocumentOutputConfig message from a plain object. Also converts values to their respective internal types.
|
1854 | * @param object Plain object
|
1855 | * @returns DocumentOutputConfig
|
1856 | */
|
1857 | public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3.DocumentOutputConfig;
|
1858 |
|
1859 | /**
|
1860 | * Creates a plain object from a DocumentOutputConfig message. Also converts values to other types if specified.
|
1861 | * @param message DocumentOutputConfig
|
1862 | * @param [options] Conversion options
|
1863 | * @returns Plain object
|
1864 | */
|
1865 | public static toObject(message: google.cloud.translation.v3.DocumentOutputConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
1866 |
|
1867 | /**
|
1868 | * Converts this DocumentOutputConfig to JSON.
|
1869 | * @returns JSON object
|
1870 | */
|
1871 | public toJSON(): { [k: string]: any };
|
1872 | }
|
1873 |
|
1874 | /** Properties of a TranslateDocumentRequest. */
|
1875 | interface ITranslateDocumentRequest {
|
1876 |
|
1877 | /** TranslateDocumentRequest parent */
|
1878 | parent?: (string|null);
|
1879 |
|
1880 | /** TranslateDocumentRequest sourceLanguageCode */
|
1881 | sourceLanguageCode?: (string|null);
|
1882 |
|
1883 | /** TranslateDocumentRequest targetLanguageCode */
|
1884 | targetLanguageCode?: (string|null);
|
1885 |
|
1886 | /** TranslateDocumentRequest documentInputConfig */
|
1887 | documentInputConfig?: (google.cloud.translation.v3.IDocumentInputConfig|null);
|
1888 |
|
1889 | /** TranslateDocumentRequest documentOutputConfig */
|
1890 | documentOutputConfig?: (google.cloud.translation.v3.IDocumentOutputConfig|null);
|
1891 |
|
1892 | /** TranslateDocumentRequest model */
|
1893 | model?: (string|null);
|
1894 |
|
1895 | /** TranslateDocumentRequest glossaryConfig */
|
1896 | glossaryConfig?: (google.cloud.translation.v3.ITranslateTextGlossaryConfig|null);
|
1897 |
|
1898 | /** TranslateDocumentRequest labels */
|
1899 | labels?: ({ [k: string]: string }|null);
|
1900 | }
|
1901 |
|
1902 | /** Represents a TranslateDocumentRequest. */
|
1903 | class TranslateDocumentRequest implements ITranslateDocumentRequest {
|
1904 |
|
1905 | /**
|
1906 | * Constructs a new TranslateDocumentRequest.
|
1907 | * @param [properties] Properties to set
|
1908 | */
|
1909 | constructor(properties?: google.cloud.translation.v3.ITranslateDocumentRequest);
|
1910 |
|
1911 | /** TranslateDocumentRequest parent. */
|
1912 | public parent: string;
|
1913 |
|
1914 | /** TranslateDocumentRequest sourceLanguageCode. */
|
1915 | public sourceLanguageCode: string;
|
1916 |
|
1917 | /** TranslateDocumentRequest targetLanguageCode. */
|
1918 | public targetLanguageCode: string;
|
1919 |
|
1920 | /** TranslateDocumentRequest documentInputConfig. */
|
1921 | public documentInputConfig?: (google.cloud.translation.v3.IDocumentInputConfig|null);
|
1922 |
|
1923 | /** TranslateDocumentRequest documentOutputConfig. */
|
1924 | public documentOutputConfig?: (google.cloud.translation.v3.IDocumentOutputConfig|null);
|
1925 |
|
1926 | /** TranslateDocumentRequest model. */
|
1927 | public model: string;
|
1928 |
|
1929 | /** TranslateDocumentRequest glossaryConfig. */
|
1930 | public glossaryConfig?: (google.cloud.translation.v3.ITranslateTextGlossaryConfig|null);
|
1931 |
|
1932 | /** TranslateDocumentRequest labels. */
|
1933 | public labels: { [k: string]: string };
|
1934 |
|
1935 | /**
|
1936 | * Creates a new TranslateDocumentRequest instance using the specified properties.
|
1937 | * @param [properties] Properties to set
|
1938 | * @returns TranslateDocumentRequest instance
|
1939 | */
|
1940 | public static create(properties?: google.cloud.translation.v3.ITranslateDocumentRequest): google.cloud.translation.v3.TranslateDocumentRequest;
|
1941 |
|
1942 | /**
|
1943 | * Encodes the specified TranslateDocumentRequest message. Does not implicitly {@link google.cloud.translation.v3.TranslateDocumentRequest.verify|verify} messages.
|
1944 | * @param message TranslateDocumentRequest message or plain object to encode
|
1945 | * @param [writer] Writer to encode to
|
1946 | * @returns Writer
|
1947 | */
|
1948 | public static encode(message: google.cloud.translation.v3.ITranslateDocumentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
1949 |
|
1950 | /**
|
1951 | * Encodes the specified TranslateDocumentRequest message, length delimited. Does not implicitly {@link google.cloud.translation.v3.TranslateDocumentRequest.verify|verify} messages.
|
1952 | * @param message TranslateDocumentRequest message or plain object to encode
|
1953 | * @param [writer] Writer to encode to
|
1954 | * @returns Writer
|
1955 | */
|
1956 | public static encodeDelimited(message: google.cloud.translation.v3.ITranslateDocumentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
1957 |
|
1958 | /**
|
1959 | * Decodes a TranslateDocumentRequest message from the specified reader or buffer.
|
1960 | * @param reader Reader or buffer to decode from
|
1961 | * @param [length] Message length if known beforehand
|
1962 | * @returns TranslateDocumentRequest
|
1963 | * @throws {Error} If the payload is not a reader or valid buffer
|
1964 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1965 | */
|
1966 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3.TranslateDocumentRequest;
|
1967 |
|
1968 | /**
|
1969 | * Decodes a TranslateDocumentRequest message from the specified reader or buffer, length delimited.
|
1970 | * @param reader Reader or buffer to decode from
|
1971 | * @returns TranslateDocumentRequest
|
1972 | * @throws {Error} If the payload is not a reader or valid buffer
|
1973 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1974 | */
|
1975 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3.TranslateDocumentRequest;
|
1976 |
|
1977 | /**
|
1978 | * Verifies a TranslateDocumentRequest message.
|
1979 | * @param message Plain object to verify
|
1980 | * @returns `null` if valid, otherwise the reason why it is not
|
1981 | */
|
1982 | public static verify(message: { [k: string]: any }): (string|null);
|
1983 |
|
1984 | /**
|
1985 | * Creates a TranslateDocumentRequest message from a plain object. Also converts values to their respective internal types.
|
1986 | * @param object Plain object
|
1987 | * @returns TranslateDocumentRequest
|
1988 | */
|
1989 | public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3.TranslateDocumentRequest;
|
1990 |
|
1991 | /**
|
1992 | * Creates a plain object from a TranslateDocumentRequest message. Also converts values to other types if specified.
|
1993 | * @param message TranslateDocumentRequest
|
1994 | * @param [options] Conversion options
|
1995 | * @returns Plain object
|
1996 | */
|
1997 | public static toObject(message: google.cloud.translation.v3.TranslateDocumentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
1998 |
|
1999 | /**
|
2000 | * Converts this TranslateDocumentRequest to JSON.
|
2001 | * @returns JSON object
|
2002 | */
|
2003 | public toJSON(): { [k: string]: any };
|
2004 | }
|
2005 |
|
2006 | /** Properties of a DocumentTranslation. */
|
2007 | interface IDocumentTranslation {
|
2008 |
|
2009 | /** DocumentTranslation byteStreamOutputs */
|
2010 | byteStreamOutputs?: (Uint8Array[]|null);
|
2011 |
|
2012 | /** DocumentTranslation mimeType */
|
2013 | mimeType?: (string|null);
|
2014 |
|
2015 | /** DocumentTranslation detectedLanguageCode */
|
2016 | detectedLanguageCode?: (string|null);
|
2017 | }
|
2018 |
|
2019 | /** Represents a DocumentTranslation. */
|
2020 | class DocumentTranslation implements IDocumentTranslation {
|
2021 |
|
2022 | /**
|
2023 | * Constructs a new DocumentTranslation.
|
2024 | * @param [properties] Properties to set
|
2025 | */
|
2026 | constructor(properties?: google.cloud.translation.v3.IDocumentTranslation);
|
2027 |
|
2028 | /** DocumentTranslation byteStreamOutputs. */
|
2029 | public byteStreamOutputs: Uint8Array[];
|
2030 |
|
2031 | /** DocumentTranslation mimeType. */
|
2032 | public mimeType: string;
|
2033 |
|
2034 | /** DocumentTranslation detectedLanguageCode. */
|
2035 | public detectedLanguageCode: string;
|
2036 |
|
2037 | /**
|
2038 | * Creates a new DocumentTranslation instance using the specified properties.
|
2039 | * @param [properties] Properties to set
|
2040 | * @returns DocumentTranslation instance
|
2041 | */
|
2042 | public static create(properties?: google.cloud.translation.v3.IDocumentTranslation): google.cloud.translation.v3.DocumentTranslation;
|
2043 |
|
2044 | /**
|
2045 | * Encodes the specified DocumentTranslation message. Does not implicitly { google.cloud.translation.v3.DocumentTranslation.verify|verify} messages.
|
2046 | * message DocumentTranslation message or plain object to encode
|
2047 | * [writer] Writer to encode to
|
2048 | * Writer
|
2049 | */
|
2050 | public static encode(message: google.cloud.translation.v3.IDocumentTranslation, writer?: $protobuf.Writer): $protobuf.Writer;
|
2051 |
|
2052 | /**
|
2053 | * Encodes the specified DocumentTranslation message, length delimited. Does not implicitly {@link google.cloud.translation.v3.DocumentTranslation.verify|verify} messages.
|
2054 | * @param message DocumentTranslation message or plain object to encode
|
2055 | * @param [writer] Writer to encode to
|
2056 | * @returns Writer
|
2057 | */
|
2058 | public static encodeDelimited(message: google.cloud.translation.v3.IDocumentTranslation, writer?: $protobuf.Writer): $protobuf.Writer;
|
2059 |
|
2060 | /**
|
2061 | * Decodes a DocumentTranslation message from the specified reader or buffer.
|
2062 | * @param reader Reader or buffer to decode from
|
2063 | * @param [length] Message length if known beforehand
|
2064 | * @returns DocumentTranslation
|
2065 | * @throws {Error} If the payload is not a reader or valid buffer
|
2066 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
2067 | */
|
2068 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3.DocumentTranslation;
|
2069 |
|
2070 | /**
|
2071 | * Decodes a DocumentTranslation message from the specified reader or buffer, length delimited.
|
2072 | * @param reader Reader or buffer to decode from
|
2073 | * @returns DocumentTranslation
|
2074 | * @throws {Error} If the payload is not a reader or valid buffer
|
2075 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
2076 | */
|
2077 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3.DocumentTranslation;
|
2078 |
|
2079 | /**
|
2080 | * Verifies a DocumentTranslation message.
|
2081 | * @param message Plain object to verify
|
2082 | * @returns `null` if valid, otherwise the reason why it is not
|
2083 | */
|
2084 | public static verify(message: { [k: string]: any }): (string|null);
|
2085 |
|
2086 | /**
|
2087 | * Creates a DocumentTranslation message from a plain object. Also converts values to their respective internal types.
|
2088 | * @param object Plain object
|
2089 | * @returns DocumentTranslation
|
2090 | */
|
2091 | public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3.DocumentTranslation;
|
2092 |
|
2093 | /**
|
2094 | * Creates a plain object from a DocumentTranslation message. Also converts values to other types if specified.
|
2095 | * @param message DocumentTranslation
|
2096 | * @param [options] Conversion options
|
2097 | * @returns Plain object
|
2098 | */
|
2099 | public static toObject(message: google.cloud.translation.v3.DocumentTranslation, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
2100 |
|
2101 | /**
|
2102 | * Converts this DocumentTranslation to JSON.
|
2103 | * @returns JSON object
|
2104 | */
|
2105 | public toJSON(): { [k: string]: any };
|
2106 | }
|
2107 |
|
2108 | /** Properties of a TranslateDocumentResponse. */
|
2109 | interface ITranslateDocumentResponse {
|
2110 |
|
2111 | /** TranslateDocumentResponse documentTranslation */
|
2112 | documentTranslation?: (google.cloud.translation.v3.IDocumentTranslation|null);
|
2113 |
|
2114 | /** TranslateDocumentResponse glossaryDocumentTranslation */
|
2115 | glossaryDocumentTranslation?: (google.cloud.translation.v3.IDocumentTranslation|null);
|
2116 |
|
2117 | /** TranslateDocumentResponse model */
|
2118 | model?: (string|null);
|
2119 |
|
2120 | /** TranslateDocumentResponse glossaryConfig */
|
2121 | glossaryConfig?: (google.cloud.translation.v3.ITranslateTextGlossaryConfig|null);
|
2122 | }
|
2123 |
|
2124 | /** Represents a TranslateDocumentResponse. */
|
2125 | class TranslateDocumentResponse implements ITranslateDocumentResponse {
|
2126 |
|
2127 | /**
|
2128 | * Constructs a new TranslateDocumentResponse.
|
2129 | * @param [properties] Properties to set
|
2130 | */
|
2131 | constructor(properties?: google.cloud.translation.v3.ITranslateDocumentResponse);
|
2132 |
|
2133 | /** TranslateDocumentResponse documentTranslation. */
|
2134 | public documentTranslation?: (google.cloud.translation.v3.IDocumentTranslation|null);
|
2135 |
|
2136 | /** TranslateDocumentResponse glossaryDocumentTranslation. */
|
2137 | public glossaryDocumentTranslation?: (google.cloud.translation.v3.IDocumentTranslation|null);
|
2138 |
|
2139 | /** TranslateDocumentResponse model. */
|
2140 | public model: string;
|
2141 |
|
2142 | /** TranslateDocumentResponse glossaryConfig. */
|
2143 | public glossaryConfig?: (google.cloud.translation.v3.ITranslateTextGlossaryConfig|null);
|
2144 |
|
2145 | /**
|
2146 | * Creates a new TranslateDocumentResponse instance using the specified properties.
|
2147 | * @param [properties] Properties to set
|
2148 | * @returns TranslateDocumentResponse instance
|
2149 | */
|
2150 | public static create(properties?: google.cloud.translation.v3.ITranslateDocumentResponse): google.cloud.translation.v3.TranslateDocumentResponse;
|
2151 |
|
2152 | /**
|
2153 | * Encodes the specified TranslateDocumentResponse message. Does not implicitly { google.cloud.translation.v3.TranslateDocumentResponse.verify|verify} messages.
|
2154 | * message TranslateDocumentResponse message or plain object to encode
|
2155 | * [writer] Writer to encode to
|
2156 | * Writer
|
2157 | */
|
2158 | public static encode(message: google.cloud.translation.v3.ITranslateDocumentResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
2159 |
|
2160 | /**
|
2161 | * Encodes the specified TranslateDocumentResponse message, length delimited. Does not implicitly {@link google.cloud.translation.v3.TranslateDocumentResponse.verify|verify} messages.
|
2162 | * @param message TranslateDocumentResponse message or plain object to encode
|
2163 | * @param [writer] Writer to encode to
|
2164 | * @returns Writer
|
2165 | */
|
2166 | public static encodeDelimited(message: google.cloud.translation.v3.ITranslateDocumentResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
2167 |
|
2168 | /**
|
2169 | * Decodes a TranslateDocumentResponse message from the specified reader or buffer.
|
2170 | * @param reader Reader or buffer to decode from
|
2171 | * @param [length] Message length if known beforehand
|
2172 | * @returns TranslateDocumentResponse
|
2173 | * @throws {Error} If the payload is not a reader or valid buffer
|
2174 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
2175 | */
|
2176 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3.TranslateDocumentResponse;
|
2177 |
|
2178 | /**
|
2179 | * Decodes a TranslateDocumentResponse message from the specified reader or buffer, length delimited.
|
2180 | * @param reader Reader or buffer to decode from
|
2181 | * @returns TranslateDocumentResponse
|
2182 | * @throws {Error} If the payload is not a reader or valid buffer
|
2183 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
2184 | */
|
2185 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3.TranslateDocumentResponse;
|
2186 |
|
2187 | /**
|
2188 | * Verifies a TranslateDocumentResponse message.
|
2189 | * @param message Plain object to verify
|
2190 | * @returns `null` if valid, otherwise the reason why it is not
|
2191 | */
|
2192 | public static verify(message: { [k: string]: any }): (string|null);
|
2193 |
|
2194 | /**
|
2195 | * Creates a TranslateDocumentResponse message from a plain object. Also converts values to their respective internal types.
|
2196 | * @param object Plain object
|
2197 | * @returns TranslateDocumentResponse
|
2198 | */
|
2199 | public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3.TranslateDocumentResponse;
|
2200 |
|
2201 | /**
|
2202 | * Creates a plain object from a TranslateDocumentResponse message. Also converts values to other types if specified.
|
2203 | * @param message TranslateDocumentResponse
|
2204 | * @param [options] Conversion options
|
2205 | * @returns Plain object
|
2206 | */
|
2207 | public static toObject(message: google.cloud.translation.v3.TranslateDocumentResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
2208 |
|
2209 | /**
|
2210 | * Converts this TranslateDocumentResponse to JSON.
|
2211 | * @returns JSON object
|
2212 | */
|
2213 | public toJSON(): { [k: string]: any };
|
2214 | }
|
2215 |
|
2216 | /** Properties of a BatchTranslateTextRequest. */
|
2217 | interface IBatchTranslateTextRequest {
|
2218 |
|
2219 | /** BatchTranslateTextRequest parent */
|
2220 | parent?: (string|null);
|
2221 |
|
2222 | /** BatchTranslateTextRequest sourceLanguageCode */
|
2223 | sourceLanguageCode?: (string|null);
|
2224 |
|
2225 | /** BatchTranslateTextRequest targetLanguageCodes */
|
2226 | targetLanguageCodes?: (string[]|null);
|
2227 |
|
2228 | /** BatchTranslateTextRequest models */
|
2229 | models?: ({ [k: string]: string }|null);
|
2230 |
|
2231 | /** BatchTranslateTextRequest inputConfigs */
|
2232 | inputConfigs?: (google.cloud.translation.v3.IInputConfig[]|null);
|
2233 |
|
2234 | /** BatchTranslateTextRequest outputConfig */
|
2235 | outputConfig?: (google.cloud.translation.v3.IOutputConfig|null);
|
2236 |
|
2237 | /** BatchTranslateTextRequest glossaries */
|
2238 | glossaries?: ({ [k: string]: google.cloud.translation.v3.ITranslateTextGlossaryConfig }|null);
|
2239 |
|
2240 | /** BatchTranslateTextRequest labels */
|
2241 | labels?: ({ [k: string]: string }|null);
|
2242 | }
|
2243 |
|
2244 | /** Represents a BatchTranslateTextRequest. */
|
2245 | class BatchTranslateTextRequest implements IBatchTranslateTextRequest {
|
2246 |
|
2247 | /**
|
2248 | * Constructs a new BatchTranslateTextRequest.
|
2249 | * @param [properties] Properties to set
|
2250 | */
|
2251 | constructor(properties?: google.cloud.translation.v3.IBatchTranslateTextRequest);
|
2252 |
|
2253 | /** BatchTranslateTextRequest parent. */
|
2254 | public parent: string;
|
2255 |
|
2256 | /** BatchTranslateTextRequest sourceLanguageCode. */
|
2257 | public sourceLanguageCode: string;
|
2258 |
|
2259 | /** BatchTranslateTextRequest targetLanguageCodes. */
|
2260 | public targetLanguageCodes: string[];
|
2261 |
|
2262 | /** BatchTranslateTextRequest models. */
|
2263 | public models: { [k: string]: string };
|
2264 |
|
2265 | /** BatchTranslateTextRequest inputConfigs. */
|
2266 | public inputConfigs: google.cloud.translation.v3.IInputConfig[];
|
2267 |
|
2268 | /** BatchTranslateTextRequest outputConfig. */
|
2269 | public outputConfig?: (google.cloud.translation.v3.IOutputConfig|null);
|
2270 |
|
2271 | /** BatchTranslateTextRequest glossaries. */
|
2272 | public glossaries: { [k: string]: google.cloud.translation.v3.ITranslateTextGlossaryConfig };
|
2273 |
|
2274 | /** BatchTranslateTextRequest labels. */
|
2275 | public labels: { [k: string]: string };
|
2276 |
|
2277 | /**
|
2278 | * Creates a new BatchTranslateTextRequest instance using the specified properties.
|
2279 | * @param [properties] Properties to set
|
2280 | * @returns BatchTranslateTextRequest instance
|
2281 | */
|
2282 | public static create(properties?: google.cloud.translation.v3.IBatchTranslateTextRequest): google.cloud.translation.v3.BatchTranslateTextRequest;
|
2283 |
|
2284 | /**
|
2285 | * Encodes the specified BatchTranslateTextRequest message. Does not implicitly {@link google.cloud.translation.v3.BatchTranslateTextRequest.verify|verify} messages.
|
2286 | * @param message BatchTranslateTextRequest message or plain object to encode
|
2287 | * @param [writer] Writer to encode to
|
2288 | * @returns Writer
|
2289 | */
|
2290 | public static encode(message: google.cloud.translation.v3.IBatchTranslateTextRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
2291 |
|
2292 | /**
|
2293 | * Encodes the specified BatchTranslateTextRequest message, length delimited. Does not implicitly {@link google.cloud.translation.v3.BatchTranslateTextRequest.verify|verify} messages.
|
2294 | * @param message BatchTranslateTextRequest message or plain object to encode
|
2295 | * @param [writer] Writer to encode to
|
2296 | * @returns Writer
|
2297 | */
|
2298 | public static encodeDelimited(message: google.cloud.translation.v3.IBatchTranslateTextRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
2299 |
|
2300 | /**
|
2301 | * Decodes a BatchTranslateTextRequest message from the specified reader or buffer.
|
2302 | * @param reader Reader or buffer to decode from
|
2303 | * @param [length] Message length if known beforehand
|
2304 | * @returns BatchTranslateTextRequest
|
2305 | * @throws {Error} If the payload is not a reader or valid buffer
|
2306 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
2307 | */
|
2308 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3.BatchTranslateTextRequest;
|
2309 |
|
2310 | /**
|
2311 | * Decodes a BatchTranslateTextRequest message from the specified reader or buffer, length delimited.
|
2312 | * @param reader Reader or buffer to decode from
|
2313 | * @returns BatchTranslateTextRequest
|
2314 | * @throws {Error} If the payload is not a reader or valid buffer
|
2315 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
2316 | */
|
2317 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3.BatchTranslateTextRequest;
|
2318 |
|
2319 | /**
|
2320 | * Verifies a BatchTranslateTextRequest message.
|
2321 | * @param message Plain object to verify
|
2322 | * @returns `null` if valid, otherwise the reason why it is not
|
2323 | */
|
2324 | public static verify(message: { [k: string]: any }): (string|null);
|
2325 |
|
2326 | /**
|
2327 | * Creates a BatchTranslateTextRequest message from a plain object. Also converts values to their respective internal types.
|
2328 | * @param object Plain object
|
2329 | * @returns BatchTranslateTextRequest
|
2330 | */
|
2331 | public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3.BatchTranslateTextRequest;
|
2332 |
|
2333 | /**
|
2334 | * Creates a plain object from a BatchTranslateTextRequest message. Also converts values to other types if specified.
|
2335 | * @param message BatchTranslateTextRequest
|
2336 | * @param [options] Conversion options
|
2337 | * @returns Plain object
|
2338 | */
|
2339 | public static toObject(message: google.cloud.translation.v3.BatchTranslateTextRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
2340 |
|
2341 | /**
|
2342 | * Converts this BatchTranslateTextRequest to JSON.
|
2343 | * @returns JSON object
|
2344 | */
|
2345 | public toJSON(): { [k: string]: any };
|
2346 | }
|
2347 |
|
2348 | /** Properties of a BatchTranslateMetadata. */
|
2349 | interface IBatchTranslateMetadata {
|
2350 |
|
2351 | /** BatchTranslateMetadata state */
|
2352 | state?: (google.cloud.translation.v3.BatchTranslateMetadata.State|keyof typeof google.cloud.translation.v3.BatchTranslateMetadata.State|null);
|
2353 |
|
2354 | /** BatchTranslateMetadata translatedCharacters */
|
2355 | translatedCharacters?: (number|Long|string|null);
|
2356 |
|
2357 | /** BatchTranslateMetadata failedCharacters */
|
2358 | failedCharacters?: (number|Long|string|null);
|
2359 |
|
2360 | /** BatchTranslateMetadata totalCharacters */
|
2361 | totalCharacters?: (number|Long|string|null);
|
2362 |
|
2363 | /** BatchTranslateMetadata submitTime */
|
2364 | submitTime?: (google.protobuf.ITimestamp|null);
|
2365 | }
|
2366 |
|
2367 | /** Represents a BatchTranslateMetadata. */
|
2368 | class BatchTranslateMetadata implements IBatchTranslateMetadata {
|
2369 |
|
2370 | /**
|
2371 | * Constructs a new BatchTranslateMetadata.
|
2372 | * @param [properties] Properties to set
|
2373 | */
|
2374 | constructor(properties?: google.cloud.translation.v3.IBatchTranslateMetadata);
|
2375 |
|
2376 | /** BatchTranslateMetadata state. */
|
2377 | public state: (google.cloud.translation.v3.BatchTranslateMetadata.State|keyof typeof google.cloud.translation.v3.BatchTranslateMetadata.State);
|
2378 |
|
2379 | /** BatchTranslateMetadata translatedCharacters. */
|
2380 | public translatedCharacters: (number|Long|string);
|
2381 |
|
2382 | /** BatchTranslateMetadata failedCharacters. */
|
2383 | public failedCharacters: (number|Long|string);
|
2384 |
|
2385 | /** BatchTranslateMetadata totalCharacters. */
|
2386 | public totalCharacters: (number|Long|string);
|
2387 |
|
2388 | /** BatchTranslateMetadata submitTime. */
|
2389 | public submitTime?: (google.protobuf.ITimestamp|null);
|
2390 |
|
2391 | /**
|
2392 | * Creates a new BatchTranslateMetadata instance using the specified properties.
|
2393 | * @param [properties] Properties to set
|
2394 | * @returns BatchTranslateMetadata instance
|
2395 | */
|
2396 | public static create(properties?: google.cloud.translation.v3.IBatchTranslateMetadata): google.cloud.translation.v3.BatchTranslateMetadata;
|
2397 |
|
2398 | /**
|
2399 | * Encodes the specified BatchTranslateMetadata message. Does not implicitly { google.cloud.translation.v3.BatchTranslateMetadata.verify|verify} messages.
|
2400 | * message BatchTranslateMetadata message or plain object to encode
|
2401 | * [writer] Writer to encode to
|
2402 | * Writer
|
2403 | */
|
2404 | public static encode(message: google.cloud.translation.v3.IBatchTranslateMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
|
2405 |
|
2406 | /**
|
2407 | * Encodes the specified BatchTranslateMetadata message, length delimited. Does not implicitly {@link google.cloud.translation.v3.BatchTranslateMetadata.verify|verify} messages.
|
2408 | * @param message BatchTranslateMetadata message or plain object to encode
|
2409 | * @param [writer] Writer to encode to
|
2410 | * @returns Writer
|
2411 | */
|
2412 | public static encodeDelimited(message: google.cloud.translation.v3.IBatchTranslateMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
|
2413 |
|
2414 | /**
|
2415 | * Decodes a BatchTranslateMetadata message from the specified reader or buffer.
|
2416 | * @param reader Reader or buffer to decode from
|
2417 | * @param [length] Message length if known beforehand
|
2418 | * @returns BatchTranslateMetadata
|
2419 | * @throws {Error} If the payload is not a reader or valid buffer
|
2420 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
2421 | */
|
2422 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3.BatchTranslateMetadata;
|
2423 |
|
2424 | /**
|
2425 | * Decodes a BatchTranslateMetadata message from the specified reader or buffer, length delimited.
|
2426 | * @param reader Reader or buffer to decode from
|
2427 | * @returns BatchTranslateMetadata
|
2428 | * @throws {Error} If the payload is not a reader or valid buffer
|
2429 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
2430 | */
|
2431 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3.BatchTranslateMetadata;
|
2432 |
|
2433 | /**
|
2434 | * Verifies a BatchTranslateMetadata message.
|
2435 | * @param message Plain object to verify
|
2436 | * @returns `null` if valid, otherwise the reason why it is not
|
2437 | */
|
2438 | public static verify(message: { [k: string]: any }): (string|null);
|
2439 |
|
2440 | /**
|
2441 | * Creates a BatchTranslateMetadata message from a plain object. Also converts values to their respective internal types.
|
2442 | * @param object Plain object
|
2443 | * @returns BatchTranslateMetadata
|
2444 | */
|
2445 | public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3.BatchTranslateMetadata;
|
2446 |
|
2447 | /**
|
2448 | * Creates a plain object from a BatchTranslateMetadata message. Also converts values to other types if specified.
|
2449 | * @param message BatchTranslateMetadata
|
2450 | * @param [options] Conversion options
|
2451 | * @returns Plain object
|
2452 | */
|
2453 | public static toObject(message: google.cloud.translation.v3.BatchTranslateMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
2454 |
|
2455 | /**
|
2456 | * Converts this BatchTranslateMetadata to JSON.
|
2457 | * @returns JSON object
|
2458 | */
|
2459 | public toJSON(): { [k: string]: any };
|
2460 | }
|
2461 |
|
2462 | namespace BatchTranslateMetadata {
|
2463 |
|
2464 | /** State enum. */
|
2465 | enum State {
|
2466 | STATE_UNSPECIFIED = 0,
|
2467 | RUNNING = 1,
|
2468 | SUCCEEDED = 2,
|
2469 | FAILED = 3,
|
2470 | CANCELLING = 4,
|
2471 | CANCELLED = 5
|
2472 | }
|
2473 | }
|
2474 |
|
2475 | /** Properties of a BatchTranslateResponse. */
|
2476 | interface IBatchTranslateResponse {
|
2477 |
|
2478 | /** BatchTranslateResponse totalCharacters */
|
2479 | totalCharacters?: (number|Long|string|null);
|
2480 |
|
2481 | /** BatchTranslateResponse translatedCharacters */
|
2482 | translatedCharacters?: (number|Long|string|null);
|
2483 |
|
2484 | /** BatchTranslateResponse failedCharacters */
|
2485 | failedCharacters?: (number|Long|string|null);
|
2486 |
|
2487 | /** BatchTranslateResponse submitTime */
|
2488 | submitTime?: (google.protobuf.ITimestamp|null);
|
2489 |
|
2490 | /** BatchTranslateResponse endTime */
|
2491 | endTime?: (google.protobuf.ITimestamp|null);
|
2492 | }
|
2493 |
|
2494 | /** Represents a BatchTranslateResponse. */
|
2495 | class BatchTranslateResponse implements IBatchTranslateResponse {
|
2496 |
|
2497 | /**
|
2498 | * Constructs a new BatchTranslateResponse.
|
2499 | * @param [properties] Properties to set
|
2500 | */
|
2501 | constructor(properties?: google.cloud.translation.v3.IBatchTranslateResponse);
|
2502 |
|
2503 | /** BatchTranslateResponse totalCharacters. */
|
2504 | public totalCharacters: (number|Long|string);
|
2505 |
|
2506 | /** BatchTranslateResponse translatedCharacters. */
|
2507 | public translatedCharacters: (number|Long|string);
|
2508 |
|
2509 | /** BatchTranslateResponse failedCharacters. */
|
2510 | public failedCharacters: (number|Long|string);
|
2511 |
|
2512 | /** BatchTranslateResponse submitTime. */
|
2513 | public submitTime?: (google.protobuf.ITimestamp|null);
|
2514 |
|
2515 | /** BatchTranslateResponse endTime. */
|
2516 | public endTime?: (google.protobuf.ITimestamp|null);
|
2517 |
|
2518 | /**
|
2519 | * Creates a new BatchTranslateResponse instance using the specified properties.
|
2520 | * @param [properties] Properties to set
|
2521 | * @returns BatchTranslateResponse instance
|
2522 | */
|
2523 | public static create(properties?: google.cloud.translation.v3.IBatchTranslateResponse): google.cloud.translation.v3.BatchTranslateResponse;
|
2524 |
|
2525 | /**
|
2526 | * Encodes the specified BatchTranslateResponse message. Does not implicitly { google.cloud.translation.v3.BatchTranslateResponse.verify|verify} messages.
|
2527 | * message BatchTranslateResponse message or plain object to encode
|
2528 | * [writer] Writer to encode to
|
2529 | * Writer
|
2530 | */
|
2531 | public static encode(message: google.cloud.translation.v3.IBatchTranslateResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
2532 |
|
2533 | /**
|
2534 | * Encodes the specified BatchTranslateResponse message, length delimited. Does not implicitly {@link google.cloud.translation.v3.BatchTranslateResponse.verify|verify} messages.
|
2535 | * @param message BatchTranslateResponse message or plain object to encode
|
2536 | * @param [writer] Writer to encode to
|
2537 | * @returns Writer
|
2538 | */
|
2539 | public static encodeDelimited(message: google.cloud.translation.v3.IBatchTranslateResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
2540 |
|
2541 | /**
|
2542 | * Decodes a BatchTranslateResponse message from the specified reader or buffer.
|
2543 | * @param reader Reader or buffer to decode from
|
2544 | * @param [length] Message length if known beforehand
|
2545 | * @returns BatchTranslateResponse
|
2546 | * @throws {Error} If the payload is not a reader or valid buffer
|
2547 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
2548 | */
|
2549 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3.BatchTranslateResponse;
|
2550 |
|
2551 | /**
|
2552 | * Decodes a BatchTranslateResponse message from the specified reader or buffer, length delimited.
|
2553 | * @param reader Reader or buffer to decode from
|
2554 | * @returns BatchTranslateResponse
|
2555 | * @throws {Error} If the payload is not a reader or valid buffer
|
2556 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
2557 | */
|
2558 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3.BatchTranslateResponse;
|
2559 |
|
2560 | /**
|
2561 | * Verifies a BatchTranslateResponse message.
|
2562 | * @param message Plain object to verify
|
2563 | * @returns `null` if valid, otherwise the reason why it is not
|
2564 | */
|
2565 | public static verify(message: { [k: string]: any }): (string|null);
|
2566 |
|
2567 | /**
|
2568 | * Creates a BatchTranslateResponse message from a plain object. Also converts values to their respective internal types.
|
2569 | * @param object Plain object
|
2570 | * @returns BatchTranslateResponse
|
2571 | */
|
2572 | public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3.BatchTranslateResponse;
|
2573 |
|
2574 | /**
|
2575 | * Creates a plain object from a BatchTranslateResponse message. Also converts values to other types if specified.
|
2576 | * @param message BatchTranslateResponse
|
2577 | * @param [options] Conversion options
|
2578 | * @returns Plain object
|
2579 | */
|
2580 | public static toObject(message: google.cloud.translation.v3.BatchTranslateResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
2581 |
|
2582 | /**
|
2583 | * Converts this BatchTranslateResponse to JSON.
|
2584 | * @returns JSON object
|
2585 | */
|
2586 | public toJSON(): { [k: string]: any };
|
2587 | }
|
2588 |
|
2589 | /** Properties of a GlossaryInputConfig. */
|
2590 | interface IGlossaryInputConfig {
|
2591 |
|
2592 | /** GlossaryInputConfig gcsSource */
|
2593 | gcsSource?: (google.cloud.translation.v3.IGcsSource|null);
|
2594 | }
|
2595 |
|
2596 | /** Represents a GlossaryInputConfig. */
|
2597 | class GlossaryInputConfig implements IGlossaryInputConfig {
|
2598 |
|
2599 | /**
|
2600 | * Constructs a new GlossaryInputConfig.
|
2601 | * @param [properties] Properties to set
|
2602 | */
|
2603 | constructor(properties?: google.cloud.translation.v3.IGlossaryInputConfig);
|
2604 |
|
2605 | /** GlossaryInputConfig gcsSource. */
|
2606 | public gcsSource?: (google.cloud.translation.v3.IGcsSource|null);
|
2607 |
|
2608 | /** GlossaryInputConfig source. */
|
2609 | public source?: "gcsSource";
|
2610 |
|
2611 | /**
|
2612 | * Creates a new GlossaryInputConfig instance using the specified properties.
|
2613 | * @param [properties] Properties to set
|
2614 | * @returns GlossaryInputConfig instance
|
2615 | */
|
2616 | public static create(properties?: google.cloud.translation.v3.IGlossaryInputConfig): google.cloud.translation.v3.GlossaryInputConfig;
|
2617 |
|
2618 | /**
|
2619 | * Encodes the specified GlossaryInputConfig message. Does not implicitly { google.cloud.translation.v3.GlossaryInputConfig.verify|verify} messages.
|
2620 | * message GlossaryInputConfig message or plain object to encode
|
2621 | * [writer] Writer to encode to
|
2622 | * Writer
|
2623 | */
|
2624 | public static encode(message: google.cloud.translation.v3.IGlossaryInputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
2625 |
|
2626 | /**
|
2627 | * Encodes the specified GlossaryInputConfig message, length delimited. Does not implicitly {@link google.cloud.translation.v3.GlossaryInputConfig.verify|verify} messages.
|
2628 | * @param message GlossaryInputConfig message or plain object to encode
|
2629 | * @param [writer] Writer to encode to
|
2630 | * @returns Writer
|
2631 | */
|
2632 | public static encodeDelimited(message: google.cloud.translation.v3.IGlossaryInputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
2633 |
|
2634 | /**
|
2635 | * Decodes a GlossaryInputConfig message from the specified reader or buffer.
|
2636 | * @param reader Reader or buffer to decode from
|
2637 | * @param [length] Message length if known beforehand
|
2638 | * @returns GlossaryInputConfig
|
2639 | * @throws {Error} If the payload is not a reader or valid buffer
|
2640 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
2641 | */
|
2642 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3.GlossaryInputConfig;
|
2643 |
|
2644 | /**
|
2645 | * Decodes a GlossaryInputConfig message from the specified reader or buffer, length delimited.
|
2646 | * @param reader Reader or buffer to decode from
|
2647 | * @returns GlossaryInputConfig
|
2648 | * @throws {Error} If the payload is not a reader or valid buffer
|
2649 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
2650 | */
|
2651 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3.GlossaryInputConfig;
|
2652 |
|
2653 | /**
|
2654 | * Verifies a GlossaryInputConfig message.
|
2655 | * @param message Plain object to verify
|
2656 | * @returns `null` if valid, otherwise the reason why it is not
|
2657 | */
|
2658 | public static verify(message: { [k: string]: any }): (string|null);
|
2659 |
|
2660 | /**
|
2661 | * Creates a GlossaryInputConfig message from a plain object. Also converts values to their respective internal types.
|
2662 | * @param object Plain object
|
2663 | * @returns GlossaryInputConfig
|
2664 | */
|
2665 | public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3.GlossaryInputConfig;
|
2666 |
|
2667 | /**
|
2668 | * Creates a plain object from a GlossaryInputConfig message. Also converts values to other types if specified.
|
2669 | * @param message GlossaryInputConfig
|
2670 | * @param [options] Conversion options
|
2671 | * @returns Plain object
|
2672 | */
|
2673 | public static toObject(message: google.cloud.translation.v3.GlossaryInputConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
2674 |
|
2675 | /**
|
2676 | * Converts this GlossaryInputConfig to JSON.
|
2677 | * @returns JSON object
|
2678 | */
|
2679 | public toJSON(): { [k: string]: any };
|
2680 | }
|
2681 |
|
2682 | /** Properties of a Glossary. */
|
2683 | interface IGlossary {
|
2684 |
|
2685 | /** Glossary name */
|
2686 | name?: (string|null);
|
2687 |
|
2688 | /** Glossary languagePair */
|
2689 | languagePair?: (google.cloud.translation.v3.Glossary.ILanguageCodePair|null);
|
2690 |
|
2691 | /** Glossary languageCodesSet */
|
2692 | languageCodesSet?: (google.cloud.translation.v3.Glossary.ILanguageCodesSet|null);
|
2693 |
|
2694 | /** Glossary inputConfig */
|
2695 | inputConfig?: (google.cloud.translation.v3.IGlossaryInputConfig|null);
|
2696 |
|
2697 | /** Glossary entryCount */
|
2698 | entryCount?: (number|null);
|
2699 |
|
2700 | /** Glossary submitTime */
|
2701 | submitTime?: (google.protobuf.ITimestamp|null);
|
2702 |
|
2703 | /** Glossary endTime */
|
2704 | endTime?: (google.protobuf.ITimestamp|null);
|
2705 | }
|
2706 |
|
2707 | /** Represents a Glossary. */
|
2708 | class Glossary implements IGlossary {
|
2709 |
|
2710 | /**
|
2711 | * Constructs a new Glossary.
|
2712 | * @param [properties] Properties to set
|
2713 | */
|
2714 | constructor(properties?: google.cloud.translation.v3.IGlossary);
|
2715 |
|
2716 | /** Glossary name. */
|
2717 | public name: string;
|
2718 |
|
2719 | /** Glossary languagePair. */
|
2720 | public languagePair?: (google.cloud.translation.v3.Glossary.ILanguageCodePair|null);
|
2721 |
|
2722 | /** Glossary languageCodesSet. */
|
2723 | public languageCodesSet?: (google.cloud.translation.v3.Glossary.ILanguageCodesSet|null);
|
2724 |
|
2725 | /** Glossary inputConfig. */
|
2726 | public inputConfig?: (google.cloud.translation.v3.IGlossaryInputConfig|null);
|
2727 |
|
2728 | /** Glossary entryCount. */
|
2729 | public entryCount: number;
|
2730 |
|
2731 | /** Glossary submitTime. */
|
2732 | public submitTime?: (google.protobuf.ITimestamp|null);
|
2733 |
|
2734 | /** Glossary endTime. */
|
2735 | public endTime?: (google.protobuf.ITimestamp|null);
|
2736 |
|
2737 | /** Glossary languages. */
|
2738 | public languages?: ("languagePair"|"languageCodesSet");
|
2739 |
|
2740 | /**
|
2741 | * Creates a new Glossary instance using the specified properties.
|
2742 | * @param [properties] Properties to set
|
2743 | * @returns Glossary instance
|
2744 | */
|
2745 | public static create(properties?: google.cloud.translation.v3.IGlossary): google.cloud.translation.v3.Glossary;
|
2746 |
|
2747 | /**
|
2748 | * Encodes the specified Glossary message. Does not implicitly { google.cloud.translation.v3.Glossary.verify|verify} messages.
|
2749 | * message Glossary message or plain object to encode
|
2750 | * [writer] Writer to encode to
|
2751 | * Writer
|
2752 | */
|
2753 | public static encode(message: google.cloud.translation.v3.IGlossary, writer?: $protobuf.Writer): $protobuf.Writer;
|
2754 |
|
2755 | /**
|
2756 | * Encodes the specified Glossary message, length delimited. Does not implicitly {@link google.cloud.translation.v3.Glossary.verify|verify} messages.
|
2757 | * @param message Glossary message or plain object to encode
|
2758 | * @param [writer] Writer to encode to
|
2759 | * @returns Writer
|
2760 | */
|
2761 | public static encodeDelimited(message: google.cloud.translation.v3.IGlossary, writer?: $protobuf.Writer): $protobuf.Writer;
|
2762 |
|
2763 | /**
|
2764 | * Decodes a Glossary message from the specified reader or buffer.
|
2765 | * @param reader Reader or buffer to decode from
|
2766 | * @param [length] Message length if known beforehand
|
2767 | * @returns Glossary
|
2768 | * @throws {Error} If the payload is not a reader or valid buffer
|
2769 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
2770 | */
|
2771 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3.Glossary;
|
2772 |
|
2773 | /**
|
2774 | * Decodes a Glossary message from the specified reader or buffer, length delimited.
|
2775 | * @param reader Reader or buffer to decode from
|
2776 | * @returns Glossary
|
2777 | * @throws {Error} If the payload is not a reader or valid buffer
|
2778 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
2779 | */
|
2780 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3.Glossary;
|
2781 |
|
2782 | /**
|
2783 | * Verifies a Glossary message.
|
2784 | * @param message Plain object to verify
|
2785 | * @returns `null` if valid, otherwise the reason why it is not
|
2786 | */
|
2787 | public static verify(message: { [k: string]: any }): (string|null);
|
2788 |
|
2789 | /**
|
2790 | * Creates a Glossary message from a plain object. Also converts values to their respective internal types.
|
2791 | * @param object Plain object
|
2792 | * @returns Glossary
|
2793 | */
|
2794 | public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3.Glossary;
|
2795 |
|
2796 | /**
|
2797 | * Creates a plain object from a Glossary message. Also converts values to other types if specified.
|
2798 | * @param message Glossary
|
2799 | * @param [options] Conversion options
|
2800 | * @returns Plain object
|
2801 | */
|
2802 | public static toObject(message: google.cloud.translation.v3.Glossary, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
2803 |
|
2804 | /**
|
2805 | * Converts this Glossary to JSON.
|
2806 | * @returns JSON object
|
2807 | */
|
2808 | public toJSON(): { [k: string]: any };
|
2809 | }
|
2810 |
|
2811 | namespace Glossary {
|
2812 |
|
2813 | /** Properties of a LanguageCodePair. */
|
2814 | interface ILanguageCodePair {
|
2815 |
|
2816 | /** LanguageCodePair sourceLanguageCode */
|
2817 | sourceLanguageCode?: (string|null);
|
2818 |
|
2819 | /** LanguageCodePair targetLanguageCode */
|
2820 | targetLanguageCode?: (string|null);
|
2821 | }
|
2822 |
|
2823 | /** Represents a LanguageCodePair. */
|
2824 | class LanguageCodePair implements ILanguageCodePair {
|
2825 |
|
2826 | /**
|
2827 | * Constructs a new LanguageCodePair.
|
2828 | * @param [properties] Properties to set
|
2829 | */
|
2830 | constructor(properties?: google.cloud.translation.v3.Glossary.ILanguageCodePair);
|
2831 |
|
2832 | /** LanguageCodePair sourceLanguageCode. */
|
2833 | public sourceLanguageCode: string;
|
2834 |
|
2835 | /** LanguageCodePair targetLanguageCode. */
|
2836 | public targetLanguageCode: string;
|
2837 |
|
2838 | /**
|
2839 | * Creates a new LanguageCodePair instance using the specified properties.
|
2840 | * @param [properties] Properties to set
|
2841 | * @returns LanguageCodePair instance
|
2842 | */
|
2843 | public static create(properties?: google.cloud.translation.v3.Glossary.ILanguageCodePair): google.cloud.translation.v3.Glossary.LanguageCodePair;
|
2844 |
|
2845 | /**
|
2846 | * Encodes the specified LanguageCodePair message. Does not implicitly { google.cloud.translation.v3.Glossary.LanguageCodePair.verify|verify} messages.
|
2847 | * message LanguageCodePair message or plain object to encode
|
2848 | * [writer] Writer to encode to
|
2849 | * Writer
|
2850 | */
|
2851 | public static encode(message: google.cloud.translation.v3.Glossary.ILanguageCodePair, writer?: $protobuf.Writer): $protobuf.Writer;
|
2852 |
|
2853 | /**
|
2854 | * Encodes the specified LanguageCodePair message, length delimited. Does not implicitly {@link google.cloud.translation.v3.Glossary.LanguageCodePair.verify|verify} messages.
|
2855 | * @param message LanguageCodePair message or plain object to encode
|
2856 | * @param [writer] Writer to encode to
|
2857 | * @returns Writer
|
2858 | */
|
2859 | public static encodeDelimited(message: google.cloud.translation.v3.Glossary.ILanguageCodePair, writer?: $protobuf.Writer): $protobuf.Writer;
|
2860 |
|
2861 | /**
|
2862 | * Decodes a LanguageCodePair message from the specified reader or buffer.
|
2863 | * @param reader Reader or buffer to decode from
|
2864 | * @param [length] Message length if known beforehand
|
2865 | * @returns LanguageCodePair
|
2866 | * @throws {Error} If the payload is not a reader or valid buffer
|
2867 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
2868 | */
|
2869 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3.Glossary.LanguageCodePair;
|
2870 |
|
2871 | /**
|
2872 | * Decodes a LanguageCodePair message from the specified reader or buffer, length delimited.
|
2873 | * @param reader Reader or buffer to decode from
|
2874 | * @returns LanguageCodePair
|
2875 | * @throws {Error} If the payload is not a reader or valid buffer
|
2876 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
2877 | */
|
2878 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3.Glossary.LanguageCodePair;
|
2879 |
|
2880 | /**
|
2881 | * Verifies a LanguageCodePair message.
|
2882 | * @param message Plain object to verify
|
2883 | * @returns `null` if valid, otherwise the reason why it is not
|
2884 | */
|
2885 | public static verify(message: { [k: string]: any }): (string|null);
|
2886 |
|
2887 | /**
|
2888 | * Creates a LanguageCodePair message from a plain object. Also converts values to their respective internal types.
|
2889 | * @param object Plain object
|
2890 | * @returns LanguageCodePair
|
2891 | */
|
2892 | public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3.Glossary.LanguageCodePair;
|
2893 |
|
2894 | /**
|
2895 | * Creates a plain object from a LanguageCodePair message. Also converts values to other types if specified.
|
2896 | * @param message LanguageCodePair
|
2897 | * @param [options] Conversion options
|
2898 | * @returns Plain object
|
2899 | */
|
2900 | public static toObject(message: google.cloud.translation.v3.Glossary.LanguageCodePair, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
2901 |
|
2902 | /**
|
2903 | * Converts this LanguageCodePair to JSON.
|
2904 | * @returns JSON object
|
2905 | */
|
2906 | public toJSON(): { [k: string]: any };
|
2907 | }
|
2908 |
|
2909 | /** Properties of a LanguageCodesSet. */
|
2910 | interface ILanguageCodesSet {
|
2911 |
|
2912 | /** LanguageCodesSet languageCodes */
|
2913 | languageCodes?: (string[]|null);
|
2914 | }
|
2915 |
|
2916 | /** Represents a LanguageCodesSet. */
|
2917 | class LanguageCodesSet implements ILanguageCodesSet {
|
2918 |
|
2919 | /**
|
2920 | * Constructs a new LanguageCodesSet.
|
2921 | * @param [properties] Properties to set
|
2922 | */
|
2923 | constructor(properties?: google.cloud.translation.v3.Glossary.ILanguageCodesSet);
|
2924 |
|
2925 | /** LanguageCodesSet languageCodes. */
|
2926 | public languageCodes: string[];
|
2927 |
|
2928 | /**
|
2929 | * Creates a new LanguageCodesSet instance using the specified properties.
|
2930 | * @param [properties] Properties to set
|
2931 | * @returns LanguageCodesSet instance
|
2932 | */
|
2933 | public static create(properties?: google.cloud.translation.v3.Glossary.ILanguageCodesSet): google.cloud.translation.v3.Glossary.LanguageCodesSet;
|
2934 |
|
2935 | /**
|
2936 | * Encodes the specified LanguageCodesSet message. Does not implicitly { google.cloud.translation.v3.Glossary.LanguageCodesSet.verify|verify} messages.
|
2937 | * message LanguageCodesSet message or plain object to encode
|
2938 | * [writer] Writer to encode to
|
2939 | * Writer
|
2940 | */
|
2941 | public static encode(message: google.cloud.translation.v3.Glossary.ILanguageCodesSet, writer?: $protobuf.Writer): $protobuf.Writer;
|
2942 |
|
2943 | /**
|
2944 | * Encodes the specified LanguageCodesSet message, length delimited. Does not implicitly {@link google.cloud.translation.v3.Glossary.LanguageCodesSet.verify|verify} messages.
|
2945 | * @param message LanguageCodesSet message or plain object to encode
|
2946 | * @param [writer] Writer to encode to
|
2947 | * @returns Writer
|
2948 | */
|
2949 | public static encodeDelimited(message: google.cloud.translation.v3.Glossary.ILanguageCodesSet, writer?: $protobuf.Writer): $protobuf.Writer;
|
2950 |
|
2951 | /**
|
2952 | * Decodes a LanguageCodesSet message from the specified reader or buffer.
|
2953 | * @param reader Reader or buffer to decode from
|
2954 | * @param [length] Message length if known beforehand
|
2955 | * @returns LanguageCodesSet
|
2956 | * @throws {Error} If the payload is not a reader or valid buffer
|
2957 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
2958 | */
|
2959 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3.Glossary.LanguageCodesSet;
|
2960 |
|
2961 | /**
|
2962 | * Decodes a LanguageCodesSet message from the specified reader or buffer, length delimited.
|
2963 | * @param reader Reader or buffer to decode from
|
2964 | * @returns LanguageCodesSet
|
2965 | * @throws {Error} If the payload is not a reader or valid buffer
|
2966 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
2967 | */
|
2968 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3.Glossary.LanguageCodesSet;
|
2969 |
|
2970 | /**
|
2971 | * Verifies a LanguageCodesSet message.
|
2972 | * @param message Plain object to verify
|
2973 | * @returns `null` if valid, otherwise the reason why it is not
|
2974 | */
|
2975 | public static verify(message: { [k: string]: any }): (string|null);
|
2976 |
|
2977 | /**
|
2978 | * Creates a LanguageCodesSet message from a plain object. Also converts values to their respective internal types.
|
2979 | * @param object Plain object
|
2980 | * @returns LanguageCodesSet
|
2981 | */
|
2982 | public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3.Glossary.LanguageCodesSet;
|
2983 |
|
2984 | /**
|
2985 | * Creates a plain object from a LanguageCodesSet message. Also converts values to other types if specified.
|
2986 | * @param message LanguageCodesSet
|
2987 | * @param [options] Conversion options
|
2988 | * @returns Plain object
|
2989 | */
|
2990 | public static toObject(message: google.cloud.translation.v3.Glossary.LanguageCodesSet, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
2991 |
|
2992 | /**
|
2993 | * Converts this LanguageCodesSet to JSON.
|
2994 | * @returns JSON object
|
2995 | */
|
2996 | public toJSON(): { [k: string]: any };
|
2997 | }
|
2998 | }
|
2999 |
|
3000 | /** Properties of a CreateGlossaryRequest. */
|
3001 | interface ICreateGlossaryRequest {
|
3002 |
|
3003 | /** CreateGlossaryRequest parent */
|
3004 | parent?: (string|null);
|
3005 |
|
3006 | /** CreateGlossaryRequest glossary */
|
3007 | glossary?: (google.cloud.translation.v3.IGlossary|null);
|
3008 | }
|
3009 |
|
3010 | /** Represents a CreateGlossaryRequest. */
|
3011 | class CreateGlossaryRequest implements ICreateGlossaryRequest {
|
3012 |
|
3013 | /**
|
3014 | * Constructs a new CreateGlossaryRequest.
|
3015 | * @param [properties] Properties to set
|
3016 | */
|
3017 | constructor(properties?: google.cloud.translation.v3.ICreateGlossaryRequest);
|
3018 |
|
3019 | /** CreateGlossaryRequest parent. */
|
3020 | public parent: string;
|
3021 |
|
3022 | /** CreateGlossaryRequest glossary. */
|
3023 | public glossary?: (google.cloud.translation.v3.IGlossary|null);
|
3024 |
|
3025 | /**
|
3026 | * Creates a new CreateGlossaryRequest instance using the specified properties.
|
3027 | * @param [properties] Properties to set
|
3028 | * @returns CreateGlossaryRequest instance
|
3029 | */
|
3030 | public static create(properties?: google.cloud.translation.v3.ICreateGlossaryRequest): google.cloud.translation.v3.CreateGlossaryRequest;
|
3031 |
|
3032 | /**
|
3033 | * Encodes the specified CreateGlossaryRequest message. Does not implicitly { google.cloud.translation.v3.CreateGlossaryRequest.verify|verify} messages.
|
3034 | * message CreateGlossaryRequest message or plain object to encode
|
3035 | * [writer] Writer to encode to
|
3036 | * Writer
|
3037 | */
|
3038 | public static encode(message: google.cloud.translation.v3.ICreateGlossaryRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
3039 |
|
3040 | /**
|
3041 | * Encodes the specified CreateGlossaryRequest message, length delimited. Does not implicitly {@link google.cloud.translation.v3.CreateGlossaryRequest.verify|verify} messages.
|
3042 | * @param message CreateGlossaryRequest message or plain object to encode
|
3043 | * @param [writer] Writer to encode to
|
3044 | * @returns Writer
|
3045 | */
|
3046 | public static encodeDelimited(message: google.cloud.translation.v3.ICreateGlossaryRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
3047 |
|
3048 | /**
|
3049 | * Decodes a CreateGlossaryRequest message from the specified reader or buffer.
|
3050 | * @param reader Reader or buffer to decode from
|
3051 | * @param [length] Message length if known beforehand
|
3052 | * @returns CreateGlossaryRequest
|
3053 | * @throws {Error} If the payload is not a reader or valid buffer
|
3054 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
3055 | */
|
3056 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3.CreateGlossaryRequest;
|
3057 |
|
3058 | /**
|
3059 | * Decodes a CreateGlossaryRequest message from the specified reader or buffer, length delimited.
|
3060 | * @param reader Reader or buffer to decode from
|
3061 | * @returns CreateGlossaryRequest
|
3062 | * @throws {Error} If the payload is not a reader or valid buffer
|
3063 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
3064 | */
|
3065 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3.CreateGlossaryRequest;
|
3066 |
|
3067 | /**
|
3068 | * Verifies a CreateGlossaryRequest message.
|
3069 | * @param message Plain object to verify
|
3070 | * @returns `null` if valid, otherwise the reason why it is not
|
3071 | */
|
3072 | public static verify(message: { [k: string]: any }): (string|null);
|
3073 |
|
3074 | /**
|
3075 | * Creates a CreateGlossaryRequest message from a plain object. Also converts values to their respective internal types.
|
3076 | * @param object Plain object
|
3077 | * @returns CreateGlossaryRequest
|
3078 | */
|
3079 | public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3.CreateGlossaryRequest;
|
3080 |
|
3081 | /**
|
3082 | * Creates a plain object from a CreateGlossaryRequest message. Also converts values to other types if specified.
|
3083 | * @param message CreateGlossaryRequest
|
3084 | * @param [options] Conversion options
|
3085 | * @returns Plain object
|
3086 | */
|
3087 | public static toObject(message: google.cloud.translation.v3.CreateGlossaryRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
3088 |
|
3089 | /**
|
3090 | * Converts this CreateGlossaryRequest to JSON.
|
3091 | * @returns JSON object
|
3092 | */
|
3093 | public toJSON(): { [k: string]: any };
|
3094 | }
|
3095 |
|
3096 | /** Properties of a GetGlossaryRequest. */
|
3097 | interface IGetGlossaryRequest {
|
3098 |
|
3099 | /** GetGlossaryRequest name */
|
3100 | name?: (string|null);
|
3101 | }
|
3102 |
|
3103 | /** Represents a GetGlossaryRequest. */
|
3104 | class GetGlossaryRequest implements IGetGlossaryRequest {
|
3105 |
|
3106 | /**
|
3107 | * Constructs a new GetGlossaryRequest.
|
3108 | * @param [properties] Properties to set
|
3109 | */
|
3110 | constructor(properties?: google.cloud.translation.v3.IGetGlossaryRequest);
|
3111 |
|
3112 | /** GetGlossaryRequest name. */
|
3113 | public name: string;
|
3114 |
|
3115 | /**
|
3116 | * Creates a new GetGlossaryRequest instance using the specified properties.
|
3117 | * @param [properties] Properties to set
|
3118 | * @returns GetGlossaryRequest instance
|
3119 | */
|
3120 | public static create(properties?: google.cloud.translation.v3.IGetGlossaryRequest): google.cloud.translation.v3.GetGlossaryRequest;
|
3121 |
|
3122 | /**
|
3123 | * Encodes the specified GetGlossaryRequest message. Does not implicitly { google.cloud.translation.v3.GetGlossaryRequest.verify|verify} messages.
|
3124 | * message GetGlossaryRequest message or plain object to encode
|
3125 | * [writer] Writer to encode to
|
3126 | * Writer
|
3127 | */
|
3128 | public static encode(message: google.cloud.translation.v3.IGetGlossaryRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
3129 |
|
3130 | /**
|
3131 | * Encodes the specified GetGlossaryRequest message, length delimited. Does not implicitly {@link google.cloud.translation.v3.GetGlossaryRequest.verify|verify} messages.
|
3132 | * @param message GetGlossaryRequest message or plain object to encode
|
3133 | * @param [writer] Writer to encode to
|
3134 | * @returns Writer
|
3135 | */
|
3136 | public static encodeDelimited(message: google.cloud.translation.v3.IGetGlossaryRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
3137 |
|
3138 | /**
|
3139 | * Decodes a GetGlossaryRequest message from the specified reader or buffer.
|
3140 | * @param reader Reader or buffer to decode from
|
3141 | * @param [length] Message length if known beforehand
|
3142 | * @returns GetGlossaryRequest
|
3143 | * @throws {Error} If the payload is not a reader or valid buffer
|
3144 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
3145 | */
|
3146 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3.GetGlossaryRequest;
|
3147 |
|
3148 | /**
|
3149 | * Decodes a GetGlossaryRequest message from the specified reader or buffer, length delimited.
|
3150 | * @param reader Reader or buffer to decode from
|
3151 | * @returns GetGlossaryRequest
|
3152 | * @throws {Error} If the payload is not a reader or valid buffer
|
3153 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
3154 | */
|
3155 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3.GetGlossaryRequest;
|
3156 |
|
3157 | /**
|
3158 | * Verifies a GetGlossaryRequest message.
|
3159 | * @param message Plain object to verify
|
3160 | * @returns `null` if valid, otherwise the reason why it is not
|
3161 | */
|
3162 | public static verify(message: { [k: string]: any }): (string|null);
|
3163 |
|
3164 | /**
|
3165 | * Creates a GetGlossaryRequest message from a plain object. Also converts values to their respective internal types.
|
3166 | * @param object Plain object
|
3167 | * @returns GetGlossaryRequest
|
3168 | */
|
3169 | public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3.GetGlossaryRequest;
|
3170 |
|
3171 | /**
|
3172 | * Creates a plain object from a GetGlossaryRequest message. Also converts values to other types if specified.
|
3173 | * @param message GetGlossaryRequest
|
3174 | * @param [options] Conversion options
|
3175 | * @returns Plain object
|
3176 | */
|
3177 | public static toObject(message: google.cloud.translation.v3.GetGlossaryRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
3178 |
|
3179 | /**
|
3180 | * Converts this GetGlossaryRequest to JSON.
|
3181 | * @returns JSON object
|
3182 | */
|
3183 | public toJSON(): { [k: string]: any };
|
3184 | }
|
3185 |
|
3186 | /** Properties of a DeleteGlossaryRequest. */
|
3187 | interface IDeleteGlossaryRequest {
|
3188 |
|
3189 | /** DeleteGlossaryRequest name */
|
3190 | name?: (string|null);
|
3191 | }
|
3192 |
|
3193 | /** Represents a DeleteGlossaryRequest. */
|
3194 | class DeleteGlossaryRequest implements IDeleteGlossaryRequest {
|
3195 |
|
3196 | /**
|
3197 | * Constructs a new DeleteGlossaryRequest.
|
3198 | * @param [properties] Properties to set
|
3199 | */
|
3200 | constructor(properties?: google.cloud.translation.v3.IDeleteGlossaryRequest);
|
3201 |
|
3202 | /** DeleteGlossaryRequest name. */
|
3203 | public name: string;
|
3204 |
|
3205 | /**
|
3206 | * Creates a new DeleteGlossaryRequest instance using the specified properties.
|
3207 | * @param [properties] Properties to set
|
3208 | * @returns DeleteGlossaryRequest instance
|
3209 | */
|
3210 | public static create(properties?: google.cloud.translation.v3.IDeleteGlossaryRequest): google.cloud.translation.v3.DeleteGlossaryRequest;
|
3211 |
|
3212 | /**
|
3213 | * Encodes the specified DeleteGlossaryRequest message. Does not implicitly { google.cloud.translation.v3.DeleteGlossaryRequest.verify|verify} messages.
|
3214 | * message DeleteGlossaryRequest message or plain object to encode
|
3215 | * [writer] Writer to encode to
|
3216 | * Writer
|
3217 | */
|
3218 | public static encode(message: google.cloud.translation.v3.IDeleteGlossaryRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
3219 |
|
3220 | /**
|
3221 | * Encodes the specified DeleteGlossaryRequest message, length delimited. Does not implicitly {@link google.cloud.translation.v3.DeleteGlossaryRequest.verify|verify} messages.
|
3222 | * @param message DeleteGlossaryRequest message or plain object to encode
|
3223 | * @param [writer] Writer to encode to
|
3224 | * @returns Writer
|
3225 | */
|
3226 | public static encodeDelimited(message: google.cloud.translation.v3.IDeleteGlossaryRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
3227 |
|
3228 | /**
|
3229 | * Decodes a DeleteGlossaryRequest message from the specified reader or buffer.
|
3230 | * @param reader Reader or buffer to decode from
|
3231 | * @param [length] Message length if known beforehand
|
3232 | * @returns DeleteGlossaryRequest
|
3233 | * @throws {Error} If the payload is not a reader or valid buffer
|
3234 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
3235 | */
|
3236 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3.DeleteGlossaryRequest;
|
3237 |
|
3238 | /**
|
3239 | * Decodes a DeleteGlossaryRequest message from the specified reader or buffer, length delimited.
|
3240 | * @param reader Reader or buffer to decode from
|
3241 | * @returns DeleteGlossaryRequest
|
3242 | * @throws {Error} If the payload is not a reader or valid buffer
|
3243 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
3244 | */
|
3245 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3.DeleteGlossaryRequest;
|
3246 |
|
3247 | /**
|
3248 | * Verifies a DeleteGlossaryRequest message.
|
3249 | * @param message Plain object to verify
|
3250 | * @returns `null` if valid, otherwise the reason why it is not
|
3251 | */
|
3252 | public static verify(message: { [k: string]: any }): (string|null);
|
3253 |
|
3254 | /**
|
3255 | * Creates a DeleteGlossaryRequest message from a plain object. Also converts values to their respective internal types.
|
3256 | * @param object Plain object
|
3257 | * @returns DeleteGlossaryRequest
|
3258 | */
|
3259 | public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3.DeleteGlossaryRequest;
|
3260 |
|
3261 | /**
|
3262 | * Creates a plain object from a DeleteGlossaryRequest message. Also converts values to other types if specified.
|
3263 | * @param message DeleteGlossaryRequest
|
3264 | * @param [options] Conversion options
|
3265 | * @returns Plain object
|
3266 | */
|
3267 | public static toObject(message: google.cloud.translation.v3.DeleteGlossaryRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
3268 |
|
3269 | /**
|
3270 | * Converts this DeleteGlossaryRequest to JSON.
|
3271 | * @returns JSON object
|
3272 | */
|
3273 | public toJSON(): { [k: string]: any };
|
3274 | }
|
3275 |
|
3276 | /** Properties of a ListGlossariesRequest. */
|
3277 | interface IListGlossariesRequest {
|
3278 |
|
3279 | /** ListGlossariesRequest parent */
|
3280 | parent?: (string|null);
|
3281 |
|
3282 | /** ListGlossariesRequest pageSize */
|
3283 | pageSize?: (number|null);
|
3284 |
|
3285 | /** ListGlossariesRequest pageToken */
|
3286 | pageToken?: (string|null);
|
3287 |
|
3288 | /** ListGlossariesRequest filter */
|
3289 | filter?: (string|null);
|
3290 | }
|
3291 |
|
3292 | /** Represents a ListGlossariesRequest. */
|
3293 | class ListGlossariesRequest implements IListGlossariesRequest {
|
3294 |
|
3295 | /**
|
3296 | * Constructs a new ListGlossariesRequest.
|
3297 | * @param [properties] Properties to set
|
3298 | */
|
3299 | constructor(properties?: google.cloud.translation.v3.IListGlossariesRequest);
|
3300 |
|
3301 | /** ListGlossariesRequest parent. */
|
3302 | public parent: string;
|
3303 |
|
3304 | /** ListGlossariesRequest pageSize. */
|
3305 | public pageSize: number;
|
3306 |
|
3307 | /** ListGlossariesRequest pageToken. */
|
3308 | public pageToken: string;
|
3309 |
|
3310 | /** ListGlossariesRequest filter. */
|
3311 | public filter: string;
|
3312 |
|
3313 | /**
|
3314 | * Creates a new ListGlossariesRequest instance using the specified properties.
|
3315 | * @param [properties] Properties to set
|
3316 | * @returns ListGlossariesRequest instance
|
3317 | */
|
3318 | public static create(properties?: google.cloud.translation.v3.IListGlossariesRequest): google.cloud.translation.v3.ListGlossariesRequest;
|
3319 |
|
3320 | /**
|
3321 | * Encodes the specified ListGlossariesRequest message. Does not implicitly { google.cloud.translation.v3.ListGlossariesRequest.verify|verify} messages.
|
3322 | * message ListGlossariesRequest message or plain object to encode
|
3323 | * [writer] Writer to encode to
|
3324 | * Writer
|
3325 | */
|
3326 | public static encode(message: google.cloud.translation.v3.IListGlossariesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
3327 |
|
3328 | /**
|
3329 | * Encodes the specified ListGlossariesRequest message, length delimited. Does not implicitly {@link google.cloud.translation.v3.ListGlossariesRequest.verify|verify} messages.
|
3330 | * @param message ListGlossariesRequest message or plain object to encode
|
3331 | * @param [writer] Writer to encode to
|
3332 | * @returns Writer
|
3333 | */
|
3334 | public static encodeDelimited(message: google.cloud.translation.v3.IListGlossariesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
3335 |
|
3336 | /**
|
3337 | * Decodes a ListGlossariesRequest message from the specified reader or buffer.
|
3338 | * @param reader Reader or buffer to decode from
|
3339 | * @param [length] Message length if known beforehand
|
3340 | * @returns ListGlossariesRequest
|
3341 | * @throws {Error} If the payload is not a reader or valid buffer
|
3342 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
3343 | */
|
3344 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3.ListGlossariesRequest;
|
3345 |
|
3346 | /**
|
3347 | * Decodes a ListGlossariesRequest message from the specified reader or buffer, length delimited.
|
3348 | * @param reader Reader or buffer to decode from
|
3349 | * @returns ListGlossariesRequest
|
3350 | * @throws {Error} If the payload is not a reader or valid buffer
|
3351 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
3352 | */
|
3353 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3.ListGlossariesRequest;
|
3354 |
|
3355 | /**
|
3356 | * Verifies a ListGlossariesRequest message.
|
3357 | * @param message Plain object to verify
|
3358 | * @returns `null` if valid, otherwise the reason why it is not
|
3359 | */
|
3360 | public static verify(message: { [k: string]: any }): (string|null);
|
3361 |
|
3362 | /**
|
3363 | * Creates a ListGlossariesRequest message from a plain object. Also converts values to their respective internal types.
|
3364 | * @param object Plain object
|
3365 | * @returns ListGlossariesRequest
|
3366 | */
|
3367 | public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3.ListGlossariesRequest;
|
3368 |
|
3369 | /**
|
3370 | * Creates a plain object from a ListGlossariesRequest message. Also converts values to other types if specified.
|
3371 | * @param message ListGlossariesRequest
|
3372 | * @param [options] Conversion options
|
3373 | * @returns Plain object
|
3374 | */
|
3375 | public static toObject(message: google.cloud.translation.v3.ListGlossariesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
3376 |
|
3377 | /**
|
3378 | * Converts this ListGlossariesRequest to JSON.
|
3379 | * @returns JSON object
|
3380 | */
|
3381 | public toJSON(): { [k: string]: any };
|
3382 | }
|
3383 |
|
3384 | /** Properties of a ListGlossariesResponse. */
|
3385 | interface IListGlossariesResponse {
|
3386 |
|
3387 | /** ListGlossariesResponse glossaries */
|
3388 | glossaries?: (google.cloud.translation.v3.IGlossary[]|null);
|
3389 |
|
3390 | /** ListGlossariesResponse nextPageToken */
|
3391 | nextPageToken?: (string|null);
|
3392 | }
|
3393 |
|
3394 | /** Represents a ListGlossariesResponse. */
|
3395 | class ListGlossariesResponse implements IListGlossariesResponse {
|
3396 |
|
3397 | /**
|
3398 | * Constructs a new ListGlossariesResponse.
|
3399 | * @param [properties] Properties to set
|
3400 | */
|
3401 | constructor(properties?: google.cloud.translation.v3.IListGlossariesResponse);
|
3402 |
|
3403 | /** ListGlossariesResponse glossaries. */
|
3404 | public glossaries: google.cloud.translation.v3.IGlossary[];
|
3405 |
|
3406 | /** ListGlossariesResponse nextPageToken. */
|
3407 | public nextPageToken: string;
|
3408 |
|
3409 | /**
|
3410 | * Creates a new ListGlossariesResponse instance using the specified properties.
|
3411 | * @param [properties] Properties to set
|
3412 | * @returns ListGlossariesResponse instance
|
3413 | */
|
3414 | public static create(properties?: google.cloud.translation.v3.IListGlossariesResponse): google.cloud.translation.v3.ListGlossariesResponse;
|
3415 |
|
3416 | /**
|
3417 | * Encodes the specified ListGlossariesResponse message. Does not implicitly { google.cloud.translation.v3.ListGlossariesResponse.verify|verify} messages.
|
3418 | * message ListGlossariesResponse message or plain object to encode
|
3419 | * [writer] Writer to encode to
|
3420 | * Writer
|
3421 | */
|
3422 | public static encode(message: google.cloud.translation.v3.IListGlossariesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
3423 |
|
3424 | /**
|
3425 | * Encodes the specified ListGlossariesResponse message, length delimited. Does not implicitly {@link google.cloud.translation.v3.ListGlossariesResponse.verify|verify} messages.
|
3426 | * @param message ListGlossariesResponse message or plain object to encode
|
3427 | * @param [writer] Writer to encode to
|
3428 | * @returns Writer
|
3429 | */
|
3430 | public static encodeDelimited(message: google.cloud.translation.v3.IListGlossariesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
3431 |
|
3432 | /**
|
3433 | * Decodes a ListGlossariesResponse message from the specified reader or buffer.
|
3434 | * @param reader Reader or buffer to decode from
|
3435 | * @param [length] Message length if known beforehand
|
3436 | * @returns ListGlossariesResponse
|
3437 | * @throws {Error} If the payload is not a reader or valid buffer
|
3438 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
3439 | */
|
3440 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3.ListGlossariesResponse;
|
3441 |
|
3442 | /**
|
3443 | * Decodes a ListGlossariesResponse message from the specified reader or buffer, length delimited.
|
3444 | * @param reader Reader or buffer to decode from
|
3445 | * @returns ListGlossariesResponse
|
3446 | * @throws {Error} If the payload is not a reader or valid buffer
|
3447 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
3448 | */
|
3449 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3.ListGlossariesResponse;
|
3450 |
|
3451 | /**
|
3452 | * Verifies a ListGlossariesResponse message.
|
3453 | * @param message Plain object to verify
|
3454 | * @returns `null` if valid, otherwise the reason why it is not
|
3455 | */
|
3456 | public static verify(message: { [k: string]: any }): (string|null);
|
3457 |
|
3458 | /**
|
3459 | * Creates a ListGlossariesResponse message from a plain object. Also converts values to their respective internal types.
|
3460 | * @param object Plain object
|
3461 | * @returns ListGlossariesResponse
|
3462 | */
|
3463 | public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3.ListGlossariesResponse;
|
3464 |
|
3465 | /**
|
3466 | * Creates a plain object from a ListGlossariesResponse message. Also converts values to other types if specified.
|
3467 | * @param message ListGlossariesResponse
|
3468 | * @param [options] Conversion options
|
3469 | * @returns Plain object
|
3470 | */
|
3471 | public static toObject(message: google.cloud.translation.v3.ListGlossariesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
3472 |
|
3473 | /**
|
3474 | * Converts this ListGlossariesResponse to JSON.
|
3475 | * @returns JSON object
|
3476 | */
|
3477 | public toJSON(): { [k: string]: any };
|
3478 | }
|
3479 |
|
3480 | /** Properties of a CreateGlossaryMetadata. */
|
3481 | interface ICreateGlossaryMetadata {
|
3482 |
|
3483 | /** CreateGlossaryMetadata name */
|
3484 | name?: (string|null);
|
3485 |
|
3486 | /** CreateGlossaryMetadata state */
|
3487 | state?: (google.cloud.translation.v3.CreateGlossaryMetadata.State|keyof typeof google.cloud.translation.v3.CreateGlossaryMetadata.State|null);
|
3488 |
|
3489 | /** CreateGlossaryMetadata submitTime */
|
3490 | submitTime?: (google.protobuf.ITimestamp|null);
|
3491 | }
|
3492 |
|
3493 | /** Represents a CreateGlossaryMetadata. */
|
3494 | class CreateGlossaryMetadata implements ICreateGlossaryMetadata {
|
3495 |
|
3496 | /**
|
3497 | * Constructs a new CreateGlossaryMetadata.
|
3498 | * @param [properties] Properties to set
|
3499 | */
|
3500 | constructor(properties?: google.cloud.translation.v3.ICreateGlossaryMetadata);
|
3501 |
|
3502 | /** CreateGlossaryMetadata name. */
|
3503 | public name: string;
|
3504 |
|
3505 | /** CreateGlossaryMetadata state. */
|
3506 | public state: (google.cloud.translation.v3.CreateGlossaryMetadata.State|keyof typeof google.cloud.translation.v3.CreateGlossaryMetadata.State);
|
3507 |
|
3508 | /** CreateGlossaryMetadata submitTime. */
|
3509 | public submitTime?: (google.protobuf.ITimestamp|null);
|
3510 |
|
3511 | /**
|
3512 | * Creates a new CreateGlossaryMetadata instance using the specified properties.
|
3513 | * @param [properties] Properties to set
|
3514 | * @returns CreateGlossaryMetadata instance
|
3515 | */
|
3516 | public static create(properties?: google.cloud.translation.v3.ICreateGlossaryMetadata): google.cloud.translation.v3.CreateGlossaryMetadata;
|
3517 |
|
3518 | /**
|
3519 | * Encodes the specified CreateGlossaryMetadata message. Does not implicitly { google.cloud.translation.v3.CreateGlossaryMetadata.verify|verify} messages.
|
3520 | * message CreateGlossaryMetadata message or plain object to encode
|
3521 | * [writer] Writer to encode to
|
3522 | * Writer
|
3523 | */
|
3524 | public static encode(message: google.cloud.translation.v3.ICreateGlossaryMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
|
3525 |
|
3526 | /**
|
3527 | * Encodes the specified CreateGlossaryMetadata message, length delimited. Does not implicitly {@link google.cloud.translation.v3.CreateGlossaryMetadata.verify|verify} messages.
|
3528 | * @param message CreateGlossaryMetadata message or plain object to encode
|
3529 | * @param [writer] Writer to encode to
|
3530 | * @returns Writer
|
3531 | */
|
3532 | public static encodeDelimited(message: google.cloud.translation.v3.ICreateGlossaryMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
|
3533 |
|
3534 | /**
|
3535 | * Decodes a CreateGlossaryMetadata message from the specified reader or buffer.
|
3536 | * @param reader Reader or buffer to decode from
|
3537 | * @param [length] Message length if known beforehand
|
3538 | * @returns CreateGlossaryMetadata
|
3539 | * @throws {Error} If the payload is not a reader or valid buffer
|
3540 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
3541 | */
|
3542 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3.CreateGlossaryMetadata;
|
3543 |
|
3544 | /**
|
3545 | * Decodes a CreateGlossaryMetadata message from the specified reader or buffer, length delimited.
|
3546 | * @param reader Reader or buffer to decode from
|
3547 | * @returns CreateGlossaryMetadata
|
3548 | * @throws {Error} If the payload is not a reader or valid buffer
|
3549 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
3550 | */
|
3551 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3.CreateGlossaryMetadata;
|
3552 |
|
3553 | /**
|
3554 | * Verifies a CreateGlossaryMetadata message.
|
3555 | * @param message Plain object to verify
|
3556 | * @returns `null` if valid, otherwise the reason why it is not
|
3557 | */
|
3558 | public static verify(message: { [k: string]: any }): (string|null);
|
3559 |
|
3560 | /**
|
3561 | * Creates a CreateGlossaryMetadata message from a plain object. Also converts values to their respective internal types.
|
3562 | * @param object Plain object
|
3563 | * @returns CreateGlossaryMetadata
|
3564 | */
|
3565 | public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3.CreateGlossaryMetadata;
|
3566 |
|
3567 | /**
|
3568 | * Creates a plain object from a CreateGlossaryMetadata message. Also converts values to other types if specified.
|
3569 | * @param message CreateGlossaryMetadata
|
3570 | * @param [options] Conversion options
|
3571 | * @returns Plain object
|
3572 | */
|
3573 | public static toObject(message: google.cloud.translation.v3.CreateGlossaryMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
3574 |
|
3575 | /**
|
3576 | * Converts this CreateGlossaryMetadata to JSON.
|
3577 | * @returns JSON object
|
3578 | */
|
3579 | public toJSON(): { [k: string]: any };
|
3580 | }
|
3581 |
|
3582 | namespace CreateGlossaryMetadata {
|
3583 |
|
3584 | /** State enum. */
|
3585 | enum State {
|
3586 | STATE_UNSPECIFIED = 0,
|
3587 | RUNNING = 1,
|
3588 | SUCCEEDED = 2,
|
3589 | FAILED = 3,
|
3590 | CANCELLING = 4,
|
3591 | CANCELLED = 5
|
3592 | }
|
3593 | }
|
3594 |
|
3595 | /** Properties of a DeleteGlossaryMetadata. */
|
3596 | interface IDeleteGlossaryMetadata {
|
3597 |
|
3598 | /** DeleteGlossaryMetadata name */
|
3599 | name?: (string|null);
|
3600 |
|
3601 | /** DeleteGlossaryMetadata state */
|
3602 | state?: (google.cloud.translation.v3.DeleteGlossaryMetadata.State|keyof typeof google.cloud.translation.v3.DeleteGlossaryMetadata.State|null);
|
3603 |
|
3604 | /** DeleteGlossaryMetadata submitTime */
|
3605 | submitTime?: (google.protobuf.ITimestamp|null);
|
3606 | }
|
3607 |
|
3608 | /** Represents a DeleteGlossaryMetadata. */
|
3609 | class DeleteGlossaryMetadata implements IDeleteGlossaryMetadata {
|
3610 |
|
3611 | /**
|
3612 | * Constructs a new DeleteGlossaryMetadata.
|
3613 | * @param [properties] Properties to set
|
3614 | */
|
3615 | constructor(properties?: google.cloud.translation.v3.IDeleteGlossaryMetadata);
|
3616 |
|
3617 | /** DeleteGlossaryMetadata name. */
|
3618 | public name: string;
|
3619 |
|
3620 | /** DeleteGlossaryMetadata state. */
|
3621 | public state: (google.cloud.translation.v3.DeleteGlossaryMetadata.State|keyof typeof google.cloud.translation.v3.DeleteGlossaryMetadata.State);
|
3622 |
|
3623 | /** DeleteGlossaryMetadata submitTime. */
|
3624 | public submitTime?: (google.protobuf.ITimestamp|null);
|
3625 |
|
3626 | /**
|
3627 | * Creates a new DeleteGlossaryMetadata instance using the specified properties.
|
3628 | * @param [properties] Properties to set
|
3629 | * @returns DeleteGlossaryMetadata instance
|
3630 | */
|
3631 | public static create(properties?: google.cloud.translation.v3.IDeleteGlossaryMetadata): google.cloud.translation.v3.DeleteGlossaryMetadata;
|
3632 |
|
3633 | /**
|
3634 | * Encodes the specified DeleteGlossaryMetadata message. Does not implicitly { google.cloud.translation.v3.DeleteGlossaryMetadata.verify|verify} messages.
|
3635 | * message DeleteGlossaryMetadata message or plain object to encode
|
3636 | * [writer] Writer to encode to
|
3637 | * Writer
|
3638 | */
|
3639 | public static encode(message: google.cloud.translation.v3.IDeleteGlossaryMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
|
3640 |
|
3641 | /**
|
3642 | * Encodes the specified DeleteGlossaryMetadata message, length delimited. Does not implicitly {@link google.cloud.translation.v3.DeleteGlossaryMetadata.verify|verify} messages.
|
3643 | * @param message DeleteGlossaryMetadata message or plain object to encode
|
3644 | * @param [writer] Writer to encode to
|
3645 | * @returns Writer
|
3646 | */
|
3647 | public static encodeDelimited(message: google.cloud.translation.v3.IDeleteGlossaryMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
|
3648 |
|
3649 | /**
|
3650 | * Decodes a DeleteGlossaryMetadata message from the specified reader or buffer.
|
3651 | * @param reader Reader or buffer to decode from
|
3652 | * @param [length] Message length if known beforehand
|
3653 | * @returns DeleteGlossaryMetadata
|
3654 | * @throws {Error} If the payload is not a reader or valid buffer
|
3655 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
3656 | */
|
3657 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3.DeleteGlossaryMetadata;
|
3658 |
|
3659 | /**
|
3660 | * Decodes a DeleteGlossaryMetadata message from the specified reader or buffer, length delimited.
|
3661 | * @param reader Reader or buffer to decode from
|
3662 | * @returns DeleteGlossaryMetadata
|
3663 | * @throws {Error} If the payload is not a reader or valid buffer
|
3664 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
3665 | */
|
3666 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3.DeleteGlossaryMetadata;
|
3667 |
|
3668 | /**
|
3669 | * Verifies a DeleteGlossaryMetadata message.
|
3670 | * @param message Plain object to verify
|
3671 | * @returns `null` if valid, otherwise the reason why it is not
|
3672 | */
|
3673 | public static verify(message: { [k: string]: any }): (string|null);
|
3674 |
|
3675 | /**
|
3676 | * Creates a DeleteGlossaryMetadata message from a plain object. Also converts values to their respective internal types.
|
3677 | * @param object Plain object
|
3678 | * @returns DeleteGlossaryMetadata
|
3679 | */
|
3680 | public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3.DeleteGlossaryMetadata;
|
3681 |
|
3682 | /**
|
3683 | * Creates a plain object from a DeleteGlossaryMetadata message. Also converts values to other types if specified.
|
3684 | * @param message DeleteGlossaryMetadata
|
3685 | * @param [options] Conversion options
|
3686 | * @returns Plain object
|
3687 | */
|
3688 | public static toObject(message: google.cloud.translation.v3.DeleteGlossaryMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
3689 |
|
3690 | /**
|
3691 | * Converts this DeleteGlossaryMetadata to JSON.
|
3692 | * @returns JSON object
|
3693 | */
|
3694 | public toJSON(): { [k: string]: any };
|
3695 | }
|
3696 |
|
3697 | namespace DeleteGlossaryMetadata {
|
3698 |
|
3699 | /** State enum. */
|
3700 | enum State {
|
3701 | STATE_UNSPECIFIED = 0,
|
3702 | RUNNING = 1,
|
3703 | SUCCEEDED = 2,
|
3704 | FAILED = 3,
|
3705 | CANCELLING = 4,
|
3706 | CANCELLED = 5
|
3707 | }
|
3708 | }
|
3709 |
|
3710 | /** Properties of a DeleteGlossaryResponse. */
|
3711 | interface IDeleteGlossaryResponse {
|
3712 |
|
3713 | /** DeleteGlossaryResponse name */
|
3714 | name?: (string|null);
|
3715 |
|
3716 | /** DeleteGlossaryResponse submitTime */
|
3717 | submitTime?: (google.protobuf.ITimestamp|null);
|
3718 |
|
3719 | /** DeleteGlossaryResponse endTime */
|
3720 | endTime?: (google.protobuf.ITimestamp|null);
|
3721 | }
|
3722 |
|
3723 | /** Represents a DeleteGlossaryResponse. */
|
3724 | class DeleteGlossaryResponse implements IDeleteGlossaryResponse {
|
3725 |
|
3726 | /**
|
3727 | * Constructs a new DeleteGlossaryResponse.
|
3728 | * @param [properties] Properties to set
|
3729 | */
|
3730 | constructor(properties?: google.cloud.translation.v3.IDeleteGlossaryResponse);
|
3731 |
|
3732 | /** DeleteGlossaryResponse name. */
|
3733 | public name: string;
|
3734 |
|
3735 | /** DeleteGlossaryResponse submitTime. */
|
3736 | public submitTime?: (google.protobuf.ITimestamp|null);
|
3737 |
|
3738 | /** DeleteGlossaryResponse endTime. */
|
3739 | public endTime?: (google.protobuf.ITimestamp|null);
|
3740 |
|
3741 | /**
|
3742 | * Creates a new DeleteGlossaryResponse instance using the specified properties.
|
3743 | * @param [properties] Properties to set
|
3744 | * @returns DeleteGlossaryResponse instance
|
3745 | */
|
3746 | public static create(properties?: google.cloud.translation.v3.IDeleteGlossaryResponse): google.cloud.translation.v3.DeleteGlossaryResponse;
|
3747 |
|
3748 | /**
|
3749 | * Encodes the specified DeleteGlossaryResponse message. Does not implicitly { google.cloud.translation.v3.DeleteGlossaryResponse.verify|verify} messages.
|
3750 | * message DeleteGlossaryResponse message or plain object to encode
|
3751 | * [writer] Writer to encode to
|
3752 | * Writer
|
3753 | */
|
3754 | public static encode(message: google.cloud.translation.v3.IDeleteGlossaryResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
3755 |
|
3756 | /**
|
3757 | * Encodes the specified DeleteGlossaryResponse message, length delimited. Does not implicitly {@link google.cloud.translation.v3.DeleteGlossaryResponse.verify|verify} messages.
|
3758 | * @param message DeleteGlossaryResponse message or plain object to encode
|
3759 | * @param [writer] Writer to encode to
|
3760 | * @returns Writer
|
3761 | */
|
3762 | public static encodeDelimited(message: google.cloud.translation.v3.IDeleteGlossaryResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
3763 |
|
3764 | /**
|
3765 | * Decodes a DeleteGlossaryResponse message from the specified reader or buffer.
|
3766 | * @param reader Reader or buffer to decode from
|
3767 | * @param [length] Message length if known beforehand
|
3768 | * @returns DeleteGlossaryResponse
|
3769 | * @throws {Error} If the payload is not a reader or valid buffer
|
3770 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
3771 | */
|
3772 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3.DeleteGlossaryResponse;
|
3773 |
|
3774 | /**
|
3775 | * Decodes a DeleteGlossaryResponse message from the specified reader or buffer, length delimited.
|
3776 | * @param reader Reader or buffer to decode from
|
3777 | * @returns DeleteGlossaryResponse
|
3778 | * @throws {Error} If the payload is not a reader or valid buffer
|
3779 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
3780 | */
|
3781 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3.DeleteGlossaryResponse;
|
3782 |
|
3783 | /**
|
3784 | * Verifies a DeleteGlossaryResponse message.
|
3785 | * @param message Plain object to verify
|
3786 | * @returns `null` if valid, otherwise the reason why it is not
|
3787 | */
|
3788 | public static verify(message: { [k: string]: any }): (string|null);
|
3789 |
|
3790 | /**
|
3791 | * Creates a DeleteGlossaryResponse message from a plain object. Also converts values to their respective internal types.
|
3792 | * @param object Plain object
|
3793 | * @returns DeleteGlossaryResponse
|
3794 | */
|
3795 | public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3.DeleteGlossaryResponse;
|
3796 |
|
3797 | /**
|
3798 | * Creates a plain object from a DeleteGlossaryResponse message. Also converts values to other types if specified.
|
3799 | * @param message DeleteGlossaryResponse
|
3800 | * @param [options] Conversion options
|
3801 | * @returns Plain object
|
3802 | */
|
3803 | public static toObject(message: google.cloud.translation.v3.DeleteGlossaryResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
3804 |
|
3805 | /**
|
3806 | * Converts this DeleteGlossaryResponse to JSON.
|
3807 | * @returns JSON object
|
3808 | */
|
3809 | public toJSON(): { [k: string]: any };
|
3810 | }
|
3811 |
|
3812 | /** Properties of a BatchTranslateDocumentRequest. */
|
3813 | interface IBatchTranslateDocumentRequest {
|
3814 |
|
3815 | /** BatchTranslateDocumentRequest parent */
|
3816 | parent?: (string|null);
|
3817 |
|
3818 | /** BatchTranslateDocumentRequest sourceLanguageCode */
|
3819 | sourceLanguageCode?: (string|null);
|
3820 |
|
3821 | /** BatchTranslateDocumentRequest targetLanguageCodes */
|
3822 | targetLanguageCodes?: (string[]|null);
|
3823 |
|
3824 | /** BatchTranslateDocumentRequest inputConfigs */
|
3825 | inputConfigs?: (google.cloud.translation.v3.IBatchDocumentInputConfig[]|null);
|
3826 |
|
3827 | /** BatchTranslateDocumentRequest outputConfig */
|
3828 | outputConfig?: (google.cloud.translation.v3.IBatchDocumentOutputConfig|null);
|
3829 |
|
3830 | /** BatchTranslateDocumentRequest models */
|
3831 | models?: ({ [k: string]: string }|null);
|
3832 |
|
3833 | /** BatchTranslateDocumentRequest glossaries */
|
3834 | glossaries?: ({ [k: string]: google.cloud.translation.v3.ITranslateTextGlossaryConfig }|null);
|
3835 |
|
3836 | /** BatchTranslateDocumentRequest formatConversions */
|
3837 | formatConversions?: ({ [k: string]: string }|null);
|
3838 | }
|
3839 |
|
3840 | /** Represents a BatchTranslateDocumentRequest. */
|
3841 | class BatchTranslateDocumentRequest implements IBatchTranslateDocumentRequest {
|
3842 |
|
3843 | /**
|
3844 | * Constructs a new BatchTranslateDocumentRequest.
|
3845 | * @param [properties] Properties to set
|
3846 | */
|
3847 | constructor(properties?: google.cloud.translation.v3.IBatchTranslateDocumentRequest);
|
3848 |
|
3849 | /** BatchTranslateDocumentRequest parent. */
|
3850 | public parent: string;
|
3851 |
|
3852 | /** BatchTranslateDocumentRequest sourceLanguageCode. */
|
3853 | public sourceLanguageCode: string;
|
3854 |
|
3855 | /** BatchTranslateDocumentRequest targetLanguageCodes. */
|
3856 | public targetLanguageCodes: string[];
|
3857 |
|
3858 | /** BatchTranslateDocumentRequest inputConfigs. */
|
3859 | public inputConfigs: google.cloud.translation.v3.IBatchDocumentInputConfig[];
|
3860 |
|
3861 | /** BatchTranslateDocumentRequest outputConfig. */
|
3862 | public outputConfig?: (google.cloud.translation.v3.IBatchDocumentOutputConfig|null);
|
3863 |
|
3864 | /** BatchTranslateDocumentRequest models. */
|
3865 | public models: { [k: string]: string };
|
3866 |
|
3867 | /** BatchTranslateDocumentRequest glossaries. */
|
3868 | public glossaries: { [k: string]: google.cloud.translation.v3.ITranslateTextGlossaryConfig };
|
3869 |
|
3870 | /** BatchTranslateDocumentRequest formatConversions. */
|
3871 | public formatConversions: { [k: string]: string };
|
3872 |
|
3873 | /**
|
3874 | * Creates a new BatchTranslateDocumentRequest instance using the specified properties.
|
3875 | * @param [properties] Properties to set
|
3876 | * @returns BatchTranslateDocumentRequest instance
|
3877 | */
|
3878 | public static create(properties?: google.cloud.translation.v3.IBatchTranslateDocumentRequest): google.cloud.translation.v3.BatchTranslateDocumentRequest;
|
3879 |
|
3880 | /**
|
3881 | * Encodes the specified BatchTranslateDocumentRequest message. Does not implicitly {@link google.cloud.translation.v3.BatchTranslateDocumentRequest.verify|verify} messages.
|
3882 | * @param message BatchTranslateDocumentRequest message or plain object to encode
|
3883 | * @param [writer] Writer to encode to
|
3884 | * @returns Writer
|
3885 | */
|
3886 | public static encode(message: google.cloud.translation.v3.IBatchTranslateDocumentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
3887 |
|
3888 | /**
|
3889 | * Encodes the specified BatchTranslateDocumentRequest message, length delimited. Does not implicitly {@link google.cloud.translation.v3.BatchTranslateDocumentRequest.verify|verify} messages.
|
3890 | * @param message BatchTranslateDocumentRequest message or plain object to encode
|
3891 | * @param [writer] Writer to encode to
|
3892 | * @returns Writer
|
3893 | */
|
3894 | public static encodeDelimited(message: google.cloud.translation.v3.IBatchTranslateDocumentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
3895 |
|
3896 | /**
|
3897 | * Decodes a BatchTranslateDocumentRequest message from the specified reader or buffer.
|
3898 | * @param reader Reader or buffer to decode from
|
3899 | * @param [length] Message length if known beforehand
|
3900 | * @returns BatchTranslateDocumentRequest
|
3901 | * @throws {Error} If the payload is not a reader or valid buffer
|
3902 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
3903 | */
|
3904 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3.BatchTranslateDocumentRequest;
|
3905 |
|
3906 | /**
|
3907 | * Decodes a BatchTranslateDocumentRequest message from the specified reader or buffer, length delimited.
|
3908 | * @param reader Reader or buffer to decode from
|
3909 | * @returns BatchTranslateDocumentRequest
|
3910 | * @throws {Error} If the payload is not a reader or valid buffer
|
3911 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
3912 | */
|
3913 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3.BatchTranslateDocumentRequest;
|
3914 |
|
3915 | /**
|
3916 | * Verifies a BatchTranslateDocumentRequest message.
|
3917 | * @param message Plain object to verify
|
3918 | * @returns `null` if valid, otherwise the reason why it is not
|
3919 | */
|
3920 | public static verify(message: { [k: string]: any }): (string|null);
|
3921 |
|
3922 | /**
|
3923 | * Creates a BatchTranslateDocumentRequest message from a plain object. Also converts values to their respective internal types.
|
3924 | * @param object Plain object
|
3925 | * @returns BatchTranslateDocumentRequest
|
3926 | */
|
3927 | public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3.BatchTranslateDocumentRequest;
|
3928 |
|
3929 | /**
|
3930 | * Creates a plain object from a BatchTranslateDocumentRequest message. Also converts values to other types if specified.
|
3931 | * @param message BatchTranslateDocumentRequest
|
3932 | * @param [options] Conversion options
|
3933 | * @returns Plain object
|
3934 | */
|
3935 | public static toObject(message: google.cloud.translation.v3.BatchTranslateDocumentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
3936 |
|
3937 | /**
|
3938 | * Converts this BatchTranslateDocumentRequest to JSON.
|
3939 | * @returns JSON object
|
3940 | */
|
3941 | public toJSON(): { [k: string]: any };
|
3942 | }
|
3943 |
|
3944 | /** Properties of a BatchDocumentInputConfig. */
|
3945 | interface IBatchDocumentInputConfig {
|
3946 |
|
3947 | /** BatchDocumentInputConfig gcsSource */
|
3948 | gcsSource?: (google.cloud.translation.v3.IGcsSource|null);
|
3949 | }
|
3950 |
|
3951 | /** Represents a BatchDocumentInputConfig. */
|
3952 | class BatchDocumentInputConfig implements IBatchDocumentInputConfig {
|
3953 |
|
3954 | /**
|
3955 | * Constructs a new BatchDocumentInputConfig.
|
3956 | * @param [properties] Properties to set
|
3957 | */
|
3958 | constructor(properties?: google.cloud.translation.v3.IBatchDocumentInputConfig);
|
3959 |
|
3960 | /** BatchDocumentInputConfig gcsSource. */
|
3961 | public gcsSource?: (google.cloud.translation.v3.IGcsSource|null);
|
3962 |
|
3963 | /** BatchDocumentInputConfig source. */
|
3964 | public source?: "gcsSource";
|
3965 |
|
3966 | /**
|
3967 | * Creates a new BatchDocumentInputConfig instance using the specified properties.
|
3968 | * @param [properties] Properties to set
|
3969 | * @returns BatchDocumentInputConfig instance
|
3970 | */
|
3971 | public static create(properties?: google.cloud.translation.v3.IBatchDocumentInputConfig): google.cloud.translation.v3.BatchDocumentInputConfig;
|
3972 |
|
3973 | /**
|
3974 | * Encodes the specified BatchDocumentInputConfig message. Does not implicitly { google.cloud.translation.v3.BatchDocumentInputConfig.verify|verify} messages.
|
3975 | * message BatchDocumentInputConfig message or plain object to encode
|
3976 | * [writer] Writer to encode to
|
3977 | * Writer
|
3978 | */
|
3979 | public static encode(message: google.cloud.translation.v3.IBatchDocumentInputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
3980 |
|
3981 | /**
|
3982 | * Encodes the specified BatchDocumentInputConfig message, length delimited. Does not implicitly {@link google.cloud.translation.v3.BatchDocumentInputConfig.verify|verify} messages.
|
3983 | * @param message BatchDocumentInputConfig message or plain object to encode
|
3984 | * @param [writer] Writer to encode to
|
3985 | * @returns Writer
|
3986 | */
|
3987 | public static encodeDelimited(message: google.cloud.translation.v3.IBatchDocumentInputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
3988 |
|
3989 | /**
|
3990 | * Decodes a BatchDocumentInputConfig message from the specified reader or buffer.
|
3991 | * @param reader Reader or buffer to decode from
|
3992 | * @param [length] Message length if known beforehand
|
3993 | * @returns BatchDocumentInputConfig
|
3994 | * @throws {Error} If the payload is not a reader or valid buffer
|
3995 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
3996 | */
|
3997 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3.BatchDocumentInputConfig;
|
3998 |
|
3999 | /**
|
4000 | * Decodes a BatchDocumentInputConfig message from the specified reader or buffer, length delimited.
|
4001 | * @param reader Reader or buffer to decode from
|
4002 | * @returns BatchDocumentInputConfig
|
4003 | * @throws {Error} If the payload is not a reader or valid buffer
|
4004 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
4005 | */
|
4006 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3.BatchDocumentInputConfig;
|
4007 |
|
4008 | /**
|
4009 | * Verifies a BatchDocumentInputConfig message.
|
4010 | * @param message Plain object to verify
|
4011 | * @returns `null` if valid, otherwise the reason why it is not
|
4012 | */
|
4013 | public static verify(message: { [k: string]: any }): (string|null);
|
4014 |
|
4015 | /**
|
4016 | * Creates a BatchDocumentInputConfig message from a plain object. Also converts values to their respective internal types.
|
4017 | * @param object Plain object
|
4018 | * @returns BatchDocumentInputConfig
|
4019 | */
|
4020 | public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3.BatchDocumentInputConfig;
|
4021 |
|
4022 | /**
|
4023 | * Creates a plain object from a BatchDocumentInputConfig message. Also converts values to other types if specified.
|
4024 | * @param message BatchDocumentInputConfig
|
4025 | * @param [options] Conversion options
|
4026 | * @returns Plain object
|
4027 | */
|
4028 | public static toObject(message: google.cloud.translation.v3.BatchDocumentInputConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
4029 |
|
4030 | /**
|
4031 | * Converts this BatchDocumentInputConfig to JSON.
|
4032 | * @returns JSON object
|
4033 | */
|
4034 | public toJSON(): { [k: string]: any };
|
4035 | }
|
4036 |
|
4037 | /** Properties of a BatchDocumentOutputConfig. */
|
4038 | interface IBatchDocumentOutputConfig {
|
4039 |
|
4040 | /** BatchDocumentOutputConfig gcsDestination */
|
4041 | gcsDestination?: (google.cloud.translation.v3.IGcsDestination|null);
|
4042 | }
|
4043 |
|
4044 | /** Represents a BatchDocumentOutputConfig. */
|
4045 | class BatchDocumentOutputConfig implements IBatchDocumentOutputConfig {
|
4046 |
|
4047 | /**
|
4048 | * Constructs a new BatchDocumentOutputConfig.
|
4049 | * @param [properties] Properties to set
|
4050 | */
|
4051 | constructor(properties?: google.cloud.translation.v3.IBatchDocumentOutputConfig);
|
4052 |
|
4053 | /** BatchDocumentOutputConfig gcsDestination. */
|
4054 | public gcsDestination?: (google.cloud.translation.v3.IGcsDestination|null);
|
4055 |
|
4056 | /** BatchDocumentOutputConfig destination. */
|
4057 | public destination?: "gcsDestination";
|
4058 |
|
4059 | /**
|
4060 | * Creates a new BatchDocumentOutputConfig instance using the specified properties.
|
4061 | * @param [properties] Properties to set
|
4062 | * @returns BatchDocumentOutputConfig instance
|
4063 | */
|
4064 | public static create(properties?: google.cloud.translation.v3.IBatchDocumentOutputConfig): google.cloud.translation.v3.BatchDocumentOutputConfig;
|
4065 |
|
4066 | /**
|
4067 | * Encodes the specified BatchDocumentOutputConfig message. Does not implicitly { google.cloud.translation.v3.BatchDocumentOutputConfig.verify|verify} messages.
|
4068 | * message BatchDocumentOutputConfig message or plain object to encode
|
4069 | * [writer] Writer to encode to
|
4070 | * Writer
|
4071 | */
|
4072 | public static encode(message: google.cloud.translation.v3.IBatchDocumentOutputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
4073 |
|
4074 | /**
|
4075 | * Encodes the specified BatchDocumentOutputConfig message, length delimited. Does not implicitly {@link google.cloud.translation.v3.BatchDocumentOutputConfig.verify|verify} messages.
|
4076 | * @param message BatchDocumentOutputConfig message or plain object to encode
|
4077 | * @param [writer] Writer to encode to
|
4078 | * @returns Writer
|
4079 | */
|
4080 | public static encodeDelimited(message: google.cloud.translation.v3.IBatchDocumentOutputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
4081 |
|
4082 | /**
|
4083 | * Decodes a BatchDocumentOutputConfig message from the specified reader or buffer.
|
4084 | * @param reader Reader or buffer to decode from
|
4085 | * @param [length] Message length if known beforehand
|
4086 | * @returns BatchDocumentOutputConfig
|
4087 | * @throws {Error} If the payload is not a reader or valid buffer
|
4088 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
4089 | */
|
4090 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3.BatchDocumentOutputConfig;
|
4091 |
|
4092 | /**
|
4093 | * Decodes a BatchDocumentOutputConfig message from the specified reader or buffer, length delimited.
|
4094 | * @param reader Reader or buffer to decode from
|
4095 | * @returns BatchDocumentOutputConfig
|
4096 | * @throws {Error} If the payload is not a reader or valid buffer
|
4097 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
4098 | */
|
4099 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3.BatchDocumentOutputConfig;
|
4100 |
|
4101 | /**
|
4102 | * Verifies a BatchDocumentOutputConfig message.
|
4103 | * @param message Plain object to verify
|
4104 | * @returns `null` if valid, otherwise the reason why it is not
|
4105 | */
|
4106 | public static verify(message: { [k: string]: any }): (string|null);
|
4107 |
|
4108 | /**
|
4109 | * Creates a BatchDocumentOutputConfig message from a plain object. Also converts values to their respective internal types.
|
4110 | * @param object Plain object
|
4111 | * @returns BatchDocumentOutputConfig
|
4112 | */
|
4113 | public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3.BatchDocumentOutputConfig;
|
4114 |
|
4115 | /**
|
4116 | * Creates a plain object from a BatchDocumentOutputConfig message. Also converts values to other types if specified.
|
4117 | * @param message BatchDocumentOutputConfig
|
4118 | * @param [options] Conversion options
|
4119 | * @returns Plain object
|
4120 | */
|
4121 | public static toObject(message: google.cloud.translation.v3.BatchDocumentOutputConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
4122 |
|
4123 | /**
|
4124 | * Converts this BatchDocumentOutputConfig to JSON.
|
4125 | * @returns JSON object
|
4126 | */
|
4127 | public toJSON(): { [k: string]: any };
|
4128 | }
|
4129 |
|
4130 | /** Properties of a BatchTranslateDocumentResponse. */
|
4131 | interface IBatchTranslateDocumentResponse {
|
4132 |
|
4133 | /** BatchTranslateDocumentResponse totalPages */
|
4134 | totalPages?: (number|Long|string|null);
|
4135 |
|
4136 | /** BatchTranslateDocumentResponse translatedPages */
|
4137 | translatedPages?: (number|Long|string|null);
|
4138 |
|
4139 | /** BatchTranslateDocumentResponse failedPages */
|
4140 | failedPages?: (number|Long|string|null);
|
4141 |
|
4142 | /** BatchTranslateDocumentResponse totalBillablePages */
|
4143 | totalBillablePages?: (number|Long|string|null);
|
4144 |
|
4145 | /** BatchTranslateDocumentResponse totalCharacters */
|
4146 | totalCharacters?: (number|Long|string|null);
|
4147 |
|
4148 | /** BatchTranslateDocumentResponse translatedCharacters */
|
4149 | translatedCharacters?: (number|Long|string|null);
|
4150 |
|
4151 | /** BatchTranslateDocumentResponse failedCharacters */
|
4152 | failedCharacters?: (number|Long|string|null);
|
4153 |
|
4154 | /** BatchTranslateDocumentResponse totalBillableCharacters */
|
4155 | totalBillableCharacters?: (number|Long|string|null);
|
4156 |
|
4157 | /** BatchTranslateDocumentResponse submitTime */
|
4158 | submitTime?: (google.protobuf.ITimestamp|null);
|
4159 |
|
4160 | /** BatchTranslateDocumentResponse endTime */
|
4161 | endTime?: (google.protobuf.ITimestamp|null);
|
4162 | }
|
4163 |
|
4164 | /** Represents a BatchTranslateDocumentResponse. */
|
4165 | class BatchTranslateDocumentResponse implements IBatchTranslateDocumentResponse {
|
4166 |
|
4167 | /**
|
4168 | * Constructs a new BatchTranslateDocumentResponse.
|
4169 | * @param [properties] Properties to set
|
4170 | */
|
4171 | constructor(properties?: google.cloud.translation.v3.IBatchTranslateDocumentResponse);
|
4172 |
|
4173 | /** BatchTranslateDocumentResponse totalPages. */
|
4174 | public totalPages: (number|Long|string);
|
4175 |
|
4176 | /** BatchTranslateDocumentResponse translatedPages. */
|
4177 | public translatedPages: (number|Long|string);
|
4178 |
|
4179 | /** BatchTranslateDocumentResponse failedPages. */
|
4180 | public failedPages: (number|Long|string);
|
4181 |
|
4182 | /** BatchTranslateDocumentResponse totalBillablePages. */
|
4183 | public totalBillablePages: (number|Long|string);
|
4184 |
|
4185 | /** BatchTranslateDocumentResponse totalCharacters. */
|
4186 | public totalCharacters: (number|Long|string);
|
4187 |
|
4188 | /** BatchTranslateDocumentResponse translatedCharacters. */
|
4189 | public translatedCharacters: (number|Long|string);
|
4190 |
|
4191 | /** BatchTranslateDocumentResponse failedCharacters. */
|
4192 | public failedCharacters: (number|Long|string);
|
4193 |
|
4194 | /** BatchTranslateDocumentResponse totalBillableCharacters. */
|
4195 | public totalBillableCharacters: (number|Long|string);
|
4196 |
|
4197 | /** BatchTranslateDocumentResponse submitTime. */
|
4198 | public submitTime?: (google.protobuf.ITimestamp|null);
|
4199 |
|
4200 | /** BatchTranslateDocumentResponse endTime. */
|
4201 | public endTime?: (google.protobuf.ITimestamp|null);
|
4202 |
|
4203 | /**
|
4204 | * Creates a new BatchTranslateDocumentResponse instance using the specified properties.
|
4205 | * @param [properties] Properties to set
|
4206 | * @returns BatchTranslateDocumentResponse instance
|
4207 | */
|
4208 | public static create(properties?: google.cloud.translation.v3.IBatchTranslateDocumentResponse): google.cloud.translation.v3.BatchTranslateDocumentResponse;
|
4209 |
|
4210 | /**
|
4211 | * Encodes the specified BatchTranslateDocumentResponse message. Does not implicitly { google.cloud.translation.v3.BatchTranslateDocumentResponse.verify|verify} messages.
|
4212 | * message BatchTranslateDocumentResponse message or plain object to encode
|
4213 | * [writer] Writer to encode to
|
4214 | * Writer
|
4215 | */
|
4216 | public static encode(message: google.cloud.translation.v3.IBatchTranslateDocumentResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
4217 |
|
4218 | /**
|
4219 | * Encodes the specified BatchTranslateDocumentResponse message, length delimited. Does not implicitly {@link google.cloud.translation.v3.BatchTranslateDocumentResponse.verify|verify} messages.
|
4220 | * @param message BatchTranslateDocumentResponse message or plain object to encode
|
4221 | * @param [writer] Writer to encode to
|
4222 | * @returns Writer
|
4223 | */
|
4224 | public static encodeDelimited(message: google.cloud.translation.v3.IBatchTranslateDocumentResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
4225 |
|
4226 | /**
|
4227 | * Decodes a BatchTranslateDocumentResponse message from the specified reader or buffer.
|
4228 | * @param reader Reader or buffer to decode from
|
4229 | * @param [length] Message length if known beforehand
|
4230 | * @returns BatchTranslateDocumentResponse
|
4231 | * @throws {Error} If the payload is not a reader or valid buffer
|
4232 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
4233 | */
|
4234 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3.BatchTranslateDocumentResponse;
|
4235 |
|
4236 | /**
|
4237 | * Decodes a BatchTranslateDocumentResponse message from the specified reader or buffer, length delimited.
|
4238 | * @param reader Reader or buffer to decode from
|
4239 | * @returns BatchTranslateDocumentResponse
|
4240 | * @throws {Error} If the payload is not a reader or valid buffer
|
4241 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
4242 | */
|
4243 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3.BatchTranslateDocumentResponse;
|
4244 |
|
4245 | /**
|
4246 | * Verifies a BatchTranslateDocumentResponse message.
|
4247 | * @param message Plain object to verify
|
4248 | * @returns `null` if valid, otherwise the reason why it is not
|
4249 | */
|
4250 | public static verify(message: { [k: string]: any }): (string|null);
|
4251 |
|
4252 | /**
|
4253 | * Creates a BatchTranslateDocumentResponse message from a plain object. Also converts values to their respective internal types.
|
4254 | * @param object Plain object
|
4255 | * @returns BatchTranslateDocumentResponse
|
4256 | */
|
4257 | public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3.BatchTranslateDocumentResponse;
|
4258 |
|
4259 | /**
|
4260 | * Creates a plain object from a BatchTranslateDocumentResponse message. Also converts values to other types if specified.
|
4261 | * @param message BatchTranslateDocumentResponse
|
4262 | * @param [options] Conversion options
|
4263 | * @returns Plain object
|
4264 | */
|
4265 | public static toObject(message: google.cloud.translation.v3.BatchTranslateDocumentResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
4266 |
|
4267 | /**
|
4268 | * Converts this BatchTranslateDocumentResponse to JSON.
|
4269 | * @returns JSON object
|
4270 | */
|
4271 | public toJSON(): { [k: string]: any };
|
4272 | }
|
4273 |
|
4274 | /** Properties of a BatchTranslateDocumentMetadata. */
|
4275 | interface IBatchTranslateDocumentMetadata {
|
4276 |
|
4277 | /** BatchTranslateDocumentMetadata state */
|
4278 | state?: (google.cloud.translation.v3.BatchTranslateDocumentMetadata.State|keyof typeof google.cloud.translation.v3.BatchTranslateDocumentMetadata.State|null);
|
4279 |
|
4280 | /** BatchTranslateDocumentMetadata totalPages */
|
4281 | totalPages?: (number|Long|string|null);
|
4282 |
|
4283 | /** BatchTranslateDocumentMetadata translatedPages */
|
4284 | translatedPages?: (number|Long|string|null);
|
4285 |
|
4286 | /** BatchTranslateDocumentMetadata failedPages */
|
4287 | failedPages?: (number|Long|string|null);
|
4288 |
|
4289 | /** BatchTranslateDocumentMetadata totalBillablePages */
|
4290 | totalBillablePages?: (number|Long|string|null);
|
4291 |
|
4292 | /** BatchTranslateDocumentMetadata totalCharacters */
|
4293 | totalCharacters?: (number|Long|string|null);
|
4294 |
|
4295 | /** BatchTranslateDocumentMetadata translatedCharacters */
|
4296 | translatedCharacters?: (number|Long|string|null);
|
4297 |
|
4298 | /** BatchTranslateDocumentMetadata failedCharacters */
|
4299 | failedCharacters?: (number|Long|string|null);
|
4300 |
|
4301 | /** BatchTranslateDocumentMetadata totalBillableCharacters */
|
4302 | totalBillableCharacters?: (number|Long|string|null);
|
4303 |
|
4304 | /** BatchTranslateDocumentMetadata submitTime */
|
4305 | submitTime?: (google.protobuf.ITimestamp|null);
|
4306 | }
|
4307 |
|
4308 | /** Represents a BatchTranslateDocumentMetadata. */
|
4309 | class BatchTranslateDocumentMetadata implements IBatchTranslateDocumentMetadata {
|
4310 |
|
4311 | /**
|
4312 | * Constructs a new BatchTranslateDocumentMetadata.
|
4313 | * @param [properties] Properties to set
|
4314 | */
|
4315 | constructor(properties?: google.cloud.translation.v3.IBatchTranslateDocumentMetadata);
|
4316 |
|
4317 | /** BatchTranslateDocumentMetadata state. */
|
4318 | public state: (google.cloud.translation.v3.BatchTranslateDocumentMetadata.State|keyof typeof google.cloud.translation.v3.BatchTranslateDocumentMetadata.State);
|
4319 |
|
4320 | /** BatchTranslateDocumentMetadata totalPages. */
|
4321 | public totalPages: (number|Long|string);
|
4322 |
|
4323 | /** BatchTranslateDocumentMetadata translatedPages. */
|
4324 | public translatedPages: (number|Long|string);
|
4325 |
|
4326 | /** BatchTranslateDocumentMetadata failedPages. */
|
4327 | public failedPages: (number|Long|string);
|
4328 |
|
4329 | /** BatchTranslateDocumentMetadata totalBillablePages. */
|
4330 | public totalBillablePages: (number|Long|string);
|
4331 |
|
4332 | /** BatchTranslateDocumentMetadata totalCharacters. */
|
4333 | public totalCharacters: (number|Long|string);
|
4334 |
|
4335 | /** BatchTranslateDocumentMetadata translatedCharacters. */
|
4336 | public translatedCharacters: (number|Long|string);
|
4337 |
|
4338 | /** BatchTranslateDocumentMetadata failedCharacters. */
|
4339 | public failedCharacters: (number|Long|string);
|
4340 |
|
4341 | /** BatchTranslateDocumentMetadata totalBillableCharacters. */
|
4342 | public totalBillableCharacters: (number|Long|string);
|
4343 |
|
4344 | /** BatchTranslateDocumentMetadata submitTime. */
|
4345 | public submitTime?: (google.protobuf.ITimestamp|null);
|
4346 |
|
4347 | /**
|
4348 | * Creates a new BatchTranslateDocumentMetadata instance using the specified properties.
|
4349 | * @param [properties] Properties to set
|
4350 | * @returns BatchTranslateDocumentMetadata instance
|
4351 | */
|
4352 | public static create(properties?: google.cloud.translation.v3.IBatchTranslateDocumentMetadata): google.cloud.translation.v3.BatchTranslateDocumentMetadata;
|
4353 |
|
4354 | /**
|
4355 | * Encodes the specified BatchTranslateDocumentMetadata message. Does not implicitly { google.cloud.translation.v3.BatchTranslateDocumentMetadata.verify|verify} messages.
|
4356 | * message BatchTranslateDocumentMetadata message or plain object to encode
|
4357 | * [writer] Writer to encode to
|
4358 | * Writer
|
4359 | */
|
4360 | public static encode(message: google.cloud.translation.v3.IBatchTranslateDocumentMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
|
4361 |
|
4362 | /**
|
4363 | * Encodes the specified BatchTranslateDocumentMetadata message, length delimited. Does not implicitly {@link google.cloud.translation.v3.BatchTranslateDocumentMetadata.verify|verify} messages.
|
4364 | * @param message BatchTranslateDocumentMetadata message or plain object to encode
|
4365 | * @param [writer] Writer to encode to
|
4366 | * @returns Writer
|
4367 | */
|
4368 | public static encodeDelimited(message: google.cloud.translation.v3.IBatchTranslateDocumentMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
|
4369 |
|
4370 | /**
|
4371 | * Decodes a BatchTranslateDocumentMetadata message from the specified reader or buffer.
|
4372 | * @param reader Reader or buffer to decode from
|
4373 | * @param [length] Message length if known beforehand
|
4374 | * @returns BatchTranslateDocumentMetadata
|
4375 | * @throws {Error} If the payload is not a reader or valid buffer
|
4376 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
4377 | */
|
4378 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3.BatchTranslateDocumentMetadata;
|
4379 |
|
4380 | /**
|
4381 | * Decodes a BatchTranslateDocumentMetadata message from the specified reader or buffer, length delimited.
|
4382 | * @param reader Reader or buffer to decode from
|
4383 | * @returns BatchTranslateDocumentMetadata
|
4384 | * @throws {Error} If the payload is not a reader or valid buffer
|
4385 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
4386 | */
|
4387 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3.BatchTranslateDocumentMetadata;
|
4388 |
|
4389 | /**
|
4390 | * Verifies a BatchTranslateDocumentMetadata message.
|
4391 | * @param message Plain object to verify
|
4392 | * @returns `null` if valid, otherwise the reason why it is not
|
4393 | */
|
4394 | public static verify(message: { [k: string]: any }): (string|null);
|
4395 |
|
4396 | /**
|
4397 | * Creates a BatchTranslateDocumentMetadata message from a plain object. Also converts values to their respective internal types.
|
4398 | * @param object Plain object
|
4399 | * @returns BatchTranslateDocumentMetadata
|
4400 | */
|
4401 | public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3.BatchTranslateDocumentMetadata;
|
4402 |
|
4403 | /**
|
4404 | * Creates a plain object from a BatchTranslateDocumentMetadata message. Also converts values to other types if specified.
|
4405 | * @param message BatchTranslateDocumentMetadata
|
4406 | * @param [options] Conversion options
|
4407 | * @returns Plain object
|
4408 | */
|
4409 | public static toObject(message: google.cloud.translation.v3.BatchTranslateDocumentMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
4410 |
|
4411 | /**
|
4412 | * Converts this BatchTranslateDocumentMetadata to JSON.
|
4413 | * @returns JSON object
|
4414 | */
|
4415 | public toJSON(): { [k: string]: any };
|
4416 | }
|
4417 |
|
4418 | namespace BatchTranslateDocumentMetadata {
|
4419 |
|
4420 | /** State enum. */
|
4421 | enum State {
|
4422 | STATE_UNSPECIFIED = 0,
|
4423 | RUNNING = 1,
|
4424 | SUCCEEDED = 2,
|
4425 | FAILED = 3,
|
4426 | CANCELLING = 4,
|
4427 | CANCELLED = 5
|
4428 | }
|
4429 | }
|
4430 | }
|
4431 |
|
4432 | /** Namespace v3beta1. */
|
4433 | namespace v3beta1 {
|
4434 |
|
4435 | /** Represents a TranslationService */
|
4436 | class TranslationService extends $protobuf.rpc.Service {
|
4437 |
|
4438 | /**
|
4439 | * Constructs a new TranslationService service.
|
4440 | * @param rpcImpl RPC implementation
|
4441 | * @param [requestDelimited=false] Whether requests are length-delimited
|
4442 | * @param [responseDelimited=false] Whether responses are length-delimited
|
4443 | */
|
4444 | constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
|
4445 |
|
4446 | /**
|
4447 | * Creates new TranslationService service using the specified rpc implementation.
|
4448 | * @param rpcImpl RPC implementation
|
4449 | * @param [requestDelimited=false] Whether requests are length-delimited
|
4450 | * @param [responseDelimited=false] Whether responses are length-delimited
|
4451 | * @returns RPC service. Useful where requests and/or responses are streamed.
|
4452 | */
|
4453 | public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): TranslationService;
|
4454 |
|
4455 | /**
|
4456 | * Calls TranslateText.
|
4457 | * @param request TranslateTextRequest message or plain object
|
4458 | * @param callback Node-style callback called with the error, if any, and TranslateTextResponse
|
4459 | */
|
4460 | public translateText(request: google.cloud.translation.v3beta1.ITranslateTextRequest, callback: google.cloud.translation.v3beta1.TranslationService.TranslateTextCallback): void;
|
4461 |
|
4462 | /**
|
4463 | * Calls TranslateText.
|
4464 | * @param request TranslateTextRequest message or plain object
|
4465 | * @returns Promise
|
4466 | */
|
4467 | public translateText(request: google.cloud.translation.v3beta1.ITranslateTextRequest): Promise<google.cloud.translation.v3beta1.TranslateTextResponse>;
|
4468 |
|
4469 | /**
|
4470 | * Calls DetectLanguage.
|
4471 | * @param request DetectLanguageRequest message or plain object
|
4472 | * @param callback Node-style callback called with the error, if any, and DetectLanguageResponse
|
4473 | */
|
4474 | public detectLanguage(request: google.cloud.translation.v3beta1.IDetectLanguageRequest, callback: google.cloud.translation.v3beta1.TranslationService.DetectLanguageCallback): void;
|
4475 |
|
4476 | /**
|
4477 | * Calls DetectLanguage.
|
4478 | * @param request DetectLanguageRequest message or plain object
|
4479 | * @returns Promise
|
4480 | */
|
4481 | public detectLanguage(request: google.cloud.translation.v3beta1.IDetectLanguageRequest): Promise<google.cloud.translation.v3beta1.DetectLanguageResponse>;
|
4482 |
|
4483 | /**
|
4484 | * Calls GetSupportedLanguages.
|
4485 | * @param request GetSupportedLanguagesRequest message or plain object
|
4486 | * @param callback Node-style callback called with the error, if any, and SupportedLanguages
|
4487 | */
|
4488 | public getSupportedLanguages(request: google.cloud.translation.v3beta1.IGetSupportedLanguagesRequest, callback: google.cloud.translation.v3beta1.TranslationService.GetSupportedLanguagesCallback): void;
|
4489 |
|
4490 | /**
|
4491 | * Calls GetSupportedLanguages.
|
4492 | * @param request GetSupportedLanguagesRequest message or plain object
|
4493 | * @returns Promise
|
4494 | */
|
4495 | public getSupportedLanguages(request: google.cloud.translation.v3beta1.IGetSupportedLanguagesRequest): Promise<google.cloud.translation.v3beta1.SupportedLanguages>;
|
4496 |
|
4497 | /**
|
4498 | * Calls TranslateDocument.
|
4499 | * @param request TranslateDocumentRequest message or plain object
|
4500 | * @param callback Node-style callback called with the error, if any, and TranslateDocumentResponse
|
4501 | */
|
4502 | public translateDocument(request: google.cloud.translation.v3beta1.ITranslateDocumentRequest, callback: google.cloud.translation.v3beta1.TranslationService.TranslateDocumentCallback): void;
|
4503 |
|
4504 | /**
|
4505 | * Calls TranslateDocument.
|
4506 | * @param request TranslateDocumentRequest message or plain object
|
4507 | * @returns Promise
|
4508 | */
|
4509 | public translateDocument(request: google.cloud.translation.v3beta1.ITranslateDocumentRequest): Promise<google.cloud.translation.v3beta1.TranslateDocumentResponse>;
|
4510 |
|
4511 | /**
|
4512 | * Calls BatchTranslateText.
|
4513 | * @param request BatchTranslateTextRequest message or plain object
|
4514 | * @param callback Node-style callback called with the error, if any, and Operation
|
4515 | */
|
4516 | public batchTranslateText(request: google.cloud.translation.v3beta1.IBatchTranslateTextRequest, callback: google.cloud.translation.v3beta1.TranslationService.BatchTranslateTextCallback): void;
|
4517 |
|
4518 | /**
|
4519 | * Calls BatchTranslateText.
|
4520 | * @param request BatchTranslateTextRequest message or plain object
|
4521 | * @returns Promise
|
4522 | */
|
4523 | public batchTranslateText(request: google.cloud.translation.v3beta1.IBatchTranslateTextRequest): Promise<google.longrunning.Operation>;
|
4524 |
|
4525 | /**
|
4526 | * Calls BatchTranslateDocument.
|
4527 | * @param request BatchTranslateDocumentRequest message or plain object
|
4528 | * @param callback Node-style callback called with the error, if any, and Operation
|
4529 | */
|
4530 | public batchTranslateDocument(request: google.cloud.translation.v3beta1.IBatchTranslateDocumentRequest, callback: google.cloud.translation.v3beta1.TranslationService.BatchTranslateDocumentCallback): void;
|
4531 |
|
4532 | /**
|
4533 | * Calls BatchTranslateDocument.
|
4534 | * @param request BatchTranslateDocumentRequest message or plain object
|
4535 | * @returns Promise
|
4536 | */
|
4537 | public batchTranslateDocument(request: google.cloud.translation.v3beta1.IBatchTranslateDocumentRequest): Promise<google.longrunning.Operation>;
|
4538 |
|
4539 | /**
|
4540 | * Calls CreateGlossary.
|
4541 | * @param request CreateGlossaryRequest message or plain object
|
4542 | * @param callback Node-style callback called with the error, if any, and Operation
|
4543 | */
|
4544 | public createGlossary(request: google.cloud.translation.v3beta1.ICreateGlossaryRequest, callback: google.cloud.translation.v3beta1.TranslationService.CreateGlossaryCallback): void;
|
4545 |
|
4546 | /**
|
4547 | * Calls CreateGlossary.
|
4548 | * @param request CreateGlossaryRequest message or plain object
|
4549 | * @returns Promise
|
4550 | */
|
4551 | public createGlossary(request: google.cloud.translation.v3beta1.ICreateGlossaryRequest): Promise<google.longrunning.Operation>;
|
4552 |
|
4553 | /**
|
4554 | * Calls ListGlossaries.
|
4555 | * @param request ListGlossariesRequest message or plain object
|
4556 | * @param callback Node-style callback called with the error, if any, and ListGlossariesResponse
|
4557 | */
|
4558 | public listGlossaries(request: google.cloud.translation.v3beta1.IListGlossariesRequest, callback: google.cloud.translation.v3beta1.TranslationService.ListGlossariesCallback): void;
|
4559 |
|
4560 | /**
|
4561 | * Calls ListGlossaries.
|
4562 | * @param request ListGlossariesRequest message or plain object
|
4563 | * @returns Promise
|
4564 | */
|
4565 | public listGlossaries(request: google.cloud.translation.v3beta1.IListGlossariesRequest): Promise<google.cloud.translation.v3beta1.ListGlossariesResponse>;
|
4566 |
|
4567 | /**
|
4568 | * Calls GetGlossary.
|
4569 | * @param request GetGlossaryRequest message or plain object
|
4570 | * @param callback Node-style callback called with the error, if any, and Glossary
|
4571 | */
|
4572 | public getGlossary(request: google.cloud.translation.v3beta1.IGetGlossaryRequest, callback: google.cloud.translation.v3beta1.TranslationService.GetGlossaryCallback): void;
|
4573 |
|
4574 | /**
|
4575 | * Calls GetGlossary.
|
4576 | * @param request GetGlossaryRequest message or plain object
|
4577 | * @returns Promise
|
4578 | */
|
4579 | public getGlossary(request: google.cloud.translation.v3beta1.IGetGlossaryRequest): Promise<google.cloud.translation.v3beta1.Glossary>;
|
4580 |
|
4581 | /**
|
4582 | * Calls DeleteGlossary.
|
4583 | * @param request DeleteGlossaryRequest message or plain object
|
4584 | * @param callback Node-style callback called with the error, if any, and Operation
|
4585 | */
|
4586 | public deleteGlossary(request: google.cloud.translation.v3beta1.IDeleteGlossaryRequest, callback: google.cloud.translation.v3beta1.TranslationService.DeleteGlossaryCallback): void;
|
4587 |
|
4588 | /**
|
4589 | * Calls DeleteGlossary.
|
4590 | * @param request DeleteGlossaryRequest message or plain object
|
4591 | * @returns Promise
|
4592 | */
|
4593 | public deleteGlossary(request: google.cloud.translation.v3beta1.IDeleteGlossaryRequest): Promise<google.longrunning.Operation>;
|
4594 | }
|
4595 |
|
4596 | namespace TranslationService {
|
4597 |
|
4598 | /**
|
4599 | * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService#translateText}.
|
4600 | * @param error Error, if any
|
4601 | * @param [response] TranslateTextResponse
|
4602 | */
|
4603 | type TranslateTextCallback = (error: (Error|null), response?: google.cloud.translation.v3beta1.TranslateTextResponse) => void;
|
4604 |
|
4605 | /**
|
4606 | * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService#detectLanguage}.
|
4607 | * @param error Error, if any
|
4608 | * @param [response] DetectLanguageResponse
|
4609 | */
|
4610 | type DetectLanguageCallback = (error: (Error|null), response?: google.cloud.translation.v3beta1.DetectLanguageResponse) => void;
|
4611 |
|
4612 | /**
|
4613 | * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService#getSupportedLanguages}.
|
4614 | * @param error Error, if any
|
4615 | * @param [response] SupportedLanguages
|
4616 | */
|
4617 | type GetSupportedLanguagesCallback = (error: (Error|null), response?: google.cloud.translation.v3beta1.SupportedLanguages) => void;
|
4618 |
|
4619 | /**
|
4620 | * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService#translateDocument}.
|
4621 | * @param error Error, if any
|
4622 | * @param [response] TranslateDocumentResponse
|
4623 | */
|
4624 | type TranslateDocumentCallback = (error: (Error|null), response?: google.cloud.translation.v3beta1.TranslateDocumentResponse) => void;
|
4625 |
|
4626 | /**
|
4627 | * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService#batchTranslateText}.
|
4628 | * @param error Error, if any
|
4629 | * @param [response] Operation
|
4630 | */
|
4631 | type BatchTranslateTextCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
|
4632 |
|
4633 | /**
|
4634 | * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService#batchTranslateDocument}.
|
4635 | * @param error Error, if any
|
4636 | * @param [response] Operation
|
4637 | */
|
4638 | type BatchTranslateDocumentCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
|
4639 |
|
4640 | /**
|
4641 | * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService#createGlossary}.
|
4642 | * @param error Error, if any
|
4643 | * @param [response] Operation
|
4644 | */
|
4645 | type CreateGlossaryCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
|
4646 |
|
4647 | /**
|
4648 | * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService#listGlossaries}.
|
4649 | * @param error Error, if any
|
4650 | * @param [response] ListGlossariesResponse
|
4651 | */
|
4652 | type ListGlossariesCallback = (error: (Error|null), response?: google.cloud.translation.v3beta1.ListGlossariesResponse) => void;
|
4653 |
|
4654 | /**
|
4655 | * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService#getGlossary}.
|
4656 | * @param error Error, if any
|
4657 | * @param [response] Glossary
|
4658 | */
|
4659 | type GetGlossaryCallback = (error: (Error|null), response?: google.cloud.translation.v3beta1.Glossary) => void;
|
4660 |
|
4661 | /**
|
4662 | * Callback as used by {@link google.cloud.translation.v3beta1.TranslationService#deleteGlossary}.
|
4663 | * @param error Error, if any
|
4664 | * @param [response] Operation
|
4665 | */
|
4666 | type DeleteGlossaryCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
|
4667 | }
|
4668 |
|
4669 | /** Properties of a TranslateTextGlossaryConfig. */
|
4670 | interface ITranslateTextGlossaryConfig {
|
4671 |
|
4672 | /** TranslateTextGlossaryConfig glossary */
|
4673 | glossary?: (string|null);
|
4674 |
|
4675 | /** TranslateTextGlossaryConfig ignoreCase */
|
4676 | ignoreCase?: (boolean|null);
|
4677 | }
|
4678 |
|
4679 | /** Represents a TranslateTextGlossaryConfig. */
|
4680 | class TranslateTextGlossaryConfig implements ITranslateTextGlossaryConfig {
|
4681 |
|
4682 | /**
|
4683 | * Constructs a new TranslateTextGlossaryConfig.
|
4684 | * @param [properties] Properties to set
|
4685 | */
|
4686 | constructor(properties?: google.cloud.translation.v3beta1.ITranslateTextGlossaryConfig);
|
4687 |
|
4688 | /** TranslateTextGlossaryConfig glossary. */
|
4689 | public glossary: string;
|
4690 |
|
4691 | /** TranslateTextGlossaryConfig ignoreCase. */
|
4692 | public ignoreCase: boolean;
|
4693 |
|
4694 | /**
|
4695 | * Creates a new TranslateTextGlossaryConfig instance using the specified properties.
|
4696 | * @param [properties] Properties to set
|
4697 | * @returns TranslateTextGlossaryConfig instance
|
4698 | */
|
4699 | public static create(properties?: google.cloud.translation.v3beta1.ITranslateTextGlossaryConfig): google.cloud.translation.v3beta1.TranslateTextGlossaryConfig;
|
4700 |
|
4701 | /**
|
4702 | * Encodes the specified TranslateTextGlossaryConfig message. Does not implicitly { google.cloud.translation.v3beta1.TranslateTextGlossaryConfig.verify|verify} messages.
|
4703 | * message TranslateTextGlossaryConfig message or plain object to encode
|
4704 | * [writer] Writer to encode to
|
4705 | * Writer
|
4706 | */
|
4707 | public static encode(message: google.cloud.translation.v3beta1.ITranslateTextGlossaryConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
4708 |
|
4709 | /**
|
4710 | * Encodes the specified TranslateTextGlossaryConfig message, length delimited. Does not implicitly {@link google.cloud.translation.v3beta1.TranslateTextGlossaryConfig.verify|verify} messages.
|
4711 | * @param message TranslateTextGlossaryConfig message or plain object to encode
|
4712 | * @param [writer] Writer to encode to
|
4713 | * @returns Writer
|
4714 | */
|
4715 | public static encodeDelimited(message: google.cloud.translation.v3beta1.ITranslateTextGlossaryConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
4716 |
|
4717 | /**
|
4718 | * Decodes a TranslateTextGlossaryConfig message from the specified reader or buffer.
|
4719 | * @param reader Reader or buffer to decode from
|
4720 | * @param [length] Message length if known beforehand
|
4721 | * @returns TranslateTextGlossaryConfig
|
4722 | * @throws {Error} If the payload is not a reader or valid buffer
|
4723 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
4724 | */
|
4725 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3beta1.TranslateTextGlossaryConfig;
|
4726 |
|
4727 | /**
|
4728 | * Decodes a TranslateTextGlossaryConfig message from the specified reader or buffer, length delimited.
|
4729 | * @param reader Reader or buffer to decode from
|
4730 | * @returns TranslateTextGlossaryConfig
|
4731 | * @throws {Error} If the payload is not a reader or valid buffer
|
4732 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
4733 | */
|
4734 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3beta1.TranslateTextGlossaryConfig;
|
4735 |
|
4736 | /**
|
4737 | * Verifies a TranslateTextGlossaryConfig message.
|
4738 | * @param message Plain object to verify
|
4739 | * @returns `null` if valid, otherwise the reason why it is not
|
4740 | */
|
4741 | public static verify(message: { [k: string]: any }): (string|null);
|
4742 |
|
4743 | /**
|
4744 | * Creates a TranslateTextGlossaryConfig message from a plain object. Also converts values to their respective internal types.
|
4745 | * @param object Plain object
|
4746 | * @returns TranslateTextGlossaryConfig
|
4747 | */
|
4748 | public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3beta1.TranslateTextGlossaryConfig;
|
4749 |
|
4750 | /**
|
4751 | * Creates a plain object from a TranslateTextGlossaryConfig message. Also converts values to other types if specified.
|
4752 | * @param message TranslateTextGlossaryConfig
|
4753 | * @param [options] Conversion options
|
4754 | * @returns Plain object
|
4755 | */
|
4756 | public static toObject(message: google.cloud.translation.v3beta1.TranslateTextGlossaryConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
4757 |
|
4758 | /**
|
4759 | * Converts this TranslateTextGlossaryConfig to JSON.
|
4760 | * @returns JSON object
|
4761 | */
|
4762 | public toJSON(): { [k: string]: any };
|
4763 | }
|
4764 |
|
4765 | /** Properties of a TranslateTextRequest. */
|
4766 | interface ITranslateTextRequest {
|
4767 |
|
4768 | /** TranslateTextRequest contents */
|
4769 | contents?: (string[]|null);
|
4770 |
|
4771 | /** TranslateTextRequest mimeType */
|
4772 | mimeType?: (string|null);
|
4773 |
|
4774 | /** TranslateTextRequest sourceLanguageCode */
|
4775 | sourceLanguageCode?: (string|null);
|
4776 |
|
4777 | /** TranslateTextRequest targetLanguageCode */
|
4778 | targetLanguageCode?: (string|null);
|
4779 |
|
4780 | /** TranslateTextRequest parent */
|
4781 | parent?: (string|null);
|
4782 |
|
4783 | /** TranslateTextRequest model */
|
4784 | model?: (string|null);
|
4785 |
|
4786 | /** TranslateTextRequest glossaryConfig */
|
4787 | glossaryConfig?: (google.cloud.translation.v3beta1.ITranslateTextGlossaryConfig|null);
|
4788 |
|
4789 | /** TranslateTextRequest labels */
|
4790 | labels?: ({ [k: string]: string }|null);
|
4791 | }
|
4792 |
|
4793 | /** Represents a TranslateTextRequest. */
|
4794 | class TranslateTextRequest implements ITranslateTextRequest {
|
4795 |
|
4796 | /**
|
4797 | * Constructs a new TranslateTextRequest.
|
4798 | * @param [properties] Properties to set
|
4799 | */
|
4800 | constructor(properties?: google.cloud.translation.v3beta1.ITranslateTextRequest);
|
4801 |
|
4802 | /** TranslateTextRequest contents. */
|
4803 | public contents: string[];
|
4804 |
|
4805 | /** TranslateTextRequest mimeType. */
|
4806 | public mimeType: string;
|
4807 |
|
4808 | /** TranslateTextRequest sourceLanguageCode. */
|
4809 | public sourceLanguageCode: string;
|
4810 |
|
4811 | /** TranslateTextRequest targetLanguageCode. */
|
4812 | public targetLanguageCode: string;
|
4813 |
|
4814 | /** TranslateTextRequest parent. */
|
4815 | public parent: string;
|
4816 |
|
4817 | /** TranslateTextRequest model. */
|
4818 | public model: string;
|
4819 |
|
4820 | /** TranslateTextRequest glossaryConfig. */
|
4821 | public glossaryConfig?: (google.cloud.translation.v3beta1.ITranslateTextGlossaryConfig|null);
|
4822 |
|
4823 | /** TranslateTextRequest labels. */
|
4824 | public labels: { [k: string]: string };
|
4825 |
|
4826 | /**
|
4827 | * Creates a new TranslateTextRequest instance using the specified properties.
|
4828 | * @param [properties] Properties to set
|
4829 | * @returns TranslateTextRequest instance
|
4830 | */
|
4831 | public static create(properties?: google.cloud.translation.v3beta1.ITranslateTextRequest): google.cloud.translation.v3beta1.TranslateTextRequest;
|
4832 |
|
4833 | /**
|
4834 | * Encodes the specified TranslateTextRequest message. Does not implicitly {@link google.cloud.translation.v3beta1.TranslateTextRequest.verify|verify} messages.
|
4835 | * @param message TranslateTextRequest message or plain object to encode
|
4836 | * @param [writer] Writer to encode to
|
4837 | * @returns Writer
|
4838 | */
|
4839 | public static encode(message: google.cloud.translation.v3beta1.ITranslateTextRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
4840 |
|
4841 | /**
|
4842 | * Encodes the specified TranslateTextRequest message, length delimited. Does not implicitly {@link google.cloud.translation.v3beta1.TranslateTextRequest.verify|verify} messages.
|
4843 | * @param message TranslateTextRequest message or plain object to encode
|
4844 | * @param [writer] Writer to encode to
|
4845 | * @returns Writer
|
4846 | */
|
4847 | public static encodeDelimited(message: google.cloud.translation.v3beta1.ITranslateTextRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
4848 |
|
4849 | /**
|
4850 | * Decodes a TranslateTextRequest message from the specified reader or buffer.
|
4851 | * @param reader Reader or buffer to decode from
|
4852 | * @param [length] Message length if known beforehand
|
4853 | * @returns TranslateTextRequest
|
4854 | * @throws {Error} If the payload is not a reader or valid buffer
|
4855 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
4856 | */
|
4857 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3beta1.TranslateTextRequest;
|
4858 |
|
4859 | /**
|
4860 | * Decodes a TranslateTextRequest message from the specified reader or buffer, length delimited.
|
4861 | * @param reader Reader or buffer to decode from
|
4862 | * @returns TranslateTextRequest
|
4863 | * @throws {Error} If the payload is not a reader or valid buffer
|
4864 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
4865 | */
|
4866 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3beta1.TranslateTextRequest;
|
4867 |
|
4868 | /**
|
4869 | * Verifies a TranslateTextRequest message.
|
4870 | * @param message Plain object to verify
|
4871 | * @returns `null` if valid, otherwise the reason why it is not
|
4872 | */
|
4873 | public static verify(message: { [k: string]: any }): (string|null);
|
4874 |
|
4875 | /**
|
4876 | * Creates a TranslateTextRequest message from a plain object. Also converts values to their respective internal types.
|
4877 | * @param object Plain object
|
4878 | * @returns TranslateTextRequest
|
4879 | */
|
4880 | public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3beta1.TranslateTextRequest;
|
4881 |
|
4882 | /**
|
4883 | * Creates a plain object from a TranslateTextRequest message. Also converts values to other types if specified.
|
4884 | * @param message TranslateTextRequest
|
4885 | * @param [options] Conversion options
|
4886 | * @returns Plain object
|
4887 | */
|
4888 | public static toObject(message: google.cloud.translation.v3beta1.TranslateTextRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
4889 |
|
4890 | /**
|
4891 | * Converts this TranslateTextRequest to JSON.
|
4892 | * @returns JSON object
|
4893 | */
|
4894 | public toJSON(): { [k: string]: any };
|
4895 | }
|
4896 |
|
4897 | /** Properties of a TranslateTextResponse. */
|
4898 | interface ITranslateTextResponse {
|
4899 |
|
4900 | /** TranslateTextResponse translations */
|
4901 | translations?: (google.cloud.translation.v3beta1.ITranslation[]|null);
|
4902 |
|
4903 | /** TranslateTextResponse glossaryTranslations */
|
4904 | glossaryTranslations?: (google.cloud.translation.v3beta1.ITranslation[]|null);
|
4905 | }
|
4906 |
|
4907 | /** Represents a TranslateTextResponse. */
|
4908 | class TranslateTextResponse implements ITranslateTextResponse {
|
4909 |
|
4910 | /**
|
4911 | * Constructs a new TranslateTextResponse.
|
4912 | * @param [properties] Properties to set
|
4913 | */
|
4914 | constructor(properties?: google.cloud.translation.v3beta1.ITranslateTextResponse);
|
4915 |
|
4916 | /** TranslateTextResponse translations. */
|
4917 | public translations: google.cloud.translation.v3beta1.ITranslation[];
|
4918 |
|
4919 | /** TranslateTextResponse glossaryTranslations. */
|
4920 | public glossaryTranslations: google.cloud.translation.v3beta1.ITranslation[];
|
4921 |
|
4922 | /**
|
4923 | * Creates a new TranslateTextResponse instance using the specified properties.
|
4924 | * @param [properties] Properties to set
|
4925 | * @returns TranslateTextResponse instance
|
4926 | */
|
4927 | public static create(properties?: google.cloud.translation.v3beta1.ITranslateTextResponse): google.cloud.translation.v3beta1.TranslateTextResponse;
|
4928 |
|
4929 | /**
|
4930 | * Encodes the specified TranslateTextResponse message. Does not implicitly { google.cloud.translation.v3beta1.TranslateTextResponse.verify|verify} messages.
|
4931 | * message TranslateTextResponse message or plain object to encode
|
4932 | * [writer] Writer to encode to
|
4933 | * Writer
|
4934 | */
|
4935 | public static encode(message: google.cloud.translation.v3beta1.ITranslateTextResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
4936 |
|
4937 | /**
|
4938 | * Encodes the specified TranslateTextResponse message, length delimited. Does not implicitly {@link google.cloud.translation.v3beta1.TranslateTextResponse.verify|verify} messages.
|
4939 | * @param message TranslateTextResponse message or plain object to encode
|
4940 | * @param [writer] Writer to encode to
|
4941 | * @returns Writer
|
4942 | */
|
4943 | public static encodeDelimited(message: google.cloud.translation.v3beta1.ITranslateTextResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
4944 |
|
4945 | /**
|
4946 | * Decodes a TranslateTextResponse message from the specified reader or buffer.
|
4947 | * @param reader Reader or buffer to decode from
|
4948 | * @param [length] Message length if known beforehand
|
4949 | * @returns TranslateTextResponse
|
4950 | * @throws {Error} If the payload is not a reader or valid buffer
|
4951 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
4952 | */
|
4953 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3beta1.TranslateTextResponse;
|
4954 |
|
4955 | /**
|
4956 | * Decodes a TranslateTextResponse message from the specified reader or buffer, length delimited.
|
4957 | * @param reader Reader or buffer to decode from
|
4958 | * @returns TranslateTextResponse
|
4959 | * @throws {Error} If the payload is not a reader or valid buffer
|
4960 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
4961 | */
|
4962 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3beta1.TranslateTextResponse;
|
4963 |
|
4964 | /**
|
4965 | * Verifies a TranslateTextResponse message.
|
4966 | * @param message Plain object to verify
|
4967 | * @returns `null` if valid, otherwise the reason why it is not
|
4968 | */
|
4969 | public static verify(message: { [k: string]: any }): (string|null);
|
4970 |
|
4971 | /**
|
4972 | * Creates a TranslateTextResponse message from a plain object. Also converts values to their respective internal types.
|
4973 | * @param object Plain object
|
4974 | * @returns TranslateTextResponse
|
4975 | */
|
4976 | public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3beta1.TranslateTextResponse;
|
4977 |
|
4978 | /**
|
4979 | * Creates a plain object from a TranslateTextResponse message. Also converts values to other types if specified.
|
4980 | * @param message TranslateTextResponse
|
4981 | * @param [options] Conversion options
|
4982 | * @returns Plain object
|
4983 | */
|
4984 | public static toObject(message: google.cloud.translation.v3beta1.TranslateTextResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
4985 |
|
4986 | /**
|
4987 | * Converts this TranslateTextResponse to JSON.
|
4988 | * @returns JSON object
|
4989 | */
|
4990 | public toJSON(): { [k: string]: any };
|
4991 | }
|
4992 |
|
4993 | /** Properties of a Translation. */
|
4994 | interface ITranslation {
|
4995 |
|
4996 | /** Translation translatedText */
|
4997 | translatedText?: (string|null);
|
4998 |
|
4999 | /** Translation model */
|
5000 | model?: (string|null);
|
5001 |
|
5002 | /** Translation detectedLanguageCode */
|
5003 | detectedLanguageCode?: (string|null);
|
5004 |
|
5005 | /** Translation glossaryConfig */
|
5006 | glossaryConfig?: (google.cloud.translation.v3beta1.ITranslateTextGlossaryConfig|null);
|
5007 | }
|
5008 |
|
5009 | /** Represents a Translation. */
|
5010 | class Translation implements ITranslation {
|
5011 |
|
5012 | /**
|
5013 | * Constructs a new Translation.
|
5014 | * @param [properties] Properties to set
|
5015 | */
|
5016 | constructor(properties?: google.cloud.translation.v3beta1.ITranslation);
|
5017 |
|
5018 | /** Translation translatedText. */
|
5019 | public translatedText: string;
|
5020 |
|
5021 | /** Translation model. */
|
5022 | public model: string;
|
5023 |
|
5024 | /** Translation detectedLanguageCode. */
|
5025 | public detectedLanguageCode: string;
|
5026 |
|
5027 | /** Translation glossaryConfig. */
|
5028 | public glossaryConfig?: (google.cloud.translation.v3beta1.ITranslateTextGlossaryConfig|null);
|
5029 |
|
5030 | /**
|
5031 | * Creates a new Translation instance using the specified properties.
|
5032 | * @param [properties] Properties to set
|
5033 | * @returns Translation instance
|
5034 | */
|
5035 | public static create(properties?: google.cloud.translation.v3beta1.ITranslation): google.cloud.translation.v3beta1.Translation;
|
5036 |
|
5037 | /**
|
5038 | * Encodes the specified Translation message. Does not implicitly { google.cloud.translation.v3beta1.Translation.verify|verify} messages.
|
5039 | * message Translation message or plain object to encode
|
5040 | * [writer] Writer to encode to
|
5041 | * Writer
|
5042 | */
|
5043 | public static encode(message: google.cloud.translation.v3beta1.ITranslation, writer?: $protobuf.Writer): $protobuf.Writer;
|
5044 |
|
5045 | /**
|
5046 | * Encodes the specified Translation message, length delimited. Does not implicitly {@link google.cloud.translation.v3beta1.Translation.verify|verify} messages.
|
5047 | * @param message Translation message or plain object to encode
|
5048 | * @param [writer] Writer to encode to
|
5049 | * @returns Writer
|
5050 | */
|
5051 | public static encodeDelimited(message: google.cloud.translation.v3beta1.ITranslation, writer?: $protobuf.Writer): $protobuf.Writer;
|
5052 |
|
5053 | /**
|
5054 | * Decodes a Translation message from the specified reader or buffer.
|
5055 | * @param reader Reader or buffer to decode from
|
5056 | * @param [length] Message length if known beforehand
|
5057 | * @returns Translation
|
5058 | * @throws {Error} If the payload is not a reader or valid buffer
|
5059 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
5060 | */
|
5061 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3beta1.Translation;
|
5062 |
|
5063 | /**
|
5064 | * Decodes a Translation message from the specified reader or buffer, length delimited.
|
5065 | * @param reader Reader or buffer to decode from
|
5066 | * @returns Translation
|
5067 | * @throws {Error} If the payload is not a reader or valid buffer
|
5068 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
5069 | */
|
5070 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3beta1.Translation;
|
5071 |
|
5072 | /**
|
5073 | * Verifies a Translation message.
|
5074 | * @param message Plain object to verify
|
5075 | * @returns `null` if valid, otherwise the reason why it is not
|
5076 | */
|
5077 | public static verify(message: { [k: string]: any }): (string|null);
|
5078 |
|
5079 | /**
|
5080 | * Creates a Translation message from a plain object. Also converts values to their respective internal types.
|
5081 | * @param object Plain object
|
5082 | * @returns Translation
|
5083 | */
|
5084 | public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3beta1.Translation;
|
5085 |
|
5086 | /**
|
5087 | * Creates a plain object from a Translation message. Also converts values to other types if specified.
|
5088 | * @param message Translation
|
5089 | * @param [options] Conversion options
|
5090 | * @returns Plain object
|
5091 | */
|
5092 | public static toObject(message: google.cloud.translation.v3beta1.Translation, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
5093 |
|
5094 | /**
|
5095 | * Converts this Translation to JSON.
|
5096 | * @returns JSON object
|
5097 | */
|
5098 | public toJSON(): { [k: string]: any };
|
5099 | }
|
5100 |
|
5101 | /** Properties of a DetectLanguageRequest. */
|
5102 | interface IDetectLanguageRequest {
|
5103 |
|
5104 | /** DetectLanguageRequest parent */
|
5105 | parent?: (string|null);
|
5106 |
|
5107 | /** DetectLanguageRequest model */
|
5108 | model?: (string|null);
|
5109 |
|
5110 | /** DetectLanguageRequest content */
|
5111 | content?: (string|null);
|
5112 |
|
5113 | /** DetectLanguageRequest mimeType */
|
5114 | mimeType?: (string|null);
|
5115 |
|
5116 | /** DetectLanguageRequest labels */
|
5117 | labels?: ({ [k: string]: string }|null);
|
5118 | }
|
5119 |
|
5120 | /** Represents a DetectLanguageRequest. */
|
5121 | class DetectLanguageRequest implements IDetectLanguageRequest {
|
5122 |
|
5123 | /**
|
5124 | * Constructs a new DetectLanguageRequest.
|
5125 | * @param [properties] Properties to set
|
5126 | */
|
5127 | constructor(properties?: google.cloud.translation.v3beta1.IDetectLanguageRequest);
|
5128 |
|
5129 | /** DetectLanguageRequest parent. */
|
5130 | public parent: string;
|
5131 |
|
5132 | /** DetectLanguageRequest model. */
|
5133 | public model: string;
|
5134 |
|
5135 | /** DetectLanguageRequest content. */
|
5136 | public content?: (string|null);
|
5137 |
|
5138 | /** DetectLanguageRequest mimeType. */
|
5139 | public mimeType: string;
|
5140 |
|
5141 | /** DetectLanguageRequest labels. */
|
5142 | public labels: { [k: string]: string };
|
5143 |
|
5144 | /** DetectLanguageRequest source. */
|
5145 | public source?: "content";
|
5146 |
|
5147 | /**
|
5148 | * Creates a new DetectLanguageRequest instance using the specified properties.
|
5149 | * @param [properties] Properties to set
|
5150 | * @returns DetectLanguageRequest instance
|
5151 | */
|
5152 | public static create(properties?: google.cloud.translation.v3beta1.IDetectLanguageRequest): google.cloud.translation.v3beta1.DetectLanguageRequest;
|
5153 |
|
5154 | /**
|
5155 | * Encodes the specified DetectLanguageRequest message. Does not implicitly {@link google.cloud.translation.v3beta1.DetectLanguageRequest.verify|verify} messages.
|
5156 | * @param message DetectLanguageRequest message or plain object to encode
|
5157 | * @param [writer] Writer to encode to
|
5158 | * @returns Writer
|
5159 | */
|
5160 | public static encode(message: google.cloud.translation.v3beta1.IDetectLanguageRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
5161 |
|
5162 | /**
|
5163 | * Encodes the specified DetectLanguageRequest message, length delimited. Does not implicitly {@link google.cloud.translation.v3beta1.DetectLanguageRequest.verify|verify} messages.
|
5164 | * @param message DetectLanguageRequest message or plain object to encode
|
5165 | * @param [writer] Writer to encode to
|
5166 | * @returns Writer
|
5167 | */
|
5168 | public static encodeDelimited(message: google.cloud.translation.v3beta1.IDetectLanguageRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
5169 |
|
5170 | /**
|
5171 | * Decodes a DetectLanguageRequest message from the specified reader or buffer.
|
5172 | * @param reader Reader or buffer to decode from
|
5173 | * @param [length] Message length if known beforehand
|
5174 | * @returns DetectLanguageRequest
|
5175 | * @throws {Error} If the payload is not a reader or valid buffer
|
5176 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
5177 | */
|
5178 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3beta1.DetectLanguageRequest;
|
5179 |
|
5180 | /**
|
5181 | * Decodes a DetectLanguageRequest message from the specified reader or buffer, length delimited.
|
5182 | * @param reader Reader or buffer to decode from
|
5183 | * @returns DetectLanguageRequest
|
5184 | * @throws {Error} If the payload is not a reader or valid buffer
|
5185 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
5186 | */
|
5187 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3beta1.DetectLanguageRequest;
|
5188 |
|
5189 | /**
|
5190 | * Verifies a DetectLanguageRequest message.
|
5191 | * @param message Plain object to verify
|
5192 | * @returns `null` if valid, otherwise the reason why it is not
|
5193 | */
|
5194 | public static verify(message: { [k: string]: any }): (string|null);
|
5195 |
|
5196 | /**
|
5197 | * Creates a DetectLanguageRequest message from a plain object. Also converts values to their respective internal types.
|
5198 | * @param object Plain object
|
5199 | * @returns DetectLanguageRequest
|
5200 | */
|
5201 | public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3beta1.DetectLanguageRequest;
|
5202 |
|
5203 | /**
|
5204 | * Creates a plain object from a DetectLanguageRequest message. Also converts values to other types if specified.
|
5205 | * @param message DetectLanguageRequest
|
5206 | * @param [options] Conversion options
|
5207 | * @returns Plain object
|
5208 | */
|
5209 | public static toObject(message: google.cloud.translation.v3beta1.DetectLanguageRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
5210 |
|
5211 | /**
|
5212 | * Converts this DetectLanguageRequest to JSON.
|
5213 | * @returns JSON object
|
5214 | */
|
5215 | public toJSON(): { [k: string]: any };
|
5216 | }
|
5217 |
|
5218 | /** Properties of a DetectedLanguage. */
|
5219 | interface IDetectedLanguage {
|
5220 |
|
5221 | /** DetectedLanguage languageCode */
|
5222 | languageCode?: (string|null);
|
5223 |
|
5224 | /** DetectedLanguage confidence */
|
5225 | confidence?: (number|null);
|
5226 | }
|
5227 |
|
5228 | /** Represents a DetectedLanguage. */
|
5229 | class DetectedLanguage implements IDetectedLanguage {
|
5230 |
|
5231 | /**
|
5232 | * Constructs a new DetectedLanguage.
|
5233 | * @param [properties] Properties to set
|
5234 | */
|
5235 | constructor(properties?: google.cloud.translation.v3beta1.IDetectedLanguage);
|
5236 |
|
5237 | /** DetectedLanguage languageCode. */
|
5238 | public languageCode: string;
|
5239 |
|
5240 | /** DetectedLanguage confidence. */
|
5241 | public confidence: number;
|
5242 |
|
5243 | /**
|
5244 | * Creates a new DetectedLanguage instance using the specified properties.
|
5245 | * @param [properties] Properties to set
|
5246 | * @returns DetectedLanguage instance
|
5247 | */
|
5248 | public static create(properties?: google.cloud.translation.v3beta1.IDetectedLanguage): google.cloud.translation.v3beta1.DetectedLanguage;
|
5249 |
|
5250 | /**
|
5251 | * Encodes the specified DetectedLanguage message. Does not implicitly { google.cloud.translation.v3beta1.DetectedLanguage.verify|verify} messages.
|
5252 | * message DetectedLanguage message or plain object to encode
|
5253 | * [writer] Writer to encode to
|
5254 | * Writer
|
5255 | */
|
5256 | public static encode(message: google.cloud.translation.v3beta1.IDetectedLanguage, writer?: $protobuf.Writer): $protobuf.Writer;
|
5257 |
|
5258 | /**
|
5259 | * Encodes the specified DetectedLanguage message, length delimited. Does not implicitly {@link google.cloud.translation.v3beta1.DetectedLanguage.verify|verify} messages.
|
5260 | * @param message DetectedLanguage message or plain object to encode
|
5261 | * @param [writer] Writer to encode to
|
5262 | * @returns Writer
|
5263 | */
|
5264 | public static encodeDelimited(message: google.cloud.translation.v3beta1.IDetectedLanguage, writer?: $protobuf.Writer): $protobuf.Writer;
|
5265 |
|
5266 | /**
|
5267 | * Decodes a DetectedLanguage message from the specified reader or buffer.
|
5268 | * @param reader Reader or buffer to decode from
|
5269 | * @param [length] Message length if known beforehand
|
5270 | * @returns DetectedLanguage
|
5271 | * @throws {Error} If the payload is not a reader or valid buffer
|
5272 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
5273 | */
|
5274 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3beta1.DetectedLanguage;
|
5275 |
|
5276 | /**
|
5277 | * Decodes a DetectedLanguage message from the specified reader or buffer, length delimited.
|
5278 | * @param reader Reader or buffer to decode from
|
5279 | * @returns DetectedLanguage
|
5280 | * @throws {Error} If the payload is not a reader or valid buffer
|
5281 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
5282 | */
|
5283 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3beta1.DetectedLanguage;
|
5284 |
|
5285 | /**
|
5286 | * Verifies a DetectedLanguage message.
|
5287 | * @param message Plain object to verify
|
5288 | * @returns `null` if valid, otherwise the reason why it is not
|
5289 | */
|
5290 | public static verify(message: { [k: string]: any }): (string|null);
|
5291 |
|
5292 | /**
|
5293 | * Creates a DetectedLanguage message from a plain object. Also converts values to their respective internal types.
|
5294 | * @param object Plain object
|
5295 | * @returns DetectedLanguage
|
5296 | */
|
5297 | public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3beta1.DetectedLanguage;
|
5298 |
|
5299 | /**
|
5300 | * Creates a plain object from a DetectedLanguage message. Also converts values to other types if specified.
|
5301 | * @param message DetectedLanguage
|
5302 | * @param [options] Conversion options
|
5303 | * @returns Plain object
|
5304 | */
|
5305 | public static toObject(message: google.cloud.translation.v3beta1.DetectedLanguage, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
5306 |
|
5307 | /**
|
5308 | * Converts this DetectedLanguage to JSON.
|
5309 | * @returns JSON object
|
5310 | */
|
5311 | public toJSON(): { [k: string]: any };
|
5312 | }
|
5313 |
|
5314 | /** Properties of a DetectLanguageResponse. */
|
5315 | interface IDetectLanguageResponse {
|
5316 |
|
5317 | /** DetectLanguageResponse languages */
|
5318 | languages?: (google.cloud.translation.v3beta1.IDetectedLanguage[]|null);
|
5319 | }
|
5320 |
|
5321 | /** Represents a DetectLanguageResponse. */
|
5322 | class DetectLanguageResponse implements IDetectLanguageResponse {
|
5323 |
|
5324 | /**
|
5325 | * Constructs a new DetectLanguageResponse.
|
5326 | * @param [properties] Properties to set
|
5327 | */
|
5328 | constructor(properties?: google.cloud.translation.v3beta1.IDetectLanguageResponse);
|
5329 |
|
5330 | /** DetectLanguageResponse languages. */
|
5331 | public languages: google.cloud.translation.v3beta1.IDetectedLanguage[];
|
5332 |
|
5333 | /**
|
5334 | * Creates a new DetectLanguageResponse instance using the specified properties.
|
5335 | * @param [properties] Properties to set
|
5336 | * @returns DetectLanguageResponse instance
|
5337 | */
|
5338 | public static create(properties?: google.cloud.translation.v3beta1.IDetectLanguageResponse): google.cloud.translation.v3beta1.DetectLanguageResponse;
|
5339 |
|
5340 | /**
|
5341 | * Encodes the specified DetectLanguageResponse message. Does not implicitly { google.cloud.translation.v3beta1.DetectLanguageResponse.verify|verify} messages.
|
5342 | * message DetectLanguageResponse message or plain object to encode
|
5343 | * [writer] Writer to encode to
|
5344 | * Writer
|
5345 | */
|
5346 | public static encode(message: google.cloud.translation.v3beta1.IDetectLanguageResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
5347 |
|
5348 | /**
|
5349 | * Encodes the specified DetectLanguageResponse message, length delimited. Does not implicitly {@link google.cloud.translation.v3beta1.DetectLanguageResponse.verify|verify} messages.
|
5350 | * @param message DetectLanguageResponse message or plain object to encode
|
5351 | * @param [writer] Writer to encode to
|
5352 | * @returns Writer
|
5353 | */
|
5354 | public static encodeDelimited(message: google.cloud.translation.v3beta1.IDetectLanguageResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
5355 |
|
5356 | /**
|
5357 | * Decodes a DetectLanguageResponse message from the specified reader or buffer.
|
5358 | * @param reader Reader or buffer to decode from
|
5359 | * @param [length] Message length if known beforehand
|
5360 | * @returns DetectLanguageResponse
|
5361 | * @throws {Error} If the payload is not a reader or valid buffer
|
5362 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
5363 | */
|
5364 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3beta1.DetectLanguageResponse;
|
5365 |
|
5366 | /**
|
5367 | * Decodes a DetectLanguageResponse message from the specified reader or buffer, length delimited.
|
5368 | * @param reader Reader or buffer to decode from
|
5369 | * @returns DetectLanguageResponse
|
5370 | * @throws {Error} If the payload is not a reader or valid buffer
|
5371 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
5372 | */
|
5373 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3beta1.DetectLanguageResponse;
|
5374 |
|
5375 | /**
|
5376 | * Verifies a DetectLanguageResponse message.
|
5377 | * @param message Plain object to verify
|
5378 | * @returns `null` if valid, otherwise the reason why it is not
|
5379 | */
|
5380 | public static verify(message: { [k: string]: any }): (string|null);
|
5381 |
|
5382 | /**
|
5383 | * Creates a DetectLanguageResponse message from a plain object. Also converts values to their respective internal types.
|
5384 | * @param object Plain object
|
5385 | * @returns DetectLanguageResponse
|
5386 | */
|
5387 | public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3beta1.DetectLanguageResponse;
|
5388 |
|
5389 | /**
|
5390 | * Creates a plain object from a DetectLanguageResponse message. Also converts values to other types if specified.
|
5391 | * @param message DetectLanguageResponse
|
5392 | * @param [options] Conversion options
|
5393 | * @returns Plain object
|
5394 | */
|
5395 | public static toObject(message: google.cloud.translation.v3beta1.DetectLanguageResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
5396 |
|
5397 | /**
|
5398 | * Converts this DetectLanguageResponse to JSON.
|
5399 | * @returns JSON object
|
5400 | */
|
5401 | public toJSON(): { [k: string]: any };
|
5402 | }
|
5403 |
|
5404 | /** Properties of a GetSupportedLanguagesRequest. */
|
5405 | interface IGetSupportedLanguagesRequest {
|
5406 |
|
5407 | /** GetSupportedLanguagesRequest parent */
|
5408 | parent?: (string|null);
|
5409 |
|
5410 | /** GetSupportedLanguagesRequest displayLanguageCode */
|
5411 | displayLanguageCode?: (string|null);
|
5412 |
|
5413 | /** GetSupportedLanguagesRequest model */
|
5414 | model?: (string|null);
|
5415 | }
|
5416 |
|
5417 | /** Represents a GetSupportedLanguagesRequest. */
|
5418 | class GetSupportedLanguagesRequest implements IGetSupportedLanguagesRequest {
|
5419 |
|
5420 | /**
|
5421 | * Constructs a new GetSupportedLanguagesRequest.
|
5422 | * @param [properties] Properties to set
|
5423 | */
|
5424 | constructor(properties?: google.cloud.translation.v3beta1.IGetSupportedLanguagesRequest);
|
5425 |
|
5426 | /** GetSupportedLanguagesRequest parent. */
|
5427 | public parent: string;
|
5428 |
|
5429 | /** GetSupportedLanguagesRequest displayLanguageCode. */
|
5430 | public displayLanguageCode: string;
|
5431 |
|
5432 | /** GetSupportedLanguagesRequest model. */
|
5433 | public model: string;
|
5434 |
|
5435 | /**
|
5436 | * Creates a new GetSupportedLanguagesRequest instance using the specified properties.
|
5437 | * @param [properties] Properties to set
|
5438 | * @returns GetSupportedLanguagesRequest instance
|
5439 | */
|
5440 | public static create(properties?: google.cloud.translation.v3beta1.IGetSupportedLanguagesRequest): google.cloud.translation.v3beta1.GetSupportedLanguagesRequest;
|
5441 |
|
5442 | /**
|
5443 | * Encodes the specified GetSupportedLanguagesRequest message. Does not implicitly { google.cloud.translation.v3beta1.GetSupportedLanguagesRequest.verify|verify} messages.
|
5444 | * message GetSupportedLanguagesRequest message or plain object to encode
|
5445 | * [writer] Writer to encode to
|
5446 | * Writer
|
5447 | */
|
5448 | public static encode(message: google.cloud.translation.v3beta1.IGetSupportedLanguagesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
5449 |
|
5450 | /**
|
5451 | * Encodes the specified GetSupportedLanguagesRequest message, length delimited. Does not implicitly {@link google.cloud.translation.v3beta1.GetSupportedLanguagesRequest.verify|verify} messages.
|
5452 | * @param message GetSupportedLanguagesRequest message or plain object to encode
|
5453 | * @param [writer] Writer to encode to
|
5454 | * @returns Writer
|
5455 | */
|
5456 | public static encodeDelimited(message: google.cloud.translation.v3beta1.IGetSupportedLanguagesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
5457 |
|
5458 | /**
|
5459 | * Decodes a GetSupportedLanguagesRequest message from the specified reader or buffer.
|
5460 | * @param reader Reader or buffer to decode from
|
5461 | * @param [length] Message length if known beforehand
|
5462 | * @returns GetSupportedLanguagesRequest
|
5463 | * @throws {Error} If the payload is not a reader or valid buffer
|
5464 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
5465 | */
|
5466 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3beta1.GetSupportedLanguagesRequest;
|
5467 |
|
5468 | /**
|
5469 | * Decodes a GetSupportedLanguagesRequest message from the specified reader or buffer, length delimited.
|
5470 | * @param reader Reader or buffer to decode from
|
5471 | * @returns GetSupportedLanguagesRequest
|
5472 | * @throws {Error} If the payload is not a reader or valid buffer
|
5473 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
5474 | */
|
5475 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3beta1.GetSupportedLanguagesRequest;
|
5476 |
|
5477 | /**
|
5478 | * Verifies a GetSupportedLanguagesRequest message.
|
5479 | * @param message Plain object to verify
|
5480 | * @returns `null` if valid, otherwise the reason why it is not
|
5481 | */
|
5482 | public static verify(message: { [k: string]: any }): (string|null);
|
5483 |
|
5484 | /**
|
5485 | * Creates a GetSupportedLanguagesRequest message from a plain object. Also converts values to their respective internal types.
|
5486 | * @param object Plain object
|
5487 | * @returns GetSupportedLanguagesRequest
|
5488 | */
|
5489 | public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3beta1.GetSupportedLanguagesRequest;
|
5490 |
|
5491 | /**
|
5492 | * Creates a plain object from a GetSupportedLanguagesRequest message. Also converts values to other types if specified.
|
5493 | * @param message GetSupportedLanguagesRequest
|
5494 | * @param [options] Conversion options
|
5495 | * @returns Plain object
|
5496 | */
|
5497 | public static toObject(message: google.cloud.translation.v3beta1.GetSupportedLanguagesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
5498 |
|
5499 | /**
|
5500 | * Converts this GetSupportedLanguagesRequest to JSON.
|
5501 | * @returns JSON object
|
5502 | */
|
5503 | public toJSON(): { [k: string]: any };
|
5504 | }
|
5505 |
|
5506 | /** Properties of a SupportedLanguages. */
|
5507 | interface ISupportedLanguages {
|
5508 |
|
5509 | /** SupportedLanguages languages */
|
5510 | languages?: (google.cloud.translation.v3beta1.ISupportedLanguage[]|null);
|
5511 | }
|
5512 |
|
5513 | /** Represents a SupportedLanguages. */
|
5514 | class SupportedLanguages implements ISupportedLanguages {
|
5515 |
|
5516 | /**
|
5517 | * Constructs a new SupportedLanguages.
|
5518 | * @param [properties] Properties to set
|
5519 | */
|
5520 | constructor(properties?: google.cloud.translation.v3beta1.ISupportedLanguages);
|
5521 |
|
5522 | /** SupportedLanguages languages. */
|
5523 | public languages: google.cloud.translation.v3beta1.ISupportedLanguage[];
|
5524 |
|
5525 | /**
|
5526 | * Creates a new SupportedLanguages instance using the specified properties.
|
5527 | * @param [properties] Properties to set
|
5528 | * @returns SupportedLanguages instance
|
5529 | */
|
5530 | public static create(properties?: google.cloud.translation.v3beta1.ISupportedLanguages): google.cloud.translation.v3beta1.SupportedLanguages;
|
5531 |
|
5532 | /**
|
5533 | * Encodes the specified SupportedLanguages message. Does not implicitly { google.cloud.translation.v3beta1.SupportedLanguages.verify|verify} messages.
|
5534 | * message SupportedLanguages message or plain object to encode
|
5535 | * [writer] Writer to encode to
|
5536 | * Writer
|
5537 | */
|
5538 | public static encode(message: google.cloud.translation.v3beta1.ISupportedLanguages, writer?: $protobuf.Writer): $protobuf.Writer;
|
5539 |
|
5540 | /**
|
5541 | * Encodes the specified SupportedLanguages message, length delimited. Does not implicitly {@link google.cloud.translation.v3beta1.SupportedLanguages.verify|verify} messages.
|
5542 | * @param message SupportedLanguages message or plain object to encode
|
5543 | * @param [writer] Writer to encode to
|
5544 | * @returns Writer
|
5545 | */
|
5546 | public static encodeDelimited(message: google.cloud.translation.v3beta1.ISupportedLanguages, writer?: $protobuf.Writer): $protobuf.Writer;
|
5547 |
|
5548 | /**
|
5549 | * Decodes a SupportedLanguages message from the specified reader or buffer.
|
5550 | * @param reader Reader or buffer to decode from
|
5551 | * @param [length] Message length if known beforehand
|
5552 | * @returns SupportedLanguages
|
5553 | * @throws {Error} If the payload is not a reader or valid buffer
|
5554 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
5555 | */
|
5556 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3beta1.SupportedLanguages;
|
5557 |
|
5558 | /**
|
5559 | * Decodes a SupportedLanguages message from the specified reader or buffer, length delimited.
|
5560 | * @param reader Reader or buffer to decode from
|
5561 | * @returns SupportedLanguages
|
5562 | * @throws {Error} If the payload is not a reader or valid buffer
|
5563 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
5564 | */
|
5565 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3beta1.SupportedLanguages;
|
5566 |
|
5567 | /**
|
5568 | * Verifies a SupportedLanguages message.
|
5569 | * @param message Plain object to verify
|
5570 | * @returns `null` if valid, otherwise the reason why it is not
|
5571 | */
|
5572 | public static verify(message: { [k: string]: any }): (string|null);
|
5573 |
|
5574 | /**
|
5575 | * Creates a SupportedLanguages message from a plain object. Also converts values to their respective internal types.
|
5576 | * @param object Plain object
|
5577 | * @returns SupportedLanguages
|
5578 | */
|
5579 | public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3beta1.SupportedLanguages;
|
5580 |
|
5581 | /**
|
5582 | * Creates a plain object from a SupportedLanguages message. Also converts values to other types if specified.
|
5583 | * @param message SupportedLanguages
|
5584 | * @param [options] Conversion options
|
5585 | * @returns Plain object
|
5586 | */
|
5587 | public static toObject(message: google.cloud.translation.v3beta1.SupportedLanguages, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
5588 |
|
5589 | /**
|
5590 | * Converts this SupportedLanguages to JSON.
|
5591 | * @returns JSON object
|
5592 | */
|
5593 | public toJSON(): { [k: string]: any };
|
5594 | }
|
5595 |
|
5596 | /** Properties of a SupportedLanguage. */
|
5597 | interface ISupportedLanguage {
|
5598 |
|
5599 | /** SupportedLanguage languageCode */
|
5600 | languageCode?: (string|null);
|
5601 |
|
5602 | /** SupportedLanguage displayName */
|
5603 | displayName?: (string|null);
|
5604 |
|
5605 | /** SupportedLanguage supportSource */
|
5606 | supportSource?: (boolean|null);
|
5607 |
|
5608 | /** SupportedLanguage supportTarget */
|
5609 | supportTarget?: (boolean|null);
|
5610 | }
|
5611 |
|
5612 | /** Represents a SupportedLanguage. */
|
5613 | class SupportedLanguage implements ISupportedLanguage {
|
5614 |
|
5615 | /**
|
5616 | * Constructs a new SupportedLanguage.
|
5617 | * @param [properties] Properties to set
|
5618 | */
|
5619 | constructor(properties?: google.cloud.translation.v3beta1.ISupportedLanguage);
|
5620 |
|
5621 | /** SupportedLanguage languageCode. */
|
5622 | public languageCode: string;
|
5623 |
|
5624 | /** SupportedLanguage displayName. */
|
5625 | public displayName: string;
|
5626 |
|
5627 | /** SupportedLanguage supportSource. */
|
5628 | public supportSource: boolean;
|
5629 |
|
5630 | /** SupportedLanguage supportTarget. */
|
5631 | public supportTarget: boolean;
|
5632 |
|
5633 | /**
|
5634 | * Creates a new SupportedLanguage instance using the specified properties.
|
5635 | * @param [properties] Properties to set
|
5636 | * @returns SupportedLanguage instance
|
5637 | */
|
5638 | public static create(properties?: google.cloud.translation.v3beta1.ISupportedLanguage): google.cloud.translation.v3beta1.SupportedLanguage;
|
5639 |
|
5640 | /**
|
5641 | * Encodes the specified SupportedLanguage message. Does not implicitly { google.cloud.translation.v3beta1.SupportedLanguage.verify|verify} messages.
|
5642 | * message SupportedLanguage message or plain object to encode
|
5643 | * [writer] Writer to encode to
|
5644 | * Writer
|
5645 | */
|
5646 | public static encode(message: google.cloud.translation.v3beta1.ISupportedLanguage, writer?: $protobuf.Writer): $protobuf.Writer;
|
5647 |
|
5648 | /**
|
5649 | * Encodes the specified SupportedLanguage message, length delimited. Does not implicitly {@link google.cloud.translation.v3beta1.SupportedLanguage.verify|verify} messages.
|
5650 | * @param message SupportedLanguage message or plain object to encode
|
5651 | * @param [writer] Writer to encode to
|
5652 | * @returns Writer
|
5653 | */
|
5654 | public static encodeDelimited(message: google.cloud.translation.v3beta1.ISupportedLanguage, writer?: $protobuf.Writer): $protobuf.Writer;
|
5655 |
|
5656 | /**
|
5657 | * Decodes a SupportedLanguage message from the specified reader or buffer.
|
5658 | * @param reader Reader or buffer to decode from
|
5659 | * @param [length] Message length if known beforehand
|
5660 | * @returns SupportedLanguage
|
5661 | * @throws {Error} If the payload is not a reader or valid buffer
|
5662 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
5663 | */
|
5664 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3beta1.SupportedLanguage;
|
5665 |
|
5666 | /**
|
5667 | * Decodes a SupportedLanguage message from the specified reader or buffer, length delimited.
|
5668 | * @param reader Reader or buffer to decode from
|
5669 | * @returns SupportedLanguage
|
5670 | * @throws {Error} If the payload is not a reader or valid buffer
|
5671 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
5672 | */
|
5673 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3beta1.SupportedLanguage;
|
5674 |
|
5675 | /**
|
5676 | * Verifies a SupportedLanguage message.
|
5677 | * @param message Plain object to verify
|
5678 | * @returns `null` if valid, otherwise the reason why it is not
|
5679 | */
|
5680 | public static verify(message: { [k: string]: any }): (string|null);
|
5681 |
|
5682 | /**
|
5683 | * Creates a SupportedLanguage message from a plain object. Also converts values to their respective internal types.
|
5684 | * @param object Plain object
|
5685 | * @returns SupportedLanguage
|
5686 | */
|
5687 | public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3beta1.SupportedLanguage;
|
5688 |
|
5689 | /**
|
5690 | * Creates a plain object from a SupportedLanguage message. Also converts values to other types if specified.
|
5691 | * @param message SupportedLanguage
|
5692 | * @param [options] Conversion options
|
5693 | * @returns Plain object
|
5694 | */
|
5695 | public static toObject(message: google.cloud.translation.v3beta1.SupportedLanguage, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
5696 |
|
5697 | /**
|
5698 | * Converts this SupportedLanguage to JSON.
|
5699 | * @returns JSON object
|
5700 | */
|
5701 | public toJSON(): { [k: string]: any };
|
5702 | }
|
5703 |
|
5704 | /** Properties of a GcsSource. */
|
5705 | interface IGcsSource {
|
5706 |
|
5707 | /** GcsSource inputUri */
|
5708 | inputUri?: (string|null);
|
5709 | }
|
5710 |
|
5711 | /** Represents a GcsSource. */
|
5712 | class GcsSource implements IGcsSource {
|
5713 |
|
5714 | /**
|
5715 | * Constructs a new GcsSource.
|
5716 | * @param [properties] Properties to set
|
5717 | */
|
5718 | constructor(properties?: google.cloud.translation.v3beta1.IGcsSource);
|
5719 |
|
5720 | /** GcsSource inputUri. */
|
5721 | public inputUri: string;
|
5722 |
|
5723 | /**
|
5724 | * Creates a new GcsSource instance using the specified properties.
|
5725 | * @param [properties] Properties to set
|
5726 | * @returns GcsSource instance
|
5727 | */
|
5728 | public static create(properties?: google.cloud.translation.v3beta1.IGcsSource): google.cloud.translation.v3beta1.GcsSource;
|
5729 |
|
5730 | /**
|
5731 | * Encodes the specified GcsSource message. Does not implicitly { google.cloud.translation.v3beta1.GcsSource.verify|verify} messages.
|
5732 | * message GcsSource message or plain object to encode
|
5733 | * [writer] Writer to encode to
|
5734 | * Writer
|
5735 | */
|
5736 | public static encode(message: google.cloud.translation.v3beta1.IGcsSource, writer?: $protobuf.Writer): $protobuf.Writer;
|
5737 |
|
5738 | /**
|
5739 | * Encodes the specified GcsSource message, length delimited. Does not implicitly {@link google.cloud.translation.v3beta1.GcsSource.verify|verify} messages.
|
5740 | * @param message GcsSource message or plain object to encode
|
5741 | * @param [writer] Writer to encode to
|
5742 | * @returns Writer
|
5743 | */
|
5744 | public static encodeDelimited(message: google.cloud.translation.v3beta1.IGcsSource, writer?: $protobuf.Writer): $protobuf.Writer;
|
5745 |
|
5746 | /**
|
5747 | * Decodes a GcsSource message from the specified reader or buffer.
|
5748 | * @param reader Reader or buffer to decode from
|
5749 | * @param [length] Message length if known beforehand
|
5750 | * @returns GcsSource
|
5751 | * @throws {Error} If the payload is not a reader or valid buffer
|
5752 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
5753 | */
|
5754 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3beta1.GcsSource;
|
5755 |
|
5756 | /**
|
5757 | * Decodes a GcsSource message from the specified reader or buffer, length delimited.
|
5758 | * @param reader Reader or buffer to decode from
|
5759 | * @returns GcsSource
|
5760 | * @throws {Error} If the payload is not a reader or valid buffer
|
5761 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
5762 | */
|
5763 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3beta1.GcsSource;
|
5764 |
|
5765 | /**
|
5766 | * Verifies a GcsSource message.
|
5767 | * @param message Plain object to verify
|
5768 | * @returns `null` if valid, otherwise the reason why it is not
|
5769 | */
|
5770 | public static verify(message: { [k: string]: any }): (string|null);
|
5771 |
|
5772 | /**
|
5773 | * Creates a GcsSource message from a plain object. Also converts values to their respective internal types.
|
5774 | * @param object Plain object
|
5775 | * @returns GcsSource
|
5776 | */
|
5777 | public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3beta1.GcsSource;
|
5778 |
|
5779 | /**
|
5780 | * Creates a plain object from a GcsSource message. Also converts values to other types if specified.
|
5781 | * @param message GcsSource
|
5782 | * @param [options] Conversion options
|
5783 | * @returns Plain object
|
5784 | */
|
5785 | public static toObject(message: google.cloud.translation.v3beta1.GcsSource, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
5786 |
|
5787 | /**
|
5788 | * Converts this GcsSource to JSON.
|
5789 | * @returns JSON object
|
5790 | */
|
5791 | public toJSON(): { [k: string]: any };
|
5792 | }
|
5793 |
|
5794 | /** Properties of an InputConfig. */
|
5795 | interface IInputConfig {
|
5796 |
|
5797 | /** InputConfig mimeType */
|
5798 | mimeType?: (string|null);
|
5799 |
|
5800 | /** InputConfig gcsSource */
|
5801 | gcsSource?: (google.cloud.translation.v3beta1.IGcsSource|null);
|
5802 | }
|
5803 |
|
5804 | /** Represents an InputConfig. */
|
5805 | class InputConfig implements IInputConfig {
|
5806 |
|
5807 | /**
|
5808 | * Constructs a new InputConfig.
|
5809 | * @param [properties] Properties to set
|
5810 | */
|
5811 | constructor(properties?: google.cloud.translation.v3beta1.IInputConfig);
|
5812 |
|
5813 | /** InputConfig mimeType. */
|
5814 | public mimeType: string;
|
5815 |
|
5816 | /** InputConfig gcsSource. */
|
5817 | public gcsSource?: (google.cloud.translation.v3beta1.IGcsSource|null);
|
5818 |
|
5819 | /** InputConfig source. */
|
5820 | public source?: "gcsSource";
|
5821 |
|
5822 | /**
|
5823 | * Creates a new InputConfig instance using the specified properties.
|
5824 | * @param [properties] Properties to set
|
5825 | * @returns InputConfig instance
|
5826 | */
|
5827 | public static create(properties?: google.cloud.translation.v3beta1.IInputConfig): google.cloud.translation.v3beta1.InputConfig;
|
5828 |
|
5829 | /**
|
5830 | * Encodes the specified InputConfig message. Does not implicitly { google.cloud.translation.v3beta1.InputConfig.verify|verify} messages.
|
5831 | * message InputConfig message or plain object to encode
|
5832 | * [writer] Writer to encode to
|
5833 | * Writer
|
5834 | */
|
5835 | public static encode(message: google.cloud.translation.v3beta1.IInputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
5836 |
|
5837 | /**
|
5838 | * Encodes the specified InputConfig message, length delimited. Does not implicitly {@link google.cloud.translation.v3beta1.InputConfig.verify|verify} messages.
|
5839 | * @param message InputConfig message or plain object to encode
|
5840 | * @param [writer] Writer to encode to
|
5841 | * @returns Writer
|
5842 | */
|
5843 | public static encodeDelimited(message: google.cloud.translation.v3beta1.IInputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
5844 |
|
5845 | /**
|
5846 | * Decodes an InputConfig message from the specified reader or buffer.
|
5847 | * @param reader Reader or buffer to decode from
|
5848 | * @param [length] Message length if known beforehand
|
5849 | * @returns InputConfig
|
5850 | * @throws {Error} If the payload is not a reader or valid buffer
|
5851 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
5852 | */
|
5853 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3beta1.InputConfig;
|
5854 |
|
5855 | /**
|
5856 | * Decodes an InputConfig message from the specified reader or buffer, length delimited.
|
5857 | * @param reader Reader or buffer to decode from
|
5858 | * @returns InputConfig
|
5859 | * @throws {Error} If the payload is not a reader or valid buffer
|
5860 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
5861 | */
|
5862 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3beta1.InputConfig;
|
5863 |
|
5864 | /**
|
5865 | * Verifies an InputConfig message.
|
5866 | * @param message Plain object to verify
|
5867 | * @returns `null` if valid, otherwise the reason why it is not
|
5868 | */
|
5869 | public static verify(message: { [k: string]: any }): (string|null);
|
5870 |
|
5871 | /**
|
5872 | * Creates an InputConfig message from a plain object. Also converts values to their respective internal types.
|
5873 | * @param object Plain object
|
5874 | * @returns InputConfig
|
5875 | */
|
5876 | public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3beta1.InputConfig;
|
5877 |
|
5878 | /**
|
5879 | * Creates a plain object from an InputConfig message. Also converts values to other types if specified.
|
5880 | * @param message InputConfig
|
5881 | * @param [options] Conversion options
|
5882 | * @returns Plain object
|
5883 | */
|
5884 | public static toObject(message: google.cloud.translation.v3beta1.InputConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
5885 |
|
5886 | /**
|
5887 | * Converts this InputConfig to JSON.
|
5888 | * @returns JSON object
|
5889 | */
|
5890 | public toJSON(): { [k: string]: any };
|
5891 | }
|
5892 |
|
5893 | /** Properties of a GcsDestination. */
|
5894 | interface IGcsDestination {
|
5895 |
|
5896 | /** GcsDestination outputUriPrefix */
|
5897 | outputUriPrefix?: (string|null);
|
5898 | }
|
5899 |
|
5900 | /** Represents a GcsDestination. */
|
5901 | class GcsDestination implements IGcsDestination {
|
5902 |
|
5903 | /**
|
5904 | * Constructs a new GcsDestination.
|
5905 | * @param [properties] Properties to set
|
5906 | */
|
5907 | constructor(properties?: google.cloud.translation.v3beta1.IGcsDestination);
|
5908 |
|
5909 | /** GcsDestination outputUriPrefix. */
|
5910 | public outputUriPrefix: string;
|
5911 |
|
5912 | /**
|
5913 | * Creates a new GcsDestination instance using the specified properties.
|
5914 | * @param [properties] Properties to set
|
5915 | * @returns GcsDestination instance
|
5916 | */
|
5917 | public static create(properties?: google.cloud.translation.v3beta1.IGcsDestination): google.cloud.translation.v3beta1.GcsDestination;
|
5918 |
|
5919 | /**
|
5920 | * Encodes the specified GcsDestination message. Does not implicitly { google.cloud.translation.v3beta1.GcsDestination.verify|verify} messages.
|
5921 | * message GcsDestination message or plain object to encode
|
5922 | * [writer] Writer to encode to
|
5923 | * Writer
|
5924 | */
|
5925 | public static encode(message: google.cloud.translation.v3beta1.IGcsDestination, writer?: $protobuf.Writer): $protobuf.Writer;
|
5926 |
|
5927 | /**
|
5928 | * Encodes the specified GcsDestination message, length delimited. Does not implicitly {@link google.cloud.translation.v3beta1.GcsDestination.verify|verify} messages.
|
5929 | * @param message GcsDestination message or plain object to encode
|
5930 | * @param [writer] Writer to encode to
|
5931 | * @returns Writer
|
5932 | */
|
5933 | public static encodeDelimited(message: google.cloud.translation.v3beta1.IGcsDestination, writer?: $protobuf.Writer): $protobuf.Writer;
|
5934 |
|
5935 | /**
|
5936 | * Decodes a GcsDestination message from the specified reader or buffer.
|
5937 | * @param reader Reader or buffer to decode from
|
5938 | * @param [length] Message length if known beforehand
|
5939 | * @returns GcsDestination
|
5940 | * @throws {Error} If the payload is not a reader or valid buffer
|
5941 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
5942 | */
|
5943 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3beta1.GcsDestination;
|
5944 |
|
5945 | /**
|
5946 | * Decodes a GcsDestination message from the specified reader or buffer, length delimited.
|
5947 | * @param reader Reader or buffer to decode from
|
5948 | * @returns GcsDestination
|
5949 | * @throws {Error} If the payload is not a reader or valid buffer
|
5950 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
5951 | */
|
5952 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3beta1.GcsDestination;
|
5953 |
|
5954 | /**
|
5955 | * Verifies a GcsDestination message.
|
5956 | * @param message Plain object to verify
|
5957 | * @returns `null` if valid, otherwise the reason why it is not
|
5958 | */
|
5959 | public static verify(message: { [k: string]: any }): (string|null);
|
5960 |
|
5961 | /**
|
5962 | * Creates a GcsDestination message from a plain object. Also converts values to their respective internal types.
|
5963 | * @param object Plain object
|
5964 | * @returns GcsDestination
|
5965 | */
|
5966 | public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3beta1.GcsDestination;
|
5967 |
|
5968 | /**
|
5969 | * Creates a plain object from a GcsDestination message. Also converts values to other types if specified.
|
5970 | * @param message GcsDestination
|
5971 | * @param [options] Conversion options
|
5972 | * @returns Plain object
|
5973 | */
|
5974 | public static toObject(message: google.cloud.translation.v3beta1.GcsDestination, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
5975 |
|
5976 | /**
|
5977 | * Converts this GcsDestination to JSON.
|
5978 | * @returns JSON object
|
5979 | */
|
5980 | public toJSON(): { [k: string]: any };
|
5981 | }
|
5982 |
|
5983 | /** Properties of an OutputConfig. */
|
5984 | interface IOutputConfig {
|
5985 |
|
5986 | /** OutputConfig gcsDestination */
|
5987 | gcsDestination?: (google.cloud.translation.v3beta1.IGcsDestination|null);
|
5988 | }
|
5989 |
|
5990 | /** Represents an OutputConfig. */
|
5991 | class OutputConfig implements IOutputConfig {
|
5992 |
|
5993 | /**
|
5994 | * Constructs a new OutputConfig.
|
5995 | * @param [properties] Properties to set
|
5996 | */
|
5997 | constructor(properties?: google.cloud.translation.v3beta1.IOutputConfig);
|
5998 |
|
5999 | /** OutputConfig gcsDestination. */
|
6000 | public gcsDestination?: (google.cloud.translation.v3beta1.IGcsDestination|null);
|
6001 |
|
6002 | /** OutputConfig destination. */
|
6003 | public destination?: "gcsDestination";
|
6004 |
|
6005 | /**
|
6006 | * Creates a new OutputConfig instance using the specified properties.
|
6007 | * @param [properties] Properties to set
|
6008 | * @returns OutputConfig instance
|
6009 | */
|
6010 | public static create(properties?: google.cloud.translation.v3beta1.IOutputConfig): google.cloud.translation.v3beta1.OutputConfig;
|
6011 |
|
6012 | /**
|
6013 | * Encodes the specified OutputConfig message. Does not implicitly { google.cloud.translation.v3beta1.OutputConfig.verify|verify} messages.
|
6014 | * message OutputConfig message or plain object to encode
|
6015 | * [writer] Writer to encode to
|
6016 | * Writer
|
6017 | */
|
6018 | public static encode(message: google.cloud.translation.v3beta1.IOutputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
6019 |
|
6020 | /**
|
6021 | * Encodes the specified OutputConfig message, length delimited. Does not implicitly {@link google.cloud.translation.v3beta1.OutputConfig.verify|verify} messages.
|
6022 | * @param message OutputConfig message or plain object to encode
|
6023 | * @param [writer] Writer to encode to
|
6024 | * @returns Writer
|
6025 | */
|
6026 | public static encodeDelimited(message: google.cloud.translation.v3beta1.IOutputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
6027 |
|
6028 | /**
|
6029 | * Decodes an OutputConfig message from the specified reader or buffer.
|
6030 | * @param reader Reader or buffer to decode from
|
6031 | * @param [length] Message length if known beforehand
|
6032 | * @returns OutputConfig
|
6033 | * @throws {Error} If the payload is not a reader or valid buffer
|
6034 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
6035 | */
|
6036 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3beta1.OutputConfig;
|
6037 |
|
6038 | /**
|
6039 | * Decodes an OutputConfig message from the specified reader or buffer, length delimited.
|
6040 | * @param reader Reader or buffer to decode from
|
6041 | * @returns OutputConfig
|
6042 | * @throws {Error} If the payload is not a reader or valid buffer
|
6043 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
6044 | */
|
6045 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3beta1.OutputConfig;
|
6046 |
|
6047 | /**
|
6048 | * Verifies an OutputConfig message.
|
6049 | * @param message Plain object to verify
|
6050 | * @returns `null` if valid, otherwise the reason why it is not
|
6051 | */
|
6052 | public static verify(message: { [k: string]: any }): (string|null);
|
6053 |
|
6054 | /**
|
6055 | * Creates an OutputConfig message from a plain object. Also converts values to their respective internal types.
|
6056 | * @param object Plain object
|
6057 | * @returns OutputConfig
|
6058 | */
|
6059 | public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3beta1.OutputConfig;
|
6060 |
|
6061 | /**
|
6062 | * Creates a plain object from an OutputConfig message. Also converts values to other types if specified.
|
6063 | * @param message OutputConfig
|
6064 | * @param [options] Conversion options
|
6065 | * @returns Plain object
|
6066 | */
|
6067 | public static toObject(message: google.cloud.translation.v3beta1.OutputConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
6068 |
|
6069 | /**
|
6070 | * Converts this OutputConfig to JSON.
|
6071 | * @returns JSON object
|
6072 | */
|
6073 | public toJSON(): { [k: string]: any };
|
6074 | }
|
6075 |
|
6076 | /** Properties of a DocumentInputConfig. */
|
6077 | interface IDocumentInputConfig {
|
6078 |
|
6079 | /** DocumentInputConfig content */
|
6080 | content?: (Uint8Array|string|null);
|
6081 |
|
6082 | /** DocumentInputConfig gcsSource */
|
6083 | gcsSource?: (google.cloud.translation.v3beta1.IGcsSource|null);
|
6084 |
|
6085 | /** DocumentInputConfig mimeType */
|
6086 | mimeType?: (string|null);
|
6087 | }
|
6088 |
|
6089 | /** Represents a DocumentInputConfig. */
|
6090 | class DocumentInputConfig implements IDocumentInputConfig {
|
6091 |
|
6092 | /**
|
6093 | * Constructs a new DocumentInputConfig.
|
6094 | * @param [properties] Properties to set
|
6095 | */
|
6096 | constructor(properties?: google.cloud.translation.v3beta1.IDocumentInputConfig);
|
6097 |
|
6098 | /** DocumentInputConfig content. */
|
6099 | public content?: (Uint8Array|string|null);
|
6100 |
|
6101 | /** DocumentInputConfig gcsSource. */
|
6102 | public gcsSource?: (google.cloud.translation.v3beta1.IGcsSource|null);
|
6103 |
|
6104 | /** DocumentInputConfig mimeType. */
|
6105 | public mimeType: string;
|
6106 |
|
6107 | /** DocumentInputConfig source. */
|
6108 | public source?: ("content"|"gcsSource");
|
6109 |
|
6110 | /**
|
6111 | * Creates a new DocumentInputConfig instance using the specified properties.
|
6112 | * @param [properties] Properties to set
|
6113 | * @returns DocumentInputConfig instance
|
6114 | */
|
6115 | public static create(properties?: google.cloud.translation.v3beta1.IDocumentInputConfig): google.cloud.translation.v3beta1.DocumentInputConfig;
|
6116 |
|
6117 | /**
|
6118 | * Encodes the specified DocumentInputConfig message. Does not implicitly { google.cloud.translation.v3beta1.DocumentInputConfig.verify|verify} messages.
|
6119 | * message DocumentInputConfig message or plain object to encode
|
6120 | * [writer] Writer to encode to
|
6121 | * Writer
|
6122 | */
|
6123 | public static encode(message: google.cloud.translation.v3beta1.IDocumentInputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
6124 |
|
6125 | /**
|
6126 | * Encodes the specified DocumentInputConfig message, length delimited. Does not implicitly {@link google.cloud.translation.v3beta1.DocumentInputConfig.verify|verify} messages.
|
6127 | * @param message DocumentInputConfig message or plain object to encode
|
6128 | * @param [writer] Writer to encode to
|
6129 | * @returns Writer
|
6130 | */
|
6131 | public static encodeDelimited(message: google.cloud.translation.v3beta1.IDocumentInputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
6132 |
|
6133 | /**
|
6134 | * Decodes a DocumentInputConfig message from the specified reader or buffer.
|
6135 | * @param reader Reader or buffer to decode from
|
6136 | * @param [length] Message length if known beforehand
|
6137 | * @returns DocumentInputConfig
|
6138 | * @throws {Error} If the payload is not a reader or valid buffer
|
6139 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
6140 | */
|
6141 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3beta1.DocumentInputConfig;
|
6142 |
|
6143 | /**
|
6144 | * Decodes a DocumentInputConfig message from the specified reader or buffer, length delimited.
|
6145 | * @param reader Reader or buffer to decode from
|
6146 | * @returns DocumentInputConfig
|
6147 | * @throws {Error} If the payload is not a reader or valid buffer
|
6148 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
6149 | */
|
6150 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3beta1.DocumentInputConfig;
|
6151 |
|
6152 | /**
|
6153 | * Verifies a DocumentInputConfig message.
|
6154 | * @param message Plain object to verify
|
6155 | * @returns `null` if valid, otherwise the reason why it is not
|
6156 | */
|
6157 | public static verify(message: { [k: string]: any }): (string|null);
|
6158 |
|
6159 | /**
|
6160 | * Creates a DocumentInputConfig message from a plain object. Also converts values to their respective internal types.
|
6161 | * @param object Plain object
|
6162 | * @returns DocumentInputConfig
|
6163 | */
|
6164 | public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3beta1.DocumentInputConfig;
|
6165 |
|
6166 | /**
|
6167 | * Creates a plain object from a DocumentInputConfig message. Also converts values to other types if specified.
|
6168 | * @param message DocumentInputConfig
|
6169 | * @param [options] Conversion options
|
6170 | * @returns Plain object
|
6171 | */
|
6172 | public static toObject(message: google.cloud.translation.v3beta1.DocumentInputConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
6173 |
|
6174 | /**
|
6175 | * Converts this DocumentInputConfig to JSON.
|
6176 | * @returns JSON object
|
6177 | */
|
6178 | public toJSON(): { [k: string]: any };
|
6179 | }
|
6180 |
|
6181 | /** Properties of a DocumentOutputConfig. */
|
6182 | interface IDocumentOutputConfig {
|
6183 |
|
6184 | /** DocumentOutputConfig gcsDestination */
|
6185 | gcsDestination?: (google.cloud.translation.v3beta1.IGcsDestination|null);
|
6186 |
|
6187 | /** DocumentOutputConfig mimeType */
|
6188 | mimeType?: (string|null);
|
6189 | }
|
6190 |
|
6191 | /** Represents a DocumentOutputConfig. */
|
6192 | class DocumentOutputConfig implements IDocumentOutputConfig {
|
6193 |
|
6194 | /**
|
6195 | * Constructs a new DocumentOutputConfig.
|
6196 | * @param [properties] Properties to set
|
6197 | */
|
6198 | constructor(properties?: google.cloud.translation.v3beta1.IDocumentOutputConfig);
|
6199 |
|
6200 | /** DocumentOutputConfig gcsDestination. */
|
6201 | public gcsDestination?: (google.cloud.translation.v3beta1.IGcsDestination|null);
|
6202 |
|
6203 | /** DocumentOutputConfig mimeType. */
|
6204 | public mimeType: string;
|
6205 |
|
6206 | /** DocumentOutputConfig destination. */
|
6207 | public destination?: "gcsDestination";
|
6208 |
|
6209 | /**
|
6210 | * Creates a new DocumentOutputConfig instance using the specified properties.
|
6211 | * @param [properties] Properties to set
|
6212 | * @returns DocumentOutputConfig instance
|
6213 | */
|
6214 | public static create(properties?: google.cloud.translation.v3beta1.IDocumentOutputConfig): google.cloud.translation.v3beta1.DocumentOutputConfig;
|
6215 |
|
6216 | /**
|
6217 | * Encodes the specified DocumentOutputConfig message. Does not implicitly { google.cloud.translation.v3beta1.DocumentOutputConfig.verify|verify} messages.
|
6218 | * message DocumentOutputConfig message or plain object to encode
|
6219 | * [writer] Writer to encode to
|
6220 | * Writer
|
6221 | */
|
6222 | public static encode(message: google.cloud.translation.v3beta1.IDocumentOutputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
6223 |
|
6224 | /**
|
6225 | * Encodes the specified DocumentOutputConfig message, length delimited. Does not implicitly {@link google.cloud.translation.v3beta1.DocumentOutputConfig.verify|verify} messages.
|
6226 | * @param message DocumentOutputConfig message or plain object to encode
|
6227 | * @param [writer] Writer to encode to
|
6228 | * @returns Writer
|
6229 | */
|
6230 | public static encodeDelimited(message: google.cloud.translation.v3beta1.IDocumentOutputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
6231 |
|
6232 | /**
|
6233 | * Decodes a DocumentOutputConfig message from the specified reader or buffer.
|
6234 | * @param reader Reader or buffer to decode from
|
6235 | * @param [length] Message length if known beforehand
|
6236 | * @returns DocumentOutputConfig
|
6237 | * @throws {Error} If the payload is not a reader or valid buffer
|
6238 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
6239 | */
|
6240 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3beta1.DocumentOutputConfig;
|
6241 |
|
6242 | /**
|
6243 | * Decodes a DocumentOutputConfig message from the specified reader or buffer, length delimited.
|
6244 | * @param reader Reader or buffer to decode from
|
6245 | * @returns DocumentOutputConfig
|
6246 | * @throws {Error} If the payload is not a reader or valid buffer
|
6247 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
6248 | */
|
6249 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3beta1.DocumentOutputConfig;
|
6250 |
|
6251 | /**
|
6252 | * Verifies a DocumentOutputConfig message.
|
6253 | * @param message Plain object to verify
|
6254 | * @returns `null` if valid, otherwise the reason why it is not
|
6255 | */
|
6256 | public static verify(message: { [k: string]: any }): (string|null);
|
6257 |
|
6258 | /**
|
6259 | * Creates a DocumentOutputConfig message from a plain object. Also converts values to their respective internal types.
|
6260 | * @param object Plain object
|
6261 | * @returns DocumentOutputConfig
|
6262 | */
|
6263 | public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3beta1.DocumentOutputConfig;
|
6264 |
|
6265 | /**
|
6266 | * Creates a plain object from a DocumentOutputConfig message. Also converts values to other types if specified.
|
6267 | * @param message DocumentOutputConfig
|
6268 | * @param [options] Conversion options
|
6269 | * @returns Plain object
|
6270 | */
|
6271 | public static toObject(message: google.cloud.translation.v3beta1.DocumentOutputConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
6272 |
|
6273 | /**
|
6274 | * Converts this DocumentOutputConfig to JSON.
|
6275 | * @returns JSON object
|
6276 | */
|
6277 | public toJSON(): { [k: string]: any };
|
6278 | }
|
6279 |
|
6280 | /** Properties of a TranslateDocumentRequest. */
|
6281 | interface ITranslateDocumentRequest {
|
6282 |
|
6283 | /** TranslateDocumentRequest parent */
|
6284 | parent?: (string|null);
|
6285 |
|
6286 | /** TranslateDocumentRequest sourceLanguageCode */
|
6287 | sourceLanguageCode?: (string|null);
|
6288 |
|
6289 | /** TranslateDocumentRequest targetLanguageCode */
|
6290 | targetLanguageCode?: (string|null);
|
6291 |
|
6292 | /** TranslateDocumentRequest documentInputConfig */
|
6293 | documentInputConfig?: (google.cloud.translation.v3beta1.IDocumentInputConfig|null);
|
6294 |
|
6295 | /** TranslateDocumentRequest documentOutputConfig */
|
6296 | documentOutputConfig?: (google.cloud.translation.v3beta1.IDocumentOutputConfig|null);
|
6297 |
|
6298 | /** TranslateDocumentRequest model */
|
6299 | model?: (string|null);
|
6300 |
|
6301 | /** TranslateDocumentRequest glossaryConfig */
|
6302 | glossaryConfig?: (google.cloud.translation.v3beta1.ITranslateTextGlossaryConfig|null);
|
6303 |
|
6304 | /** TranslateDocumentRequest labels */
|
6305 | labels?: ({ [k: string]: string }|null);
|
6306 | }
|
6307 |
|
6308 | /** Represents a TranslateDocumentRequest. */
|
6309 | class TranslateDocumentRequest implements ITranslateDocumentRequest {
|
6310 |
|
6311 | /**
|
6312 | * Constructs a new TranslateDocumentRequest.
|
6313 | * @param [properties] Properties to set
|
6314 | */
|
6315 | constructor(properties?: google.cloud.translation.v3beta1.ITranslateDocumentRequest);
|
6316 |
|
6317 | /** TranslateDocumentRequest parent. */
|
6318 | public parent: string;
|
6319 |
|
6320 | /** TranslateDocumentRequest sourceLanguageCode. */
|
6321 | public sourceLanguageCode: string;
|
6322 |
|
6323 | /** TranslateDocumentRequest targetLanguageCode. */
|
6324 | public targetLanguageCode: string;
|
6325 |
|
6326 | /** TranslateDocumentRequest documentInputConfig. */
|
6327 | public documentInputConfig?: (google.cloud.translation.v3beta1.IDocumentInputConfig|null);
|
6328 |
|
6329 | /** TranslateDocumentRequest documentOutputConfig. */
|
6330 | public documentOutputConfig?: (google.cloud.translation.v3beta1.IDocumentOutputConfig|null);
|
6331 |
|
6332 | /** TranslateDocumentRequest model. */
|
6333 | public model: string;
|
6334 |
|
6335 | /** TranslateDocumentRequest glossaryConfig. */
|
6336 | public glossaryConfig?: (google.cloud.translation.v3beta1.ITranslateTextGlossaryConfig|null);
|
6337 |
|
6338 | /** TranslateDocumentRequest labels. */
|
6339 | public labels: { [k: string]: string };
|
6340 |
|
6341 | /**
|
6342 | * Creates a new TranslateDocumentRequest instance using the specified properties.
|
6343 | * @param [properties] Properties to set
|
6344 | * @returns TranslateDocumentRequest instance
|
6345 | */
|
6346 | public static create(properties?: google.cloud.translation.v3beta1.ITranslateDocumentRequest): google.cloud.translation.v3beta1.TranslateDocumentRequest;
|
6347 |
|
6348 | /**
|
6349 | * Encodes the specified TranslateDocumentRequest message. Does not implicitly {@link google.cloud.translation.v3beta1.TranslateDocumentRequest.verify|verify} messages.
|
6350 | * @param message TranslateDocumentRequest message or plain object to encode
|
6351 | * @param [writer] Writer to encode to
|
6352 | * @returns Writer
|
6353 | */
|
6354 | public static encode(message: google.cloud.translation.v3beta1.ITranslateDocumentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
6355 |
|
6356 | /**
|
6357 | * Encodes the specified TranslateDocumentRequest message, length delimited. Does not implicitly {@link google.cloud.translation.v3beta1.TranslateDocumentRequest.verify|verify} messages.
|
6358 | * @param message TranslateDocumentRequest message or plain object to encode
|
6359 | * @param [writer] Writer to encode to
|
6360 | * @returns Writer
|
6361 | */
|
6362 | public static encodeDelimited(message: google.cloud.translation.v3beta1.ITranslateDocumentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
6363 |
|
6364 | /**
|
6365 | * Decodes a TranslateDocumentRequest message from the specified reader or buffer.
|
6366 | * @param reader Reader or buffer to decode from
|
6367 | * @param [length] Message length if known beforehand
|
6368 | * @returns TranslateDocumentRequest
|
6369 | * @throws {Error} If the payload is not a reader or valid buffer
|
6370 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
6371 | */
|
6372 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3beta1.TranslateDocumentRequest;
|
6373 |
|
6374 | /**
|
6375 | * Decodes a TranslateDocumentRequest message from the specified reader or buffer, length delimited.
|
6376 | * @param reader Reader or buffer to decode from
|
6377 | * @returns TranslateDocumentRequest
|
6378 | * @throws {Error} If the payload is not a reader or valid buffer
|
6379 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
6380 | */
|
6381 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3beta1.TranslateDocumentRequest;
|
6382 |
|
6383 | /**
|
6384 | * Verifies a TranslateDocumentRequest message.
|
6385 | * @param message Plain object to verify
|
6386 | * @returns `null` if valid, otherwise the reason why it is not
|
6387 | */
|
6388 | public static verify(message: { [k: string]: any }): (string|null);
|
6389 |
|
6390 | /**
|
6391 | * Creates a TranslateDocumentRequest message from a plain object. Also converts values to their respective internal types.
|
6392 | * @param object Plain object
|
6393 | * @returns TranslateDocumentRequest
|
6394 | */
|
6395 | public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3beta1.TranslateDocumentRequest;
|
6396 |
|
6397 | /**
|
6398 | * Creates a plain object from a TranslateDocumentRequest message. Also converts values to other types if specified.
|
6399 | * @param message TranslateDocumentRequest
|
6400 | * @param [options] Conversion options
|
6401 | * @returns Plain object
|
6402 | */
|
6403 | public static toObject(message: google.cloud.translation.v3beta1.TranslateDocumentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
6404 |
|
6405 | /**
|
6406 | * Converts this TranslateDocumentRequest to JSON.
|
6407 | * @returns JSON object
|
6408 | */
|
6409 | public toJSON(): { [k: string]: any };
|
6410 | }
|
6411 |
|
6412 | /** Properties of a DocumentTranslation. */
|
6413 | interface IDocumentTranslation {
|
6414 |
|
6415 | /** DocumentTranslation byteStreamOutputs */
|
6416 | byteStreamOutputs?: (Uint8Array[]|null);
|
6417 |
|
6418 | /** DocumentTranslation mimeType */
|
6419 | mimeType?: (string|null);
|
6420 |
|
6421 | /** DocumentTranslation detectedLanguageCode */
|
6422 | detectedLanguageCode?: (string|null);
|
6423 | }
|
6424 |
|
6425 | /** Represents a DocumentTranslation. */
|
6426 | class DocumentTranslation implements IDocumentTranslation {
|
6427 |
|
6428 | /**
|
6429 | * Constructs a new DocumentTranslation.
|
6430 | * @param [properties] Properties to set
|
6431 | */
|
6432 | constructor(properties?: google.cloud.translation.v3beta1.IDocumentTranslation);
|
6433 |
|
6434 | /** DocumentTranslation byteStreamOutputs. */
|
6435 | public byteStreamOutputs: Uint8Array[];
|
6436 |
|
6437 | /** DocumentTranslation mimeType. */
|
6438 | public mimeType: string;
|
6439 |
|
6440 | /** DocumentTranslation detectedLanguageCode. */
|
6441 | public detectedLanguageCode: string;
|
6442 |
|
6443 | /**
|
6444 | * Creates a new DocumentTranslation instance using the specified properties.
|
6445 | * @param [properties] Properties to set
|
6446 | * @returns DocumentTranslation instance
|
6447 | */
|
6448 | public static create(properties?: google.cloud.translation.v3beta1.IDocumentTranslation): google.cloud.translation.v3beta1.DocumentTranslation;
|
6449 |
|
6450 | /**
|
6451 | * Encodes the specified DocumentTranslation message. Does not implicitly { google.cloud.translation.v3beta1.DocumentTranslation.verify|verify} messages.
|
6452 | * message DocumentTranslation message or plain object to encode
|
6453 | * [writer] Writer to encode to
|
6454 | * Writer
|
6455 | */
|
6456 | public static encode(message: google.cloud.translation.v3beta1.IDocumentTranslation, writer?: $protobuf.Writer): $protobuf.Writer;
|
6457 |
|
6458 | /**
|
6459 | * Encodes the specified DocumentTranslation message, length delimited. Does not implicitly {@link google.cloud.translation.v3beta1.DocumentTranslation.verify|verify} messages.
|
6460 | * @param message DocumentTranslation message or plain object to encode
|
6461 | * @param [writer] Writer to encode to
|
6462 | * @returns Writer
|
6463 | */
|
6464 | public static encodeDelimited(message: google.cloud.translation.v3beta1.IDocumentTranslation, writer?: $protobuf.Writer): $protobuf.Writer;
|
6465 |
|
6466 | /**
|
6467 | * Decodes a DocumentTranslation message from the specified reader or buffer.
|
6468 | * @param reader Reader or buffer to decode from
|
6469 | * @param [length] Message length if known beforehand
|
6470 | * @returns DocumentTranslation
|
6471 | * @throws {Error} If the payload is not a reader or valid buffer
|
6472 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
6473 | */
|
6474 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3beta1.DocumentTranslation;
|
6475 |
|
6476 | /**
|
6477 | * Decodes a DocumentTranslation message from the specified reader or buffer, length delimited.
|
6478 | * @param reader Reader or buffer to decode from
|
6479 | * @returns DocumentTranslation
|
6480 | * @throws {Error} If the payload is not a reader or valid buffer
|
6481 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
6482 | */
|
6483 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3beta1.DocumentTranslation;
|
6484 |
|
6485 | /**
|
6486 | * Verifies a DocumentTranslation message.
|
6487 | * @param message Plain object to verify
|
6488 | * @returns `null` if valid, otherwise the reason why it is not
|
6489 | */
|
6490 | public static verify(message: { [k: string]: any }): (string|null);
|
6491 |
|
6492 | /**
|
6493 | * Creates a DocumentTranslation message from a plain object. Also converts values to their respective internal types.
|
6494 | * @param object Plain object
|
6495 | * @returns DocumentTranslation
|
6496 | */
|
6497 | public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3beta1.DocumentTranslation;
|
6498 |
|
6499 | /**
|
6500 | * Creates a plain object from a DocumentTranslation message. Also converts values to other types if specified.
|
6501 | * @param message DocumentTranslation
|
6502 | * @param [options] Conversion options
|
6503 | * @returns Plain object
|
6504 | */
|
6505 | public static toObject(message: google.cloud.translation.v3beta1.DocumentTranslation, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
6506 |
|
6507 | /**
|
6508 | * Converts this DocumentTranslation to JSON.
|
6509 | * @returns JSON object
|
6510 | */
|
6511 | public toJSON(): { [k: string]: any };
|
6512 | }
|
6513 |
|
6514 | /** Properties of a TranslateDocumentResponse. */
|
6515 | interface ITranslateDocumentResponse {
|
6516 |
|
6517 | /** TranslateDocumentResponse documentTranslation */
|
6518 | documentTranslation?: (google.cloud.translation.v3beta1.IDocumentTranslation|null);
|
6519 |
|
6520 | /** TranslateDocumentResponse glossaryDocumentTranslation */
|
6521 | glossaryDocumentTranslation?: (google.cloud.translation.v3beta1.IDocumentTranslation|null);
|
6522 |
|
6523 | /** TranslateDocumentResponse model */
|
6524 | model?: (string|null);
|
6525 |
|
6526 | /** TranslateDocumentResponse glossaryConfig */
|
6527 | glossaryConfig?: (google.cloud.translation.v3beta1.ITranslateTextGlossaryConfig|null);
|
6528 | }
|
6529 |
|
6530 | /** Represents a TranslateDocumentResponse. */
|
6531 | class TranslateDocumentResponse implements ITranslateDocumentResponse {
|
6532 |
|
6533 | /**
|
6534 | * Constructs a new TranslateDocumentResponse.
|
6535 | * @param [properties] Properties to set
|
6536 | */
|
6537 | constructor(properties?: google.cloud.translation.v3beta1.ITranslateDocumentResponse);
|
6538 |
|
6539 | /** TranslateDocumentResponse documentTranslation. */
|
6540 | public documentTranslation?: (google.cloud.translation.v3beta1.IDocumentTranslation|null);
|
6541 |
|
6542 | /** TranslateDocumentResponse glossaryDocumentTranslation. */
|
6543 | public glossaryDocumentTranslation?: (google.cloud.translation.v3beta1.IDocumentTranslation|null);
|
6544 |
|
6545 | /** TranslateDocumentResponse model. */
|
6546 | public model: string;
|
6547 |
|
6548 | /** TranslateDocumentResponse glossaryConfig. */
|
6549 | public glossaryConfig?: (google.cloud.translation.v3beta1.ITranslateTextGlossaryConfig|null);
|
6550 |
|
6551 | /**
|
6552 | * Creates a new TranslateDocumentResponse instance using the specified properties.
|
6553 | * @param [properties] Properties to set
|
6554 | * @returns TranslateDocumentResponse instance
|
6555 | */
|
6556 | public static create(properties?: google.cloud.translation.v3beta1.ITranslateDocumentResponse): google.cloud.translation.v3beta1.TranslateDocumentResponse;
|
6557 |
|
6558 | /**
|
6559 | * Encodes the specified TranslateDocumentResponse message. Does not implicitly { google.cloud.translation.v3beta1.TranslateDocumentResponse.verify|verify} messages.
|
6560 | * message TranslateDocumentResponse message or plain object to encode
|
6561 | * [writer] Writer to encode to
|
6562 | * Writer
|
6563 | */
|
6564 | public static encode(message: google.cloud.translation.v3beta1.ITranslateDocumentResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
6565 |
|
6566 | /**
|
6567 | * Encodes the specified TranslateDocumentResponse message, length delimited. Does not implicitly {@link google.cloud.translation.v3beta1.TranslateDocumentResponse.verify|verify} messages.
|
6568 | * @param message TranslateDocumentResponse message or plain object to encode
|
6569 | * @param [writer] Writer to encode to
|
6570 | * @returns Writer
|
6571 | */
|
6572 | public static encodeDelimited(message: google.cloud.translation.v3beta1.ITranslateDocumentResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
6573 |
|
6574 | /**
|
6575 | * Decodes a TranslateDocumentResponse message from the specified reader or buffer.
|
6576 | * @param reader Reader or buffer to decode from
|
6577 | * @param [length] Message length if known beforehand
|
6578 | * @returns TranslateDocumentResponse
|
6579 | * @throws {Error} If the payload is not a reader or valid buffer
|
6580 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
6581 | */
|
6582 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3beta1.TranslateDocumentResponse;
|
6583 |
|
6584 | /**
|
6585 | * Decodes a TranslateDocumentResponse message from the specified reader or buffer, length delimited.
|
6586 | * @param reader Reader or buffer to decode from
|
6587 | * @returns TranslateDocumentResponse
|
6588 | * @throws {Error} If the payload is not a reader or valid buffer
|
6589 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
6590 | */
|
6591 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3beta1.TranslateDocumentResponse;
|
6592 |
|
6593 | /**
|
6594 | * Verifies a TranslateDocumentResponse message.
|
6595 | * @param message Plain object to verify
|
6596 | * @returns `null` if valid, otherwise the reason why it is not
|
6597 | */
|
6598 | public static verify(message: { [k: string]: any }): (string|null);
|
6599 |
|
6600 | /**
|
6601 | * Creates a TranslateDocumentResponse message from a plain object. Also converts values to their respective internal types.
|
6602 | * @param object Plain object
|
6603 | * @returns TranslateDocumentResponse
|
6604 | */
|
6605 | public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3beta1.TranslateDocumentResponse;
|
6606 |
|
6607 | /**
|
6608 | * Creates a plain object from a TranslateDocumentResponse message. Also converts values to other types if specified.
|
6609 | * @param message TranslateDocumentResponse
|
6610 | * @param [options] Conversion options
|
6611 | * @returns Plain object
|
6612 | */
|
6613 | public static toObject(message: google.cloud.translation.v3beta1.TranslateDocumentResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
6614 |
|
6615 | /**
|
6616 | * Converts this TranslateDocumentResponse to JSON.
|
6617 | * @returns JSON object
|
6618 | */
|
6619 | public toJSON(): { [k: string]: any };
|
6620 | }
|
6621 |
|
6622 | /** Properties of a BatchTranslateTextRequest. */
|
6623 | interface IBatchTranslateTextRequest {
|
6624 |
|
6625 | /** BatchTranslateTextRequest parent */
|
6626 | parent?: (string|null);
|
6627 |
|
6628 | /** BatchTranslateTextRequest sourceLanguageCode */
|
6629 | sourceLanguageCode?: (string|null);
|
6630 |
|
6631 | /** BatchTranslateTextRequest targetLanguageCodes */
|
6632 | targetLanguageCodes?: (string[]|null);
|
6633 |
|
6634 | /** BatchTranslateTextRequest models */
|
6635 | models?: ({ [k: string]: string }|null);
|
6636 |
|
6637 | /** BatchTranslateTextRequest inputConfigs */
|
6638 | inputConfigs?: (google.cloud.translation.v3beta1.IInputConfig[]|null);
|
6639 |
|
6640 | /** BatchTranslateTextRequest outputConfig */
|
6641 | outputConfig?: (google.cloud.translation.v3beta1.IOutputConfig|null);
|
6642 |
|
6643 | /** BatchTranslateTextRequest glossaries */
|
6644 | glossaries?: ({ [k: string]: google.cloud.translation.v3beta1.ITranslateTextGlossaryConfig }|null);
|
6645 |
|
6646 | /** BatchTranslateTextRequest labels */
|
6647 | labels?: ({ [k: string]: string }|null);
|
6648 | }
|
6649 |
|
6650 | /** Represents a BatchTranslateTextRequest. */
|
6651 | class BatchTranslateTextRequest implements IBatchTranslateTextRequest {
|
6652 |
|
6653 | /**
|
6654 | * Constructs a new BatchTranslateTextRequest.
|
6655 | * @param [properties] Properties to set
|
6656 | */
|
6657 | constructor(properties?: google.cloud.translation.v3beta1.IBatchTranslateTextRequest);
|
6658 |
|
6659 | /** BatchTranslateTextRequest parent. */
|
6660 | public parent: string;
|
6661 |
|
6662 | /** BatchTranslateTextRequest sourceLanguageCode. */
|
6663 | public sourceLanguageCode: string;
|
6664 |
|
6665 | /** BatchTranslateTextRequest targetLanguageCodes. */
|
6666 | public targetLanguageCodes: string[];
|
6667 |
|
6668 | /** BatchTranslateTextRequest models. */
|
6669 | public models: { [k: string]: string };
|
6670 |
|
6671 | /** BatchTranslateTextRequest inputConfigs. */
|
6672 | public inputConfigs: google.cloud.translation.v3beta1.IInputConfig[];
|
6673 |
|
6674 | /** BatchTranslateTextRequest outputConfig. */
|
6675 | public outputConfig?: (google.cloud.translation.v3beta1.IOutputConfig|null);
|
6676 |
|
6677 | /** BatchTranslateTextRequest glossaries. */
|
6678 | public glossaries: { [k: string]: google.cloud.translation.v3beta1.ITranslateTextGlossaryConfig };
|
6679 |
|
6680 | /** BatchTranslateTextRequest labels. */
|
6681 | public labels: { [k: string]: string };
|
6682 |
|
6683 | /**
|
6684 | * Creates a new BatchTranslateTextRequest instance using the specified properties.
|
6685 | * @param [properties] Properties to set
|
6686 | * @returns BatchTranslateTextRequest instance
|
6687 | */
|
6688 | public static create(properties?: google.cloud.translation.v3beta1.IBatchTranslateTextRequest): google.cloud.translation.v3beta1.BatchTranslateTextRequest;
|
6689 |
|
6690 | /**
|
6691 | * Encodes the specified BatchTranslateTextRequest message. Does not implicitly {@link google.cloud.translation.v3beta1.BatchTranslateTextRequest.verify|verify} messages.
|
6692 | * @param message BatchTranslateTextRequest message or plain object to encode
|
6693 | * @param [writer] Writer to encode to
|
6694 | * @returns Writer
|
6695 | */
|
6696 | public static encode(message: google.cloud.translation.v3beta1.IBatchTranslateTextRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
6697 |
|
6698 | /**
|
6699 | * Encodes the specified BatchTranslateTextRequest message, length delimited. Does not implicitly {@link google.cloud.translation.v3beta1.BatchTranslateTextRequest.verify|verify} messages.
|
6700 | * @param message BatchTranslateTextRequest message or plain object to encode
|
6701 | * @param [writer] Writer to encode to
|
6702 | * @returns Writer
|
6703 | */
|
6704 | public static encodeDelimited(message: google.cloud.translation.v3beta1.IBatchTranslateTextRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
6705 |
|
6706 | /**
|
6707 | * Decodes a BatchTranslateTextRequest message from the specified reader or buffer.
|
6708 | * @param reader Reader or buffer to decode from
|
6709 | * @param [length] Message length if known beforehand
|
6710 | * @returns BatchTranslateTextRequest
|
6711 | * @throws {Error} If the payload is not a reader or valid buffer
|
6712 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
6713 | */
|
6714 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3beta1.BatchTranslateTextRequest;
|
6715 |
|
6716 | /**
|
6717 | * Decodes a BatchTranslateTextRequest message from the specified reader or buffer, length delimited.
|
6718 | * @param reader Reader or buffer to decode from
|
6719 | * @returns BatchTranslateTextRequest
|
6720 | * @throws {Error} If the payload is not a reader or valid buffer
|
6721 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
6722 | */
|
6723 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3beta1.BatchTranslateTextRequest;
|
6724 |
|
6725 | /**
|
6726 | * Verifies a BatchTranslateTextRequest message.
|
6727 | * @param message Plain object to verify
|
6728 | * @returns `null` if valid, otherwise the reason why it is not
|
6729 | */
|
6730 | public static verify(message: { [k: string]: any }): (string|null);
|
6731 |
|
6732 | /**
|
6733 | * Creates a BatchTranslateTextRequest message from a plain object. Also converts values to their respective internal types.
|
6734 | * @param object Plain object
|
6735 | * @returns BatchTranslateTextRequest
|
6736 | */
|
6737 | public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3beta1.BatchTranslateTextRequest;
|
6738 |
|
6739 | /**
|
6740 | * Creates a plain object from a BatchTranslateTextRequest message. Also converts values to other types if specified.
|
6741 | * @param message BatchTranslateTextRequest
|
6742 | * @param [options] Conversion options
|
6743 | * @returns Plain object
|
6744 | */
|
6745 | public static toObject(message: google.cloud.translation.v3beta1.BatchTranslateTextRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
6746 |
|
6747 | /**
|
6748 | * Converts this BatchTranslateTextRequest to JSON.
|
6749 | * @returns JSON object
|
6750 | */
|
6751 | public toJSON(): { [k: string]: any };
|
6752 | }
|
6753 |
|
6754 | /** Properties of a BatchTranslateMetadata. */
|
6755 | interface IBatchTranslateMetadata {
|
6756 |
|
6757 | /** BatchTranslateMetadata state */
|
6758 | state?: (google.cloud.translation.v3beta1.BatchTranslateMetadata.State|keyof typeof google.cloud.translation.v3beta1.BatchTranslateMetadata.State|null);
|
6759 |
|
6760 | /** BatchTranslateMetadata translatedCharacters */
|
6761 | translatedCharacters?: (number|Long|string|null);
|
6762 |
|
6763 | /** BatchTranslateMetadata failedCharacters */
|
6764 | failedCharacters?: (number|Long|string|null);
|
6765 |
|
6766 | /** BatchTranslateMetadata totalCharacters */
|
6767 | totalCharacters?: (number|Long|string|null);
|
6768 |
|
6769 | /** BatchTranslateMetadata submitTime */
|
6770 | submitTime?: (google.protobuf.ITimestamp|null);
|
6771 | }
|
6772 |
|
6773 | /** Represents a BatchTranslateMetadata. */
|
6774 | class BatchTranslateMetadata implements IBatchTranslateMetadata {
|
6775 |
|
6776 | /**
|
6777 | * Constructs a new BatchTranslateMetadata.
|
6778 | * @param [properties] Properties to set
|
6779 | */
|
6780 | constructor(properties?: google.cloud.translation.v3beta1.IBatchTranslateMetadata);
|
6781 |
|
6782 | /** BatchTranslateMetadata state. */
|
6783 | public state: (google.cloud.translation.v3beta1.BatchTranslateMetadata.State|keyof typeof google.cloud.translation.v3beta1.BatchTranslateMetadata.State);
|
6784 |
|
6785 | /** BatchTranslateMetadata translatedCharacters. */
|
6786 | public translatedCharacters: (number|Long|string);
|
6787 |
|
6788 | /** BatchTranslateMetadata failedCharacters. */
|
6789 | public failedCharacters: (number|Long|string);
|
6790 |
|
6791 | /** BatchTranslateMetadata totalCharacters. */
|
6792 | public totalCharacters: (number|Long|string);
|
6793 |
|
6794 | /** BatchTranslateMetadata submitTime. */
|
6795 | public submitTime?: (google.protobuf.ITimestamp|null);
|
6796 |
|
6797 | /**
|
6798 | * Creates a new BatchTranslateMetadata instance using the specified properties.
|
6799 | * @param [properties] Properties to set
|
6800 | * @returns BatchTranslateMetadata instance
|
6801 | */
|
6802 | public static create(properties?: google.cloud.translation.v3beta1.IBatchTranslateMetadata): google.cloud.translation.v3beta1.BatchTranslateMetadata;
|
6803 |
|
6804 | /**
|
6805 | * Encodes the specified BatchTranslateMetadata message. Does not implicitly { google.cloud.translation.v3beta1.BatchTranslateMetadata.verify|verify} messages.
|
6806 | * message BatchTranslateMetadata message or plain object to encode
|
6807 | * [writer] Writer to encode to
|
6808 | * Writer
|
6809 | */
|
6810 | public static encode(message: google.cloud.translation.v3beta1.IBatchTranslateMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
|
6811 |
|
6812 | /**
|
6813 | * Encodes the specified BatchTranslateMetadata message, length delimited. Does not implicitly {@link google.cloud.translation.v3beta1.BatchTranslateMetadata.verify|verify} messages.
|
6814 | * @param message BatchTranslateMetadata message or plain object to encode
|
6815 | * @param [writer] Writer to encode to
|
6816 | * @returns Writer
|
6817 | */
|
6818 | public static encodeDelimited(message: google.cloud.translation.v3beta1.IBatchTranslateMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
|
6819 |
|
6820 | /**
|
6821 | * Decodes a BatchTranslateMetadata message from the specified reader or buffer.
|
6822 | * @param reader Reader or buffer to decode from
|
6823 | * @param [length] Message length if known beforehand
|
6824 | * @returns BatchTranslateMetadata
|
6825 | * @throws {Error} If the payload is not a reader or valid buffer
|
6826 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
6827 | */
|
6828 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3beta1.BatchTranslateMetadata;
|
6829 |
|
6830 | /**
|
6831 | * Decodes a BatchTranslateMetadata message from the specified reader or buffer, length delimited.
|
6832 | * @param reader Reader or buffer to decode from
|
6833 | * @returns BatchTranslateMetadata
|
6834 | * @throws {Error} If the payload is not a reader or valid buffer
|
6835 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
6836 | */
|
6837 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3beta1.BatchTranslateMetadata;
|
6838 |
|
6839 | /**
|
6840 | * Verifies a BatchTranslateMetadata message.
|
6841 | * @param message Plain object to verify
|
6842 | * @returns `null` if valid, otherwise the reason why it is not
|
6843 | */
|
6844 | public static verify(message: { [k: string]: any }): (string|null);
|
6845 |
|
6846 | /**
|
6847 | * Creates a BatchTranslateMetadata message from a plain object. Also converts values to their respective internal types.
|
6848 | * @param object Plain object
|
6849 | * @returns BatchTranslateMetadata
|
6850 | */
|
6851 | public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3beta1.BatchTranslateMetadata;
|
6852 |
|
6853 | /**
|
6854 | * Creates a plain object from a BatchTranslateMetadata message. Also converts values to other types if specified.
|
6855 | * @param message BatchTranslateMetadata
|
6856 | * @param [options] Conversion options
|
6857 | * @returns Plain object
|
6858 | */
|
6859 | public static toObject(message: google.cloud.translation.v3beta1.BatchTranslateMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
6860 |
|
6861 | /**
|
6862 | * Converts this BatchTranslateMetadata to JSON.
|
6863 | * @returns JSON object
|
6864 | */
|
6865 | public toJSON(): { [k: string]: any };
|
6866 | }
|
6867 |
|
6868 | namespace BatchTranslateMetadata {
|
6869 |
|
6870 | /** State enum. */
|
6871 | enum State {
|
6872 | STATE_UNSPECIFIED = 0,
|
6873 | RUNNING = 1,
|
6874 | SUCCEEDED = 2,
|
6875 | FAILED = 3,
|
6876 | CANCELLING = 4,
|
6877 | CANCELLED = 5
|
6878 | }
|
6879 | }
|
6880 |
|
6881 | /** Properties of a BatchTranslateResponse. */
|
6882 | interface IBatchTranslateResponse {
|
6883 |
|
6884 | /** BatchTranslateResponse totalCharacters */
|
6885 | totalCharacters?: (number|Long|string|null);
|
6886 |
|
6887 | /** BatchTranslateResponse translatedCharacters */
|
6888 | translatedCharacters?: (number|Long|string|null);
|
6889 |
|
6890 | /** BatchTranslateResponse failedCharacters */
|
6891 | failedCharacters?: (number|Long|string|null);
|
6892 |
|
6893 | /** BatchTranslateResponse submitTime */
|
6894 | submitTime?: (google.protobuf.ITimestamp|null);
|
6895 |
|
6896 | /** BatchTranslateResponse endTime */
|
6897 | endTime?: (google.protobuf.ITimestamp|null);
|
6898 | }
|
6899 |
|
6900 | /** Represents a BatchTranslateResponse. */
|
6901 | class BatchTranslateResponse implements IBatchTranslateResponse {
|
6902 |
|
6903 | /**
|
6904 | * Constructs a new BatchTranslateResponse.
|
6905 | * @param [properties] Properties to set
|
6906 | */
|
6907 | constructor(properties?: google.cloud.translation.v3beta1.IBatchTranslateResponse);
|
6908 |
|
6909 | /** BatchTranslateResponse totalCharacters. */
|
6910 | public totalCharacters: (number|Long|string);
|
6911 |
|
6912 | /** BatchTranslateResponse translatedCharacters. */
|
6913 | public translatedCharacters: (number|Long|string);
|
6914 |
|
6915 | /** BatchTranslateResponse failedCharacters. */
|
6916 | public failedCharacters: (number|Long|string);
|
6917 |
|
6918 | /** BatchTranslateResponse submitTime. */
|
6919 | public submitTime?: (google.protobuf.ITimestamp|null);
|
6920 |
|
6921 | /** BatchTranslateResponse endTime. */
|
6922 | public endTime?: (google.protobuf.ITimestamp|null);
|
6923 |
|
6924 | /**
|
6925 | * Creates a new BatchTranslateResponse instance using the specified properties.
|
6926 | * @param [properties] Properties to set
|
6927 | * @returns BatchTranslateResponse instance
|
6928 | */
|
6929 | public static create(properties?: google.cloud.translation.v3beta1.IBatchTranslateResponse): google.cloud.translation.v3beta1.BatchTranslateResponse;
|
6930 |
|
6931 | /**
|
6932 | * Encodes the specified BatchTranslateResponse message. Does not implicitly { google.cloud.translation.v3beta1.BatchTranslateResponse.verify|verify} messages.
|
6933 | * message BatchTranslateResponse message or plain object to encode
|
6934 | * [writer] Writer to encode to
|
6935 | * Writer
|
6936 | */
|
6937 | public static encode(message: google.cloud.translation.v3beta1.IBatchTranslateResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
6938 |
|
6939 | /**
|
6940 | * Encodes the specified BatchTranslateResponse message, length delimited. Does not implicitly {@link google.cloud.translation.v3beta1.BatchTranslateResponse.verify|verify} messages.
|
6941 | * @param message BatchTranslateResponse message or plain object to encode
|
6942 | * @param [writer] Writer to encode to
|
6943 | * @returns Writer
|
6944 | */
|
6945 | public static encodeDelimited(message: google.cloud.translation.v3beta1.IBatchTranslateResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
6946 |
|
6947 | /**
|
6948 | * Decodes a BatchTranslateResponse message from the specified reader or buffer.
|
6949 | * @param reader Reader or buffer to decode from
|
6950 | * @param [length] Message length if known beforehand
|
6951 | * @returns BatchTranslateResponse
|
6952 | * @throws {Error} If the payload is not a reader or valid buffer
|
6953 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
6954 | */
|
6955 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3beta1.BatchTranslateResponse;
|
6956 |
|
6957 | /**
|
6958 | * Decodes a BatchTranslateResponse message from the specified reader or buffer, length delimited.
|
6959 | * @param reader Reader or buffer to decode from
|
6960 | * @returns BatchTranslateResponse
|
6961 | * @throws {Error} If the payload is not a reader or valid buffer
|
6962 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
6963 | */
|
6964 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3beta1.BatchTranslateResponse;
|
6965 |
|
6966 | /**
|
6967 | * Verifies a BatchTranslateResponse message.
|
6968 | * @param message Plain object to verify
|
6969 | * @returns `null` if valid, otherwise the reason why it is not
|
6970 | */
|
6971 | public static verify(message: { [k: string]: any }): (string|null);
|
6972 |
|
6973 | /**
|
6974 | * Creates a BatchTranslateResponse message from a plain object. Also converts values to their respective internal types.
|
6975 | * @param object Plain object
|
6976 | * @returns BatchTranslateResponse
|
6977 | */
|
6978 | public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3beta1.BatchTranslateResponse;
|
6979 |
|
6980 | /**
|
6981 | * Creates a plain object from a BatchTranslateResponse message. Also converts values to other types if specified.
|
6982 | * @param message BatchTranslateResponse
|
6983 | * @param [options] Conversion options
|
6984 | * @returns Plain object
|
6985 | */
|
6986 | public static toObject(message: google.cloud.translation.v3beta1.BatchTranslateResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
6987 |
|
6988 | /**
|
6989 | * Converts this BatchTranslateResponse to JSON.
|
6990 | * @returns JSON object
|
6991 | */
|
6992 | public toJSON(): { [k: string]: any };
|
6993 | }
|
6994 |
|
6995 | /** Properties of a GlossaryInputConfig. */
|
6996 | interface IGlossaryInputConfig {
|
6997 |
|
6998 | /** GlossaryInputConfig gcsSource */
|
6999 | gcsSource?: (google.cloud.translation.v3beta1.IGcsSource|null);
|
7000 | }
|
7001 |
|
7002 | /** Represents a GlossaryInputConfig. */
|
7003 | class GlossaryInputConfig implements IGlossaryInputConfig {
|
7004 |
|
7005 | /**
|
7006 | * Constructs a new GlossaryInputConfig.
|
7007 | * @param [properties] Properties to set
|
7008 | */
|
7009 | constructor(properties?: google.cloud.translation.v3beta1.IGlossaryInputConfig);
|
7010 |
|
7011 | /** GlossaryInputConfig gcsSource. */
|
7012 | public gcsSource?: (google.cloud.translation.v3beta1.IGcsSource|null);
|
7013 |
|
7014 | /** GlossaryInputConfig source. */
|
7015 | public source?: "gcsSource";
|
7016 |
|
7017 | /**
|
7018 | * Creates a new GlossaryInputConfig instance using the specified properties.
|
7019 | * @param [properties] Properties to set
|
7020 | * @returns GlossaryInputConfig instance
|
7021 | */
|
7022 | public static create(properties?: google.cloud.translation.v3beta1.IGlossaryInputConfig): google.cloud.translation.v3beta1.GlossaryInputConfig;
|
7023 |
|
7024 | /**
|
7025 | * Encodes the specified GlossaryInputConfig message. Does not implicitly { google.cloud.translation.v3beta1.GlossaryInputConfig.verify|verify} messages.
|
7026 | * message GlossaryInputConfig message or plain object to encode
|
7027 | * [writer] Writer to encode to
|
7028 | * Writer
|
7029 | */
|
7030 | public static encode(message: google.cloud.translation.v3beta1.IGlossaryInputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
7031 |
|
7032 | /**
|
7033 | * Encodes the specified GlossaryInputConfig message, length delimited. Does not implicitly {@link google.cloud.translation.v3beta1.GlossaryInputConfig.verify|verify} messages.
|
7034 | * @param message GlossaryInputConfig message or plain object to encode
|
7035 | * @param [writer] Writer to encode to
|
7036 | * @returns Writer
|
7037 | */
|
7038 | public static encodeDelimited(message: google.cloud.translation.v3beta1.IGlossaryInputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
7039 |
|
7040 | /**
|
7041 | * Decodes a GlossaryInputConfig message from the specified reader or buffer.
|
7042 | * @param reader Reader or buffer to decode from
|
7043 | * @param [length] Message length if known beforehand
|
7044 | * @returns GlossaryInputConfig
|
7045 | * @throws {Error} If the payload is not a reader or valid buffer
|
7046 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
7047 | */
|
7048 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3beta1.GlossaryInputConfig;
|
7049 |
|
7050 | /**
|
7051 | * Decodes a GlossaryInputConfig message from the specified reader or buffer, length delimited.
|
7052 | * @param reader Reader or buffer to decode from
|
7053 | * @returns GlossaryInputConfig
|
7054 | * @throws {Error} If the payload is not a reader or valid buffer
|
7055 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
7056 | */
|
7057 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3beta1.GlossaryInputConfig;
|
7058 |
|
7059 | /**
|
7060 | * Verifies a GlossaryInputConfig message.
|
7061 | * @param message Plain object to verify
|
7062 | * @returns `null` if valid, otherwise the reason why it is not
|
7063 | */
|
7064 | public static verify(message: { [k: string]: any }): (string|null);
|
7065 |
|
7066 | /**
|
7067 | * Creates a GlossaryInputConfig message from a plain object. Also converts values to their respective internal types.
|
7068 | * @param object Plain object
|
7069 | * @returns GlossaryInputConfig
|
7070 | */
|
7071 | public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3beta1.GlossaryInputConfig;
|
7072 |
|
7073 | /**
|
7074 | * Creates a plain object from a GlossaryInputConfig message. Also converts values to other types if specified.
|
7075 | * @param message GlossaryInputConfig
|
7076 | * @param [options] Conversion options
|
7077 | * @returns Plain object
|
7078 | */
|
7079 | public static toObject(message: google.cloud.translation.v3beta1.GlossaryInputConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
7080 |
|
7081 | /**
|
7082 | * Converts this GlossaryInputConfig to JSON.
|
7083 | * @returns JSON object
|
7084 | */
|
7085 | public toJSON(): { [k: string]: any };
|
7086 | }
|
7087 |
|
7088 | /** Properties of a Glossary. */
|
7089 | interface IGlossary {
|
7090 |
|
7091 | /** Glossary name */
|
7092 | name?: (string|null);
|
7093 |
|
7094 | /** Glossary languagePair */
|
7095 | languagePair?: (google.cloud.translation.v3beta1.Glossary.ILanguageCodePair|null);
|
7096 |
|
7097 | /** Glossary languageCodesSet */
|
7098 | languageCodesSet?: (google.cloud.translation.v3beta1.Glossary.ILanguageCodesSet|null);
|
7099 |
|
7100 | /** Glossary inputConfig */
|
7101 | inputConfig?: (google.cloud.translation.v3beta1.IGlossaryInputConfig|null);
|
7102 |
|
7103 | /** Glossary entryCount */
|
7104 | entryCount?: (number|null);
|
7105 |
|
7106 | /** Glossary submitTime */
|
7107 | submitTime?: (google.protobuf.ITimestamp|null);
|
7108 |
|
7109 | /** Glossary endTime */
|
7110 | endTime?: (google.protobuf.ITimestamp|null);
|
7111 | }
|
7112 |
|
7113 | /** Represents a Glossary. */
|
7114 | class Glossary implements IGlossary {
|
7115 |
|
7116 | /**
|
7117 | * Constructs a new Glossary.
|
7118 | * @param [properties] Properties to set
|
7119 | */
|
7120 | constructor(properties?: google.cloud.translation.v3beta1.IGlossary);
|
7121 |
|
7122 | /** Glossary name. */
|
7123 | public name: string;
|
7124 |
|
7125 | /** Glossary languagePair. */
|
7126 | public languagePair?: (google.cloud.translation.v3beta1.Glossary.ILanguageCodePair|null);
|
7127 |
|
7128 | /** Glossary languageCodesSet. */
|
7129 | public languageCodesSet?: (google.cloud.translation.v3beta1.Glossary.ILanguageCodesSet|null);
|
7130 |
|
7131 | /** Glossary inputConfig. */
|
7132 | public inputConfig?: (google.cloud.translation.v3beta1.IGlossaryInputConfig|null);
|
7133 |
|
7134 | /** Glossary entryCount. */
|
7135 | public entryCount: number;
|
7136 |
|
7137 | /** Glossary submitTime. */
|
7138 | public submitTime?: (google.protobuf.ITimestamp|null);
|
7139 |
|
7140 | /** Glossary endTime. */
|
7141 | public endTime?: (google.protobuf.ITimestamp|null);
|
7142 |
|
7143 | /** Glossary languages. */
|
7144 | public languages?: ("languagePair"|"languageCodesSet");
|
7145 |
|
7146 | /**
|
7147 | * Creates a new Glossary instance using the specified properties.
|
7148 | * @param [properties] Properties to set
|
7149 | * @returns Glossary instance
|
7150 | */
|
7151 | public static create(properties?: google.cloud.translation.v3beta1.IGlossary): google.cloud.translation.v3beta1.Glossary;
|
7152 |
|
7153 | /**
|
7154 | * Encodes the specified Glossary message. Does not implicitly { google.cloud.translation.v3beta1.Glossary.verify|verify} messages.
|
7155 | * message Glossary message or plain object to encode
|
7156 | * [writer] Writer to encode to
|
7157 | * Writer
|
7158 | */
|
7159 | public static encode(message: google.cloud.translation.v3beta1.IGlossary, writer?: $protobuf.Writer): $protobuf.Writer;
|
7160 |
|
7161 | /**
|
7162 | * Encodes the specified Glossary message, length delimited. Does not implicitly {@link google.cloud.translation.v3beta1.Glossary.verify|verify} messages.
|
7163 | * @param message Glossary message or plain object to encode
|
7164 | * @param [writer] Writer to encode to
|
7165 | * @returns Writer
|
7166 | */
|
7167 | public static encodeDelimited(message: google.cloud.translation.v3beta1.IGlossary, writer?: $protobuf.Writer): $protobuf.Writer;
|
7168 |
|
7169 | /**
|
7170 | * Decodes a Glossary message from the specified reader or buffer.
|
7171 | * @param reader Reader or buffer to decode from
|
7172 | * @param [length] Message length if known beforehand
|
7173 | * @returns Glossary
|
7174 | * @throws {Error} If the payload is not a reader or valid buffer
|
7175 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
7176 | */
|
7177 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3beta1.Glossary;
|
7178 |
|
7179 | /**
|
7180 | * Decodes a Glossary message from the specified reader or buffer, length delimited.
|
7181 | * @param reader Reader or buffer to decode from
|
7182 | * @returns Glossary
|
7183 | * @throws {Error} If the payload is not a reader or valid buffer
|
7184 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
7185 | */
|
7186 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3beta1.Glossary;
|
7187 |
|
7188 | /**
|
7189 | * Verifies a Glossary message.
|
7190 | * @param message Plain object to verify
|
7191 | * @returns `null` if valid, otherwise the reason why it is not
|
7192 | */
|
7193 | public static verify(message: { [k: string]: any }): (string|null);
|
7194 |
|
7195 | /**
|
7196 | * Creates a Glossary message from a plain object. Also converts values to their respective internal types.
|
7197 | * @param object Plain object
|
7198 | * @returns Glossary
|
7199 | */
|
7200 | public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3beta1.Glossary;
|
7201 |
|
7202 | /**
|
7203 | * Creates a plain object from a Glossary message. Also converts values to other types if specified.
|
7204 | * @param message Glossary
|
7205 | * @param [options] Conversion options
|
7206 | * @returns Plain object
|
7207 | */
|
7208 | public static toObject(message: google.cloud.translation.v3beta1.Glossary, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
7209 |
|
7210 | /**
|
7211 | * Converts this Glossary to JSON.
|
7212 | * @returns JSON object
|
7213 | */
|
7214 | public toJSON(): { [k: string]: any };
|
7215 | }
|
7216 |
|
7217 | namespace Glossary {
|
7218 |
|
7219 | /** Properties of a LanguageCodePair. */
|
7220 | interface ILanguageCodePair {
|
7221 |
|
7222 | /** LanguageCodePair sourceLanguageCode */
|
7223 | sourceLanguageCode?: (string|null);
|
7224 |
|
7225 | /** LanguageCodePair targetLanguageCode */
|
7226 | targetLanguageCode?: (string|null);
|
7227 | }
|
7228 |
|
7229 | /** Represents a LanguageCodePair. */
|
7230 | class LanguageCodePair implements ILanguageCodePair {
|
7231 |
|
7232 | /**
|
7233 | * Constructs a new LanguageCodePair.
|
7234 | * @param [properties] Properties to set
|
7235 | */
|
7236 | constructor(properties?: google.cloud.translation.v3beta1.Glossary.ILanguageCodePair);
|
7237 |
|
7238 | /** LanguageCodePair sourceLanguageCode. */
|
7239 | public sourceLanguageCode: string;
|
7240 |
|
7241 | /** LanguageCodePair targetLanguageCode. */
|
7242 | public targetLanguageCode: string;
|
7243 |
|
7244 | /**
|
7245 | * Creates a new LanguageCodePair instance using the specified properties.
|
7246 | * @param [properties] Properties to set
|
7247 | * @returns LanguageCodePair instance
|
7248 | */
|
7249 | public static create(properties?: google.cloud.translation.v3beta1.Glossary.ILanguageCodePair): google.cloud.translation.v3beta1.Glossary.LanguageCodePair;
|
7250 |
|
7251 | /**
|
7252 | * Encodes the specified LanguageCodePair message. Does not implicitly { google.cloud.translation.v3beta1.Glossary.LanguageCodePair.verify|verify} messages.
|
7253 | * message LanguageCodePair message or plain object to encode
|
7254 | * [writer] Writer to encode to
|
7255 | * Writer
|
7256 | */
|
7257 | public static encode(message: google.cloud.translation.v3beta1.Glossary.ILanguageCodePair, writer?: $protobuf.Writer): $protobuf.Writer;
|
7258 |
|
7259 | /**
|
7260 | * Encodes the specified LanguageCodePair message, length delimited. Does not implicitly {@link google.cloud.translation.v3beta1.Glossary.LanguageCodePair.verify|verify} messages.
|
7261 | * @param message LanguageCodePair message or plain object to encode
|
7262 | * @param [writer] Writer to encode to
|
7263 | * @returns Writer
|
7264 | */
|
7265 | public static encodeDelimited(message: google.cloud.translation.v3beta1.Glossary.ILanguageCodePair, writer?: $protobuf.Writer): $protobuf.Writer;
|
7266 |
|
7267 | /**
|
7268 | * Decodes a LanguageCodePair message from the specified reader or buffer.
|
7269 | * @param reader Reader or buffer to decode from
|
7270 | * @param [length] Message length if known beforehand
|
7271 | * @returns LanguageCodePair
|
7272 | * @throws {Error} If the payload is not a reader or valid buffer
|
7273 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
7274 | */
|
7275 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3beta1.Glossary.LanguageCodePair;
|
7276 |
|
7277 | /**
|
7278 | * Decodes a LanguageCodePair message from the specified reader or buffer, length delimited.
|
7279 | * @param reader Reader or buffer to decode from
|
7280 | * @returns LanguageCodePair
|
7281 | * @throws {Error} If the payload is not a reader or valid buffer
|
7282 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
7283 | */
|
7284 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3beta1.Glossary.LanguageCodePair;
|
7285 |
|
7286 | /**
|
7287 | * Verifies a LanguageCodePair message.
|
7288 | * @param message Plain object to verify
|
7289 | * @returns `null` if valid, otherwise the reason why it is not
|
7290 | */
|
7291 | public static verify(message: { [k: string]: any }): (string|null);
|
7292 |
|
7293 | /**
|
7294 | * Creates a LanguageCodePair message from a plain object. Also converts values to their respective internal types.
|
7295 | * @param object Plain object
|
7296 | * @returns LanguageCodePair
|
7297 | */
|
7298 | public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3beta1.Glossary.LanguageCodePair;
|
7299 |
|
7300 | /**
|
7301 | * Creates a plain object from a LanguageCodePair message. Also converts values to other types if specified.
|
7302 | * @param message LanguageCodePair
|
7303 | * @param [options] Conversion options
|
7304 | * @returns Plain object
|
7305 | */
|
7306 | public static toObject(message: google.cloud.translation.v3beta1.Glossary.LanguageCodePair, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
7307 |
|
7308 | /**
|
7309 | * Converts this LanguageCodePair to JSON.
|
7310 | * @returns JSON object
|
7311 | */
|
7312 | public toJSON(): { [k: string]: any };
|
7313 | }
|
7314 |
|
7315 | /** Properties of a LanguageCodesSet. */
|
7316 | interface ILanguageCodesSet {
|
7317 |
|
7318 | /** LanguageCodesSet languageCodes */
|
7319 | languageCodes?: (string[]|null);
|
7320 | }
|
7321 |
|
7322 | /** Represents a LanguageCodesSet. */
|
7323 | class LanguageCodesSet implements ILanguageCodesSet {
|
7324 |
|
7325 | /**
|
7326 | * Constructs a new LanguageCodesSet.
|
7327 | * @param [properties] Properties to set
|
7328 | */
|
7329 | constructor(properties?: google.cloud.translation.v3beta1.Glossary.ILanguageCodesSet);
|
7330 |
|
7331 | /** LanguageCodesSet languageCodes. */
|
7332 | public languageCodes: string[];
|
7333 |
|
7334 | /**
|
7335 | * Creates a new LanguageCodesSet instance using the specified properties.
|
7336 | * @param [properties] Properties to set
|
7337 | * @returns LanguageCodesSet instance
|
7338 | */
|
7339 | public static create(properties?: google.cloud.translation.v3beta1.Glossary.ILanguageCodesSet): google.cloud.translation.v3beta1.Glossary.LanguageCodesSet;
|
7340 |
|
7341 | /**
|
7342 | * Encodes the specified LanguageCodesSet message. Does not implicitly { google.cloud.translation.v3beta1.Glossary.LanguageCodesSet.verify|verify} messages.
|
7343 | * message LanguageCodesSet message or plain object to encode
|
7344 | * [writer] Writer to encode to
|
7345 | * Writer
|
7346 | */
|
7347 | public static encode(message: google.cloud.translation.v3beta1.Glossary.ILanguageCodesSet, writer?: $protobuf.Writer): $protobuf.Writer;
|
7348 |
|
7349 | /**
|
7350 | * Encodes the specified LanguageCodesSet message, length delimited. Does not implicitly {@link google.cloud.translation.v3beta1.Glossary.LanguageCodesSet.verify|verify} messages.
|
7351 | * @param message LanguageCodesSet message or plain object to encode
|
7352 | * @param [writer] Writer to encode to
|
7353 | * @returns Writer
|
7354 | */
|
7355 | public static encodeDelimited(message: google.cloud.translation.v3beta1.Glossary.ILanguageCodesSet, writer?: $protobuf.Writer): $protobuf.Writer;
|
7356 |
|
7357 | /**
|
7358 | * Decodes a LanguageCodesSet message from the specified reader or buffer.
|
7359 | * @param reader Reader or buffer to decode from
|
7360 | * @param [length] Message length if known beforehand
|
7361 | * @returns LanguageCodesSet
|
7362 | * @throws {Error} If the payload is not a reader or valid buffer
|
7363 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
7364 | */
|
7365 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3beta1.Glossary.LanguageCodesSet;
|
7366 |
|
7367 | /**
|
7368 | * Decodes a LanguageCodesSet message from the specified reader or buffer, length delimited.
|
7369 | * @param reader Reader or buffer to decode from
|
7370 | * @returns LanguageCodesSet
|
7371 | * @throws {Error} If the payload is not a reader or valid buffer
|
7372 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
7373 | */
|
7374 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3beta1.Glossary.LanguageCodesSet;
|
7375 |
|
7376 | /**
|
7377 | * Verifies a LanguageCodesSet message.
|
7378 | * @param message Plain object to verify
|
7379 | * @returns `null` if valid, otherwise the reason why it is not
|
7380 | */
|
7381 | public static verify(message: { [k: string]: any }): (string|null);
|
7382 |
|
7383 | /**
|
7384 | * Creates a LanguageCodesSet message from a plain object. Also converts values to their respective internal types.
|
7385 | * @param object Plain object
|
7386 | * @returns LanguageCodesSet
|
7387 | */
|
7388 | public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3beta1.Glossary.LanguageCodesSet;
|
7389 |
|
7390 | /**
|
7391 | * Creates a plain object from a LanguageCodesSet message. Also converts values to other types if specified.
|
7392 | * @param message LanguageCodesSet
|
7393 | * @param [options] Conversion options
|
7394 | * @returns Plain object
|
7395 | */
|
7396 | public static toObject(message: google.cloud.translation.v3beta1.Glossary.LanguageCodesSet, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
7397 |
|
7398 | /**
|
7399 | * Converts this LanguageCodesSet to JSON.
|
7400 | * @returns JSON object
|
7401 | */
|
7402 | public toJSON(): { [k: string]: any };
|
7403 | }
|
7404 | }
|
7405 |
|
7406 | /** Properties of a CreateGlossaryRequest. */
|
7407 | interface ICreateGlossaryRequest {
|
7408 |
|
7409 | /** CreateGlossaryRequest parent */
|
7410 | parent?: (string|null);
|
7411 |
|
7412 | /** CreateGlossaryRequest glossary */
|
7413 | glossary?: (google.cloud.translation.v3beta1.IGlossary|null);
|
7414 | }
|
7415 |
|
7416 | /** Represents a CreateGlossaryRequest. */
|
7417 | class CreateGlossaryRequest implements ICreateGlossaryRequest {
|
7418 |
|
7419 | /**
|
7420 | * Constructs a new CreateGlossaryRequest.
|
7421 | * @param [properties] Properties to set
|
7422 | */
|
7423 | constructor(properties?: google.cloud.translation.v3beta1.ICreateGlossaryRequest);
|
7424 |
|
7425 | /** CreateGlossaryRequest parent. */
|
7426 | public parent: string;
|
7427 |
|
7428 | /** CreateGlossaryRequest glossary. */
|
7429 | public glossary?: (google.cloud.translation.v3beta1.IGlossary|null);
|
7430 |
|
7431 | /**
|
7432 | * Creates a new CreateGlossaryRequest instance using the specified properties.
|
7433 | * @param [properties] Properties to set
|
7434 | * @returns CreateGlossaryRequest instance
|
7435 | */
|
7436 | public static create(properties?: google.cloud.translation.v3beta1.ICreateGlossaryRequest): google.cloud.translation.v3beta1.CreateGlossaryRequest;
|
7437 |
|
7438 | /**
|
7439 | * Encodes the specified CreateGlossaryRequest message. Does not implicitly { google.cloud.translation.v3beta1.CreateGlossaryRequest.verify|verify} messages.
|
7440 | * message CreateGlossaryRequest message or plain object to encode
|
7441 | * [writer] Writer to encode to
|
7442 | * Writer
|
7443 | */
|
7444 | public static encode(message: google.cloud.translation.v3beta1.ICreateGlossaryRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
7445 |
|
7446 | /**
|
7447 | * Encodes the specified CreateGlossaryRequest message, length delimited. Does not implicitly {@link google.cloud.translation.v3beta1.CreateGlossaryRequest.verify|verify} messages.
|
7448 | * @param message CreateGlossaryRequest message or plain object to encode
|
7449 | * @param [writer] Writer to encode to
|
7450 | * @returns Writer
|
7451 | */
|
7452 | public static encodeDelimited(message: google.cloud.translation.v3beta1.ICreateGlossaryRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
7453 |
|
7454 | /**
|
7455 | * Decodes a CreateGlossaryRequest message from the specified reader or buffer.
|
7456 | * @param reader Reader or buffer to decode from
|
7457 | * @param [length] Message length if known beforehand
|
7458 | * @returns CreateGlossaryRequest
|
7459 | * @throws {Error} If the payload is not a reader or valid buffer
|
7460 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
7461 | */
|
7462 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3beta1.CreateGlossaryRequest;
|
7463 |
|
7464 | /**
|
7465 | * Decodes a CreateGlossaryRequest message from the specified reader or buffer, length delimited.
|
7466 | * @param reader Reader or buffer to decode from
|
7467 | * @returns CreateGlossaryRequest
|
7468 | * @throws {Error} If the payload is not a reader or valid buffer
|
7469 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
7470 | */
|
7471 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3beta1.CreateGlossaryRequest;
|
7472 |
|
7473 | /**
|
7474 | * Verifies a CreateGlossaryRequest message.
|
7475 | * @param message Plain object to verify
|
7476 | * @returns `null` if valid, otherwise the reason why it is not
|
7477 | */
|
7478 | public static verify(message: { [k: string]: any }): (string|null);
|
7479 |
|
7480 | /**
|
7481 | * Creates a CreateGlossaryRequest message from a plain object. Also converts values to their respective internal types.
|
7482 | * @param object Plain object
|
7483 | * @returns CreateGlossaryRequest
|
7484 | */
|
7485 | public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3beta1.CreateGlossaryRequest;
|
7486 |
|
7487 | /**
|
7488 | * Creates a plain object from a CreateGlossaryRequest message. Also converts values to other types if specified.
|
7489 | * @param message CreateGlossaryRequest
|
7490 | * @param [options] Conversion options
|
7491 | * @returns Plain object
|
7492 | */
|
7493 | public static toObject(message: google.cloud.translation.v3beta1.CreateGlossaryRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
7494 |
|
7495 | /**
|
7496 | * Converts this CreateGlossaryRequest to JSON.
|
7497 | * @returns JSON object
|
7498 | */
|
7499 | public toJSON(): { [k: string]: any };
|
7500 | }
|
7501 |
|
7502 | /** Properties of a GetGlossaryRequest. */
|
7503 | interface IGetGlossaryRequest {
|
7504 |
|
7505 | /** GetGlossaryRequest name */
|
7506 | name?: (string|null);
|
7507 | }
|
7508 |
|
7509 | /** Represents a GetGlossaryRequest. */
|
7510 | class GetGlossaryRequest implements IGetGlossaryRequest {
|
7511 |
|
7512 | /**
|
7513 | * Constructs a new GetGlossaryRequest.
|
7514 | * @param [properties] Properties to set
|
7515 | */
|
7516 | constructor(properties?: google.cloud.translation.v3beta1.IGetGlossaryRequest);
|
7517 |
|
7518 | /** GetGlossaryRequest name. */
|
7519 | public name: string;
|
7520 |
|
7521 | /**
|
7522 | * Creates a new GetGlossaryRequest instance using the specified properties.
|
7523 | * @param [properties] Properties to set
|
7524 | * @returns GetGlossaryRequest instance
|
7525 | */
|
7526 | public static create(properties?: google.cloud.translation.v3beta1.IGetGlossaryRequest): google.cloud.translation.v3beta1.GetGlossaryRequest;
|
7527 |
|
7528 | /**
|
7529 | * Encodes the specified GetGlossaryRequest message. Does not implicitly { google.cloud.translation.v3beta1.GetGlossaryRequest.verify|verify} messages.
|
7530 | * message GetGlossaryRequest message or plain object to encode
|
7531 | * [writer] Writer to encode to
|
7532 | * Writer
|
7533 | */
|
7534 | public static encode(message: google.cloud.translation.v3beta1.IGetGlossaryRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
7535 |
|
7536 | /**
|
7537 | * Encodes the specified GetGlossaryRequest message, length delimited. Does not implicitly {@link google.cloud.translation.v3beta1.GetGlossaryRequest.verify|verify} messages.
|
7538 | * @param message GetGlossaryRequest message or plain object to encode
|
7539 | * @param [writer] Writer to encode to
|
7540 | * @returns Writer
|
7541 | */
|
7542 | public static encodeDelimited(message: google.cloud.translation.v3beta1.IGetGlossaryRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
7543 |
|
7544 | /**
|
7545 | * Decodes a GetGlossaryRequest message from the specified reader or buffer.
|
7546 | * @param reader Reader or buffer to decode from
|
7547 | * @param [length] Message length if known beforehand
|
7548 | * @returns GetGlossaryRequest
|
7549 | * @throws {Error} If the payload is not a reader or valid buffer
|
7550 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
7551 | */
|
7552 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3beta1.GetGlossaryRequest;
|
7553 |
|
7554 | /**
|
7555 | * Decodes a GetGlossaryRequest message from the specified reader or buffer, length delimited.
|
7556 | * @param reader Reader or buffer to decode from
|
7557 | * @returns GetGlossaryRequest
|
7558 | * @throws {Error} If the payload is not a reader or valid buffer
|
7559 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
7560 | */
|
7561 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3beta1.GetGlossaryRequest;
|
7562 |
|
7563 | /**
|
7564 | * Verifies a GetGlossaryRequest message.
|
7565 | * @param message Plain object to verify
|
7566 | * @returns `null` if valid, otherwise the reason why it is not
|
7567 | */
|
7568 | public static verify(message: { [k: string]: any }): (string|null);
|
7569 |
|
7570 | /**
|
7571 | * Creates a GetGlossaryRequest message from a plain object. Also converts values to their respective internal types.
|
7572 | * @param object Plain object
|
7573 | * @returns GetGlossaryRequest
|
7574 | */
|
7575 | public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3beta1.GetGlossaryRequest;
|
7576 |
|
7577 | /**
|
7578 | * Creates a plain object from a GetGlossaryRequest message. Also converts values to other types if specified.
|
7579 | * @param message GetGlossaryRequest
|
7580 | * @param [options] Conversion options
|
7581 | * @returns Plain object
|
7582 | */
|
7583 | public static toObject(message: google.cloud.translation.v3beta1.GetGlossaryRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
7584 |
|
7585 | /**
|
7586 | * Converts this GetGlossaryRequest to JSON.
|
7587 | * @returns JSON object
|
7588 | */
|
7589 | public toJSON(): { [k: string]: any };
|
7590 | }
|
7591 |
|
7592 | /** Properties of a DeleteGlossaryRequest. */
|
7593 | interface IDeleteGlossaryRequest {
|
7594 |
|
7595 | /** DeleteGlossaryRequest name */
|
7596 | name?: (string|null);
|
7597 | }
|
7598 |
|
7599 | /** Represents a DeleteGlossaryRequest. */
|
7600 | class DeleteGlossaryRequest implements IDeleteGlossaryRequest {
|
7601 |
|
7602 | /**
|
7603 | * Constructs a new DeleteGlossaryRequest.
|
7604 | * @param [properties] Properties to set
|
7605 | */
|
7606 | constructor(properties?: google.cloud.translation.v3beta1.IDeleteGlossaryRequest);
|
7607 |
|
7608 | /** DeleteGlossaryRequest name. */
|
7609 | public name: string;
|
7610 |
|
7611 | /**
|
7612 | * Creates a new DeleteGlossaryRequest instance using the specified properties.
|
7613 | * @param [properties] Properties to set
|
7614 | * @returns DeleteGlossaryRequest instance
|
7615 | */
|
7616 | public static create(properties?: google.cloud.translation.v3beta1.IDeleteGlossaryRequest): google.cloud.translation.v3beta1.DeleteGlossaryRequest;
|
7617 |
|
7618 | /**
|
7619 | * Encodes the specified DeleteGlossaryRequest message. Does not implicitly { google.cloud.translation.v3beta1.DeleteGlossaryRequest.verify|verify} messages.
|
7620 | * message DeleteGlossaryRequest message or plain object to encode
|
7621 | * [writer] Writer to encode to
|
7622 | * Writer
|
7623 | */
|
7624 | public static encode(message: google.cloud.translation.v3beta1.IDeleteGlossaryRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
7625 |
|
7626 | /**
|
7627 | * Encodes the specified DeleteGlossaryRequest message, length delimited. Does not implicitly {@link google.cloud.translation.v3beta1.DeleteGlossaryRequest.verify|verify} messages.
|
7628 | * @param message DeleteGlossaryRequest message or plain object to encode
|
7629 | * @param [writer] Writer to encode to
|
7630 | * @returns Writer
|
7631 | */
|
7632 | public static encodeDelimited(message: google.cloud.translation.v3beta1.IDeleteGlossaryRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
7633 |
|
7634 | /**
|
7635 | * Decodes a DeleteGlossaryRequest message from the specified reader or buffer.
|
7636 | * @param reader Reader or buffer to decode from
|
7637 | * @param [length] Message length if known beforehand
|
7638 | * @returns DeleteGlossaryRequest
|
7639 | * @throws {Error} If the payload is not a reader or valid buffer
|
7640 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
7641 | */
|
7642 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3beta1.DeleteGlossaryRequest;
|
7643 |
|
7644 | /**
|
7645 | * Decodes a DeleteGlossaryRequest message from the specified reader or buffer, length delimited.
|
7646 | * @param reader Reader or buffer to decode from
|
7647 | * @returns DeleteGlossaryRequest
|
7648 | * @throws {Error} If the payload is not a reader or valid buffer
|
7649 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
7650 | */
|
7651 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3beta1.DeleteGlossaryRequest;
|
7652 |
|
7653 | /**
|
7654 | * Verifies a DeleteGlossaryRequest message.
|
7655 | * @param message Plain object to verify
|
7656 | * @returns `null` if valid, otherwise the reason why it is not
|
7657 | */
|
7658 | public static verify(message: { [k: string]: any }): (string|null);
|
7659 |
|
7660 | /**
|
7661 | * Creates a DeleteGlossaryRequest message from a plain object. Also converts values to their respective internal types.
|
7662 | * @param object Plain object
|
7663 | * @returns DeleteGlossaryRequest
|
7664 | */
|
7665 | public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3beta1.DeleteGlossaryRequest;
|
7666 |
|
7667 | /**
|
7668 | * Creates a plain object from a DeleteGlossaryRequest message. Also converts values to other types if specified.
|
7669 | * @param message DeleteGlossaryRequest
|
7670 | * @param [options] Conversion options
|
7671 | * @returns Plain object
|
7672 | */
|
7673 | public static toObject(message: google.cloud.translation.v3beta1.DeleteGlossaryRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
7674 |
|
7675 | /**
|
7676 | * Converts this DeleteGlossaryRequest to JSON.
|
7677 | * @returns JSON object
|
7678 | */
|
7679 | public toJSON(): { [k: string]: any };
|
7680 | }
|
7681 |
|
7682 | /** Properties of a ListGlossariesRequest. */
|
7683 | interface IListGlossariesRequest {
|
7684 |
|
7685 | /** ListGlossariesRequest parent */
|
7686 | parent?: (string|null);
|
7687 |
|
7688 | /** ListGlossariesRequest pageSize */
|
7689 | pageSize?: (number|null);
|
7690 |
|
7691 | /** ListGlossariesRequest pageToken */
|
7692 | pageToken?: (string|null);
|
7693 |
|
7694 | /** ListGlossariesRequest filter */
|
7695 | filter?: (string|null);
|
7696 | }
|
7697 |
|
7698 | /** Represents a ListGlossariesRequest. */
|
7699 | class ListGlossariesRequest implements IListGlossariesRequest {
|
7700 |
|
7701 | /**
|
7702 | * Constructs a new ListGlossariesRequest.
|
7703 | * @param [properties] Properties to set
|
7704 | */
|
7705 | constructor(properties?: google.cloud.translation.v3beta1.IListGlossariesRequest);
|
7706 |
|
7707 | /** ListGlossariesRequest parent. */
|
7708 | public parent: string;
|
7709 |
|
7710 | /** ListGlossariesRequest pageSize. */
|
7711 | public pageSize: number;
|
7712 |
|
7713 | /** ListGlossariesRequest pageToken. */
|
7714 | public pageToken: string;
|
7715 |
|
7716 | /** ListGlossariesRequest filter. */
|
7717 | public filter: string;
|
7718 |
|
7719 | /**
|
7720 | * Creates a new ListGlossariesRequest instance using the specified properties.
|
7721 | * @param [properties] Properties to set
|
7722 | * @returns ListGlossariesRequest instance
|
7723 | */
|
7724 | public static create(properties?: google.cloud.translation.v3beta1.IListGlossariesRequest): google.cloud.translation.v3beta1.ListGlossariesRequest;
|
7725 |
|
7726 | /**
|
7727 | * Encodes the specified ListGlossariesRequest message. Does not implicitly { google.cloud.translation.v3beta1.ListGlossariesRequest.verify|verify} messages.
|
7728 | * message ListGlossariesRequest message or plain object to encode
|
7729 | * [writer] Writer to encode to
|
7730 | * Writer
|
7731 | */
|
7732 | public static encode(message: google.cloud.translation.v3beta1.IListGlossariesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
7733 |
|
7734 | /**
|
7735 | * Encodes the specified ListGlossariesRequest message, length delimited. Does not implicitly {@link google.cloud.translation.v3beta1.ListGlossariesRequest.verify|verify} messages.
|
7736 | * @param message ListGlossariesRequest message or plain object to encode
|
7737 | * @param [writer] Writer to encode to
|
7738 | * @returns Writer
|
7739 | */
|
7740 | public static encodeDelimited(message: google.cloud.translation.v3beta1.IListGlossariesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
7741 |
|
7742 | /**
|
7743 | * Decodes a ListGlossariesRequest message from the specified reader or buffer.
|
7744 | * @param reader Reader or buffer to decode from
|
7745 | * @param [length] Message length if known beforehand
|
7746 | * @returns ListGlossariesRequest
|
7747 | * @throws {Error} If the payload is not a reader or valid buffer
|
7748 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
7749 | */
|
7750 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3beta1.ListGlossariesRequest;
|
7751 |
|
7752 | /**
|
7753 | * Decodes a ListGlossariesRequest message from the specified reader or buffer, length delimited.
|
7754 | * @param reader Reader or buffer to decode from
|
7755 | * @returns ListGlossariesRequest
|
7756 | * @throws {Error} If the payload is not a reader or valid buffer
|
7757 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
7758 | */
|
7759 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3beta1.ListGlossariesRequest;
|
7760 |
|
7761 | /**
|
7762 | * Verifies a ListGlossariesRequest message.
|
7763 | * @param message Plain object to verify
|
7764 | * @returns `null` if valid, otherwise the reason why it is not
|
7765 | */
|
7766 | public static verify(message: { [k: string]: any }): (string|null);
|
7767 |
|
7768 | /**
|
7769 | * Creates a ListGlossariesRequest message from a plain object. Also converts values to their respective internal types.
|
7770 | * @param object Plain object
|
7771 | * @returns ListGlossariesRequest
|
7772 | */
|
7773 | public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3beta1.ListGlossariesRequest;
|
7774 |
|
7775 | /**
|
7776 | * Creates a plain object from a ListGlossariesRequest message. Also converts values to other types if specified.
|
7777 | * @param message ListGlossariesRequest
|
7778 | * @param [options] Conversion options
|
7779 | * @returns Plain object
|
7780 | */
|
7781 | public static toObject(message: google.cloud.translation.v3beta1.ListGlossariesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
7782 |
|
7783 | /**
|
7784 | * Converts this ListGlossariesRequest to JSON.
|
7785 | * @returns JSON object
|
7786 | */
|
7787 | public toJSON(): { [k: string]: any };
|
7788 | }
|
7789 |
|
7790 | /** Properties of a ListGlossariesResponse. */
|
7791 | interface IListGlossariesResponse {
|
7792 |
|
7793 | /** ListGlossariesResponse glossaries */
|
7794 | glossaries?: (google.cloud.translation.v3beta1.IGlossary[]|null);
|
7795 |
|
7796 | /** ListGlossariesResponse nextPageToken */
|
7797 | nextPageToken?: (string|null);
|
7798 | }
|
7799 |
|
7800 | /** Represents a ListGlossariesResponse. */
|
7801 | class ListGlossariesResponse implements IListGlossariesResponse {
|
7802 |
|
7803 | /**
|
7804 | * Constructs a new ListGlossariesResponse.
|
7805 | * @param [properties] Properties to set
|
7806 | */
|
7807 | constructor(properties?: google.cloud.translation.v3beta1.IListGlossariesResponse);
|
7808 |
|
7809 | /** ListGlossariesResponse glossaries. */
|
7810 | public glossaries: google.cloud.translation.v3beta1.IGlossary[];
|
7811 |
|
7812 | /** ListGlossariesResponse nextPageToken. */
|
7813 | public nextPageToken: string;
|
7814 |
|
7815 | /**
|
7816 | * Creates a new ListGlossariesResponse instance using the specified properties.
|
7817 | * @param [properties] Properties to set
|
7818 | * @returns ListGlossariesResponse instance
|
7819 | */
|
7820 | public static create(properties?: google.cloud.translation.v3beta1.IListGlossariesResponse): google.cloud.translation.v3beta1.ListGlossariesResponse;
|
7821 |
|
7822 | /**
|
7823 | * Encodes the specified ListGlossariesResponse message. Does not implicitly { google.cloud.translation.v3beta1.ListGlossariesResponse.verify|verify} messages.
|
7824 | * message ListGlossariesResponse message or plain object to encode
|
7825 | * [writer] Writer to encode to
|
7826 | * Writer
|
7827 | */
|
7828 | public static encode(message: google.cloud.translation.v3beta1.IListGlossariesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
7829 |
|
7830 | /**
|
7831 | * Encodes the specified ListGlossariesResponse message, length delimited. Does not implicitly {@link google.cloud.translation.v3beta1.ListGlossariesResponse.verify|verify} messages.
|
7832 | * @param message ListGlossariesResponse message or plain object to encode
|
7833 | * @param [writer] Writer to encode to
|
7834 | * @returns Writer
|
7835 | */
|
7836 | public static encodeDelimited(message: google.cloud.translation.v3beta1.IListGlossariesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
7837 |
|
7838 | /**
|
7839 | * Decodes a ListGlossariesResponse message from the specified reader or buffer.
|
7840 | * @param reader Reader or buffer to decode from
|
7841 | * @param [length] Message length if known beforehand
|
7842 | * @returns ListGlossariesResponse
|
7843 | * @throws {Error} If the payload is not a reader or valid buffer
|
7844 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
7845 | */
|
7846 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3beta1.ListGlossariesResponse;
|
7847 |
|
7848 | /**
|
7849 | * Decodes a ListGlossariesResponse message from the specified reader or buffer, length delimited.
|
7850 | * @param reader Reader or buffer to decode from
|
7851 | * @returns ListGlossariesResponse
|
7852 | * @throws {Error} If the payload is not a reader or valid buffer
|
7853 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
7854 | */
|
7855 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3beta1.ListGlossariesResponse;
|
7856 |
|
7857 | /**
|
7858 | * Verifies a ListGlossariesResponse message.
|
7859 | * @param message Plain object to verify
|
7860 | * @returns `null` if valid, otherwise the reason why it is not
|
7861 | */
|
7862 | public static verify(message: { [k: string]: any }): (string|null);
|
7863 |
|
7864 | /**
|
7865 | * Creates a ListGlossariesResponse message from a plain object. Also converts values to their respective internal types.
|
7866 | * @param object Plain object
|
7867 | * @returns ListGlossariesResponse
|
7868 | */
|
7869 | public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3beta1.ListGlossariesResponse;
|
7870 |
|
7871 | /**
|
7872 | * Creates a plain object from a ListGlossariesResponse message. Also converts values to other types if specified.
|
7873 | * @param message ListGlossariesResponse
|
7874 | * @param [options] Conversion options
|
7875 | * @returns Plain object
|
7876 | */
|
7877 | public static toObject(message: google.cloud.translation.v3beta1.ListGlossariesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
7878 |
|
7879 | /**
|
7880 | * Converts this ListGlossariesResponse to JSON.
|
7881 | * @returns JSON object
|
7882 | */
|
7883 | public toJSON(): { [k: string]: any };
|
7884 | }
|
7885 |
|
7886 | /** Properties of a CreateGlossaryMetadata. */
|
7887 | interface ICreateGlossaryMetadata {
|
7888 |
|
7889 | /** CreateGlossaryMetadata name */
|
7890 | name?: (string|null);
|
7891 |
|
7892 | /** CreateGlossaryMetadata state */
|
7893 | state?: (google.cloud.translation.v3beta1.CreateGlossaryMetadata.State|keyof typeof google.cloud.translation.v3beta1.CreateGlossaryMetadata.State|null);
|
7894 |
|
7895 | /** CreateGlossaryMetadata submitTime */
|
7896 | submitTime?: (google.protobuf.ITimestamp|null);
|
7897 | }
|
7898 |
|
7899 | /** Represents a CreateGlossaryMetadata. */
|
7900 | class CreateGlossaryMetadata implements ICreateGlossaryMetadata {
|
7901 |
|
7902 | /**
|
7903 | * Constructs a new CreateGlossaryMetadata.
|
7904 | * @param [properties] Properties to set
|
7905 | */
|
7906 | constructor(properties?: google.cloud.translation.v3beta1.ICreateGlossaryMetadata);
|
7907 |
|
7908 | /** CreateGlossaryMetadata name. */
|
7909 | public name: string;
|
7910 |
|
7911 | /** CreateGlossaryMetadata state. */
|
7912 | public state: (google.cloud.translation.v3beta1.CreateGlossaryMetadata.State|keyof typeof google.cloud.translation.v3beta1.CreateGlossaryMetadata.State);
|
7913 |
|
7914 | /** CreateGlossaryMetadata submitTime. */
|
7915 | public submitTime?: (google.protobuf.ITimestamp|null);
|
7916 |
|
7917 | /**
|
7918 | * Creates a new CreateGlossaryMetadata instance using the specified properties.
|
7919 | * @param [properties] Properties to set
|
7920 | * @returns CreateGlossaryMetadata instance
|
7921 | */
|
7922 | public static create(properties?: google.cloud.translation.v3beta1.ICreateGlossaryMetadata): google.cloud.translation.v3beta1.CreateGlossaryMetadata;
|
7923 |
|
7924 | /**
|
7925 | * Encodes the specified CreateGlossaryMetadata message. Does not implicitly { google.cloud.translation.v3beta1.CreateGlossaryMetadata.verify|verify} messages.
|
7926 | * message CreateGlossaryMetadata message or plain object to encode
|
7927 | * [writer] Writer to encode to
|
7928 | * Writer
|
7929 | */
|
7930 | public static encode(message: google.cloud.translation.v3beta1.ICreateGlossaryMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
|
7931 |
|
7932 | /**
|
7933 | * Encodes the specified CreateGlossaryMetadata message, length delimited. Does not implicitly {@link google.cloud.translation.v3beta1.CreateGlossaryMetadata.verify|verify} messages.
|
7934 | * @param message CreateGlossaryMetadata message or plain object to encode
|
7935 | * @param [writer] Writer to encode to
|
7936 | * @returns Writer
|
7937 | */
|
7938 | public static encodeDelimited(message: google.cloud.translation.v3beta1.ICreateGlossaryMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
|
7939 |
|
7940 | /**
|
7941 | * Decodes a CreateGlossaryMetadata message from the specified reader or buffer.
|
7942 | * @param reader Reader or buffer to decode from
|
7943 | * @param [length] Message length if known beforehand
|
7944 | * @returns CreateGlossaryMetadata
|
7945 | * @throws {Error} If the payload is not a reader or valid buffer
|
7946 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
7947 | */
|
7948 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3beta1.CreateGlossaryMetadata;
|
7949 |
|
7950 | /**
|
7951 | * Decodes a CreateGlossaryMetadata message from the specified reader or buffer, length delimited.
|
7952 | * @param reader Reader or buffer to decode from
|
7953 | * @returns CreateGlossaryMetadata
|
7954 | * @throws {Error} If the payload is not a reader or valid buffer
|
7955 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
7956 | */
|
7957 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3beta1.CreateGlossaryMetadata;
|
7958 |
|
7959 | /**
|
7960 | * Verifies a CreateGlossaryMetadata message.
|
7961 | * @param message Plain object to verify
|
7962 | * @returns `null` if valid, otherwise the reason why it is not
|
7963 | */
|
7964 | public static verify(message: { [k: string]: any }): (string|null);
|
7965 |
|
7966 | /**
|
7967 | * Creates a CreateGlossaryMetadata message from a plain object. Also converts values to their respective internal types.
|
7968 | * @param object Plain object
|
7969 | * @returns CreateGlossaryMetadata
|
7970 | */
|
7971 | public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3beta1.CreateGlossaryMetadata;
|
7972 |
|
7973 | /**
|
7974 | * Creates a plain object from a CreateGlossaryMetadata message. Also converts values to other types if specified.
|
7975 | * @param message CreateGlossaryMetadata
|
7976 | * @param [options] Conversion options
|
7977 | * @returns Plain object
|
7978 | */
|
7979 | public static toObject(message: google.cloud.translation.v3beta1.CreateGlossaryMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
7980 |
|
7981 | /**
|
7982 | * Converts this CreateGlossaryMetadata to JSON.
|
7983 | * @returns JSON object
|
7984 | */
|
7985 | public toJSON(): { [k: string]: any };
|
7986 | }
|
7987 |
|
7988 | namespace CreateGlossaryMetadata {
|
7989 |
|
7990 | /** State enum. */
|
7991 | enum State {
|
7992 | STATE_UNSPECIFIED = 0,
|
7993 | RUNNING = 1,
|
7994 | SUCCEEDED = 2,
|
7995 | FAILED = 3,
|
7996 | CANCELLING = 4,
|
7997 | CANCELLED = 5
|
7998 | }
|
7999 | }
|
8000 |
|
8001 | /** Properties of a DeleteGlossaryMetadata. */
|
8002 | interface IDeleteGlossaryMetadata {
|
8003 |
|
8004 | /** DeleteGlossaryMetadata name */
|
8005 | name?: (string|null);
|
8006 |
|
8007 | /** DeleteGlossaryMetadata state */
|
8008 | state?: (google.cloud.translation.v3beta1.DeleteGlossaryMetadata.State|keyof typeof google.cloud.translation.v3beta1.DeleteGlossaryMetadata.State|null);
|
8009 |
|
8010 | /** DeleteGlossaryMetadata submitTime */
|
8011 | submitTime?: (google.protobuf.ITimestamp|null);
|
8012 | }
|
8013 |
|
8014 | /** Represents a DeleteGlossaryMetadata. */
|
8015 | class DeleteGlossaryMetadata implements IDeleteGlossaryMetadata {
|
8016 |
|
8017 | /**
|
8018 | * Constructs a new DeleteGlossaryMetadata.
|
8019 | * @param [properties] Properties to set
|
8020 | */
|
8021 | constructor(properties?: google.cloud.translation.v3beta1.IDeleteGlossaryMetadata);
|
8022 |
|
8023 | /** DeleteGlossaryMetadata name. */
|
8024 | public name: string;
|
8025 |
|
8026 | /** DeleteGlossaryMetadata state. */
|
8027 | public state: (google.cloud.translation.v3beta1.DeleteGlossaryMetadata.State|keyof typeof google.cloud.translation.v3beta1.DeleteGlossaryMetadata.State);
|
8028 |
|
8029 | /** DeleteGlossaryMetadata submitTime. */
|
8030 | public submitTime?: (google.protobuf.ITimestamp|null);
|
8031 |
|
8032 | /**
|
8033 | * Creates a new DeleteGlossaryMetadata instance using the specified properties.
|
8034 | * @param [properties] Properties to set
|
8035 | * @returns DeleteGlossaryMetadata instance
|
8036 | */
|
8037 | public static create(properties?: google.cloud.translation.v3beta1.IDeleteGlossaryMetadata): google.cloud.translation.v3beta1.DeleteGlossaryMetadata;
|
8038 |
|
8039 | /**
|
8040 | * Encodes the specified DeleteGlossaryMetadata message. Does not implicitly { google.cloud.translation.v3beta1.DeleteGlossaryMetadata.verify|verify} messages.
|
8041 | * message DeleteGlossaryMetadata message or plain object to encode
|
8042 | * [writer] Writer to encode to
|
8043 | * Writer
|
8044 | */
|
8045 | public static encode(message: google.cloud.translation.v3beta1.IDeleteGlossaryMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
|
8046 |
|
8047 | /**
|
8048 | * Encodes the specified DeleteGlossaryMetadata message, length delimited. Does not implicitly {@link google.cloud.translation.v3beta1.DeleteGlossaryMetadata.verify|verify} messages.
|
8049 | * @param message DeleteGlossaryMetadata message or plain object to encode
|
8050 | * @param [writer] Writer to encode to
|
8051 | * @returns Writer
|
8052 | */
|
8053 | public static encodeDelimited(message: google.cloud.translation.v3beta1.IDeleteGlossaryMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
|
8054 |
|
8055 | /**
|
8056 | * Decodes a DeleteGlossaryMetadata message from the specified reader or buffer.
|
8057 | * @param reader Reader or buffer to decode from
|
8058 | * @param [length] Message length if known beforehand
|
8059 | * @returns DeleteGlossaryMetadata
|
8060 | * @throws {Error} If the payload is not a reader or valid buffer
|
8061 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
8062 | */
|
8063 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3beta1.DeleteGlossaryMetadata;
|
8064 |
|
8065 | /**
|
8066 | * Decodes a DeleteGlossaryMetadata message from the specified reader or buffer, length delimited.
|
8067 | * @param reader Reader or buffer to decode from
|
8068 | * @returns DeleteGlossaryMetadata
|
8069 | * @throws {Error} If the payload is not a reader or valid buffer
|
8070 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
8071 | */
|
8072 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3beta1.DeleteGlossaryMetadata;
|
8073 |
|
8074 | /**
|
8075 | * Verifies a DeleteGlossaryMetadata message.
|
8076 | * @param message Plain object to verify
|
8077 | * @returns `null` if valid, otherwise the reason why it is not
|
8078 | */
|
8079 | public static verify(message: { [k: string]: any }): (string|null);
|
8080 |
|
8081 | /**
|
8082 | * Creates a DeleteGlossaryMetadata message from a plain object. Also converts values to their respective internal types.
|
8083 | * @param object Plain object
|
8084 | * @returns DeleteGlossaryMetadata
|
8085 | */
|
8086 | public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3beta1.DeleteGlossaryMetadata;
|
8087 |
|
8088 | /**
|
8089 | * Creates a plain object from a DeleteGlossaryMetadata message. Also converts values to other types if specified.
|
8090 | * @param message DeleteGlossaryMetadata
|
8091 | * @param [options] Conversion options
|
8092 | * @returns Plain object
|
8093 | */
|
8094 | public static toObject(message: google.cloud.translation.v3beta1.DeleteGlossaryMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
8095 |
|
8096 | /**
|
8097 | * Converts this DeleteGlossaryMetadata to JSON.
|
8098 | * @returns JSON object
|
8099 | */
|
8100 | public toJSON(): { [k: string]: any };
|
8101 | }
|
8102 |
|
8103 | namespace DeleteGlossaryMetadata {
|
8104 |
|
8105 | /** State enum. */
|
8106 | enum State {
|
8107 | STATE_UNSPECIFIED = 0,
|
8108 | RUNNING = 1,
|
8109 | SUCCEEDED = 2,
|
8110 | FAILED = 3,
|
8111 | CANCELLING = 4,
|
8112 | CANCELLED = 5
|
8113 | }
|
8114 | }
|
8115 |
|
8116 | /** Properties of a DeleteGlossaryResponse. */
|
8117 | interface IDeleteGlossaryResponse {
|
8118 |
|
8119 | /** DeleteGlossaryResponse name */
|
8120 | name?: (string|null);
|
8121 |
|
8122 | /** DeleteGlossaryResponse submitTime */
|
8123 | submitTime?: (google.protobuf.ITimestamp|null);
|
8124 |
|
8125 | /** DeleteGlossaryResponse endTime */
|
8126 | endTime?: (google.protobuf.ITimestamp|null);
|
8127 | }
|
8128 |
|
8129 | /** Represents a DeleteGlossaryResponse. */
|
8130 | class DeleteGlossaryResponse implements IDeleteGlossaryResponse {
|
8131 |
|
8132 | /**
|
8133 | * Constructs a new DeleteGlossaryResponse.
|
8134 | * @param [properties] Properties to set
|
8135 | */
|
8136 | constructor(properties?: google.cloud.translation.v3beta1.IDeleteGlossaryResponse);
|
8137 |
|
8138 | /** DeleteGlossaryResponse name. */
|
8139 | public name: string;
|
8140 |
|
8141 | /** DeleteGlossaryResponse submitTime. */
|
8142 | public submitTime?: (google.protobuf.ITimestamp|null);
|
8143 |
|
8144 | /** DeleteGlossaryResponse endTime. */
|
8145 | public endTime?: (google.protobuf.ITimestamp|null);
|
8146 |
|
8147 | /**
|
8148 | * Creates a new DeleteGlossaryResponse instance using the specified properties.
|
8149 | * @param [properties] Properties to set
|
8150 | * @returns DeleteGlossaryResponse instance
|
8151 | */
|
8152 | public static create(properties?: google.cloud.translation.v3beta1.IDeleteGlossaryResponse): google.cloud.translation.v3beta1.DeleteGlossaryResponse;
|
8153 |
|
8154 | /**
|
8155 | * Encodes the specified DeleteGlossaryResponse message. Does not implicitly { google.cloud.translation.v3beta1.DeleteGlossaryResponse.verify|verify} messages.
|
8156 | * message DeleteGlossaryResponse message or plain object to encode
|
8157 | * [writer] Writer to encode to
|
8158 | * Writer
|
8159 | */
|
8160 | public static encode(message: google.cloud.translation.v3beta1.IDeleteGlossaryResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
8161 |
|
8162 | /**
|
8163 | * Encodes the specified DeleteGlossaryResponse message, length delimited. Does not implicitly {@link google.cloud.translation.v3beta1.DeleteGlossaryResponse.verify|verify} messages.
|
8164 | * @param message DeleteGlossaryResponse message or plain object to encode
|
8165 | * @param [writer] Writer to encode to
|
8166 | * @returns Writer
|
8167 | */
|
8168 | public static encodeDelimited(message: google.cloud.translation.v3beta1.IDeleteGlossaryResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
8169 |
|
8170 | /**
|
8171 | * Decodes a DeleteGlossaryResponse 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 DeleteGlossaryResponse
|
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.cloud.translation.v3beta1.DeleteGlossaryResponse;
|
8179 |
|
8180 | /**
|
8181 | * Decodes a DeleteGlossaryResponse message from the specified reader or buffer, length delimited.
|
8182 | * @param reader Reader or buffer to decode from
|
8183 | * @returns DeleteGlossaryResponse
|
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.cloud.translation.v3beta1.DeleteGlossaryResponse;
|
8188 |
|
8189 | /**
|
8190 | * Verifies a DeleteGlossaryResponse 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 DeleteGlossaryResponse message from a plain object. Also converts values to their respective internal types.
|
8198 | * @param object Plain object
|
8199 | * @returns DeleteGlossaryResponse
|
8200 | */
|
8201 | public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3beta1.DeleteGlossaryResponse;
|
8202 |
|
8203 | /**
|
8204 | * Creates a plain object from a DeleteGlossaryResponse message. Also converts values to other types if specified.
|
8205 | * @param message DeleteGlossaryResponse
|
8206 | * @param [options] Conversion options
|
8207 | * @returns Plain object
|
8208 | */
|
8209 | public static toObject(message: google.cloud.translation.v3beta1.DeleteGlossaryResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
8210 |
|
8211 | /**
|
8212 | * Converts this DeleteGlossaryResponse to JSON.
|
8213 | * @returns JSON object
|
8214 | */
|
8215 | public toJSON(): { [k: string]: any };
|
8216 | }
|
8217 |
|
8218 | /** Properties of a BatchTranslateDocumentRequest. */
|
8219 | interface IBatchTranslateDocumentRequest {
|
8220 |
|
8221 | /** BatchTranslateDocumentRequest parent */
|
8222 | parent?: (string|null);
|
8223 |
|
8224 | /** BatchTranslateDocumentRequest sourceLanguageCode */
|
8225 | sourceLanguageCode?: (string|null);
|
8226 |
|
8227 | /** BatchTranslateDocumentRequest targetLanguageCodes */
|
8228 | targetLanguageCodes?: (string[]|null);
|
8229 |
|
8230 | /** BatchTranslateDocumentRequest inputConfigs */
|
8231 | inputConfigs?: (google.cloud.translation.v3beta1.IBatchDocumentInputConfig[]|null);
|
8232 |
|
8233 | /** BatchTranslateDocumentRequest outputConfig */
|
8234 | outputConfig?: (google.cloud.translation.v3beta1.IBatchDocumentOutputConfig|null);
|
8235 |
|
8236 | /** BatchTranslateDocumentRequest models */
|
8237 | models?: ({ [k: string]: string }|null);
|
8238 |
|
8239 | /** BatchTranslateDocumentRequest glossaries */
|
8240 | glossaries?: ({ [k: string]: google.cloud.translation.v3beta1.ITranslateTextGlossaryConfig }|null);
|
8241 |
|
8242 | /** BatchTranslateDocumentRequest formatConversions */
|
8243 | formatConversions?: ({ [k: string]: string }|null);
|
8244 | }
|
8245 |
|
8246 | /** Represents a BatchTranslateDocumentRequest. */
|
8247 | class BatchTranslateDocumentRequest implements IBatchTranslateDocumentRequest {
|
8248 |
|
8249 | /**
|
8250 | * Constructs a new BatchTranslateDocumentRequest.
|
8251 | * @param [properties] Properties to set
|
8252 | */
|
8253 | constructor(properties?: google.cloud.translation.v3beta1.IBatchTranslateDocumentRequest);
|
8254 |
|
8255 | /** BatchTranslateDocumentRequest parent. */
|
8256 | public parent: string;
|
8257 |
|
8258 | /** BatchTranslateDocumentRequest sourceLanguageCode. */
|
8259 | public sourceLanguageCode: string;
|
8260 |
|
8261 | /** BatchTranslateDocumentRequest targetLanguageCodes. */
|
8262 | public targetLanguageCodes: string[];
|
8263 |
|
8264 | /** BatchTranslateDocumentRequest inputConfigs. */
|
8265 | public inputConfigs: google.cloud.translation.v3beta1.IBatchDocumentInputConfig[];
|
8266 |
|
8267 | /** BatchTranslateDocumentRequest outputConfig. */
|
8268 | public outputConfig?: (google.cloud.translation.v3beta1.IBatchDocumentOutputConfig|null);
|
8269 |
|
8270 | /** BatchTranslateDocumentRequest models. */
|
8271 | public models: { [k: string]: string };
|
8272 |
|
8273 | /** BatchTranslateDocumentRequest glossaries. */
|
8274 | public glossaries: { [k: string]: google.cloud.translation.v3beta1.ITranslateTextGlossaryConfig };
|
8275 |
|
8276 | /** BatchTranslateDocumentRequest formatConversions. */
|
8277 | public formatConversions: { [k: string]: string };
|
8278 |
|
8279 | /**
|
8280 | * Creates a new BatchTranslateDocumentRequest instance using the specified properties.
|
8281 | * @param [properties] Properties to set
|
8282 | * @returns BatchTranslateDocumentRequest instance
|
8283 | */
|
8284 | public static create(properties?: google.cloud.translation.v3beta1.IBatchTranslateDocumentRequest): google.cloud.translation.v3beta1.BatchTranslateDocumentRequest;
|
8285 |
|
8286 | /**
|
8287 | * Encodes the specified BatchTranslateDocumentRequest message. Does not implicitly {@link google.cloud.translation.v3beta1.BatchTranslateDocumentRequest.verify|verify} messages.
|
8288 | * @param message BatchTranslateDocumentRequest message or plain object to encode
|
8289 | * @param [writer] Writer to encode to
|
8290 | * @returns Writer
|
8291 | */
|
8292 | public static encode(message: google.cloud.translation.v3beta1.IBatchTranslateDocumentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
8293 |
|
8294 | /**
|
8295 | * Encodes the specified BatchTranslateDocumentRequest message, length delimited. Does not implicitly {@link google.cloud.translation.v3beta1.BatchTranslateDocumentRequest.verify|verify} messages.
|
8296 | * @param message BatchTranslateDocumentRequest message or plain object to encode
|
8297 | * @param [writer] Writer to encode to
|
8298 | * @returns Writer
|
8299 | */
|
8300 | public static encodeDelimited(message: google.cloud.translation.v3beta1.IBatchTranslateDocumentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
8301 |
|
8302 | /**
|
8303 | * Decodes a BatchTranslateDocumentRequest message from the specified reader or buffer.
|
8304 | * @param reader Reader or buffer to decode from
|
8305 | * @param [length] Message length if known beforehand
|
8306 | * @returns BatchTranslateDocumentRequest
|
8307 | * @throws {Error} If the payload is not a reader or valid buffer
|
8308 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
8309 | */
|
8310 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3beta1.BatchTranslateDocumentRequest;
|
8311 |
|
8312 | /**
|
8313 | * Decodes a BatchTranslateDocumentRequest message from the specified reader or buffer, length delimited.
|
8314 | * @param reader Reader or buffer to decode from
|
8315 | * @returns BatchTranslateDocumentRequest
|
8316 | * @throws {Error} If the payload is not a reader or valid buffer
|
8317 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
8318 | */
|
8319 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3beta1.BatchTranslateDocumentRequest;
|
8320 |
|
8321 | /**
|
8322 | * Verifies a BatchTranslateDocumentRequest message.
|
8323 | * @param message Plain object to verify
|
8324 | * @returns `null` if valid, otherwise the reason why it is not
|
8325 | */
|
8326 | public static verify(message: { [k: string]: any }): (string|null);
|
8327 |
|
8328 | /**
|
8329 | * Creates a BatchTranslateDocumentRequest message from a plain object. Also converts values to their respective internal types.
|
8330 | * @param object Plain object
|
8331 | * @returns BatchTranslateDocumentRequest
|
8332 | */
|
8333 | public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3beta1.BatchTranslateDocumentRequest;
|
8334 |
|
8335 | /**
|
8336 | * Creates a plain object from a BatchTranslateDocumentRequest message. Also converts values to other types if specified.
|
8337 | * @param message BatchTranslateDocumentRequest
|
8338 | * @param [options] Conversion options
|
8339 | * @returns Plain object
|
8340 | */
|
8341 | public static toObject(message: google.cloud.translation.v3beta1.BatchTranslateDocumentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
8342 |
|
8343 | /**
|
8344 | * Converts this BatchTranslateDocumentRequest to JSON.
|
8345 | * @returns JSON object
|
8346 | */
|
8347 | public toJSON(): { [k: string]: any };
|
8348 | }
|
8349 |
|
8350 | /** Properties of a BatchDocumentInputConfig. */
|
8351 | interface IBatchDocumentInputConfig {
|
8352 |
|
8353 | /** BatchDocumentInputConfig gcsSource */
|
8354 | gcsSource?: (google.cloud.translation.v3beta1.IGcsSource|null);
|
8355 | }
|
8356 |
|
8357 | /** Represents a BatchDocumentInputConfig. */
|
8358 | class BatchDocumentInputConfig implements IBatchDocumentInputConfig {
|
8359 |
|
8360 | /**
|
8361 | * Constructs a new BatchDocumentInputConfig.
|
8362 | * @param [properties] Properties to set
|
8363 | */
|
8364 | constructor(properties?: google.cloud.translation.v3beta1.IBatchDocumentInputConfig);
|
8365 |
|
8366 | /** BatchDocumentInputConfig gcsSource. */
|
8367 | public gcsSource?: (google.cloud.translation.v3beta1.IGcsSource|null);
|
8368 |
|
8369 | /** BatchDocumentInputConfig source. */
|
8370 | public source?: "gcsSource";
|
8371 |
|
8372 | /**
|
8373 | * Creates a new BatchDocumentInputConfig instance using the specified properties.
|
8374 | * @param [properties] Properties to set
|
8375 | * @returns BatchDocumentInputConfig instance
|
8376 | */
|
8377 | public static create(properties?: google.cloud.translation.v3beta1.IBatchDocumentInputConfig): google.cloud.translation.v3beta1.BatchDocumentInputConfig;
|
8378 |
|
8379 | /**
|
8380 | * Encodes the specified BatchDocumentInputConfig message. Does not implicitly { google.cloud.translation.v3beta1.BatchDocumentInputConfig.verify|verify} messages.
|
8381 | * message BatchDocumentInputConfig message or plain object to encode
|
8382 | * [writer] Writer to encode to
|
8383 | * Writer
|
8384 | */
|
8385 | public static encode(message: google.cloud.translation.v3beta1.IBatchDocumentInputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
8386 |
|
8387 | /**
|
8388 | * Encodes the specified BatchDocumentInputConfig message, length delimited. Does not implicitly {@link google.cloud.translation.v3beta1.BatchDocumentInputConfig.verify|verify} messages.
|
8389 | * @param message BatchDocumentInputConfig message or plain object to encode
|
8390 | * @param [writer] Writer to encode to
|
8391 | * @returns Writer
|
8392 | */
|
8393 | public static encodeDelimited(message: google.cloud.translation.v3beta1.IBatchDocumentInputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
8394 |
|
8395 | /**
|
8396 | * Decodes a BatchDocumentInputConfig message from the specified reader or buffer.
|
8397 | * @param reader Reader or buffer to decode from
|
8398 | * @param [length] Message length if known beforehand
|
8399 | * @returns BatchDocumentInputConfig
|
8400 | * @throws {Error} If the payload is not a reader or valid buffer
|
8401 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
8402 | */
|
8403 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3beta1.BatchDocumentInputConfig;
|
8404 |
|
8405 | /**
|
8406 | * Decodes a BatchDocumentInputConfig message from the specified reader or buffer, length delimited.
|
8407 | * @param reader Reader or buffer to decode from
|
8408 | * @returns BatchDocumentInputConfig
|
8409 | * @throws {Error} If the payload is not a reader or valid buffer
|
8410 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
8411 | */
|
8412 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3beta1.BatchDocumentInputConfig;
|
8413 |
|
8414 | /**
|
8415 | * Verifies a BatchDocumentInputConfig message.
|
8416 | * @param message Plain object to verify
|
8417 | * @returns `null` if valid, otherwise the reason why it is not
|
8418 | */
|
8419 | public static verify(message: { [k: string]: any }): (string|null);
|
8420 |
|
8421 | /**
|
8422 | * Creates a BatchDocumentInputConfig message from a plain object. Also converts values to their respective internal types.
|
8423 | * @param object Plain object
|
8424 | * @returns BatchDocumentInputConfig
|
8425 | */
|
8426 | public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3beta1.BatchDocumentInputConfig;
|
8427 |
|
8428 | /**
|
8429 | * Creates a plain object from a BatchDocumentInputConfig message. Also converts values to other types if specified.
|
8430 | * @param message BatchDocumentInputConfig
|
8431 | * @param [options] Conversion options
|
8432 | * @returns Plain object
|
8433 | */
|
8434 | public static toObject(message: google.cloud.translation.v3beta1.BatchDocumentInputConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
8435 |
|
8436 | /**
|
8437 | * Converts this BatchDocumentInputConfig to JSON.
|
8438 | * @returns JSON object
|
8439 | */
|
8440 | public toJSON(): { [k: string]: any };
|
8441 | }
|
8442 |
|
8443 | /** Properties of a BatchDocumentOutputConfig. */
|
8444 | interface IBatchDocumentOutputConfig {
|
8445 |
|
8446 | /** BatchDocumentOutputConfig gcsDestination */
|
8447 | gcsDestination?: (google.cloud.translation.v3beta1.IGcsDestination|null);
|
8448 | }
|
8449 |
|
8450 | /** Represents a BatchDocumentOutputConfig. */
|
8451 | class BatchDocumentOutputConfig implements IBatchDocumentOutputConfig {
|
8452 |
|
8453 | /**
|
8454 | * Constructs a new BatchDocumentOutputConfig.
|
8455 | * @param [properties] Properties to set
|
8456 | */
|
8457 | constructor(properties?: google.cloud.translation.v3beta1.IBatchDocumentOutputConfig);
|
8458 |
|
8459 | /** BatchDocumentOutputConfig gcsDestination. */
|
8460 | public gcsDestination?: (google.cloud.translation.v3beta1.IGcsDestination|null);
|
8461 |
|
8462 | /** BatchDocumentOutputConfig destination. */
|
8463 | public destination?: "gcsDestination";
|
8464 |
|
8465 | /**
|
8466 | * Creates a new BatchDocumentOutputConfig instance using the specified properties.
|
8467 | * @param [properties] Properties to set
|
8468 | * @returns BatchDocumentOutputConfig instance
|
8469 | */
|
8470 | public static create(properties?: google.cloud.translation.v3beta1.IBatchDocumentOutputConfig): google.cloud.translation.v3beta1.BatchDocumentOutputConfig;
|
8471 |
|
8472 | /**
|
8473 | * Encodes the specified BatchDocumentOutputConfig message. Does not implicitly { google.cloud.translation.v3beta1.BatchDocumentOutputConfig.verify|verify} messages.
|
8474 | * message BatchDocumentOutputConfig message or plain object to encode
|
8475 | * [writer] Writer to encode to
|
8476 | * Writer
|
8477 | */
|
8478 | public static encode(message: google.cloud.translation.v3beta1.IBatchDocumentOutputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
8479 |
|
8480 | /**
|
8481 | * Encodes the specified BatchDocumentOutputConfig message, length delimited. Does not implicitly {@link google.cloud.translation.v3beta1.BatchDocumentOutputConfig.verify|verify} messages.
|
8482 | * @param message BatchDocumentOutputConfig message or plain object to encode
|
8483 | * @param [writer] Writer to encode to
|
8484 | * @returns Writer
|
8485 | */
|
8486 | public static encodeDelimited(message: google.cloud.translation.v3beta1.IBatchDocumentOutputConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
8487 |
|
8488 | /**
|
8489 | * Decodes a BatchDocumentOutputConfig message from the specified reader or buffer.
|
8490 | * @param reader Reader or buffer to decode from
|
8491 | * @param [length] Message length if known beforehand
|
8492 | * @returns BatchDocumentOutputConfig
|
8493 | * @throws {Error} If the payload is not a reader or valid buffer
|
8494 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
8495 | */
|
8496 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3beta1.BatchDocumentOutputConfig;
|
8497 |
|
8498 | /**
|
8499 | * Decodes a BatchDocumentOutputConfig message from the specified reader or buffer, length delimited.
|
8500 | * @param reader Reader or buffer to decode from
|
8501 | * @returns BatchDocumentOutputConfig
|
8502 | * @throws {Error} If the payload is not a reader or valid buffer
|
8503 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
8504 | */
|
8505 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3beta1.BatchDocumentOutputConfig;
|
8506 |
|
8507 | /**
|
8508 | * Verifies a BatchDocumentOutputConfig message.
|
8509 | * @param message Plain object to verify
|
8510 | * @returns `null` if valid, otherwise the reason why it is not
|
8511 | */
|
8512 | public static verify(message: { [k: string]: any }): (string|null);
|
8513 |
|
8514 | /**
|
8515 | * Creates a BatchDocumentOutputConfig message from a plain object. Also converts values to their respective internal types.
|
8516 | * @param object Plain object
|
8517 | * @returns BatchDocumentOutputConfig
|
8518 | */
|
8519 | public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3beta1.BatchDocumentOutputConfig;
|
8520 |
|
8521 | /**
|
8522 | * Creates a plain object from a BatchDocumentOutputConfig message. Also converts values to other types if specified.
|
8523 | * @param message BatchDocumentOutputConfig
|
8524 | * @param [options] Conversion options
|
8525 | * @returns Plain object
|
8526 | */
|
8527 | public static toObject(message: google.cloud.translation.v3beta1.BatchDocumentOutputConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
8528 |
|
8529 | /**
|
8530 | * Converts this BatchDocumentOutputConfig to JSON.
|
8531 | * @returns JSON object
|
8532 | */
|
8533 | public toJSON(): { [k: string]: any };
|
8534 | }
|
8535 |
|
8536 | /** Properties of a BatchTranslateDocumentResponse. */
|
8537 | interface IBatchTranslateDocumentResponse {
|
8538 |
|
8539 | /** BatchTranslateDocumentResponse totalPages */
|
8540 | totalPages?: (number|Long|string|null);
|
8541 |
|
8542 | /** BatchTranslateDocumentResponse translatedPages */
|
8543 | translatedPages?: (number|Long|string|null);
|
8544 |
|
8545 | /** BatchTranslateDocumentResponse failedPages */
|
8546 | failedPages?: (number|Long|string|null);
|
8547 |
|
8548 | /** BatchTranslateDocumentResponse totalBillablePages */
|
8549 | totalBillablePages?: (number|Long|string|null);
|
8550 |
|
8551 | /** BatchTranslateDocumentResponse totalCharacters */
|
8552 | totalCharacters?: (number|Long|string|null);
|
8553 |
|
8554 | /** BatchTranslateDocumentResponse translatedCharacters */
|
8555 | translatedCharacters?: (number|Long|string|null);
|
8556 |
|
8557 | /** BatchTranslateDocumentResponse failedCharacters */
|
8558 | failedCharacters?: (number|Long|string|null);
|
8559 |
|
8560 | /** BatchTranslateDocumentResponse totalBillableCharacters */
|
8561 | totalBillableCharacters?: (number|Long|string|null);
|
8562 |
|
8563 | /** BatchTranslateDocumentResponse submitTime */
|
8564 | submitTime?: (google.protobuf.ITimestamp|null);
|
8565 |
|
8566 | /** BatchTranslateDocumentResponse endTime */
|
8567 | endTime?: (google.protobuf.ITimestamp|null);
|
8568 | }
|
8569 |
|
8570 | /** Represents a BatchTranslateDocumentResponse. */
|
8571 | class BatchTranslateDocumentResponse implements IBatchTranslateDocumentResponse {
|
8572 |
|
8573 | /**
|
8574 | * Constructs a new BatchTranslateDocumentResponse.
|
8575 | * @param [properties] Properties to set
|
8576 | */
|
8577 | constructor(properties?: google.cloud.translation.v3beta1.IBatchTranslateDocumentResponse);
|
8578 |
|
8579 | /** BatchTranslateDocumentResponse totalPages. */
|
8580 | public totalPages: (number|Long|string);
|
8581 |
|
8582 | /** BatchTranslateDocumentResponse translatedPages. */
|
8583 | public translatedPages: (number|Long|string);
|
8584 |
|
8585 | /** BatchTranslateDocumentResponse failedPages. */
|
8586 | public failedPages: (number|Long|string);
|
8587 |
|
8588 | /** BatchTranslateDocumentResponse totalBillablePages. */
|
8589 | public totalBillablePages: (number|Long|string);
|
8590 |
|
8591 | /** BatchTranslateDocumentResponse totalCharacters. */
|
8592 | public totalCharacters: (number|Long|string);
|
8593 |
|
8594 | /** BatchTranslateDocumentResponse translatedCharacters. */
|
8595 | public translatedCharacters: (number|Long|string);
|
8596 |
|
8597 | /** BatchTranslateDocumentResponse failedCharacters. */
|
8598 | public failedCharacters: (number|Long|string);
|
8599 |
|
8600 | /** BatchTranslateDocumentResponse totalBillableCharacters. */
|
8601 | public totalBillableCharacters: (number|Long|string);
|
8602 |
|
8603 | /** BatchTranslateDocumentResponse submitTime. */
|
8604 | public submitTime?: (google.protobuf.ITimestamp|null);
|
8605 |
|
8606 | /** BatchTranslateDocumentResponse endTime. */
|
8607 | public endTime?: (google.protobuf.ITimestamp|null);
|
8608 |
|
8609 | /**
|
8610 | * Creates a new BatchTranslateDocumentResponse instance using the specified properties.
|
8611 | * @param [properties] Properties to set
|
8612 | * @returns BatchTranslateDocumentResponse instance
|
8613 | */
|
8614 | public static create(properties?: google.cloud.translation.v3beta1.IBatchTranslateDocumentResponse): google.cloud.translation.v3beta1.BatchTranslateDocumentResponse;
|
8615 |
|
8616 | /**
|
8617 | * Encodes the specified BatchTranslateDocumentResponse message. Does not implicitly { google.cloud.translation.v3beta1.BatchTranslateDocumentResponse.verify|verify} messages.
|
8618 | * message BatchTranslateDocumentResponse message or plain object to encode
|
8619 | * [writer] Writer to encode to
|
8620 | * Writer
|
8621 | */
|
8622 | public static encode(message: google.cloud.translation.v3beta1.IBatchTranslateDocumentResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
8623 |
|
8624 | /**
|
8625 | * Encodes the specified BatchTranslateDocumentResponse message, length delimited. Does not implicitly {@link google.cloud.translation.v3beta1.BatchTranslateDocumentResponse.verify|verify} messages.
|
8626 | * @param message BatchTranslateDocumentResponse message or plain object to encode
|
8627 | * @param [writer] Writer to encode to
|
8628 | * @returns Writer
|
8629 | */
|
8630 | public static encodeDelimited(message: google.cloud.translation.v3beta1.IBatchTranslateDocumentResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
8631 |
|
8632 | /**
|
8633 | * Decodes a BatchTranslateDocumentResponse message from the specified reader or buffer.
|
8634 | * @param reader Reader or buffer to decode from
|
8635 | * @param [length] Message length if known beforehand
|
8636 | * @returns BatchTranslateDocumentResponse
|
8637 | * @throws {Error} If the payload is not a reader or valid buffer
|
8638 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
8639 | */
|
8640 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3beta1.BatchTranslateDocumentResponse;
|
8641 |
|
8642 | /**
|
8643 | * Decodes a BatchTranslateDocumentResponse message from the specified reader or buffer, length delimited.
|
8644 | * @param reader Reader or buffer to decode from
|
8645 | * @returns BatchTranslateDocumentResponse
|
8646 | * @throws {Error} If the payload is not a reader or valid buffer
|
8647 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
8648 | */
|
8649 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3beta1.BatchTranslateDocumentResponse;
|
8650 |
|
8651 | /**
|
8652 | * Verifies a BatchTranslateDocumentResponse message.
|
8653 | * @param message Plain object to verify
|
8654 | * @returns `null` if valid, otherwise the reason why it is not
|
8655 | */
|
8656 | public static verify(message: { [k: string]: any }): (string|null);
|
8657 |
|
8658 | /**
|
8659 | * Creates a BatchTranslateDocumentResponse message from a plain object. Also converts values to their respective internal types.
|
8660 | * @param object Plain object
|
8661 | * @returns BatchTranslateDocumentResponse
|
8662 | */
|
8663 | public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3beta1.BatchTranslateDocumentResponse;
|
8664 |
|
8665 | /**
|
8666 | * Creates a plain object from a BatchTranslateDocumentResponse message. Also converts values to other types if specified.
|
8667 | * @param message BatchTranslateDocumentResponse
|
8668 | * @param [options] Conversion options
|
8669 | * @returns Plain object
|
8670 | */
|
8671 | public static toObject(message: google.cloud.translation.v3beta1.BatchTranslateDocumentResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
8672 |
|
8673 | /**
|
8674 | * Converts this BatchTranslateDocumentResponse to JSON.
|
8675 | * @returns JSON object
|
8676 | */
|
8677 | public toJSON(): { [k: string]: any };
|
8678 | }
|
8679 |
|
8680 | /** Properties of a BatchTranslateDocumentMetadata. */
|
8681 | interface IBatchTranslateDocumentMetadata {
|
8682 |
|
8683 | /** BatchTranslateDocumentMetadata state */
|
8684 | state?: (google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata.State|keyof typeof google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata.State|null);
|
8685 |
|
8686 | /** BatchTranslateDocumentMetadata totalPages */
|
8687 | totalPages?: (number|Long|string|null);
|
8688 |
|
8689 | /** BatchTranslateDocumentMetadata translatedPages */
|
8690 | translatedPages?: (number|Long|string|null);
|
8691 |
|
8692 | /** BatchTranslateDocumentMetadata failedPages */
|
8693 | failedPages?: (number|Long|string|null);
|
8694 |
|
8695 | /** BatchTranslateDocumentMetadata totalBillablePages */
|
8696 | totalBillablePages?: (number|Long|string|null);
|
8697 |
|
8698 | /** BatchTranslateDocumentMetadata totalCharacters */
|
8699 | totalCharacters?: (number|Long|string|null);
|
8700 |
|
8701 | /** BatchTranslateDocumentMetadata translatedCharacters */
|
8702 | translatedCharacters?: (number|Long|string|null);
|
8703 |
|
8704 | /** BatchTranslateDocumentMetadata failedCharacters */
|
8705 | failedCharacters?: (number|Long|string|null);
|
8706 |
|
8707 | /** BatchTranslateDocumentMetadata totalBillableCharacters */
|
8708 | totalBillableCharacters?: (number|Long|string|null);
|
8709 |
|
8710 | /** BatchTranslateDocumentMetadata submitTime */
|
8711 | submitTime?: (google.protobuf.ITimestamp|null);
|
8712 | }
|
8713 |
|
8714 | /** Represents a BatchTranslateDocumentMetadata. */
|
8715 | class BatchTranslateDocumentMetadata implements IBatchTranslateDocumentMetadata {
|
8716 |
|
8717 | /**
|
8718 | * Constructs a new BatchTranslateDocumentMetadata.
|
8719 | * @param [properties] Properties to set
|
8720 | */
|
8721 | constructor(properties?: google.cloud.translation.v3beta1.IBatchTranslateDocumentMetadata);
|
8722 |
|
8723 | /** BatchTranslateDocumentMetadata state. */
|
8724 | public state: (google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata.State|keyof typeof google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata.State);
|
8725 |
|
8726 | /** BatchTranslateDocumentMetadata totalPages. */
|
8727 | public totalPages: (number|Long|string);
|
8728 |
|
8729 | /** BatchTranslateDocumentMetadata translatedPages. */
|
8730 | public translatedPages: (number|Long|string);
|
8731 |
|
8732 | /** BatchTranslateDocumentMetadata failedPages. */
|
8733 | public failedPages: (number|Long|string);
|
8734 |
|
8735 | /** BatchTranslateDocumentMetadata totalBillablePages. */
|
8736 | public totalBillablePages: (number|Long|string);
|
8737 |
|
8738 | /** BatchTranslateDocumentMetadata totalCharacters. */
|
8739 | public totalCharacters: (number|Long|string);
|
8740 |
|
8741 | /** BatchTranslateDocumentMetadata translatedCharacters. */
|
8742 | public translatedCharacters: (number|Long|string);
|
8743 |
|
8744 | /** BatchTranslateDocumentMetadata failedCharacters. */
|
8745 | public failedCharacters: (number|Long|string);
|
8746 |
|
8747 | /** BatchTranslateDocumentMetadata totalBillableCharacters. */
|
8748 | public totalBillableCharacters: (number|Long|string);
|
8749 |
|
8750 | /** BatchTranslateDocumentMetadata submitTime. */
|
8751 | public submitTime?: (google.protobuf.ITimestamp|null);
|
8752 |
|
8753 | /**
|
8754 | * Creates a new BatchTranslateDocumentMetadata instance using the specified properties.
|
8755 | * @param [properties] Properties to set
|
8756 | * @returns BatchTranslateDocumentMetadata instance
|
8757 | */
|
8758 | public static create(properties?: google.cloud.translation.v3beta1.IBatchTranslateDocumentMetadata): google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata;
|
8759 |
|
8760 | /**
|
8761 | * Encodes the specified BatchTranslateDocumentMetadata message. Does not implicitly { google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata.verify|verify} messages.
|
8762 | * message BatchTranslateDocumentMetadata message or plain object to encode
|
8763 | * [writer] Writer to encode to
|
8764 | * Writer
|
8765 | */
|
8766 | public static encode(message: google.cloud.translation.v3beta1.IBatchTranslateDocumentMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
|
8767 |
|
8768 | /**
|
8769 | * Encodes the specified BatchTranslateDocumentMetadata message, length delimited. Does not implicitly {@link google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata.verify|verify} messages.
|
8770 | * @param message BatchTranslateDocumentMetadata message or plain object to encode
|
8771 | * @param [writer] Writer to encode to
|
8772 | * @returns Writer
|
8773 | */
|
8774 | public static encodeDelimited(message: google.cloud.translation.v3beta1.IBatchTranslateDocumentMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
|
8775 |
|
8776 | /**
|
8777 | * Decodes a BatchTranslateDocumentMetadata message from the specified reader or buffer.
|
8778 | * @param reader Reader or buffer to decode from
|
8779 | * @param [length] Message length if known beforehand
|
8780 | * @returns BatchTranslateDocumentMetadata
|
8781 | * @throws {Error} If the payload is not a reader or valid buffer
|
8782 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
8783 | */
|
8784 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata;
|
8785 |
|
8786 | /**
|
8787 | * Decodes a BatchTranslateDocumentMetadata message from the specified reader or buffer, length delimited.
|
8788 | * @param reader Reader or buffer to decode from
|
8789 | * @returns BatchTranslateDocumentMetadata
|
8790 | * @throws {Error} If the payload is not a reader or valid buffer
|
8791 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
8792 | */
|
8793 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata;
|
8794 |
|
8795 | /**
|
8796 | * Verifies a BatchTranslateDocumentMetadata message.
|
8797 | * @param message Plain object to verify
|
8798 | * @returns `null` if valid, otherwise the reason why it is not
|
8799 | */
|
8800 | public static verify(message: { [k: string]: any }): (string|null);
|
8801 |
|
8802 | /**
|
8803 | * Creates a BatchTranslateDocumentMetadata message from a plain object. Also converts values to their respective internal types.
|
8804 | * @param object Plain object
|
8805 | * @returns BatchTranslateDocumentMetadata
|
8806 | */
|
8807 | public static fromObject(object: { [k: string]: any }): google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata;
|
8808 |
|
8809 | /**
|
8810 | * Creates a plain object from a BatchTranslateDocumentMetadata message. Also converts values to other types if specified.
|
8811 | * @param message BatchTranslateDocumentMetadata
|
8812 | * @param [options] Conversion options
|
8813 | * @returns Plain object
|
8814 | */
|
8815 | public static toObject(message: google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
8816 |
|
8817 | /**
|
8818 | * Converts this BatchTranslateDocumentMetadata to JSON.
|
8819 | * @returns JSON object
|
8820 | */
|
8821 | public toJSON(): { [k: string]: any };
|
8822 | }
|
8823 |
|
8824 | namespace BatchTranslateDocumentMetadata {
|
8825 |
|
8826 | /** State enum. */
|
8827 | enum State {
|
8828 | STATE_UNSPECIFIED = 0,
|
8829 | RUNNING = 1,
|
8830 | SUCCEEDED = 2,
|
8831 | FAILED = 3,
|
8832 | CANCELLING = 4,
|
8833 | CANCELLED = 5
|
8834 | }
|
8835 | }
|
8836 | }
|
8837 | }
|
8838 | }
|
8839 |
|
8840 | /** Namespace api. */
|
8841 | namespace api {
|
8842 |
|
8843 | /** Properties of a Http. */
|
8844 | interface IHttp {
|
8845 |
|
8846 | /** Http rules */
|
8847 | rules?: (google.api.IHttpRule[]|null);
|
8848 |
|
8849 | /** Http fullyDecodeReservedExpansion */
|
8850 | fullyDecodeReservedExpansion?: (boolean|null);
|
8851 | }
|
8852 |
|
8853 | /** Represents a Http. */
|
8854 | class Http implements IHttp {
|
8855 |
|
8856 | /**
|
8857 | * Constructs a new Http.
|
8858 | * @param [properties] Properties to set
|
8859 | */
|
8860 | constructor(properties?: google.api.IHttp);
|
8861 |
|
8862 | /** Http rules. */
|
8863 | public rules: google.api.IHttpRule[];
|
8864 |
|
8865 | /** Http fullyDecodeReservedExpansion. */
|
8866 | public fullyDecodeReservedExpansion: boolean;
|
8867 |
|
8868 | /**
|
8869 | * Creates a new Http instance using the specified properties.
|
8870 | * @param [properties] Properties to set
|
8871 | * @returns Http instance
|
8872 | */
|
8873 | public static create(properties?: google.api.IHttp): google.api.Http;
|
8874 |
|
8875 | /**
|
8876 | * Encodes the specified Http message. Does not implicitly { google.api.Http.verify|verify} messages.
|
8877 | * message Http message or plain object to encode
|
8878 | * [writer] Writer to encode to
|
8879 | * Writer
|
8880 | */
|
8881 | public static encode(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer;
|
8882 |
|
8883 | /**
|
8884 | * Encodes the specified Http message, length delimited. Does not implicitly {@link google.api.Http.verify|verify} messages.
|
8885 | * @param message Http message or plain object to encode
|
8886 | * @param [writer] Writer to encode to
|
8887 | * @returns Writer
|
8888 | */
|
8889 | public static encodeDelimited(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer;
|
8890 |
|
8891 | /**
|
8892 | * Decodes a Http message from the specified reader or buffer.
|
8893 | * @param reader Reader or buffer to decode from
|
8894 | * @param [length] Message length if known beforehand
|
8895 | * @returns Http
|
8896 | * @throws {Error} If the payload is not a reader or valid buffer
|
8897 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
8898 | */
|
8899 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.Http;
|
8900 |
|
8901 | /**
|
8902 | * Decodes a Http message from the specified reader or buffer, length delimited.
|
8903 | * @param reader Reader or buffer to decode from
|
8904 | * @returns Http
|
8905 | * @throws {Error} If the payload is not a reader or valid buffer
|
8906 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
8907 | */
|
8908 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.Http;
|
8909 |
|
8910 | /**
|
8911 | * Verifies a Http message.
|
8912 | * @param message Plain object to verify
|
8913 | * @returns `null` if valid, otherwise the reason why it is not
|
8914 | */
|
8915 | public static verify(message: { [k: string]: any }): (string|null);
|
8916 |
|
8917 | /**
|
8918 | * Creates a Http message from a plain object. Also converts values to their respective internal types.
|
8919 | * @param object Plain object
|
8920 | * @returns Http
|
8921 | */
|
8922 | public static fromObject(object: { [k: string]: any }): google.api.Http;
|
8923 |
|
8924 | /**
|
8925 | * Creates a plain object from a Http message. Also converts values to other types if specified.
|
8926 | * @param message Http
|
8927 | * @param [options] Conversion options
|
8928 | * @returns Plain object
|
8929 | */
|
8930 | public static toObject(message: google.api.Http, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
8931 |
|
8932 | /**
|
8933 | * Converts this Http to JSON.
|
8934 | * @returns JSON object
|
8935 | */
|
8936 | public toJSON(): { [k: string]: any };
|
8937 | }
|
8938 |
|
8939 | /** Properties of a HttpRule. */
|
8940 | interface IHttpRule {
|
8941 |
|
8942 | /** HttpRule selector */
|
8943 | selector?: (string|null);
|
8944 |
|
8945 | /** HttpRule get */
|
8946 | get?: (string|null);
|
8947 |
|
8948 | /** HttpRule put */
|
8949 | put?: (string|null);
|
8950 |
|
8951 | /** HttpRule post */
|
8952 | post?: (string|null);
|
8953 |
|
8954 | /** HttpRule delete */
|
8955 | "delete"?: (string|null);
|
8956 |
|
8957 | /** HttpRule patch */
|
8958 | patch?: (string|null);
|
8959 |
|
8960 | /** HttpRule custom */
|
8961 | custom?: (google.api.ICustomHttpPattern|null);
|
8962 |
|
8963 | /** HttpRule body */
|
8964 | body?: (string|null);
|
8965 |
|
8966 | /** HttpRule responseBody */
|
8967 | responseBody?: (string|null);
|
8968 |
|
8969 | /** HttpRule additionalBindings */
|
8970 | additionalBindings?: (google.api.IHttpRule[]|null);
|
8971 | }
|
8972 |
|
8973 | /** Represents a HttpRule. */
|
8974 | class HttpRule implements IHttpRule {
|
8975 |
|
8976 | /**
|
8977 | * Constructs a new HttpRule.
|
8978 | * @param [properties] Properties to set
|
8979 | */
|
8980 | constructor(properties?: google.api.IHttpRule);
|
8981 |
|
8982 | /** HttpRule selector. */
|
8983 | public selector: string;
|
8984 |
|
8985 | /** HttpRule get. */
|
8986 | public get?: (string|null);
|
8987 |
|
8988 | /** HttpRule put. */
|
8989 | public put?: (string|null);
|
8990 |
|
8991 | /** HttpRule post. */
|
8992 | public post?: (string|null);
|
8993 |
|
8994 | /** HttpRule delete. */
|
8995 | public delete?: (string|null);
|
8996 |
|
8997 | /** HttpRule patch. */
|
8998 | public patch?: (string|null);
|
8999 |
|
9000 | /** HttpRule custom. */
|
9001 | public custom?: (google.api.ICustomHttpPattern|null);
|
9002 |
|
9003 | /** HttpRule body. */
|
9004 | public body: string;
|
9005 |
|
9006 | /** HttpRule responseBody. */
|
9007 | public responseBody: string;
|
9008 |
|
9009 | /** HttpRule additionalBindings. */
|
9010 | public additionalBindings: google.api.IHttpRule[];
|
9011 |
|
9012 | /** HttpRule pattern. */
|
9013 | public pattern?: ("get"|"put"|"post"|"delete"|"patch"|"custom");
|
9014 |
|
9015 | /**
|
9016 | * Creates a new HttpRule instance using the specified properties.
|
9017 | * @param [properties] Properties to set
|
9018 | * @returns HttpRule instance
|
9019 | */
|
9020 | public static create(properties?: google.api.IHttpRule): google.api.HttpRule;
|
9021 |
|
9022 | /**
|
9023 | * Encodes the specified HttpRule message. Does not implicitly { google.api.HttpRule.verify|verify} messages.
|
9024 | * message HttpRule message or plain object to encode
|
9025 | * [writer] Writer to encode to
|
9026 | * Writer
|
9027 | */
|
9028 | public static encode(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer;
|
9029 |
|
9030 | /**
|
9031 | * Encodes the specified HttpRule message, length delimited. Does not implicitly {@link google.api.HttpRule.verify|verify} messages.
|
9032 | * @param message HttpRule message or plain object to encode
|
9033 | * @param [writer] Writer to encode to
|
9034 | * @returns Writer
|
9035 | */
|
9036 | public static encodeDelimited(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer;
|
9037 |
|
9038 | /**
|
9039 | * Decodes a HttpRule message from the specified reader or buffer.
|
9040 | * @param reader Reader or buffer to decode from
|
9041 | * @param [length] Message length if known beforehand
|
9042 | * @returns HttpRule
|
9043 | * @throws {Error} If the payload is not a reader or valid buffer
|
9044 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
9045 | */
|
9046 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.HttpRule;
|
9047 |
|
9048 | /**
|
9049 | * Decodes a HttpRule message from the specified reader or buffer, length delimited.
|
9050 | * @param reader Reader or buffer to decode from
|
9051 | * @returns HttpRule
|
9052 | * @throws {Error} If the payload is not a reader or valid buffer
|
9053 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
9054 | */
|
9055 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.HttpRule;
|
9056 |
|
9057 | /**
|
9058 | * Verifies a HttpRule message.
|
9059 | * @param message Plain object to verify
|
9060 | * @returns `null` if valid, otherwise the reason why it is not
|
9061 | */
|
9062 | public static verify(message: { [k: string]: any }): (string|null);
|
9063 |
|
9064 | /**
|
9065 | * Creates a HttpRule message from a plain object. Also converts values to their respective internal types.
|
9066 | * @param object Plain object
|
9067 | * @returns HttpRule
|
9068 | */
|
9069 | public static fromObject(object: { [k: string]: any }): google.api.HttpRule;
|
9070 |
|
9071 | /**
|
9072 | * Creates a plain object from a HttpRule message. Also converts values to other types if specified.
|
9073 | * @param message HttpRule
|
9074 | * @param [options] Conversion options
|
9075 | * @returns Plain object
|
9076 | */
|
9077 | public static toObject(message: google.api.HttpRule, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
9078 |
|
9079 | /**
|
9080 | * Converts this HttpRule to JSON.
|
9081 | * @returns JSON object
|
9082 | */
|
9083 | public toJSON(): { [k: string]: any };
|
9084 | }
|
9085 |
|
9086 | /** Properties of a CustomHttpPattern. */
|
9087 | interface ICustomHttpPattern {
|
9088 |
|
9089 | /** CustomHttpPattern kind */
|
9090 | kind?: (string|null);
|
9091 |
|
9092 | /** CustomHttpPattern path */
|
9093 | path?: (string|null);
|
9094 | }
|
9095 |
|
9096 | /** Represents a CustomHttpPattern. */
|
9097 | class CustomHttpPattern implements ICustomHttpPattern {
|
9098 |
|
9099 | /**
|
9100 | * Constructs a new CustomHttpPattern.
|
9101 | * @param [properties] Properties to set
|
9102 | */
|
9103 | constructor(properties?: google.api.ICustomHttpPattern);
|
9104 |
|
9105 | /** CustomHttpPattern kind. */
|
9106 | public kind: string;
|
9107 |
|
9108 | /** CustomHttpPattern path. */
|
9109 | public path: string;
|
9110 |
|
9111 | /**
|
9112 | * Creates a new CustomHttpPattern instance using the specified properties.
|
9113 | * @param [properties] Properties to set
|
9114 | * @returns CustomHttpPattern instance
|
9115 | */
|
9116 | public static create(properties?: google.api.ICustomHttpPattern): google.api.CustomHttpPattern;
|
9117 |
|
9118 | /**
|
9119 | * Encodes the specified CustomHttpPattern message. Does not implicitly { google.api.CustomHttpPattern.verify|verify} messages.
|
9120 | * message CustomHttpPattern message or plain object to encode
|
9121 | * [writer] Writer to encode to
|
9122 | * Writer
|
9123 | */
|
9124 | public static encode(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer;
|
9125 |
|
9126 | /**
|
9127 | * Encodes the specified CustomHttpPattern message, length delimited. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages.
|
9128 | * @param message CustomHttpPattern message or plain object to encode
|
9129 | * @param [writer] Writer to encode to
|
9130 | * @returns Writer
|
9131 | */
|
9132 | public static encodeDelimited(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer;
|
9133 |
|
9134 | /**
|
9135 | * Decodes a CustomHttpPattern message from the specified reader or buffer.
|
9136 | * @param reader Reader or buffer to decode from
|
9137 | * @param [length] Message length if known beforehand
|
9138 | * @returns CustomHttpPattern
|
9139 | * @throws {Error} If the payload is not a reader or valid buffer
|
9140 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
9141 | */
|
9142 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.CustomHttpPattern;
|
9143 |
|
9144 | /**
|
9145 | * Decodes a CustomHttpPattern message from the specified reader or buffer, length delimited.
|
9146 | * @param reader Reader or buffer to decode from
|
9147 | * @returns CustomHttpPattern
|
9148 | * @throws {Error} If the payload is not a reader or valid buffer
|
9149 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
9150 | */
|
9151 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.CustomHttpPattern;
|
9152 |
|
9153 | /**
|
9154 | * Verifies a CustomHttpPattern message.
|
9155 | * @param message Plain object to verify
|
9156 | * @returns `null` if valid, otherwise the reason why it is not
|
9157 | */
|
9158 | public static verify(message: { [k: string]: any }): (string|null);
|
9159 |
|
9160 | /**
|
9161 | * Creates a CustomHttpPattern message from a plain object. Also converts values to their respective internal types.
|
9162 | * @param object Plain object
|
9163 | * @returns CustomHttpPattern
|
9164 | */
|
9165 | public static fromObject(object: { [k: string]: any }): google.api.CustomHttpPattern;
|
9166 |
|
9167 | /**
|
9168 | * Creates a plain object from a CustomHttpPattern message. Also converts values to other types if specified.
|
9169 | * @param message CustomHttpPattern
|
9170 | * @param [options] Conversion options
|
9171 | * @returns Plain object
|
9172 | */
|
9173 | public static toObject(message: google.api.CustomHttpPattern, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
9174 |
|
9175 | /**
|
9176 | * Converts this CustomHttpPattern to JSON.
|
9177 | * @returns JSON object
|
9178 | */
|
9179 | public toJSON(): { [k: string]: any };
|
9180 | }
|
9181 |
|
9182 | /** FieldBehavior enum. */
|
9183 | enum FieldBehavior {
|
9184 | FIELD_BEHAVIOR_UNSPECIFIED = 0,
|
9185 | OPTIONAL = 1,
|
9186 | REQUIRED = 2,
|
9187 | OUTPUT_ONLY = 3,
|
9188 | INPUT_ONLY = 4,
|
9189 | IMMUTABLE = 5,
|
9190 | UNORDERED_LIST = 6,
|
9191 | NON_EMPTY_DEFAULT = 7
|
9192 | }
|
9193 |
|
9194 | /** Properties of a ResourceDescriptor. */
|
9195 | interface IResourceDescriptor {
|
9196 |
|
9197 | /** ResourceDescriptor type */
|
9198 | type?: (string|null);
|
9199 |
|
9200 | /** ResourceDescriptor pattern */
|
9201 | pattern?: (string[]|null);
|
9202 |
|
9203 | /** ResourceDescriptor nameField */
|
9204 | nameField?: (string|null);
|
9205 |
|
9206 | /** ResourceDescriptor history */
|
9207 | history?: (google.api.ResourceDescriptor.History|keyof typeof google.api.ResourceDescriptor.History|null);
|
9208 |
|
9209 | /** ResourceDescriptor plural */
|
9210 | plural?: (string|null);
|
9211 |
|
9212 | /** ResourceDescriptor singular */
|
9213 | singular?: (string|null);
|
9214 |
|
9215 | /** ResourceDescriptor style */
|
9216 | style?: (google.api.ResourceDescriptor.Style[]|null);
|
9217 | }
|
9218 |
|
9219 | /** Represents a ResourceDescriptor. */
|
9220 | class ResourceDescriptor implements IResourceDescriptor {
|
9221 |
|
9222 | /**
|
9223 | * Constructs a new ResourceDescriptor.
|
9224 | * @param [properties] Properties to set
|
9225 | */
|
9226 | constructor(properties?: google.api.IResourceDescriptor);
|
9227 |
|
9228 | /** ResourceDescriptor type. */
|
9229 | public type: string;
|
9230 |
|
9231 | /** ResourceDescriptor pattern. */
|
9232 | public pattern: string[];
|
9233 |
|
9234 | /** ResourceDescriptor nameField. */
|
9235 | public nameField: string;
|
9236 |
|
9237 | /** ResourceDescriptor history. */
|
9238 | public history: (google.api.ResourceDescriptor.History|keyof typeof google.api.ResourceDescriptor.History);
|
9239 |
|
9240 | /** ResourceDescriptor plural. */
|
9241 | public plural: string;
|
9242 |
|
9243 | /** ResourceDescriptor singular. */
|
9244 | public singular: string;
|
9245 |
|
9246 | /** ResourceDescriptor style. */
|
9247 | public style: google.api.ResourceDescriptor.Style[];
|
9248 |
|
9249 | /**
|
9250 | * Creates a new ResourceDescriptor instance using the specified properties.
|
9251 | * @param [properties] Properties to set
|
9252 | * @returns ResourceDescriptor instance
|
9253 | */
|
9254 | public static create(properties?: google.api.IResourceDescriptor): google.api.ResourceDescriptor;
|
9255 |
|
9256 | /**
|
9257 | * Encodes the specified ResourceDescriptor message. Does not implicitly { google.api.ResourceDescriptor.verify|verify} messages.
|
9258 | * message ResourceDescriptor message or plain object to encode
|
9259 | * [writer] Writer to encode to
|
9260 | * Writer
|
9261 | */
|
9262 | public static encode(message: google.api.IResourceDescriptor, writer?: $protobuf.Writer): $protobuf.Writer;
|
9263 |
|
9264 | /**
|
9265 | * Encodes the specified ResourceDescriptor message, length delimited. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages.
|
9266 | * @param message ResourceDescriptor message or plain object to encode
|
9267 | * @param [writer] Writer to encode to
|
9268 | * @returns Writer
|
9269 | */
|
9270 | public static encodeDelimited(message: google.api.IResourceDescriptor, writer?: $protobuf.Writer): $protobuf.Writer;
|
9271 |
|
9272 | /**
|
9273 | * Decodes a ResourceDescriptor message from the specified reader or buffer.
|
9274 | * @param reader Reader or buffer to decode from
|
9275 | * @param [length] Message length if known beforehand
|
9276 | * @returns ResourceDescriptor
|
9277 | * @throws {Error} If the payload is not a reader or valid buffer
|
9278 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
9279 | */
|
9280 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.ResourceDescriptor;
|
9281 |
|
9282 | /**
|
9283 | * Decodes a ResourceDescriptor message from the specified reader or buffer, length delimited.
|
9284 | * @param reader Reader or buffer to decode from
|
9285 | * @returns ResourceDescriptor
|
9286 | * @throws {Error} If the payload is not a reader or valid buffer
|
9287 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
9288 | */
|
9289 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.ResourceDescriptor;
|
9290 |
|
9291 | /**
|
9292 | * Verifies a ResourceDescriptor message.
|
9293 | * @param message Plain object to verify
|
9294 | * @returns `null` if valid, otherwise the reason why it is not
|
9295 | */
|
9296 | public static verify(message: { [k: string]: any }): (string|null);
|
9297 |
|
9298 | /**
|
9299 | * Creates a ResourceDescriptor message from a plain object. Also converts values to their respective internal types.
|
9300 | * @param object Plain object
|
9301 | * @returns ResourceDescriptor
|
9302 | */
|
9303 | public static fromObject(object: { [k: string]: any }): google.api.ResourceDescriptor;
|
9304 |
|
9305 | /**
|
9306 | * Creates a plain object from a ResourceDescriptor message. Also converts values to other types if specified.
|
9307 | * @param message ResourceDescriptor
|
9308 | * @param [options] Conversion options
|
9309 | * @returns Plain object
|
9310 | */
|
9311 | public static toObject(message: google.api.ResourceDescriptor, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
9312 |
|
9313 | /**
|
9314 | * Converts this ResourceDescriptor to JSON.
|
9315 | * @returns JSON object
|
9316 | */
|
9317 | public toJSON(): { [k: string]: any };
|
9318 | }
|
9319 |
|
9320 | namespace ResourceDescriptor {
|
9321 |
|
9322 | /** History enum. */
|
9323 | enum History {
|
9324 | HISTORY_UNSPECIFIED = 0,
|
9325 | ORIGINALLY_SINGLE_PATTERN = 1,
|
9326 | FUTURE_MULTI_PATTERN = 2
|
9327 | }
|
9328 |
|
9329 | /** Style enum. */
|
9330 | enum Style {
|
9331 | STYLE_UNSPECIFIED = 0,
|
9332 | DECLARATIVE_FRIENDLY = 1
|
9333 | }
|
9334 | }
|
9335 |
|
9336 | /** Properties of a ResourceReference. */
|
9337 | interface IResourceReference {
|
9338 |
|
9339 | /** ResourceReference type */
|
9340 | type?: (string|null);
|
9341 |
|
9342 | /** ResourceReference childType */
|
9343 | childType?: (string|null);
|
9344 | }
|
9345 |
|
9346 | /** Represents a ResourceReference. */
|
9347 | class ResourceReference implements IResourceReference {
|
9348 |
|
9349 | /**
|
9350 | * Constructs a new ResourceReference.
|
9351 | * @param [properties] Properties to set
|
9352 | */
|
9353 | constructor(properties?: google.api.IResourceReference);
|
9354 |
|
9355 | /** ResourceReference type. */
|
9356 | public type: string;
|
9357 |
|
9358 | /** ResourceReference childType. */
|
9359 | public childType: string;
|
9360 |
|
9361 | /**
|
9362 | * Creates a new ResourceReference instance using the specified properties.
|
9363 | * @param [properties] Properties to set
|
9364 | * @returns ResourceReference instance
|
9365 | */
|
9366 | public static create(properties?: google.api.IResourceReference): google.api.ResourceReference;
|
9367 |
|
9368 | /**
|
9369 | * Encodes the specified ResourceReference message. Does not implicitly { google.api.ResourceReference.verify|verify} messages.
|
9370 | * message ResourceReference message or plain object to encode
|
9371 | * [writer] Writer to encode to
|
9372 | * Writer
|
9373 | */
|
9374 | public static encode(message: google.api.IResourceReference, writer?: $protobuf.Writer): $protobuf.Writer;
|
9375 |
|
9376 | /**
|
9377 | * Encodes the specified ResourceReference message, length delimited. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages.
|
9378 | * @param message ResourceReference message or plain object to encode
|
9379 | * @param [writer] Writer to encode to
|
9380 | * @returns Writer
|
9381 | */
|
9382 | public static encodeDelimited(message: google.api.IResourceReference, writer?: $protobuf.Writer): $protobuf.Writer;
|
9383 |
|
9384 | /**
|
9385 | * Decodes a ResourceReference message from the specified reader or buffer.
|
9386 | * @param reader Reader or buffer to decode from
|
9387 | * @param [length] Message length if known beforehand
|
9388 | * @returns ResourceReference
|
9389 | * @throws {Error} If the payload is not a reader or valid buffer
|
9390 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
9391 | */
|
9392 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.ResourceReference;
|
9393 |
|
9394 | /**
|
9395 | * Decodes a ResourceReference message from the specified reader or buffer, length delimited.
|
9396 | * @param reader Reader or buffer to decode from
|
9397 | * @returns ResourceReference
|
9398 | * @throws {Error} If the payload is not a reader or valid buffer
|
9399 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
9400 | */
|
9401 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.ResourceReference;
|
9402 |
|
9403 | /**
|
9404 | * Verifies a ResourceReference message.
|
9405 | * @param message Plain object to verify
|
9406 | * @returns `null` if valid, otherwise the reason why it is not
|
9407 | */
|
9408 | public static verify(message: { [k: string]: any }): (string|null);
|
9409 |
|
9410 | /**
|
9411 | * Creates a ResourceReference message from a plain object. Also converts values to their respective internal types.
|
9412 | * @param object Plain object
|
9413 | * @returns ResourceReference
|
9414 | */
|
9415 | public static fromObject(object: { [k: string]: any }): google.api.ResourceReference;
|
9416 |
|
9417 | /**
|
9418 | * Creates a plain object from a ResourceReference message. Also converts values to other types if specified.
|
9419 | * @param message ResourceReference
|
9420 | * @param [options] Conversion options
|
9421 | * @returns Plain object
|
9422 | */
|
9423 | public static toObject(message: google.api.ResourceReference, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
9424 |
|
9425 | /**
|
9426 | * Converts this ResourceReference to JSON.
|
9427 | * @returns JSON object
|
9428 | */
|
9429 | public toJSON(): { [k: string]: any };
|
9430 | }
|
9431 | }
|
9432 |
|
9433 | /** Namespace protobuf. */
|
9434 | namespace protobuf {
|
9435 |
|
9436 | /** Properties of a FileDescriptorSet. */
|
9437 | interface IFileDescriptorSet {
|
9438 |
|
9439 | /** FileDescriptorSet file */
|
9440 | file?: (google.protobuf.IFileDescriptorProto[]|null);
|
9441 | }
|
9442 |
|
9443 | /** Represents a FileDescriptorSet. */
|
9444 | class FileDescriptorSet implements IFileDescriptorSet {
|
9445 |
|
9446 | /**
|
9447 | * Constructs a new FileDescriptorSet.
|
9448 | * @param [properties] Properties to set
|
9449 | */
|
9450 | constructor(properties?: google.protobuf.IFileDescriptorSet);
|
9451 |
|
9452 | /** FileDescriptorSet file. */
|
9453 | public file: google.protobuf.IFileDescriptorProto[];
|
9454 |
|
9455 | /**
|
9456 | * Creates a new FileDescriptorSet instance using the specified properties.
|
9457 | * @param [properties] Properties to set
|
9458 | * @returns FileDescriptorSet instance
|
9459 | */
|
9460 | public static create(properties?: google.protobuf.IFileDescriptorSet): google.protobuf.FileDescriptorSet;
|
9461 |
|
9462 | /**
|
9463 | * Encodes the specified FileDescriptorSet message. Does not implicitly { google.protobuf.FileDescriptorSet.verify|verify} messages.
|
9464 | * message FileDescriptorSet message or plain object to encode
|
9465 | * [writer] Writer to encode to
|
9466 | * Writer
|
9467 | */
|
9468 | public static encode(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer;
|
9469 |
|
9470 | /**
|
9471 | * Encodes the specified FileDescriptorSet message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages.
|
9472 | * @param message FileDescriptorSet message or plain object to encode
|
9473 | * @param [writer] Writer to encode to
|
9474 | * @returns Writer
|
9475 | */
|
9476 | public static encodeDelimited(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer;
|
9477 |
|
9478 | /**
|
9479 | * Decodes a FileDescriptorSet message from the specified reader or buffer.
|
9480 | * @param reader Reader or buffer to decode from
|
9481 | * @param [length] Message length if known beforehand
|
9482 | * @returns FileDescriptorSet
|
9483 | * @throws {Error} If the payload is not a reader or valid buffer
|
9484 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
9485 | */
|
9486 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorSet;
|
9487 |
|
9488 | /**
|
9489 | * Decodes a FileDescriptorSet message from the specified reader or buffer, length delimited.
|
9490 | * @param reader Reader or buffer to decode from
|
9491 | * @returns FileDescriptorSet
|
9492 | * @throws {Error} If the payload is not a reader or valid buffer
|
9493 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
9494 | */
|
9495 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileDescriptorSet;
|
9496 |
|
9497 | /**
|
9498 | * Verifies a FileDescriptorSet message.
|
9499 | * @param message Plain object to verify
|
9500 | * @returns `null` if valid, otherwise the reason why it is not
|
9501 | */
|
9502 | public static verify(message: { [k: string]: any }): (string|null);
|
9503 |
|
9504 | /**
|
9505 | * Creates a FileDescriptorSet message from a plain object. Also converts values to their respective internal types.
|
9506 | * @param object Plain object
|
9507 | * @returns FileDescriptorSet
|
9508 | */
|
9509 | public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorSet;
|
9510 |
|
9511 | /**
|
9512 | * Creates a plain object from a FileDescriptorSet message. Also converts values to other types if specified.
|
9513 | * @param message FileDescriptorSet
|
9514 | * @param [options] Conversion options
|
9515 | * @returns Plain object
|
9516 | */
|
9517 | public static toObject(message: google.protobuf.FileDescriptorSet, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
9518 |
|
9519 | /**
|
9520 | * Converts this FileDescriptorSet to JSON.
|
9521 | * @returns JSON object
|
9522 | */
|
9523 | public toJSON(): { [k: string]: any };
|
9524 | }
|
9525 |
|
9526 | /** Properties of a FileDescriptorProto. */
|
9527 | interface IFileDescriptorProto {
|
9528 |
|
9529 | /** FileDescriptorProto name */
|
9530 | name?: (string|null);
|
9531 |
|
9532 | /** FileDescriptorProto package */
|
9533 | "package"?: (string|null);
|
9534 |
|
9535 | /** FileDescriptorProto dependency */
|
9536 | dependency?: (string[]|null);
|
9537 |
|
9538 | /** FileDescriptorProto publicDependency */
|
9539 | publicDependency?: (number[]|null);
|
9540 |
|
9541 | /** FileDescriptorProto weakDependency */
|
9542 | weakDependency?: (number[]|null);
|
9543 |
|
9544 | /** FileDescriptorProto messageType */
|
9545 | messageType?: (google.protobuf.IDescriptorProto[]|null);
|
9546 |
|
9547 | /** FileDescriptorProto enumType */
|
9548 | enumType?: (google.protobuf.IEnumDescriptorProto[]|null);
|
9549 |
|
9550 | /** FileDescriptorProto service */
|
9551 | service?: (google.protobuf.IServiceDescriptorProto[]|null);
|
9552 |
|
9553 | /** FileDescriptorProto extension */
|
9554 | extension?: (google.protobuf.IFieldDescriptorProto[]|null);
|
9555 |
|
9556 | /** FileDescriptorProto options */
|
9557 | options?: (google.protobuf.IFileOptions|null);
|
9558 |
|
9559 | /** FileDescriptorProto sourceCodeInfo */
|
9560 | sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null);
|
9561 |
|
9562 | /** FileDescriptorProto syntax */
|
9563 | syntax?: (string|null);
|
9564 | }
|
9565 |
|
9566 | /** Represents a FileDescriptorProto. */
|
9567 | class FileDescriptorProto implements IFileDescriptorProto {
|
9568 |
|
9569 | /**
|
9570 | * Constructs a new FileDescriptorProto.
|
9571 | * @param [properties] Properties to set
|
9572 | */
|
9573 | constructor(properties?: google.protobuf.IFileDescriptorProto);
|
9574 |
|
9575 | /** FileDescriptorProto name. */
|
9576 | public name: string;
|
9577 |
|
9578 | /** FileDescriptorProto package. */
|
9579 | public package: string;
|
9580 |
|
9581 | /** FileDescriptorProto dependency. */
|
9582 | public dependency: string[];
|
9583 |
|
9584 | /** FileDescriptorProto publicDependency. */
|
9585 | public publicDependency: number[];
|
9586 |
|
9587 | /** FileDescriptorProto weakDependency. */
|
9588 | public weakDependency: number[];
|
9589 |
|
9590 | /** FileDescriptorProto messageType. */
|
9591 | public messageType: google.protobuf.IDescriptorProto[];
|
9592 |
|
9593 | /** FileDescriptorProto enumType. */
|
9594 | public enumType: google.protobuf.IEnumDescriptorProto[];
|
9595 |
|
9596 | /** FileDescriptorProto service. */
|
9597 | public service: google.protobuf.IServiceDescriptorProto[];
|
9598 |
|
9599 | /** FileDescriptorProto extension. */
|
9600 | public extension: google.protobuf.IFieldDescriptorProto[];
|
9601 |
|
9602 | /** FileDescriptorProto options. */
|
9603 | public options?: (google.protobuf.IFileOptions|null);
|
9604 |
|
9605 | /** FileDescriptorProto sourceCodeInfo. */
|
9606 | public sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null);
|
9607 |
|
9608 | /** FileDescriptorProto syntax. */
|
9609 | public syntax: string;
|
9610 |
|
9611 | /**
|
9612 | * Creates a new FileDescriptorProto instance using the specified properties.
|
9613 | * @param [properties] Properties to set
|
9614 | * @returns FileDescriptorProto instance
|
9615 | */
|
9616 | public static create(properties?: google.protobuf.IFileDescriptorProto): google.protobuf.FileDescriptorProto;
|
9617 |
|
9618 | /**
|
9619 | * Encodes the specified FileDescriptorProto message. Does not implicitly { google.protobuf.FileDescriptorProto.verify|verify} messages.
|
9620 | * message FileDescriptorProto message or plain object to encode
|
9621 | * [writer] Writer to encode to
|
9622 | * Writer
|
9623 | */
|
9624 | public static encode(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
|
9625 |
|
9626 | /**
|
9627 | * Encodes the specified FileDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages.
|
9628 | * @param message FileDescriptorProto message or plain object to encode
|
9629 | * @param [writer] Writer to encode to
|
9630 | * @returns Writer
|
9631 | */
|
9632 | public static encodeDelimited(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
|
9633 |
|
9634 | /**
|
9635 | * Decodes a FileDescriptorProto message from the specified reader or buffer.
|
9636 | * @param reader Reader or buffer to decode from
|
9637 | * @param [length] Message length if known beforehand
|
9638 | * @returns FileDescriptorProto
|
9639 | * @throws {Error} If the payload is not a reader or valid buffer
|
9640 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
9641 | */
|
9642 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorProto;
|
9643 |
|
9644 | /**
|
9645 | * Decodes a FileDescriptorProto message from the specified reader or buffer, length delimited.
|
9646 | * @param reader Reader or buffer to decode from
|
9647 | * @returns FileDescriptorProto
|
9648 | * @throws {Error} If the payload is not a reader or valid buffer
|
9649 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
9650 | */
|
9651 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileDescriptorProto;
|
9652 |
|
9653 | /**
|
9654 | * Verifies a FileDescriptorProto message.
|
9655 | * @param message Plain object to verify
|
9656 | * @returns `null` if valid, otherwise the reason why it is not
|
9657 | */
|
9658 | public static verify(message: { [k: string]: any }): (string|null);
|
9659 |
|
9660 | /**
|
9661 | * Creates a FileDescriptorProto message from a plain object. Also converts values to their respective internal types.
|
9662 | * @param object Plain object
|
9663 | * @returns FileDescriptorProto
|
9664 | */
|
9665 | public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorProto;
|
9666 |
|
9667 | /**
|
9668 | * Creates a plain object from a FileDescriptorProto message. Also converts values to other types if specified.
|
9669 | * @param message FileDescriptorProto
|
9670 | * @param [options] Conversion options
|
9671 | * @returns Plain object
|
9672 | */
|
9673 | public static toObject(message: google.protobuf.FileDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
9674 |
|
9675 | /**
|
9676 | * Converts this FileDescriptorProto to JSON.
|
9677 | * @returns JSON object
|
9678 | */
|
9679 | public toJSON(): { [k: string]: any };
|
9680 | }
|
9681 |
|
9682 | /** Properties of a DescriptorProto. */
|
9683 | interface IDescriptorProto {
|
9684 |
|
9685 | /** DescriptorProto name */
|
9686 | name?: (string|null);
|
9687 |
|
9688 | /** DescriptorProto field */
|
9689 | field?: (google.protobuf.IFieldDescriptorProto[]|null);
|
9690 |
|
9691 | /** DescriptorProto extension */
|
9692 | extension?: (google.protobuf.IFieldDescriptorProto[]|null);
|
9693 |
|
9694 | /** DescriptorProto nestedType */
|
9695 | nestedType?: (google.protobuf.IDescriptorProto[]|null);
|
9696 |
|
9697 | /** DescriptorProto enumType */
|
9698 | enumType?: (google.protobuf.IEnumDescriptorProto[]|null);
|
9699 |
|
9700 | /** DescriptorProto extensionRange */
|
9701 | extensionRange?: (google.protobuf.DescriptorProto.IExtensionRange[]|null);
|
9702 |
|
9703 | /** DescriptorProto oneofDecl */
|
9704 | oneofDecl?: (google.protobuf.IOneofDescriptorProto[]|null);
|
9705 |
|
9706 | /** DescriptorProto options */
|
9707 | options?: (google.protobuf.IMessageOptions|null);
|
9708 |
|
9709 | /** DescriptorProto reservedRange */
|
9710 | reservedRange?: (google.protobuf.DescriptorProto.IReservedRange[]|null);
|
9711 |
|
9712 | /** DescriptorProto reservedName */
|
9713 | reservedName?: (string[]|null);
|
9714 | }
|
9715 |
|
9716 | /** Represents a DescriptorProto. */
|
9717 | class DescriptorProto implements IDescriptorProto {
|
9718 |
|
9719 | /**
|
9720 | * Constructs a new DescriptorProto.
|
9721 | * @param [properties] Properties to set
|
9722 | */
|
9723 | constructor(properties?: google.protobuf.IDescriptorProto);
|
9724 |
|
9725 | /** DescriptorProto name. */
|
9726 | public name: string;
|
9727 |
|
9728 | /** DescriptorProto field. */
|
9729 | public field: google.protobuf.IFieldDescriptorProto[];
|
9730 |
|
9731 | /** DescriptorProto extension. */
|
9732 | public extension: google.protobuf.IFieldDescriptorProto[];
|
9733 |
|
9734 | /** DescriptorProto nestedType. */
|
9735 | public nestedType: google.protobuf.IDescriptorProto[];
|
9736 |
|
9737 | /** DescriptorProto enumType. */
|
9738 | public enumType: google.protobuf.IEnumDescriptorProto[];
|
9739 |
|
9740 | /** DescriptorProto extensionRange. */
|
9741 | public extensionRange: google.protobuf.DescriptorProto.IExtensionRange[];
|
9742 |
|
9743 | /** DescriptorProto oneofDecl. */
|
9744 | public oneofDecl: google.protobuf.IOneofDescriptorProto[];
|
9745 |
|
9746 | /** DescriptorProto options. */
|
9747 | public options?: (google.protobuf.IMessageOptions|null);
|
9748 |
|
9749 | /** DescriptorProto reservedRange. */
|
9750 | public reservedRange: google.protobuf.DescriptorProto.IReservedRange[];
|
9751 |
|
9752 | /** DescriptorProto reservedName. */
|
9753 | public reservedName: string[];
|
9754 |
|
9755 | /**
|
9756 | * Creates a new DescriptorProto instance using the specified properties.
|
9757 | * @param [properties] Properties to set
|
9758 | * @returns DescriptorProto instance
|
9759 | */
|
9760 | public static create(properties?: google.protobuf.IDescriptorProto): google.protobuf.DescriptorProto;
|
9761 |
|
9762 | /**
|
9763 | * Encodes the specified DescriptorProto message. Does not implicitly { google.protobuf.DescriptorProto.verify|verify} messages.
|
9764 | * message DescriptorProto message or plain object to encode
|
9765 | * [writer] Writer to encode to
|
9766 | * Writer
|
9767 | */
|
9768 | public static encode(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
|
9769 |
|
9770 | /**
|
9771 | * Encodes the specified DescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages.
|
9772 | * @param message DescriptorProto message or plain object to encode
|
9773 | * @param [writer] Writer to encode to
|
9774 | * @returns Writer
|
9775 | */
|
9776 | public static encodeDelimited(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
|
9777 |
|
9778 | /**
|
9779 | * Decodes a DescriptorProto message from the specified reader or buffer.
|
9780 | * @param reader Reader or buffer to decode from
|
9781 | * @param [length] Message length if known beforehand
|
9782 | * @returns DescriptorProto
|
9783 | * @throws {Error} If the payload is not a reader or valid buffer
|
9784 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
9785 | */
|
9786 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto;
|
9787 |
|
9788 | /**
|
9789 | * Decodes a DescriptorProto message from the specified reader or buffer, length delimited.
|
9790 | * @param reader Reader or buffer to decode from
|
9791 | * @returns DescriptorProto
|
9792 | * @throws {Error} If the payload is not a reader or valid buffer
|
9793 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
9794 | */
|
9795 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto;
|
9796 |
|
9797 | /**
|
9798 | * Verifies a DescriptorProto message.
|
9799 | * @param message Plain object to verify
|
9800 | * @returns `null` if valid, otherwise the reason why it is not
|
9801 | */
|
9802 | public static verify(message: { [k: string]: any }): (string|null);
|
9803 |
|
9804 | /**
|
9805 | * Creates a DescriptorProto message from a plain object. Also converts values to their respective internal types.
|
9806 | * @param object Plain object
|
9807 | * @returns DescriptorProto
|
9808 | */
|
9809 | public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto;
|
9810 |
|
9811 | /**
|
9812 | * Creates a plain object from a DescriptorProto message. Also converts values to other types if specified.
|
9813 | * @param message DescriptorProto
|
9814 | * @param [options] Conversion options
|
9815 | * @returns Plain object
|
9816 | */
|
9817 | public static toObject(message: google.protobuf.DescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
9818 |
|
9819 | /**
|
9820 | * Converts this DescriptorProto to JSON.
|
9821 | * @returns JSON object
|
9822 | */
|
9823 | public toJSON(): { [k: string]: any };
|
9824 | }
|
9825 |
|
9826 | namespace DescriptorProto {
|
9827 |
|
9828 | /** Properties of an ExtensionRange. */
|
9829 | interface IExtensionRange {
|
9830 |
|
9831 | /** ExtensionRange start */
|
9832 | start?: (number|null);
|
9833 |
|
9834 | /** ExtensionRange end */
|
9835 | end?: (number|null);
|
9836 |
|
9837 | /** ExtensionRange options */
|
9838 | options?: (google.protobuf.IExtensionRangeOptions|null);
|
9839 | }
|
9840 |
|
9841 | /** Represents an ExtensionRange. */
|
9842 | class ExtensionRange implements IExtensionRange {
|
9843 |
|
9844 | /**
|
9845 | * Constructs a new ExtensionRange.
|
9846 | * @param [properties] Properties to set
|
9847 | */
|
9848 | constructor(properties?: google.protobuf.DescriptorProto.IExtensionRange);
|
9849 |
|
9850 | /** ExtensionRange start. */
|
9851 | public start: number;
|
9852 |
|
9853 | /** ExtensionRange end. */
|
9854 | public end: number;
|
9855 |
|
9856 | /** ExtensionRange options. */
|
9857 | public options?: (google.protobuf.IExtensionRangeOptions|null);
|
9858 |
|
9859 | /**
|
9860 | * Creates a new ExtensionRange instance using the specified properties.
|
9861 | * @param [properties] Properties to set
|
9862 | * @returns ExtensionRange instance
|
9863 | */
|
9864 | public static create(properties?: google.protobuf.DescriptorProto.IExtensionRange): google.protobuf.DescriptorProto.ExtensionRange;
|
9865 |
|
9866 | /**
|
9867 | * Encodes the specified ExtensionRange message. Does not implicitly { google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages.
|
9868 | * message ExtensionRange message or plain object to encode
|
9869 | * [writer] Writer to encode to
|
9870 | * Writer
|
9871 | */
|
9872 | public static encode(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer;
|
9873 |
|
9874 | /**
|
9875 | * Encodes the specified ExtensionRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages.
|
9876 | * @param message ExtensionRange message or plain object to encode
|
9877 | * @param [writer] Writer to encode to
|
9878 | * @returns Writer
|
9879 | */
|
9880 | public static encodeDelimited(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer;
|
9881 |
|
9882 | /**
|
9883 | * Decodes an ExtensionRange message from the specified reader or buffer.
|
9884 | * @param reader Reader or buffer to decode from
|
9885 | * @param [length] Message length if known beforehand
|
9886 | * @returns ExtensionRange
|
9887 | * @throws {Error} If the payload is not a reader or valid buffer
|
9888 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
9889 | */
|
9890 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto.ExtensionRange;
|
9891 |
|
9892 | /**
|
9893 | * Decodes an ExtensionRange message from the specified reader or buffer, length delimited.
|
9894 | * @param reader Reader or buffer to decode from
|
9895 | * @returns ExtensionRange
|
9896 | * @throws {Error} If the payload is not a reader or valid buffer
|
9897 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
9898 | */
|
9899 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto.ExtensionRange;
|
9900 |
|
9901 | /**
|
9902 | * Verifies an ExtensionRange message.
|
9903 | * @param message Plain object to verify
|
9904 | * @returns `null` if valid, otherwise the reason why it is not
|
9905 | */
|
9906 | public static verify(message: { [k: string]: any }): (string|null);
|
9907 |
|
9908 | /**
|
9909 | * Creates an ExtensionRange message from a plain object. Also converts values to their respective internal types.
|
9910 | * @param object Plain object
|
9911 | * @returns ExtensionRange
|
9912 | */
|
9913 | public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ExtensionRange;
|
9914 |
|
9915 | /**
|
9916 | * Creates a plain object from an ExtensionRange message. Also converts values to other types if specified.
|
9917 | * @param message ExtensionRange
|
9918 | * @param [options] Conversion options
|
9919 | * @returns Plain object
|
9920 | */
|
9921 | public static toObject(message: google.protobuf.DescriptorProto.ExtensionRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
9922 |
|
9923 | /**
|
9924 | * Converts this ExtensionRange to JSON.
|
9925 | * @returns JSON object
|
9926 | */
|
9927 | public toJSON(): { [k: string]: any };
|
9928 | }
|
9929 |
|
9930 | /** Properties of a ReservedRange. */
|
9931 | interface IReservedRange {
|
9932 |
|
9933 | /** ReservedRange start */
|
9934 | start?: (number|null);
|
9935 |
|
9936 | /** ReservedRange end */
|
9937 | end?: (number|null);
|
9938 | }
|
9939 |
|
9940 | /** Represents a ReservedRange. */
|
9941 | class ReservedRange implements IReservedRange {
|
9942 |
|
9943 | /**
|
9944 | * Constructs a new ReservedRange.
|
9945 | * @param [properties] Properties to set
|
9946 | */
|
9947 | constructor(properties?: google.protobuf.DescriptorProto.IReservedRange);
|
9948 |
|
9949 | /** ReservedRange start. */
|
9950 | public start: number;
|
9951 |
|
9952 | /** ReservedRange end. */
|
9953 | public end: number;
|
9954 |
|
9955 | /**
|
9956 | * Creates a new ReservedRange instance using the specified properties.
|
9957 | * @param [properties] Properties to set
|
9958 | * @returns ReservedRange instance
|
9959 | */
|
9960 | public static create(properties?: google.protobuf.DescriptorProto.IReservedRange): google.protobuf.DescriptorProto.ReservedRange;
|
9961 |
|
9962 | /**
|
9963 | * Encodes the specified ReservedRange message. Does not implicitly { google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages.
|
9964 | * message ReservedRange message or plain object to encode
|
9965 | * [writer] Writer to encode to
|
9966 | * Writer
|
9967 | */
|
9968 | public static encode(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
|
9969 |
|
9970 | /**
|
9971 | * Encodes the specified ReservedRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages.
|
9972 | * @param message ReservedRange message or plain object to encode
|
9973 | * @param [writer] Writer to encode to
|
9974 | * @returns Writer
|
9975 | */
|
9976 | public static encodeDelimited(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
|
9977 |
|
9978 | /**
|
9979 | * Decodes a ReservedRange message from the specified reader or buffer.
|
9980 | * @param reader Reader or buffer to decode from
|
9981 | * @param [length] Message length if known beforehand
|
9982 | * @returns ReservedRange
|
9983 | * @throws {Error} If the payload is not a reader or valid buffer
|
9984 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
9985 | */
|
9986 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto.ReservedRange;
|
9987 |
|
9988 | /**
|
9989 | * Decodes a ReservedRange message from the specified reader or buffer, length delimited.
|
9990 | * @param reader Reader or buffer to decode from
|
9991 | * @returns ReservedRange
|
9992 | * @throws {Error} If the payload is not a reader or valid buffer
|
9993 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
9994 | */
|
9995 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto.ReservedRange;
|
9996 |
|
9997 | /**
|
9998 | * Verifies a ReservedRange message.
|
9999 | * @param message Plain object to verify
|
10000 | * @returns `null` if valid, otherwise the reason why it is not
|
10001 | */
|
10002 | public static verify(message: { [k: string]: any }): (string|null);
|
10003 |
|
10004 | /**
|
10005 | * Creates a ReservedRange message from a plain object. Also converts values to their respective internal types.
|
10006 | * @param object Plain object
|
10007 | * @returns ReservedRange
|
10008 | */
|
10009 | public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ReservedRange;
|
10010 |
|
10011 | /**
|
10012 | * Creates a plain object from a ReservedRange message. Also converts values to other types if specified.
|
10013 | * @param message ReservedRange
|
10014 | * @param [options] Conversion options
|
10015 | * @returns Plain object
|
10016 | */
|
10017 | public static toObject(message: google.protobuf.DescriptorProto.ReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
10018 |
|
10019 | /**
|
10020 | * Converts this ReservedRange to JSON.
|
10021 | * @returns JSON object
|
10022 | */
|
10023 | public toJSON(): { [k: string]: any };
|
10024 | }
|
10025 | }
|
10026 |
|
10027 | /** Properties of an ExtensionRangeOptions. */
|
10028 | interface IExtensionRangeOptions {
|
10029 |
|
10030 | /** ExtensionRangeOptions uninterpretedOption */
|
10031 | uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
|
10032 | }
|
10033 |
|
10034 | /** Represents an ExtensionRangeOptions. */
|
10035 | class ExtensionRangeOptions implements IExtensionRangeOptions {
|
10036 |
|
10037 | /**
|
10038 | * Constructs a new ExtensionRangeOptions.
|
10039 | * @param [properties] Properties to set
|
10040 | */
|
10041 | constructor(properties?: google.protobuf.IExtensionRangeOptions);
|
10042 |
|
10043 | /** ExtensionRangeOptions uninterpretedOption. */
|
10044 | public uninterpretedOption: google.protobuf.IUninterpretedOption[];
|
10045 |
|
10046 | /**
|
10047 | * Creates a new ExtensionRangeOptions instance using the specified properties.
|
10048 | * @param [properties] Properties to set
|
10049 | * @returns ExtensionRangeOptions instance
|
10050 | */
|
10051 | public static create(properties?: google.protobuf.IExtensionRangeOptions): google.protobuf.ExtensionRangeOptions;
|
10052 |
|
10053 | /**
|
10054 | * Encodes the specified ExtensionRangeOptions message. Does not implicitly { google.protobuf.ExtensionRangeOptions.verify|verify} messages.
|
10055 | * message ExtensionRangeOptions message or plain object to encode
|
10056 | * [writer] Writer to encode to
|
10057 | * Writer
|
10058 | */
|
10059 | public static encode(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer;
|
10060 |
|
10061 | /**
|
10062 | * Encodes the specified ExtensionRangeOptions message, length delimited. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages.
|
10063 | * @param message ExtensionRangeOptions message or plain object to encode
|
10064 | * @param [writer] Writer to encode to
|
10065 | * @returns Writer
|
10066 | */
|
10067 | public static encodeDelimited(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer;
|
10068 |
|
10069 | /**
|
10070 | * Decodes an ExtensionRangeOptions message from the specified reader or buffer.
|
10071 | * @param reader Reader or buffer to decode from
|
10072 | * @param [length] Message length if known beforehand
|
10073 | * @returns ExtensionRangeOptions
|
10074 | * @throws {Error} If the payload is not a reader or valid buffer
|
10075 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
10076 | */
|
10077 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ExtensionRangeOptions;
|
10078 |
|
10079 | /**
|
10080 | * Decodes an ExtensionRangeOptions message from the specified reader or buffer, length delimited.
|
10081 | * @param reader Reader or buffer to decode from
|
10082 | * @returns ExtensionRangeOptions
|
10083 | * @throws {Error} If the payload is not a reader or valid buffer
|
10084 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
10085 | */
|
10086 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ExtensionRangeOptions;
|
10087 |
|
10088 | /**
|
10089 | * Verifies an ExtensionRangeOptions message.
|
10090 | * @param message Plain object to verify
|
10091 | * @returns `null` if valid, otherwise the reason why it is not
|
10092 | */
|
10093 | public static verify(message: { [k: string]: any }): (string|null);
|
10094 |
|
10095 | /**
|
10096 | * Creates an ExtensionRangeOptions message from a plain object. Also converts values to their respective internal types.
|
10097 | * @param object Plain object
|
10098 | * @returns ExtensionRangeOptions
|
10099 | */
|
10100 | public static fromObject(object: { [k: string]: any }): google.protobuf.ExtensionRangeOptions;
|
10101 |
|
10102 | /**
|
10103 | * Creates a plain object from an ExtensionRangeOptions message. Also converts values to other types if specified.
|
10104 | * @param message ExtensionRangeOptions
|
10105 | * @param [options] Conversion options
|
10106 | * @returns Plain object
|
10107 | */
|
10108 | public static toObject(message: google.protobuf.ExtensionRangeOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
10109 |
|
10110 | /**
|
10111 | * Converts this ExtensionRangeOptions to JSON.
|
10112 | * @returns JSON object
|
10113 | */
|
10114 | public toJSON(): { [k: string]: any };
|
10115 | }
|
10116 |
|
10117 | /** Properties of a FieldDescriptorProto. */
|
10118 | interface IFieldDescriptorProto {
|
10119 |
|
10120 | /** FieldDescriptorProto name */
|
10121 | name?: (string|null);
|
10122 |
|
10123 | /** FieldDescriptorProto number */
|
10124 | number?: (number|null);
|
10125 |
|
10126 | /** FieldDescriptorProto label */
|
10127 | label?: (google.protobuf.FieldDescriptorProto.Label|keyof typeof google.protobuf.FieldDescriptorProto.Label|null);
|
10128 |
|
10129 | /** FieldDescriptorProto type */
|
10130 | type?: (google.protobuf.FieldDescriptorProto.Type|keyof typeof google.protobuf.FieldDescriptorProto.Type|null);
|
10131 |
|
10132 | /** FieldDescriptorProto typeName */
|
10133 | typeName?: (string|null);
|
10134 |
|
10135 | /** FieldDescriptorProto extendee */
|
10136 | extendee?: (string|null);
|
10137 |
|
10138 | /** FieldDescriptorProto defaultValue */
|
10139 | defaultValue?: (string|null);
|
10140 |
|
10141 | /** FieldDescriptorProto oneofIndex */
|
10142 | oneofIndex?: (number|null);
|
10143 |
|
10144 | /** FieldDescriptorProto jsonName */
|
10145 | jsonName?: (string|null);
|
10146 |
|
10147 | /** FieldDescriptorProto options */
|
10148 | options?: (google.protobuf.IFieldOptions|null);
|
10149 |
|
10150 | /** FieldDescriptorProto proto3Optional */
|
10151 | proto3Optional?: (boolean|null);
|
10152 | }
|
10153 |
|
10154 | /** Represents a FieldDescriptorProto. */
|
10155 | class FieldDescriptorProto implements IFieldDescriptorProto {
|
10156 |
|
10157 | /**
|
10158 | * Constructs a new FieldDescriptorProto.
|
10159 | * @param [properties] Properties to set
|
10160 | */
|
10161 | constructor(properties?: google.protobuf.IFieldDescriptorProto);
|
10162 |
|
10163 | /** FieldDescriptorProto name. */
|
10164 | public name: string;
|
10165 |
|
10166 | /** FieldDescriptorProto number. */
|
10167 | public number: number;
|
10168 |
|
10169 | /** FieldDescriptorProto label. */
|
10170 | public label: (google.protobuf.FieldDescriptorProto.Label|keyof typeof google.protobuf.FieldDescriptorProto.Label);
|
10171 |
|
10172 | /** FieldDescriptorProto type. */
|
10173 | public type: (google.protobuf.FieldDescriptorProto.Type|keyof typeof google.protobuf.FieldDescriptorProto.Type);
|
10174 |
|
10175 | /** FieldDescriptorProto typeName. */
|
10176 | public typeName: string;
|
10177 |
|
10178 | /** FieldDescriptorProto extendee. */
|
10179 | public extendee: string;
|
10180 |
|
10181 | /** FieldDescriptorProto defaultValue. */
|
10182 | public defaultValue: string;
|
10183 |
|
10184 | /** FieldDescriptorProto oneofIndex. */
|
10185 | public oneofIndex: number;
|
10186 |
|
10187 | /** FieldDescriptorProto jsonName. */
|
10188 | public jsonName: string;
|
10189 |
|
10190 | /** FieldDescriptorProto options. */
|
10191 | public options?: (google.protobuf.IFieldOptions|null);
|
10192 |
|
10193 | /** FieldDescriptorProto proto3Optional. */
|
10194 | public proto3Optional: boolean;
|
10195 |
|
10196 | /**
|
10197 | * Creates a new FieldDescriptorProto instance using the specified properties.
|
10198 | * @param [properties] Properties to set
|
10199 | * @returns FieldDescriptorProto instance
|
10200 | */
|
10201 | public static create(properties?: google.protobuf.IFieldDescriptorProto): google.protobuf.FieldDescriptorProto;
|
10202 |
|
10203 | /**
|
10204 | * Encodes the specified FieldDescriptorProto message. Does not implicitly { google.protobuf.FieldDescriptorProto.verify|verify} messages.
|
10205 | * message FieldDescriptorProto message or plain object to encode
|
10206 | * [writer] Writer to encode to
|
10207 | * Writer
|
10208 | */
|
10209 | public static encode(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
|
10210 |
|
10211 | /**
|
10212 | * Encodes the specified FieldDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages.
|
10213 | * @param message FieldDescriptorProto message or plain object to encode
|
10214 | * @param [writer] Writer to encode to
|
10215 | * @returns Writer
|
10216 | */
|
10217 | public static encodeDelimited(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
|
10218 |
|
10219 | /**
|
10220 | * Decodes a FieldDescriptorProto message from the specified reader or buffer.
|
10221 | * @param reader Reader or buffer to decode from
|
10222 | * @param [length] Message length if known beforehand
|
10223 | * @returns FieldDescriptorProto
|
10224 | * @throws {Error} If the payload is not a reader or valid buffer
|
10225 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
10226 | */
|
10227 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldDescriptorProto;
|
10228 |
|
10229 | /**
|
10230 | * Decodes a FieldDescriptorProto message from the specified reader or buffer, length delimited.
|
10231 | * @param reader Reader or buffer to decode from
|
10232 | * @returns FieldDescriptorProto
|
10233 | * @throws {Error} If the payload is not a reader or valid buffer
|
10234 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
10235 | */
|
10236 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldDescriptorProto;
|
10237 |
|
10238 | /**
|
10239 | * Verifies a FieldDescriptorProto message.
|
10240 | * @param message Plain object to verify
|
10241 | * @returns `null` if valid, otherwise the reason why it is not
|
10242 | */
|
10243 | public static verify(message: { [k: string]: any }): (string|null);
|
10244 |
|
10245 | /**
|
10246 | * Creates a FieldDescriptorProto message from a plain object. Also converts values to their respective internal types.
|
10247 | * @param object Plain object
|
10248 | * @returns FieldDescriptorProto
|
10249 | */
|
10250 | public static fromObject(object: { [k: string]: any }): google.protobuf.FieldDescriptorProto;
|
10251 |
|
10252 | /**
|
10253 | * Creates a plain object from a FieldDescriptorProto message. Also converts values to other types if specified.
|
10254 | * @param message FieldDescriptorProto
|
10255 | * @param [options] Conversion options
|
10256 | * @returns Plain object
|
10257 | */
|
10258 | public static toObject(message: google.protobuf.FieldDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
10259 |
|
10260 | /**
|
10261 | * Converts this FieldDescriptorProto to JSON.
|
10262 | * @returns JSON object
|
10263 | */
|
10264 | public toJSON(): { [k: string]: any };
|
10265 | }
|
10266 |
|
10267 | namespace FieldDescriptorProto {
|
10268 |
|
10269 | /** Type enum. */
|
10270 | enum Type {
|
10271 | TYPE_DOUBLE = 1,
|
10272 | TYPE_FLOAT = 2,
|
10273 | TYPE_INT64 = 3,
|
10274 | TYPE_UINT64 = 4,
|
10275 | TYPE_INT32 = 5,
|
10276 | TYPE_FIXED64 = 6,
|
10277 | TYPE_FIXED32 = 7,
|
10278 | TYPE_BOOL = 8,
|
10279 | TYPE_STRING = 9,
|
10280 | TYPE_GROUP = 10,
|
10281 | TYPE_MESSAGE = 11,
|
10282 | TYPE_BYTES = 12,
|
10283 | TYPE_UINT32 = 13,
|
10284 | TYPE_ENUM = 14,
|
10285 | TYPE_SFIXED32 = 15,
|
10286 | TYPE_SFIXED64 = 16,
|
10287 | TYPE_SINT32 = 17,
|
10288 | TYPE_SINT64 = 18
|
10289 | }
|
10290 |
|
10291 | /** Label enum. */
|
10292 | enum Label {
|
10293 | LABEL_OPTIONAL = 1,
|
10294 | LABEL_REQUIRED = 2,
|
10295 | LABEL_REPEATED = 3
|
10296 | }
|
10297 | }
|
10298 |
|
10299 | /** Properties of an OneofDescriptorProto. */
|
10300 | interface IOneofDescriptorProto {
|
10301 |
|
10302 | /** OneofDescriptorProto name */
|
10303 | name?: (string|null);
|
10304 |
|
10305 | /** OneofDescriptorProto options */
|
10306 | options?: (google.protobuf.IOneofOptions|null);
|
10307 | }
|
10308 |
|
10309 | /** Represents an OneofDescriptorProto. */
|
10310 | class OneofDescriptorProto implements IOneofDescriptorProto {
|
10311 |
|
10312 | /**
|
10313 | * Constructs a new OneofDescriptorProto.
|
10314 | * @param [properties] Properties to set
|
10315 | */
|
10316 | constructor(properties?: google.protobuf.IOneofDescriptorProto);
|
10317 |
|
10318 | /** OneofDescriptorProto name. */
|
10319 | public name: string;
|
10320 |
|
10321 | /** OneofDescriptorProto options. */
|
10322 | public options?: (google.protobuf.IOneofOptions|null);
|
10323 |
|
10324 | /**
|
10325 | * Creates a new OneofDescriptorProto instance using the specified properties.
|
10326 | * @param [properties] Properties to set
|
10327 | * @returns OneofDescriptorProto instance
|
10328 | */
|
10329 | public static create(properties?: google.protobuf.IOneofDescriptorProto): google.protobuf.OneofDescriptorProto;
|
10330 |
|
10331 | /**
|
10332 | * Encodes the specified OneofDescriptorProto message. Does not implicitly { google.protobuf.OneofDescriptorProto.verify|verify} messages.
|
10333 | * message OneofDescriptorProto message or plain object to encode
|
10334 | * [writer] Writer to encode to
|
10335 | * Writer
|
10336 | */
|
10337 | public static encode(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
|
10338 |
|
10339 | /**
|
10340 | * Encodes the specified OneofDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages.
|
10341 | * @param message OneofDescriptorProto message or plain object to encode
|
10342 | * @param [writer] Writer to encode to
|
10343 | * @returns Writer
|
10344 | */
|
10345 | public static encodeDelimited(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
|
10346 |
|
10347 | /**
|
10348 | * Decodes an OneofDescriptorProto message from the specified reader or buffer.
|
10349 | * @param reader Reader or buffer to decode from
|
10350 | * @param [length] Message length if known beforehand
|
10351 | * @returns OneofDescriptorProto
|
10352 | * @throws {Error} If the payload is not a reader or valid buffer
|
10353 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
10354 | */
|
10355 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofDescriptorProto;
|
10356 |
|
10357 | /**
|
10358 | * Decodes an OneofDescriptorProto message from the specified reader or buffer, length delimited.
|
10359 | * @param reader Reader or buffer to decode from
|
10360 | * @returns OneofDescriptorProto
|
10361 | * @throws {Error} If the payload is not a reader or valid buffer
|
10362 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
10363 | */
|
10364 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.OneofDescriptorProto;
|
10365 |
|
10366 | /**
|
10367 | * Verifies an OneofDescriptorProto message.
|
10368 | * @param message Plain object to verify
|
10369 | * @returns `null` if valid, otherwise the reason why it is not
|
10370 | */
|
10371 | public static verify(message: { [k: string]: any }): (string|null);
|
10372 |
|
10373 | /**
|
10374 | * Creates an OneofDescriptorProto message from a plain object. Also converts values to their respective internal types.
|
10375 | * @param object Plain object
|
10376 | * @returns OneofDescriptorProto
|
10377 | */
|
10378 | public static fromObject(object: { [k: string]: any }): google.protobuf.OneofDescriptorProto;
|
10379 |
|
10380 | /**
|
10381 | * Creates a plain object from an OneofDescriptorProto message. Also converts values to other types if specified.
|
10382 | * @param message OneofDescriptorProto
|
10383 | * @param [options] Conversion options
|
10384 | * @returns Plain object
|
10385 | */
|
10386 | public static toObject(message: google.protobuf.OneofDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
10387 |
|
10388 | /**
|
10389 | * Converts this OneofDescriptorProto to JSON.
|
10390 | * @returns JSON object
|
10391 | */
|
10392 | public toJSON(): { [k: string]: any };
|
10393 | }
|
10394 |
|
10395 | /** Properties of an EnumDescriptorProto. */
|
10396 | interface IEnumDescriptorProto {
|
10397 |
|
10398 | /** EnumDescriptorProto name */
|
10399 | name?: (string|null);
|
10400 |
|
10401 | /** EnumDescriptorProto value */
|
10402 | value?: (google.protobuf.IEnumValueDescriptorProto[]|null);
|
10403 |
|
10404 | /** EnumDescriptorProto options */
|
10405 | options?: (google.protobuf.IEnumOptions|null);
|
10406 |
|
10407 | /** EnumDescriptorProto reservedRange */
|
10408 | reservedRange?: (google.protobuf.EnumDescriptorProto.IEnumReservedRange[]|null);
|
10409 |
|
10410 | /** EnumDescriptorProto reservedName */
|
10411 | reservedName?: (string[]|null);
|
10412 | }
|
10413 |
|
10414 | /** Represents an EnumDescriptorProto. */
|
10415 | class EnumDescriptorProto implements IEnumDescriptorProto {
|
10416 |
|
10417 | /**
|
10418 | * Constructs a new EnumDescriptorProto.
|
10419 | * @param [properties] Properties to set
|
10420 | */
|
10421 | constructor(properties?: google.protobuf.IEnumDescriptorProto);
|
10422 |
|
10423 | /** EnumDescriptorProto name. */
|
10424 | public name: string;
|
10425 |
|
10426 | /** EnumDescriptorProto value. */
|
10427 | public value: google.protobuf.IEnumValueDescriptorProto[];
|
10428 |
|
10429 | /** EnumDescriptorProto options. */
|
10430 | public options?: (google.protobuf.IEnumOptions|null);
|
10431 |
|
10432 | /** EnumDescriptorProto reservedRange. */
|
10433 | public reservedRange: google.protobuf.EnumDescriptorProto.IEnumReservedRange[];
|
10434 |
|
10435 | /** EnumDescriptorProto reservedName. */
|
10436 | public reservedName: string[];
|
10437 |
|
10438 | /**
|
10439 | * Creates a new EnumDescriptorProto instance using the specified properties.
|
10440 | * @param [properties] Properties to set
|
10441 | * @returns EnumDescriptorProto instance
|
10442 | */
|
10443 | public static create(properties?: google.protobuf.IEnumDescriptorProto): google.protobuf.EnumDescriptorProto;
|
10444 |
|
10445 | /**
|
10446 | * Encodes the specified EnumDescriptorProto message. Does not implicitly { google.protobuf.EnumDescriptorProto.verify|verify} messages.
|
10447 | * message EnumDescriptorProto message or plain object to encode
|
10448 | * [writer] Writer to encode to
|
10449 | * Writer
|
10450 | */
|
10451 | public static encode(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
|
10452 |
|
10453 | /**
|
10454 | * Encodes the specified EnumDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages.
|
10455 | * @param message EnumDescriptorProto message or plain object to encode
|
10456 | * @param [writer] Writer to encode to
|
10457 | * @returns Writer
|
10458 | */
|
10459 | public static encodeDelimited(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
|
10460 |
|
10461 | /**
|
10462 | * Decodes an EnumDescriptorProto message from the specified reader or buffer.
|
10463 | * @param reader Reader or buffer to decode from
|
10464 | * @param [length] Message length if known beforehand
|
10465 | * @returns EnumDescriptorProto
|
10466 | * @throws {Error} If the payload is not a reader or valid buffer
|
10467 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
10468 | */
|
10469 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumDescriptorProto;
|
10470 |
|
10471 | /**
|
10472 | * Decodes an EnumDescriptorProto message from the specified reader or buffer, length delimited.
|
10473 | * @param reader Reader or buffer to decode from
|
10474 | * @returns EnumDescriptorProto
|
10475 | * @throws {Error} If the payload is not a reader or valid buffer
|
10476 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
10477 | */
|
10478 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumDescriptorProto;
|
10479 |
|
10480 | /**
|
10481 | * Verifies an EnumDescriptorProto message.
|
10482 | * @param message Plain object to verify
|
10483 | * @returns `null` if valid, otherwise the reason why it is not
|
10484 | */
|
10485 | public static verify(message: { [k: string]: any }): (string|null);
|
10486 |
|
10487 | /**
|
10488 | * Creates an EnumDescriptorProto message from a plain object. Also converts values to their respective internal types.
|
10489 | * @param object Plain object
|
10490 | * @returns EnumDescriptorProto
|
10491 | */
|
10492 | public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto;
|
10493 |
|
10494 | /**
|
10495 | * Creates a plain object from an EnumDescriptorProto message. Also converts values to other types if specified.
|
10496 | * @param message EnumDescriptorProto
|
10497 | * @param [options] Conversion options
|
10498 | * @returns Plain object
|
10499 | */
|
10500 | public static toObject(message: google.protobuf.EnumDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
10501 |
|
10502 | /**
|
10503 | * Converts this EnumDescriptorProto to JSON.
|
10504 | * @returns JSON object
|
10505 | */
|
10506 | public toJSON(): { [k: string]: any };
|
10507 | }
|
10508 |
|
10509 | namespace EnumDescriptorProto {
|
10510 |
|
10511 | /** Properties of an EnumReservedRange. */
|
10512 | interface IEnumReservedRange {
|
10513 |
|
10514 | /** EnumReservedRange start */
|
10515 | start?: (number|null);
|
10516 |
|
10517 | /** EnumReservedRange end */
|
10518 | end?: (number|null);
|
10519 | }
|
10520 |
|
10521 | /** Represents an EnumReservedRange. */
|
10522 | class EnumReservedRange implements IEnumReservedRange {
|
10523 |
|
10524 | /**
|
10525 | * Constructs a new EnumReservedRange.
|
10526 | * @param [properties] Properties to set
|
10527 | */
|
10528 | constructor(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange);
|
10529 |
|
10530 | /** EnumReservedRange start. */
|
10531 | public start: number;
|
10532 |
|
10533 | /** EnumReservedRange end. */
|
10534 | public end: number;
|
10535 |
|
10536 | /**
|
10537 | * Creates a new EnumReservedRange instance using the specified properties.
|
10538 | * @param [properties] Properties to set
|
10539 | * @returns EnumReservedRange instance
|
10540 | */
|
10541 | public static create(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange): google.protobuf.EnumDescriptorProto.EnumReservedRange;
|
10542 |
|
10543 | /**
|
10544 | * Encodes the specified EnumReservedRange message. Does not implicitly { google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages.
|
10545 | * message EnumReservedRange message or plain object to encode
|
10546 | * [writer] Writer to encode to
|
10547 | * Writer
|
10548 | */
|
10549 | public static encode(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
|
10550 |
|
10551 | /**
|
10552 | * Encodes the specified EnumReservedRange message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages.
|
10553 | * @param message EnumReservedRange message or plain object to encode
|
10554 | * @param [writer] Writer to encode to
|
10555 | * @returns Writer
|
10556 | */
|
10557 | public static encodeDelimited(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
|
10558 |
|
10559 | /**
|
10560 | * Decodes an EnumReservedRange message from the specified reader or buffer.
|
10561 | * @param reader Reader or buffer to decode from
|
10562 | * @param [length] Message length if known beforehand
|
10563 | * @returns EnumReservedRange
|
10564 | * @throws {Error} If the payload is not a reader or valid buffer
|
10565 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
10566 | */
|
10567 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumDescriptorProto.EnumReservedRange;
|
10568 |
|
10569 | /**
|
10570 | * Decodes an EnumReservedRange message from the specified reader or buffer, length delimited.
|
10571 | * @param reader Reader or buffer to decode from
|
10572 | * @returns EnumReservedRange
|
10573 | * @throws {Error} If the payload is not a reader or valid buffer
|
10574 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
10575 | */
|
10576 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumDescriptorProto.EnumReservedRange;
|
10577 |
|
10578 | /**
|
10579 | * Verifies an EnumReservedRange message.
|
10580 | * @param message Plain object to verify
|
10581 | * @returns `null` if valid, otherwise the reason why it is not
|
10582 | */
|
10583 | public static verify(message: { [k: string]: any }): (string|null);
|
10584 |
|
10585 | /**
|
10586 | * Creates an EnumReservedRange message from a plain object. Also converts values to their respective internal types.
|
10587 | * @param object Plain object
|
10588 | * @returns EnumReservedRange
|
10589 | */
|
10590 | public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto.EnumReservedRange;
|
10591 |
|
10592 | /**
|
10593 | * Creates a plain object from an EnumReservedRange message. Also converts values to other types if specified.
|
10594 | * @param message EnumReservedRange
|
10595 | * @param [options] Conversion options
|
10596 | * @returns Plain object
|
10597 | */
|
10598 | public static toObject(message: google.protobuf.EnumDescriptorProto.EnumReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
10599 |
|
10600 | /**
|
10601 | * Converts this EnumReservedRange to JSON.
|
10602 | * @returns JSON object
|
10603 | */
|
10604 | public toJSON(): { [k: string]: any };
|
10605 | }
|
10606 | }
|
10607 |
|
10608 | /** Properties of an EnumValueDescriptorProto. */
|
10609 | interface IEnumValueDescriptorProto {
|
10610 |
|
10611 | /** EnumValueDescriptorProto name */
|
10612 | name?: (string|null);
|
10613 |
|
10614 | /** EnumValueDescriptorProto number */
|
10615 | number?: (number|null);
|
10616 |
|
10617 | /** EnumValueDescriptorProto options */
|
10618 | options?: (google.protobuf.IEnumValueOptions|null);
|
10619 | }
|
10620 |
|
10621 | /** Represents an EnumValueDescriptorProto. */
|
10622 | class EnumValueDescriptorProto implements IEnumValueDescriptorProto {
|
10623 |
|
10624 | /**
|
10625 | * Constructs a new EnumValueDescriptorProto.
|
10626 | * @param [properties] Properties to set
|
10627 | */
|
10628 | constructor(properties?: google.protobuf.IEnumValueDescriptorProto);
|
10629 |
|
10630 | /** EnumValueDescriptorProto name. */
|
10631 | public name: string;
|
10632 |
|
10633 | /** EnumValueDescriptorProto number. */
|
10634 | public number: number;
|
10635 |
|
10636 | /** EnumValueDescriptorProto options. */
|
10637 | public options?: (google.protobuf.IEnumValueOptions|null);
|
10638 |
|
10639 | /**
|
10640 | * Creates a new EnumValueDescriptorProto instance using the specified properties.
|
10641 | * @param [properties] Properties to set
|
10642 | * @returns EnumValueDescriptorProto instance
|
10643 | */
|
10644 | public static create(properties?: google.protobuf.IEnumValueDescriptorProto): google.protobuf.EnumValueDescriptorProto;
|
10645 |
|
10646 | /**
|
10647 | * Encodes the specified EnumValueDescriptorProto message. Does not implicitly { google.protobuf.EnumValueDescriptorProto.verify|verify} messages.
|
10648 | * message EnumValueDescriptorProto message or plain object to encode
|
10649 | * [writer] Writer to encode to
|
10650 | * Writer
|
10651 | */
|
10652 | public static encode(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
|
10653 |
|
10654 | /**
|
10655 | * Encodes the specified EnumValueDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages.
|
10656 | * @param message EnumValueDescriptorProto message or plain object to encode
|
10657 | * @param [writer] Writer to encode to
|
10658 | * @returns Writer
|
10659 | */
|
10660 | public static encodeDelimited(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
|
10661 |
|
10662 | /**
|
10663 | * Decodes an EnumValueDescriptorProto message from the specified reader or buffer.
|
10664 | * @param reader Reader or buffer to decode from
|
10665 | * @param [length] Message length if known beforehand
|
10666 | * @returns EnumValueDescriptorProto
|
10667 | * @throws {Error} If the payload is not a reader or valid buffer
|
10668 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
10669 | */
|
10670 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueDescriptorProto;
|
10671 |
|
10672 | /**
|
10673 | * Decodes an EnumValueDescriptorProto message from the specified reader or buffer, length delimited.
|
10674 | * @param reader Reader or buffer to decode from
|
10675 | * @returns EnumValueDescriptorProto
|
10676 | * @throws {Error} If the payload is not a reader or valid buffer
|
10677 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
10678 | */
|
10679 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumValueDescriptorProto;
|
10680 |
|
10681 | /**
|
10682 | * Verifies an EnumValueDescriptorProto message.
|
10683 | * @param message Plain object to verify
|
10684 | * @returns `null` if valid, otherwise the reason why it is not
|
10685 | */
|
10686 | public static verify(message: { [k: string]: any }): (string|null);
|
10687 |
|
10688 | /**
|
10689 | * Creates an EnumValueDescriptorProto message from a plain object. Also converts values to their respective internal types.
|
10690 | * @param object Plain object
|
10691 | * @returns EnumValueDescriptorProto
|
10692 | */
|
10693 | public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueDescriptorProto;
|
10694 |
|
10695 | /**
|
10696 | * Creates a plain object from an EnumValueDescriptorProto message. Also converts values to other types if specified.
|
10697 | * @param message EnumValueDescriptorProto
|
10698 | * @param [options] Conversion options
|
10699 | * @returns Plain object
|
10700 | */
|
10701 | public static toObject(message: google.protobuf.EnumValueDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
10702 |
|
10703 | /**
|
10704 | * Converts this EnumValueDescriptorProto to JSON.
|
10705 | * @returns JSON object
|
10706 | */
|
10707 | public toJSON(): { [k: string]: any };
|
10708 | }
|
10709 |
|
10710 | /** Properties of a ServiceDescriptorProto. */
|
10711 | interface IServiceDescriptorProto {
|
10712 |
|
10713 | /** ServiceDescriptorProto name */
|
10714 | name?: (string|null);
|
10715 |
|
10716 | /** ServiceDescriptorProto method */
|
10717 | method?: (google.protobuf.IMethodDescriptorProto[]|null);
|
10718 |
|
10719 | /** ServiceDescriptorProto options */
|
10720 | options?: (google.protobuf.IServiceOptions|null);
|
10721 | }
|
10722 |
|
10723 | /** Represents a ServiceDescriptorProto. */
|
10724 | class ServiceDescriptorProto implements IServiceDescriptorProto {
|
10725 |
|
10726 | /**
|
10727 | * Constructs a new ServiceDescriptorProto.
|
10728 | * @param [properties] Properties to set
|
10729 | */
|
10730 | constructor(properties?: google.protobuf.IServiceDescriptorProto);
|
10731 |
|
10732 | /** ServiceDescriptorProto name. */
|
10733 | public name: string;
|
10734 |
|
10735 | /** ServiceDescriptorProto method. */
|
10736 | public method: google.protobuf.IMethodDescriptorProto[];
|
10737 |
|
10738 | /** ServiceDescriptorProto options. */
|
10739 | public options?: (google.protobuf.IServiceOptions|null);
|
10740 |
|
10741 | /**
|
10742 | * Creates a new ServiceDescriptorProto instance using the specified properties.
|
10743 | * @param [properties] Properties to set
|
10744 | * @returns ServiceDescriptorProto instance
|
10745 | */
|
10746 | public static create(properties?: google.protobuf.IServiceDescriptorProto): google.protobuf.ServiceDescriptorProto;
|
10747 |
|
10748 | /**
|
10749 | * Encodes the specified ServiceDescriptorProto message. Does not implicitly { google.protobuf.ServiceDescriptorProto.verify|verify} messages.
|
10750 | * message ServiceDescriptorProto message or plain object to encode
|
10751 | * [writer] Writer to encode to
|
10752 | * Writer
|
10753 | */
|
10754 | public static encode(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
|
10755 |
|
10756 | /**
|
10757 | * Encodes the specified ServiceDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages.
|
10758 | * @param message ServiceDescriptorProto message or plain object to encode
|
10759 | * @param [writer] Writer to encode to
|
10760 | * @returns Writer
|
10761 | */
|
10762 | public static encodeDelimited(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
|
10763 |
|
10764 | /**
|
10765 | * Decodes a ServiceDescriptorProto message from the specified reader or buffer.
|
10766 | * @param reader Reader or buffer to decode from
|
10767 | * @param [length] Message length if known beforehand
|
10768 | * @returns ServiceDescriptorProto
|
10769 | * @throws {Error} If the payload is not a reader or valid buffer
|
10770 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
10771 | */
|
10772 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceDescriptorProto;
|
10773 |
|
10774 | /**
|
10775 | * Decodes a ServiceDescriptorProto message from the specified reader or buffer, length delimited.
|
10776 | * @param reader Reader or buffer to decode from
|
10777 | * @returns ServiceDescriptorProto
|
10778 | * @throws {Error} If the payload is not a reader or valid buffer
|
10779 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
10780 | */
|
10781 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ServiceDescriptorProto;
|
10782 |
|
10783 | /**
|
10784 | * Verifies a ServiceDescriptorProto message.
|
10785 | * @param message Plain object to verify
|
10786 | * @returns `null` if valid, otherwise the reason why it is not
|
10787 | */
|
10788 | public static verify(message: { [k: string]: any }): (string|null);
|
10789 |
|
10790 | /**
|
10791 | * Creates a ServiceDescriptorProto message from a plain object. Also converts values to their respective internal types.
|
10792 | * @param object Plain object
|
10793 | * @returns ServiceDescriptorProto
|
10794 | */
|
10795 | public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceDescriptorProto;
|
10796 |
|
10797 | /**
|
10798 | * Creates a plain object from a ServiceDescriptorProto message. Also converts values to other types if specified.
|
10799 | * @param message ServiceDescriptorProto
|
10800 | * @param [options] Conversion options
|
10801 | * @returns Plain object
|
10802 | */
|
10803 | public static toObject(message: google.protobuf.ServiceDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
10804 |
|
10805 | /**
|
10806 | * Converts this ServiceDescriptorProto to JSON.
|
10807 | * @returns JSON object
|
10808 | */
|
10809 | public toJSON(): { [k: string]: any };
|
10810 | }
|
10811 |
|
10812 | /** Properties of a MethodDescriptorProto. */
|
10813 | interface IMethodDescriptorProto {
|
10814 |
|
10815 | /** MethodDescriptorProto name */
|
10816 | name?: (string|null);
|
10817 |
|
10818 | /** MethodDescriptorProto inputType */
|
10819 | inputType?: (string|null);
|
10820 |
|
10821 | /** MethodDescriptorProto outputType */
|
10822 | outputType?: (string|null);
|
10823 |
|
10824 | /** MethodDescriptorProto options */
|
10825 | options?: (google.protobuf.IMethodOptions|null);
|
10826 |
|
10827 | /** MethodDescriptorProto clientStreaming */
|
10828 | clientStreaming?: (boolean|null);
|
10829 |
|
10830 | /** MethodDescriptorProto serverStreaming */
|
10831 | serverStreaming?: (boolean|null);
|
10832 | }
|
10833 |
|
10834 | /** Represents a MethodDescriptorProto. */
|
10835 | class MethodDescriptorProto implements IMethodDescriptorProto {
|
10836 |
|
10837 | /**
|
10838 | * Constructs a new MethodDescriptorProto.
|
10839 | * @param [properties] Properties to set
|
10840 | */
|
10841 | constructor(properties?: google.protobuf.IMethodDescriptorProto);
|
10842 |
|
10843 | /** MethodDescriptorProto name. */
|
10844 | public name: string;
|
10845 |
|
10846 | /** MethodDescriptorProto inputType. */
|
10847 | public inputType: string;
|
10848 |
|
10849 | /** MethodDescriptorProto outputType. */
|
10850 | public outputType: string;
|
10851 |
|
10852 | /** MethodDescriptorProto options. */
|
10853 | public options?: (google.protobuf.IMethodOptions|null);
|
10854 |
|
10855 | /** MethodDescriptorProto clientStreaming. */
|
10856 | public clientStreaming: boolean;
|
10857 |
|
10858 | /** MethodDescriptorProto serverStreaming. */
|
10859 | public serverStreaming: boolean;
|
10860 |
|
10861 | /**
|
10862 | * Creates a new MethodDescriptorProto instance using the specified properties.
|
10863 | * @param [properties] Properties to set
|
10864 | * @returns MethodDescriptorProto instance
|
10865 | */
|
10866 | public static create(properties?: google.protobuf.IMethodDescriptorProto): google.protobuf.MethodDescriptorProto;
|
10867 |
|
10868 | /**
|
10869 | * Encodes the specified MethodDescriptorProto message. Does not implicitly { google.protobuf.MethodDescriptorProto.verify|verify} messages.
|
10870 | * message MethodDescriptorProto message or plain object to encode
|
10871 | * [writer] Writer to encode to
|
10872 | * Writer
|
10873 | */
|
10874 | public static encode(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
|
10875 |
|
10876 | /**
|
10877 | * Encodes the specified MethodDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages.
|
10878 | * @param message MethodDescriptorProto message or plain object to encode
|
10879 | * @param [writer] Writer to encode to
|
10880 | * @returns Writer
|
10881 | */
|
10882 | public static encodeDelimited(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
|
10883 |
|
10884 | /**
|
10885 | * Decodes a MethodDescriptorProto message from the specified reader or buffer.
|
10886 | * @param reader Reader or buffer to decode from
|
10887 | * @param [length] Message length if known beforehand
|
10888 | * @returns MethodDescriptorProto
|
10889 | * @throws {Error} If the payload is not a reader or valid buffer
|
10890 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
10891 | */
|
10892 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodDescriptorProto;
|
10893 |
|
10894 | /**
|
10895 | * Decodes a MethodDescriptorProto message from the specified reader or buffer, length delimited.
|
10896 | * @param reader Reader or buffer to decode from
|
10897 | * @returns MethodDescriptorProto
|
10898 | * @throws {Error} If the payload is not a reader or valid buffer
|
10899 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
10900 | */
|
10901 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MethodDescriptorProto;
|
10902 |
|
10903 | /**
|
10904 | * Verifies a MethodDescriptorProto message.
|
10905 | * @param message Plain object to verify
|
10906 | * @returns `null` if valid, otherwise the reason why it is not
|
10907 | */
|
10908 | public static verify(message: { [k: string]: any }): (string|null);
|
10909 |
|
10910 | /**
|
10911 | * Creates a MethodDescriptorProto message from a plain object. Also converts values to their respective internal types.
|
10912 | * @param object Plain object
|
10913 | * @returns MethodDescriptorProto
|
10914 | */
|
10915 | public static fromObject(object: { [k: string]: any }): google.protobuf.MethodDescriptorProto;
|
10916 |
|
10917 | /**
|
10918 | * Creates a plain object from a MethodDescriptorProto message. Also converts values to other types if specified.
|
10919 | * @param message MethodDescriptorProto
|
10920 | * @param [options] Conversion options
|
10921 | * @returns Plain object
|
10922 | */
|
10923 | public static toObject(message: google.protobuf.MethodDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
10924 |
|
10925 | /**
|
10926 | * Converts this MethodDescriptorProto to JSON.
|
10927 | * @returns JSON object
|
10928 | */
|
10929 | public toJSON(): { [k: string]: any };
|
10930 | }
|
10931 |
|
10932 | /** Properties of a FileOptions. */
|
10933 | interface IFileOptions {
|
10934 |
|
10935 | /** FileOptions javaPackage */
|
10936 | javaPackage?: (string|null);
|
10937 |
|
10938 | /** FileOptions javaOuterClassname */
|
10939 | javaOuterClassname?: (string|null);
|
10940 |
|
10941 | /** FileOptions javaMultipleFiles */
|
10942 | javaMultipleFiles?: (boolean|null);
|
10943 |
|
10944 | /** FileOptions javaGenerateEqualsAndHash */
|
10945 | javaGenerateEqualsAndHash?: (boolean|null);
|
10946 |
|
10947 | /** FileOptions javaStringCheckUtf8 */
|
10948 | javaStringCheckUtf8?: (boolean|null);
|
10949 |
|
10950 | /** FileOptions optimizeFor */
|
10951 | optimizeFor?: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode|null);
|
10952 |
|
10953 | /** FileOptions goPackage */
|
10954 | goPackage?: (string|null);
|
10955 |
|
10956 | /** FileOptions ccGenericServices */
|
10957 | ccGenericServices?: (boolean|null);
|
10958 |
|
10959 | /** FileOptions javaGenericServices */
|
10960 | javaGenericServices?: (boolean|null);
|
10961 |
|
10962 | /** FileOptions pyGenericServices */
|
10963 | pyGenericServices?: (boolean|null);
|
10964 |
|
10965 | /** FileOptions phpGenericServices */
|
10966 | phpGenericServices?: (boolean|null);
|
10967 |
|
10968 | /** FileOptions deprecated */
|
10969 | deprecated?: (boolean|null);
|
10970 |
|
10971 | /** FileOptions ccEnableArenas */
|
10972 | ccEnableArenas?: (boolean|null);
|
10973 |
|
10974 | /** FileOptions objcClassPrefix */
|
10975 | objcClassPrefix?: (string|null);
|
10976 |
|
10977 | /** FileOptions csharpNamespace */
|
10978 | csharpNamespace?: (string|null);
|
10979 |
|
10980 | /** FileOptions swiftPrefix */
|
10981 | swiftPrefix?: (string|null);
|
10982 |
|
10983 | /** FileOptions phpClassPrefix */
|
10984 | phpClassPrefix?: (string|null);
|
10985 |
|
10986 | /** FileOptions phpNamespace */
|
10987 | phpNamespace?: (string|null);
|
10988 |
|
10989 | /** FileOptions phpMetadataNamespace */
|
10990 | phpMetadataNamespace?: (string|null);
|
10991 |
|
10992 | /** FileOptions rubyPackage */
|
10993 | rubyPackage?: (string|null);
|
10994 |
|
10995 | /** FileOptions uninterpretedOption */
|
10996 | uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
|
10997 |
|
10998 | /** FileOptions .google.api.resourceDefinition */
|
10999 | ".google.api.resourceDefinition"?: (google.api.IResourceDescriptor[]|null);
|
11000 | }
|
11001 |
|
11002 | /** Represents a FileOptions. */
|
11003 | class FileOptions implements IFileOptions {
|
11004 |
|
11005 | /**
|
11006 | * Constructs a new FileOptions.
|
11007 | * @param [properties] Properties to set
|
11008 | */
|
11009 | constructor(properties?: google.protobuf.IFileOptions);
|
11010 |
|
11011 | /** FileOptions javaPackage. */
|
11012 | public javaPackage: string;
|
11013 |
|
11014 | /** FileOptions javaOuterClassname. */
|
11015 | public javaOuterClassname: string;
|
11016 |
|
11017 | /** FileOptions javaMultipleFiles. */
|
11018 | public javaMultipleFiles: boolean;
|
11019 |
|
11020 | /** FileOptions javaGenerateEqualsAndHash. */
|
11021 | public javaGenerateEqualsAndHash: boolean;
|
11022 |
|
11023 | /** FileOptions javaStringCheckUtf8. */
|
11024 | public javaStringCheckUtf8: boolean;
|
11025 |
|
11026 | /** FileOptions optimizeFor. */
|
11027 | public optimizeFor: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode);
|
11028 |
|
11029 | /** FileOptions goPackage. */
|
11030 | public goPackage: string;
|
11031 |
|
11032 | /** FileOptions ccGenericServices. */
|
11033 | public ccGenericServices: boolean;
|
11034 |
|
11035 | /** FileOptions javaGenericServices. */
|
11036 | public javaGenericServices: boolean;
|
11037 |
|
11038 | /** FileOptions pyGenericServices. */
|
11039 | public pyGenericServices: boolean;
|
11040 |
|
11041 | /** FileOptions phpGenericServices. */
|
11042 | public phpGenericServices: boolean;
|
11043 |
|
11044 | /** FileOptions deprecated. */
|
11045 | public deprecated: boolean;
|
11046 |
|
11047 | /** FileOptions ccEnableArenas. */
|
11048 | public ccEnableArenas: boolean;
|
11049 |
|
11050 | /** FileOptions objcClassPrefix. */
|
11051 | public objcClassPrefix: string;
|
11052 |
|
11053 | /** FileOptions csharpNamespace. */
|
11054 | public csharpNamespace: string;
|
11055 |
|
11056 | /** FileOptions swiftPrefix. */
|
11057 | public swiftPrefix: string;
|
11058 |
|
11059 | /** FileOptions phpClassPrefix. */
|
11060 | public phpClassPrefix: string;
|
11061 |
|
11062 | /** FileOptions phpNamespace. */
|
11063 | public phpNamespace: string;
|
11064 |
|
11065 | /** FileOptions phpMetadataNamespace. */
|
11066 | public phpMetadataNamespace: string;
|
11067 |
|
11068 | /** FileOptions rubyPackage. */
|
11069 | public rubyPackage: string;
|
11070 |
|
11071 | /** FileOptions uninterpretedOption. */
|
11072 | public uninterpretedOption: google.protobuf.IUninterpretedOption[];
|
11073 |
|
11074 | /**
|
11075 | * Creates a new FileOptions instance using the specified properties.
|
11076 | * @param [properties] Properties to set
|
11077 | * @returns FileOptions instance
|
11078 | */
|
11079 | public static create(properties?: google.protobuf.IFileOptions): google.protobuf.FileOptions;
|
11080 |
|
11081 | /**
|
11082 | * Encodes the specified FileOptions message. Does not implicitly { google.protobuf.FileOptions.verify|verify} messages.
|
11083 | * message FileOptions message or plain object to encode
|
11084 | * [writer] Writer to encode to
|
11085 | * Writer
|
11086 | */
|
11087 | public static encode(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer;
|
11088 |
|
11089 | /**
|
11090 | * Encodes the specified FileOptions message, length delimited. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages.
|
11091 | * @param message FileOptions message or plain object to encode
|
11092 | * @param [writer] Writer to encode to
|
11093 | * @returns Writer
|
11094 | */
|
11095 | public static encodeDelimited(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer;
|
11096 |
|
11097 | /**
|
11098 | * Decodes a FileOptions message from the specified reader or buffer.
|
11099 | * @param reader Reader or buffer to decode from
|
11100 | * @param [length] Message length if known beforehand
|
11101 | * @returns FileOptions
|
11102 | * @throws {Error} If the payload is not a reader or valid buffer
|
11103 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
11104 | */
|
11105 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileOptions;
|
11106 |
|
11107 | /**
|
11108 | * Decodes a FileOptions message from the specified reader or buffer, length delimited.
|
11109 | * @param reader Reader or buffer to decode from
|
11110 | * @returns FileOptions
|
11111 | * @throws {Error} If the payload is not a reader or valid buffer
|
11112 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
11113 | */
|
11114 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileOptions;
|
11115 |
|
11116 | /**
|
11117 | * Verifies a FileOptions message.
|
11118 | * @param message Plain object to verify
|
11119 | * @returns `null` if valid, otherwise the reason why it is not
|
11120 | */
|
11121 | public static verify(message: { [k: string]: any }): (string|null);
|
11122 |
|
11123 | /**
|
11124 | * Creates a FileOptions message from a plain object. Also converts values to their respective internal types.
|
11125 | * @param object Plain object
|
11126 | * @returns FileOptions
|
11127 | */
|
11128 | public static fromObject(object: { [k: string]: any }): google.protobuf.FileOptions;
|
11129 |
|
11130 | /**
|
11131 | * Creates a plain object from a FileOptions message. Also converts values to other types if specified.
|
11132 | * @param message FileOptions
|
11133 | * @param [options] Conversion options
|
11134 | * @returns Plain object
|
11135 | */
|
11136 | public static toObject(message: google.protobuf.FileOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
11137 |
|
11138 | /**
|
11139 | * Converts this FileOptions to JSON.
|
11140 | * @returns JSON object
|
11141 | */
|
11142 | public toJSON(): { [k: string]: any };
|
11143 | }
|
11144 |
|
11145 | namespace FileOptions {
|
11146 |
|
11147 | /** OptimizeMode enum. */
|
11148 | enum OptimizeMode {
|
11149 | SPEED = 1,
|
11150 | CODE_SIZE = 2,
|
11151 | LITE_RUNTIME = 3
|
11152 | }
|
11153 | }
|
11154 |
|
11155 | /** Properties of a MessageOptions. */
|
11156 | interface IMessageOptions {
|
11157 |
|
11158 | /** MessageOptions messageSetWireFormat */
|
11159 | messageSetWireFormat?: (boolean|null);
|
11160 |
|
11161 | /** MessageOptions noStandardDescriptorAccessor */
|
11162 | noStandardDescriptorAccessor?: (boolean|null);
|
11163 |
|
11164 | /** MessageOptions deprecated */
|
11165 | deprecated?: (boolean|null);
|
11166 |
|
11167 | /** MessageOptions mapEntry */
|
11168 | mapEntry?: (boolean|null);
|
11169 |
|
11170 | /** MessageOptions uninterpretedOption */
|
11171 | uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
|
11172 |
|
11173 | /** MessageOptions .google.api.resource */
|
11174 | ".google.api.resource"?: (google.api.IResourceDescriptor|null);
|
11175 | }
|
11176 |
|
11177 | /** Represents a MessageOptions. */
|
11178 | class MessageOptions implements IMessageOptions {
|
11179 |
|
11180 | /**
|
11181 | * Constructs a new MessageOptions.
|
11182 | * @param [properties] Properties to set
|
11183 | */
|
11184 | constructor(properties?: google.protobuf.IMessageOptions);
|
11185 |
|
11186 | /** MessageOptions messageSetWireFormat. */
|
11187 | public messageSetWireFormat: boolean;
|
11188 |
|
11189 | /** MessageOptions noStandardDescriptorAccessor. */
|
11190 | public noStandardDescriptorAccessor: boolean;
|
11191 |
|
11192 | /** MessageOptions deprecated. */
|
11193 | public deprecated: boolean;
|
11194 |
|
11195 | /** MessageOptions mapEntry. */
|
11196 | public mapEntry: boolean;
|
11197 |
|
11198 | /** MessageOptions uninterpretedOption. */
|
11199 | public uninterpretedOption: google.protobuf.IUninterpretedOption[];
|
11200 |
|
11201 | /**
|
11202 | * Creates a new MessageOptions instance using the specified properties.
|
11203 | * @param [properties] Properties to set
|
11204 | * @returns MessageOptions instance
|
11205 | */
|
11206 | public static create(properties?: google.protobuf.IMessageOptions): google.protobuf.MessageOptions;
|
11207 |
|
11208 | /**
|
11209 | * Encodes the specified MessageOptions message. Does not implicitly { google.protobuf.MessageOptions.verify|verify} messages.
|
11210 | * message MessageOptions message or plain object to encode
|
11211 | * [writer] Writer to encode to
|
11212 | * Writer
|
11213 | */
|
11214 | public static encode(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer;
|
11215 |
|
11216 | /**
|
11217 | * Encodes the specified MessageOptions message, length delimited. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages.
|
11218 | * @param message MessageOptions message or plain object to encode
|
11219 | * @param [writer] Writer to encode to
|
11220 | * @returns Writer
|
11221 | */
|
11222 | public static encodeDelimited(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer;
|
11223 |
|
11224 | /**
|
11225 | * Decodes a MessageOptions message from the specified reader or buffer.
|
11226 | * @param reader Reader or buffer to decode from
|
11227 | * @param [length] Message length if known beforehand
|
11228 | * @returns MessageOptions
|
11229 | * @throws {Error} If the payload is not a reader or valid buffer
|
11230 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
11231 | */
|
11232 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MessageOptions;
|
11233 |
|
11234 | /**
|
11235 | * Decodes a MessageOptions message from the specified reader or buffer, length delimited.
|
11236 | * @param reader Reader or buffer to decode from
|
11237 | * @returns MessageOptions
|
11238 | * @throws {Error} If the payload is not a reader or valid buffer
|
11239 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
11240 | */
|
11241 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MessageOptions;
|
11242 |
|
11243 | /**
|
11244 | * Verifies a MessageOptions message.
|
11245 | * @param message Plain object to verify
|
11246 | * @returns `null` if valid, otherwise the reason why it is not
|
11247 | */
|
11248 | public static verify(message: { [k: string]: any }): (string|null);
|
11249 |
|
11250 | /**
|
11251 | * Creates a MessageOptions message from a plain object. Also converts values to their respective internal types.
|
11252 | * @param object Plain object
|
11253 | * @returns MessageOptions
|
11254 | */
|
11255 | public static fromObject(object: { [k: string]: any }): google.protobuf.MessageOptions;
|
11256 |
|
11257 | /**
|
11258 | * Creates a plain object from a MessageOptions message. Also converts values to other types if specified.
|
11259 | * @param message MessageOptions
|
11260 | * @param [options] Conversion options
|
11261 | * @returns Plain object
|
11262 | */
|
11263 | public static toObject(message: google.protobuf.MessageOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
11264 |
|
11265 | /**
|
11266 | * Converts this MessageOptions to JSON.
|
11267 | * @returns JSON object
|
11268 | */
|
11269 | public toJSON(): { [k: string]: any };
|
11270 | }
|
11271 |
|
11272 | /** Properties of a FieldOptions. */
|
11273 | interface IFieldOptions {
|
11274 |
|
11275 | /** FieldOptions ctype */
|
11276 | ctype?: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType|null);
|
11277 |
|
11278 | /** FieldOptions packed */
|
11279 | packed?: (boolean|null);
|
11280 |
|
11281 | /** FieldOptions jstype */
|
11282 | jstype?: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType|null);
|
11283 |
|
11284 | /** FieldOptions lazy */
|
11285 | lazy?: (boolean|null);
|
11286 |
|
11287 | /** FieldOptions deprecated */
|
11288 | deprecated?: (boolean|null);
|
11289 |
|
11290 | /** FieldOptions weak */
|
11291 | weak?: (boolean|null);
|
11292 |
|
11293 | /** FieldOptions uninterpretedOption */
|
11294 | uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
|
11295 |
|
11296 | /** FieldOptions .google.api.fieldBehavior */
|
11297 | ".google.api.fieldBehavior"?: (google.api.FieldBehavior[]|null);
|
11298 |
|
11299 | /** FieldOptions .google.api.resourceReference */
|
11300 | ".google.api.resourceReference"?: (google.api.IResourceReference|null);
|
11301 | }
|
11302 |
|
11303 | /** Represents a FieldOptions. */
|
11304 | class FieldOptions implements IFieldOptions {
|
11305 |
|
11306 | /**
|
11307 | * Constructs a new FieldOptions.
|
11308 | * @param [properties] Properties to set
|
11309 | */
|
11310 | constructor(properties?: google.protobuf.IFieldOptions);
|
11311 |
|
11312 | /** FieldOptions ctype. */
|
11313 | public ctype: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType);
|
11314 |
|
11315 | /** FieldOptions packed. */
|
11316 | public packed: boolean;
|
11317 |
|
11318 | /** FieldOptions jstype. */
|
11319 | public jstype: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType);
|
11320 |
|
11321 | /** FieldOptions lazy. */
|
11322 | public lazy: boolean;
|
11323 |
|
11324 | /** FieldOptions deprecated. */
|
11325 | public deprecated: boolean;
|
11326 |
|
11327 | /** FieldOptions weak. */
|
11328 | public weak: boolean;
|
11329 |
|
11330 | /** FieldOptions uninterpretedOption. */
|
11331 | public uninterpretedOption: google.protobuf.IUninterpretedOption[];
|
11332 |
|
11333 | /**
|
11334 | * Creates a new FieldOptions instance using the specified properties.
|
11335 | * @param [properties] Properties to set
|
11336 | * @returns FieldOptions instance
|
11337 | */
|
11338 | public static create(properties?: google.protobuf.IFieldOptions): google.protobuf.FieldOptions;
|
11339 |
|
11340 | /**
|
11341 | * Encodes the specified FieldOptions message. Does not implicitly { google.protobuf.FieldOptions.verify|verify} messages.
|
11342 | * message FieldOptions message or plain object to encode
|
11343 | * [writer] Writer to encode to
|
11344 | * Writer
|
11345 | */
|
11346 | public static encode(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer;
|
11347 |
|
11348 | /**
|
11349 | * Encodes the specified FieldOptions message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages.
|
11350 | * @param message FieldOptions message or plain object to encode
|
11351 | * @param [writer] Writer to encode to
|
11352 | * @returns Writer
|
11353 | */
|
11354 | public static encodeDelimited(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer;
|
11355 |
|
11356 | /**
|
11357 | * Decodes a FieldOptions message from the specified reader or buffer.
|
11358 | * @param reader Reader or buffer to decode from
|
11359 | * @param [length] Message length if known beforehand
|
11360 | * @returns FieldOptions
|
11361 | * @throws {Error} If the payload is not a reader or valid buffer
|
11362 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
11363 | */
|
11364 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldOptions;
|
11365 |
|
11366 | /**
|
11367 | * Decodes a FieldOptions message from the specified reader or buffer, length delimited.
|
11368 | * @param reader Reader or buffer to decode from
|
11369 | * @returns FieldOptions
|
11370 | * @throws {Error} If the payload is not a reader or valid buffer
|
11371 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
11372 | */
|
11373 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldOptions;
|
11374 |
|
11375 | /**
|
11376 | * Verifies a FieldOptions message.
|
11377 | * @param message Plain object to verify
|
11378 | * @returns `null` if valid, otherwise the reason why it is not
|
11379 | */
|
11380 | public static verify(message: { [k: string]: any }): (string|null);
|
11381 |
|
11382 | /**
|
11383 | * Creates a FieldOptions message from a plain object. Also converts values to their respective internal types.
|
11384 | * @param object Plain object
|
11385 | * @returns FieldOptions
|
11386 | */
|
11387 | public static fromObject(object: { [k: string]: any }): google.protobuf.FieldOptions;
|
11388 |
|
11389 | /**
|
11390 | * Creates a plain object from a FieldOptions message. Also converts values to other types if specified.
|
11391 | * @param message FieldOptions
|
11392 | * @param [options] Conversion options
|
11393 | * @returns Plain object
|
11394 | */
|
11395 | public static toObject(message: google.protobuf.FieldOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
11396 |
|
11397 | /**
|
11398 | * Converts this FieldOptions to JSON.
|
11399 | * @returns JSON object
|
11400 | */
|
11401 | public toJSON(): { [k: string]: any };
|
11402 | }
|
11403 |
|
11404 | namespace FieldOptions {
|
11405 |
|
11406 | /** CType enum. */
|
11407 | enum CType {
|
11408 | STRING = 0,
|
11409 | CORD = 1,
|
11410 | STRING_PIECE = 2
|
11411 | }
|
11412 |
|
11413 | /** JSType enum. */
|
11414 | enum JSType {
|
11415 | JS_NORMAL = 0,
|
11416 | JS_STRING = 1,
|
11417 | JS_NUMBER = 2
|
11418 | }
|
11419 | }
|
11420 |
|
11421 | /** Properties of an OneofOptions. */
|
11422 | interface IOneofOptions {
|
11423 |
|
11424 | /** OneofOptions uninterpretedOption */
|
11425 | uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
|
11426 | }
|
11427 |
|
11428 | /** Represents an OneofOptions. */
|
11429 | class OneofOptions implements IOneofOptions {
|
11430 |
|
11431 | /**
|
11432 | * Constructs a new OneofOptions.
|
11433 | * @param [properties] Properties to set
|
11434 | */
|
11435 | constructor(properties?: google.protobuf.IOneofOptions);
|
11436 |
|
11437 | /** OneofOptions uninterpretedOption. */
|
11438 | public uninterpretedOption: google.protobuf.IUninterpretedOption[];
|
11439 |
|
11440 | /**
|
11441 | * Creates a new OneofOptions instance using the specified properties.
|
11442 | * @param [properties] Properties to set
|
11443 | * @returns OneofOptions instance
|
11444 | */
|
11445 | public static create(properties?: google.protobuf.IOneofOptions): google.protobuf.OneofOptions;
|
11446 |
|
11447 | /**
|
11448 | * Encodes the specified OneofOptions message. Does not implicitly { google.protobuf.OneofOptions.verify|verify} messages.
|
11449 | * message OneofOptions message or plain object to encode
|
11450 | * [writer] Writer to encode to
|
11451 | * Writer
|
11452 | */
|
11453 | public static encode(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer;
|
11454 |
|
11455 | /**
|
11456 | * Encodes the specified OneofOptions message, length delimited. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages.
|
11457 | * @param message OneofOptions message or plain object to encode
|
11458 | * @param [writer] Writer to encode to
|
11459 | * @returns Writer
|
11460 | */
|
11461 | public static encodeDelimited(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer;
|
11462 |
|
11463 | /**
|
11464 | * Decodes an OneofOptions message from the specified reader or buffer.
|
11465 | * @param reader Reader or buffer to decode from
|
11466 | * @param [length] Message length if known beforehand
|
11467 | * @returns OneofOptions
|
11468 | * @throws {Error} If the payload is not a reader or valid buffer
|
11469 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
11470 | */
|
11471 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofOptions;
|
11472 |
|
11473 | /**
|
11474 | * Decodes an OneofOptions message from the specified reader or buffer, length delimited.
|
11475 | * @param reader Reader or buffer to decode from
|
11476 | * @returns OneofOptions
|
11477 | * @throws {Error} If the payload is not a reader or valid buffer
|
11478 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
11479 | */
|
11480 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.OneofOptions;
|
11481 |
|
11482 | /**
|
11483 | * Verifies an OneofOptions message.
|
11484 | * @param message Plain object to verify
|
11485 | * @returns `null` if valid, otherwise the reason why it is not
|
11486 | */
|
11487 | public static verify(message: { [k: string]: any }): (string|null);
|
11488 |
|
11489 | /**
|
11490 | * Creates an OneofOptions message from a plain object. Also converts values to their respective internal types.
|
11491 | * @param object Plain object
|
11492 | * @returns OneofOptions
|
11493 | */
|
11494 | public static fromObject(object: { [k: string]: any }): google.protobuf.OneofOptions;
|
11495 |
|
11496 | /**
|
11497 | * Creates a plain object from an OneofOptions message. Also converts values to other types if specified.
|
11498 | * @param message OneofOptions
|
11499 | * @param [options] Conversion options
|
11500 | * @returns Plain object
|
11501 | */
|
11502 | public static toObject(message: google.protobuf.OneofOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
11503 |
|
11504 | /**
|
11505 | * Converts this OneofOptions to JSON.
|
11506 | * @returns JSON object
|
11507 | */
|
11508 | public toJSON(): { [k: string]: any };
|
11509 | }
|
11510 |
|
11511 | /** Properties of an EnumOptions. */
|
11512 | interface IEnumOptions {
|
11513 |
|
11514 | /** EnumOptions allowAlias */
|
11515 | allowAlias?: (boolean|null);
|
11516 |
|
11517 | /** EnumOptions deprecated */
|
11518 | deprecated?: (boolean|null);
|
11519 |
|
11520 | /** EnumOptions uninterpretedOption */
|
11521 | uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
|
11522 | }
|
11523 |
|
11524 | /** Represents an EnumOptions. */
|
11525 | class EnumOptions implements IEnumOptions {
|
11526 |
|
11527 | /**
|
11528 | * Constructs a new EnumOptions.
|
11529 | * @param [properties] Properties to set
|
11530 | */
|
11531 | constructor(properties?: google.protobuf.IEnumOptions);
|
11532 |
|
11533 | /** EnumOptions allowAlias. */
|
11534 | public allowAlias: boolean;
|
11535 |
|
11536 | /** EnumOptions deprecated. */
|
11537 | public deprecated: boolean;
|
11538 |
|
11539 | /** EnumOptions uninterpretedOption. */
|
11540 | public uninterpretedOption: google.protobuf.IUninterpretedOption[];
|
11541 |
|
11542 | /**
|
11543 | * Creates a new EnumOptions instance using the specified properties.
|
11544 | * @param [properties] Properties to set
|
11545 | * @returns EnumOptions instance
|
11546 | */
|
11547 | public static create(properties?: google.protobuf.IEnumOptions): google.protobuf.EnumOptions;
|
11548 |
|
11549 | /**
|
11550 | * Encodes the specified EnumOptions message. Does not implicitly { google.protobuf.EnumOptions.verify|verify} messages.
|
11551 | * message EnumOptions message or plain object to encode
|
11552 | * [writer] Writer to encode to
|
11553 | * Writer
|
11554 | */
|
11555 | public static encode(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer;
|
11556 |
|
11557 | /**
|
11558 | * Encodes the specified EnumOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages.
|
11559 | * @param message EnumOptions message or plain object to encode
|
11560 | * @param [writer] Writer to encode to
|
11561 | * @returns Writer
|
11562 | */
|
11563 | public static encodeDelimited(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer;
|
11564 |
|
11565 | /**
|
11566 | * Decodes an EnumOptions message from the specified reader or buffer.
|
11567 | * @param reader Reader or buffer to decode from
|
11568 | * @param [length] Message length if known beforehand
|
11569 | * @returns EnumOptions
|
11570 | * @throws {Error} If the payload is not a reader or valid buffer
|
11571 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
11572 | */
|
11573 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumOptions;
|
11574 |
|
11575 | /**
|
11576 | * Decodes an EnumOptions message from the specified reader or buffer, length delimited.
|
11577 | * @param reader Reader or buffer to decode from
|
11578 | * @returns EnumOptions
|
11579 | * @throws {Error} If the payload is not a reader or valid buffer
|
11580 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
11581 | */
|
11582 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumOptions;
|
11583 |
|
11584 | /**
|
11585 | * Verifies an EnumOptions message.
|
11586 | * @param message Plain object to verify
|
11587 | * @returns `null` if valid, otherwise the reason why it is not
|
11588 | */
|
11589 | public static verify(message: { [k: string]: any }): (string|null);
|
11590 |
|
11591 | /**
|
11592 | * Creates an EnumOptions message from a plain object. Also converts values to their respective internal types.
|
11593 | * @param object Plain object
|
11594 | * @returns EnumOptions
|
11595 | */
|
11596 | public static fromObject(object: { [k: string]: any }): google.protobuf.EnumOptions;
|
11597 |
|
11598 | /**
|
11599 | * Creates a plain object from an EnumOptions message. Also converts values to other types if specified.
|
11600 | * @param message EnumOptions
|
11601 | * @param [options] Conversion options
|
11602 | * @returns Plain object
|
11603 | */
|
11604 | public static toObject(message: google.protobuf.EnumOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
11605 |
|
11606 | /**
|
11607 | * Converts this EnumOptions to JSON.
|
11608 | * @returns JSON object
|
11609 | */
|
11610 | public toJSON(): { [k: string]: any };
|
11611 | }
|
11612 |
|
11613 | /** Properties of an EnumValueOptions. */
|
11614 | interface IEnumValueOptions {
|
11615 |
|
11616 | /** EnumValueOptions deprecated */
|
11617 | deprecated?: (boolean|null);
|
11618 |
|
11619 | /** EnumValueOptions uninterpretedOption */
|
11620 | uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
|
11621 | }
|
11622 |
|
11623 | /** Represents an EnumValueOptions. */
|
11624 | class EnumValueOptions implements IEnumValueOptions {
|
11625 |
|
11626 | /**
|
11627 | * Constructs a new EnumValueOptions.
|
11628 | * @param [properties] Properties to set
|
11629 | */
|
11630 | constructor(properties?: google.protobuf.IEnumValueOptions);
|
11631 |
|
11632 | /** EnumValueOptions deprecated. */
|
11633 | public deprecated: boolean;
|
11634 |
|
11635 | /** EnumValueOptions uninterpretedOption. */
|
11636 | public uninterpretedOption: google.protobuf.IUninterpretedOption[];
|
11637 |
|
11638 | /**
|
11639 | * Creates a new EnumValueOptions instance using the specified properties.
|
11640 | * @param [properties] Properties to set
|
11641 | * @returns EnumValueOptions instance
|
11642 | */
|
11643 | public static create(properties?: google.protobuf.IEnumValueOptions): google.protobuf.EnumValueOptions;
|
11644 |
|
11645 | /**
|
11646 | * Encodes the specified EnumValueOptions message. Does not implicitly { google.protobuf.EnumValueOptions.verify|verify} messages.
|
11647 | * message EnumValueOptions message or plain object to encode
|
11648 | * [writer] Writer to encode to
|
11649 | * Writer
|
11650 | */
|
11651 | public static encode(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer;
|
11652 |
|
11653 | /**
|
11654 | * Encodes the specified EnumValueOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages.
|
11655 | * @param message EnumValueOptions message or plain object to encode
|
11656 | * @param [writer] Writer to encode to
|
11657 | * @returns Writer
|
11658 | */
|
11659 | public static encodeDelimited(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer;
|
11660 |
|
11661 | /**
|
11662 | * Decodes an EnumValueOptions message from the specified reader or buffer.
|
11663 | * @param reader Reader or buffer to decode from
|
11664 | * @param [length] Message length if known beforehand
|
11665 | * @returns EnumValueOptions
|
11666 | * @throws {Error} If the payload is not a reader or valid buffer
|
11667 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
11668 | */
|
11669 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueOptions;
|
11670 |
|
11671 | /**
|
11672 | * Decodes an EnumValueOptions message from the specified reader or buffer, length delimited.
|
11673 | * @param reader Reader or buffer to decode from
|
11674 | * @returns EnumValueOptions
|
11675 | * @throws {Error} If the payload is not a reader or valid buffer
|
11676 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
11677 | */
|
11678 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumValueOptions;
|
11679 |
|
11680 | /**
|
11681 | * Verifies an EnumValueOptions message.
|
11682 | * @param message Plain object to verify
|
11683 | * @returns `null` if valid, otherwise the reason why it is not
|
11684 | */
|
11685 | public static verify(message: { [k: string]: any }): (string|null);
|
11686 |
|
11687 | /**
|
11688 | * Creates an EnumValueOptions message from a plain object. Also converts values to their respective internal types.
|
11689 | * @param object Plain object
|
11690 | * @returns EnumValueOptions
|
11691 | */
|
11692 | public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueOptions;
|
11693 |
|
11694 | /**
|
11695 | * Creates a plain object from an EnumValueOptions message. Also converts values to other types if specified.
|
11696 | * @param message EnumValueOptions
|
11697 | * @param [options] Conversion options
|
11698 | * @returns Plain object
|
11699 | */
|
11700 | public static toObject(message: google.protobuf.EnumValueOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
11701 |
|
11702 | /**
|
11703 | * Converts this EnumValueOptions to JSON.
|
11704 | * @returns JSON object
|
11705 | */
|
11706 | public toJSON(): { [k: string]: any };
|
11707 | }
|
11708 |
|
11709 | /** Properties of a ServiceOptions. */
|
11710 | interface IServiceOptions {
|
11711 |
|
11712 | /** ServiceOptions deprecated */
|
11713 | deprecated?: (boolean|null);
|
11714 |
|
11715 | /** ServiceOptions uninterpretedOption */
|
11716 | uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
|
11717 |
|
11718 | /** ServiceOptions .google.api.defaultHost */
|
11719 | ".google.api.defaultHost"?: (string|null);
|
11720 |
|
11721 | /** ServiceOptions .google.api.oauthScopes */
|
11722 | ".google.api.oauthScopes"?: (string|null);
|
11723 | }
|
11724 |
|
11725 | /** Represents a ServiceOptions. */
|
11726 | class ServiceOptions implements IServiceOptions {
|
11727 |
|
11728 | /**
|
11729 | * Constructs a new ServiceOptions.
|
11730 | * @param [properties] Properties to set
|
11731 | */
|
11732 | constructor(properties?: google.protobuf.IServiceOptions);
|
11733 |
|
11734 | /** ServiceOptions deprecated. */
|
11735 | public deprecated: boolean;
|
11736 |
|
11737 | /** ServiceOptions uninterpretedOption. */
|
11738 | public uninterpretedOption: google.protobuf.IUninterpretedOption[];
|
11739 |
|
11740 | /**
|
11741 | * Creates a new ServiceOptions instance using the specified properties.
|
11742 | * @param [properties] Properties to set
|
11743 | * @returns ServiceOptions instance
|
11744 | */
|
11745 | public static create(properties?: google.protobuf.IServiceOptions): google.protobuf.ServiceOptions;
|
11746 |
|
11747 | /**
|
11748 | * Encodes the specified ServiceOptions message. Does not implicitly { google.protobuf.ServiceOptions.verify|verify} messages.
|
11749 | * message ServiceOptions message or plain object to encode
|
11750 | * [writer] Writer to encode to
|
11751 | * Writer
|
11752 | */
|
11753 | public static encode(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer;
|
11754 |
|
11755 | /**
|
11756 | * Encodes the specified ServiceOptions message, length delimited. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages.
|
11757 | * @param message ServiceOptions message or plain object to encode
|
11758 | * @param [writer] Writer to encode to
|
11759 | * @returns Writer
|
11760 | */
|
11761 | public static encodeDelimited(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer;
|
11762 |
|
11763 | /**
|
11764 | * Decodes a ServiceOptions message from the specified reader or buffer.
|
11765 | * @param reader Reader or buffer to decode from
|
11766 | * @param [length] Message length if known beforehand
|
11767 | * @returns ServiceOptions
|
11768 | * @throws {Error} If the payload is not a reader or valid buffer
|
11769 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
11770 | */
|
11771 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceOptions;
|
11772 |
|
11773 | /**
|
11774 | * Decodes a ServiceOptions message from the specified reader or buffer, length delimited.
|
11775 | * @param reader Reader or buffer to decode from
|
11776 | * @returns ServiceOptions
|
11777 | * @throws {Error} If the payload is not a reader or valid buffer
|
11778 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
11779 | */
|
11780 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ServiceOptions;
|
11781 |
|
11782 | /**
|
11783 | * Verifies a ServiceOptions message.
|
11784 | * @param message Plain object to verify
|
11785 | * @returns `null` if valid, otherwise the reason why it is not
|
11786 | */
|
11787 | public static verify(message: { [k: string]: any }): (string|null);
|
11788 |
|
11789 | /**
|
11790 | * Creates a ServiceOptions message from a plain object. Also converts values to their respective internal types.
|
11791 | * @param object Plain object
|
11792 | * @returns ServiceOptions
|
11793 | */
|
11794 | public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceOptions;
|
11795 |
|
11796 | /**
|
11797 | * Creates a plain object from a ServiceOptions message. Also converts values to other types if specified.
|
11798 | * @param message ServiceOptions
|
11799 | * @param [options] Conversion options
|
11800 | * @returns Plain object
|
11801 | */
|
11802 | public static toObject(message: google.protobuf.ServiceOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
11803 |
|
11804 | /**
|
11805 | * Converts this ServiceOptions to JSON.
|
11806 | * @returns JSON object
|
11807 | */
|
11808 | public toJSON(): { [k: string]: any };
|
11809 | }
|
11810 |
|
11811 | /** Properties of a MethodOptions. */
|
11812 | interface IMethodOptions {
|
11813 |
|
11814 | /** MethodOptions deprecated */
|
11815 | deprecated?: (boolean|null);
|
11816 |
|
11817 | /** MethodOptions idempotencyLevel */
|
11818 | idempotencyLevel?: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel|null);
|
11819 |
|
11820 | /** MethodOptions uninterpretedOption */
|
11821 | uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
|
11822 |
|
11823 | /** MethodOptions .google.api.http */
|
11824 | ".google.api.http"?: (google.api.IHttpRule|null);
|
11825 |
|
11826 | /** MethodOptions .google.api.methodSignature */
|
11827 | ".google.api.methodSignature"?: (string[]|null);
|
11828 |
|
11829 | /** MethodOptions .google.longrunning.operationInfo */
|
11830 | ".google.longrunning.operationInfo"?: (google.longrunning.IOperationInfo|null);
|
11831 | }
|
11832 |
|
11833 | /** Represents a MethodOptions. */
|
11834 | class MethodOptions implements IMethodOptions {
|
11835 |
|
11836 | /**
|
11837 | * Constructs a new MethodOptions.
|
11838 | * @param [properties] Properties to set
|
11839 | */
|
11840 | constructor(properties?: google.protobuf.IMethodOptions);
|
11841 |
|
11842 | /** MethodOptions deprecated. */
|
11843 | public deprecated: boolean;
|
11844 |
|
11845 | /** MethodOptions idempotencyLevel. */
|
11846 | public idempotencyLevel: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel);
|
11847 |
|
11848 | /** MethodOptions uninterpretedOption. */
|
11849 | public uninterpretedOption: google.protobuf.IUninterpretedOption[];
|
11850 |
|
11851 | /**
|
11852 | * Creates a new MethodOptions instance using the specified properties.
|
11853 | * @param [properties] Properties to set
|
11854 | * @returns MethodOptions instance
|
11855 | */
|
11856 | public static create(properties?: google.protobuf.IMethodOptions): google.protobuf.MethodOptions;
|
11857 |
|
11858 | /**
|
11859 | * Encodes the specified MethodOptions message. Does not implicitly { google.protobuf.MethodOptions.verify|verify} messages.
|
11860 | * message MethodOptions message or plain object to encode
|
11861 | * [writer] Writer to encode to
|
11862 | * Writer
|
11863 | */
|
11864 | public static encode(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer;
|
11865 |
|
11866 | /**
|
11867 | * Encodes the specified MethodOptions message, length delimited. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages.
|
11868 | * @param message MethodOptions message or plain object to encode
|
11869 | * @param [writer] Writer to encode to
|
11870 | * @returns Writer
|
11871 | */
|
11872 | public static encodeDelimited(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer;
|
11873 |
|
11874 | /**
|
11875 | * Decodes a MethodOptions message from the specified reader or buffer.
|
11876 | * @param reader Reader or buffer to decode from
|
11877 | * @param [length] Message length if known beforehand
|
11878 | * @returns MethodOptions
|
11879 | * @throws {Error} If the payload is not a reader or valid buffer
|
11880 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
11881 | */
|
11882 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodOptions;
|
11883 |
|
11884 | /**
|
11885 | * Decodes a MethodOptions message from the specified reader or buffer, length delimited.
|
11886 | * @param reader Reader or buffer to decode from
|
11887 | * @returns MethodOptions
|
11888 | * @throws {Error} If the payload is not a reader or valid buffer
|
11889 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
11890 | */
|
11891 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MethodOptions;
|
11892 |
|
11893 | /**
|
11894 | * Verifies a MethodOptions message.
|
11895 | * @param message Plain object to verify
|
11896 | * @returns `null` if valid, otherwise the reason why it is not
|
11897 | */
|
11898 | public static verify(message: { [k: string]: any }): (string|null);
|
11899 |
|
11900 | /**
|
11901 | * Creates a MethodOptions message from a plain object. Also converts values to their respective internal types.
|
11902 | * @param object Plain object
|
11903 | * @returns MethodOptions
|
11904 | */
|
11905 | public static fromObject(object: { [k: string]: any }): google.protobuf.MethodOptions;
|
11906 |
|
11907 | /**
|
11908 | * Creates a plain object from a MethodOptions message. Also converts values to other types if specified.
|
11909 | * @param message MethodOptions
|
11910 | * @param [options] Conversion options
|
11911 | * @returns Plain object
|
11912 | */
|
11913 | public static toObject(message: google.protobuf.MethodOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
11914 |
|
11915 | /**
|
11916 | * Converts this MethodOptions to JSON.
|
11917 | * @returns JSON object
|
11918 | */
|
11919 | public toJSON(): { [k: string]: any };
|
11920 | }
|
11921 |
|
11922 | namespace MethodOptions {
|
11923 |
|
11924 | /** IdempotencyLevel enum. */
|
11925 | enum IdempotencyLevel {
|
11926 | IDEMPOTENCY_UNKNOWN = 0,
|
11927 | NO_SIDE_EFFECTS = 1,
|
11928 | IDEMPOTENT = 2
|
11929 | }
|
11930 | }
|
11931 |
|
11932 | /** Properties of an UninterpretedOption. */
|
11933 | interface IUninterpretedOption {
|
11934 |
|
11935 | /** UninterpretedOption name */
|
11936 | name?: (google.protobuf.UninterpretedOption.INamePart[]|null);
|
11937 |
|
11938 | /** UninterpretedOption identifierValue */
|
11939 | identifierValue?: (string|null);
|
11940 |
|
11941 | /** UninterpretedOption positiveIntValue */
|
11942 | positiveIntValue?: (number|Long|string|null);
|
11943 |
|
11944 | /** UninterpretedOption negativeIntValue */
|
11945 | negativeIntValue?: (number|Long|string|null);
|
11946 |
|
11947 | /** UninterpretedOption doubleValue */
|
11948 | doubleValue?: (number|null);
|
11949 |
|
11950 | /** UninterpretedOption stringValue */
|
11951 | stringValue?: (Uint8Array|string|null);
|
11952 |
|
11953 | /** UninterpretedOption aggregateValue */
|
11954 | aggregateValue?: (string|null);
|
11955 | }
|
11956 |
|
11957 | /** Represents an UninterpretedOption. */
|
11958 | class UninterpretedOption implements IUninterpretedOption {
|
11959 |
|
11960 | /**
|
11961 | * Constructs a new UninterpretedOption.
|
11962 | * @param [properties] Properties to set
|
11963 | */
|
11964 | constructor(properties?: google.protobuf.IUninterpretedOption);
|
11965 |
|
11966 | /** UninterpretedOption name. */
|
11967 | public name: google.protobuf.UninterpretedOption.INamePart[];
|
11968 |
|
11969 | /** UninterpretedOption identifierValue. */
|
11970 | public identifierValue: string;
|
11971 |
|
11972 | /** UninterpretedOption positiveIntValue. */
|
11973 | public positiveIntValue: (number|Long|string);
|
11974 |
|
11975 | /** UninterpretedOption negativeIntValue. */
|
11976 | public negativeIntValue: (number|Long|string);
|
11977 |
|
11978 | /** UninterpretedOption doubleValue. */
|
11979 | public doubleValue: number;
|
11980 |
|
11981 | /** UninterpretedOption stringValue. */
|
11982 | public stringValue: (Uint8Array|string);
|
11983 |
|
11984 | /** UninterpretedOption aggregateValue. */
|
11985 | public aggregateValue: string;
|
11986 |
|
11987 | /**
|
11988 | * Creates a new UninterpretedOption instance using the specified properties.
|
11989 | * @param [properties] Properties to set
|
11990 | * @returns UninterpretedOption instance
|
11991 | */
|
11992 | public static create(properties?: google.protobuf.IUninterpretedOption): google.protobuf.UninterpretedOption;
|
11993 |
|
11994 | /**
|
11995 | * Encodes the specified UninterpretedOption message. Does not implicitly { google.protobuf.UninterpretedOption.verify|verify} messages.
|
11996 | * message UninterpretedOption message or plain object to encode
|
11997 | * [writer] Writer to encode to
|
11998 | * Writer
|
11999 | */
|
12000 | public static encode(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer;
|
12001 |
|
12002 | /**
|
12003 | * Encodes the specified UninterpretedOption message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages.
|
12004 | * @param message UninterpretedOption message or plain object to encode
|
12005 | * @param [writer] Writer to encode to
|
12006 | * @returns Writer
|
12007 | */
|
12008 | public static encodeDelimited(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer;
|
12009 |
|
12010 | /**
|
12011 | * Decodes an UninterpretedOption message from the specified reader or buffer.
|
12012 | * @param reader Reader or buffer to decode from
|
12013 | * @param [length] Message length if known beforehand
|
12014 | * @returns UninterpretedOption
|
12015 | * @throws {Error} If the payload is not a reader or valid buffer
|
12016 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
12017 | */
|
12018 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption;
|
12019 |
|
12020 | /**
|
12021 | * Decodes an UninterpretedOption message from the specified reader or buffer, length delimited.
|
12022 | * @param reader Reader or buffer to decode from
|
12023 | * @returns UninterpretedOption
|
12024 | * @throws {Error} If the payload is not a reader or valid buffer
|
12025 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
12026 | */
|
12027 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UninterpretedOption;
|
12028 |
|
12029 | /**
|
12030 | * Verifies an UninterpretedOption message.
|
12031 | * @param message Plain object to verify
|
12032 | * @returns `null` if valid, otherwise the reason why it is not
|
12033 | */
|
12034 | public static verify(message: { [k: string]: any }): (string|null);
|
12035 |
|
12036 | /**
|
12037 | * Creates an UninterpretedOption message from a plain object. Also converts values to their respective internal types.
|
12038 | * @param object Plain object
|
12039 | * @returns UninterpretedOption
|
12040 | */
|
12041 | public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption;
|
12042 |
|
12043 | /**
|
12044 | * Creates a plain object from an UninterpretedOption message. Also converts values to other types if specified.
|
12045 | * @param message UninterpretedOption
|
12046 | * @param [options] Conversion options
|
12047 | * @returns Plain object
|
12048 | */
|
12049 | public static toObject(message: google.protobuf.UninterpretedOption, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
12050 |
|
12051 | /**
|
12052 | * Converts this UninterpretedOption to JSON.
|
12053 | * @returns JSON object
|
12054 | */
|
12055 | public toJSON(): { [k: string]: any };
|
12056 | }
|
12057 |
|
12058 | namespace UninterpretedOption {
|
12059 |
|
12060 | /** Properties of a NamePart. */
|
12061 | interface INamePart {
|
12062 |
|
12063 | /** NamePart namePart */
|
12064 | namePart: string;
|
12065 |
|
12066 | /** NamePart isExtension */
|
12067 | isExtension: boolean;
|
12068 | }
|
12069 |
|
12070 | /** Represents a NamePart. */
|
12071 | class NamePart implements INamePart {
|
12072 |
|
12073 | /**
|
12074 | * Constructs a new NamePart.
|
12075 | * @param [properties] Properties to set
|
12076 | */
|
12077 | constructor(properties?: google.protobuf.UninterpretedOption.INamePart);
|
12078 |
|
12079 | /** NamePart namePart. */
|
12080 | public namePart: string;
|
12081 |
|
12082 | /** NamePart isExtension. */
|
12083 | public isExtension: boolean;
|
12084 |
|
12085 | /**
|
12086 | * Creates a new NamePart instance using the specified properties.
|
12087 | * @param [properties] Properties to set
|
12088 | * @returns NamePart instance
|
12089 | */
|
12090 | public static create(properties?: google.protobuf.UninterpretedOption.INamePart): google.protobuf.UninterpretedOption.NamePart;
|
12091 |
|
12092 | /**
|
12093 | * Encodes the specified NamePart message. Does not implicitly { google.protobuf.UninterpretedOption.NamePart.verify|verify} messages.
|
12094 | * message NamePart message or plain object to encode
|
12095 | * [writer] Writer to encode to
|
12096 | * Writer
|
12097 | */
|
12098 | public static encode(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer;
|
12099 |
|
12100 | /**
|
12101 | * Encodes the specified NamePart message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages.
|
12102 | * @param message NamePart message or plain object to encode
|
12103 | * @param [writer] Writer to encode to
|
12104 | * @returns Writer
|
12105 | */
|
12106 | public static encodeDelimited(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer;
|
12107 |
|
12108 | /**
|
12109 | * Decodes a NamePart message from the specified reader or buffer.
|
12110 | * @param reader Reader or buffer to decode from
|
12111 | * @param [length] Message length if known beforehand
|
12112 | * @returns NamePart
|
12113 | * @throws {Error} If the payload is not a reader or valid buffer
|
12114 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
12115 | */
|
12116 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption.NamePart;
|
12117 |
|
12118 | /**
|
12119 | * Decodes a NamePart message from the specified reader or buffer, length delimited.
|
12120 | * @param reader Reader or buffer to decode from
|
12121 | * @returns NamePart
|
12122 | * @throws {Error} If the payload is not a reader or valid buffer
|
12123 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
12124 | */
|
12125 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UninterpretedOption.NamePart;
|
12126 |
|
12127 | /**
|
12128 | * Verifies a NamePart message.
|
12129 | * @param message Plain object to verify
|
12130 | * @returns `null` if valid, otherwise the reason why it is not
|
12131 | */
|
12132 | public static verify(message: { [k: string]: any }): (string|null);
|
12133 |
|
12134 | /**
|
12135 | * Creates a NamePart message from a plain object. Also converts values to their respective internal types.
|
12136 | * @param object Plain object
|
12137 | * @returns NamePart
|
12138 | */
|
12139 | public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption.NamePart;
|
12140 |
|
12141 | /**
|
12142 | * Creates a plain object from a NamePart message. Also converts values to other types if specified.
|
12143 | * @param message NamePart
|
12144 | * @param [options] Conversion options
|
12145 | * @returns Plain object
|
12146 | */
|
12147 | public static toObject(message: google.protobuf.UninterpretedOption.NamePart, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
12148 |
|
12149 | /**
|
12150 | * Converts this NamePart to JSON.
|
12151 | * @returns JSON object
|
12152 | */
|
12153 | public toJSON(): { [k: string]: any };
|
12154 | }
|
12155 | }
|
12156 |
|
12157 | /** Properties of a SourceCodeInfo. */
|
12158 | interface ISourceCodeInfo {
|
12159 |
|
12160 | /** SourceCodeInfo location */
|
12161 | location?: (google.protobuf.SourceCodeInfo.ILocation[]|null);
|
12162 | }
|
12163 |
|
12164 | /** Represents a SourceCodeInfo. */
|
12165 | class SourceCodeInfo implements ISourceCodeInfo {
|
12166 |
|
12167 | /**
|
12168 | * Constructs a new SourceCodeInfo.
|
12169 | * @param [properties] Properties to set
|
12170 | */
|
12171 | constructor(properties?: google.protobuf.ISourceCodeInfo);
|
12172 |
|
12173 | /** SourceCodeInfo location. */
|
12174 | public location: google.protobuf.SourceCodeInfo.ILocation[];
|
12175 |
|
12176 | /**
|
12177 | * Creates a new SourceCodeInfo instance using the specified properties.
|
12178 | * @param [properties] Properties to set
|
12179 | * @returns SourceCodeInfo instance
|
12180 | */
|
12181 | public static create(properties?: google.protobuf.ISourceCodeInfo): google.protobuf.SourceCodeInfo;
|
12182 |
|
12183 | /**
|
12184 | * Encodes the specified SourceCodeInfo message. Does not implicitly { google.protobuf.SourceCodeInfo.verify|verify} messages.
|
12185 | * message SourceCodeInfo message or plain object to encode
|
12186 | * [writer] Writer to encode to
|
12187 | * Writer
|
12188 | */
|
12189 | public static encode(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
|
12190 |
|
12191 | /**
|
12192 | * Encodes the specified SourceCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages.
|
12193 | * @param message SourceCodeInfo message or plain object to encode
|
12194 | * @param [writer] Writer to encode to
|
12195 | * @returns Writer
|
12196 | */
|
12197 | public static encodeDelimited(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
|
12198 |
|
12199 | /**
|
12200 | * Decodes a SourceCodeInfo message from the specified reader or buffer.
|
12201 | * @param reader Reader or buffer to decode from
|
12202 | * @param [length] Message length if known beforehand
|
12203 | * @returns SourceCodeInfo
|
12204 | * @throws {Error} If the payload is not a reader or valid buffer
|
12205 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
12206 | */
|
12207 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo;
|
12208 |
|
12209 | /**
|
12210 | * Decodes a SourceCodeInfo message from the specified reader or buffer, length delimited.
|
12211 | * @param reader Reader or buffer to decode from
|
12212 | * @returns SourceCodeInfo
|
12213 | * @throws {Error} If the payload is not a reader or valid buffer
|
12214 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
12215 | */
|
12216 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.SourceCodeInfo;
|
12217 |
|
12218 | /**
|
12219 | * Verifies a SourceCodeInfo message.
|
12220 | * @param message Plain object to verify
|
12221 | * @returns `null` if valid, otherwise the reason why it is not
|
12222 | */
|
12223 | public static verify(message: { [k: string]: any }): (string|null);
|
12224 |
|
12225 | /**
|
12226 | * Creates a SourceCodeInfo message from a plain object. Also converts values to their respective internal types.
|
12227 | * @param object Plain object
|
12228 | * @returns SourceCodeInfo
|
12229 | */
|
12230 | public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo;
|
12231 |
|
12232 | /**
|
12233 | * Creates a plain object from a SourceCodeInfo message. Also converts values to other types if specified.
|
12234 | * @param message SourceCodeInfo
|
12235 | * @param [options] Conversion options
|
12236 | * @returns Plain object
|
12237 | */
|
12238 | public static toObject(message: google.protobuf.SourceCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
12239 |
|
12240 | /**
|
12241 | * Converts this SourceCodeInfo to JSON.
|
12242 | * @returns JSON object
|
12243 | */
|
12244 | public toJSON(): { [k: string]: any };
|
12245 | }
|
12246 |
|
12247 | namespace SourceCodeInfo {
|
12248 |
|
12249 | /** Properties of a Location. */
|
12250 | interface ILocation {
|
12251 |
|
12252 | /** Location path */
|
12253 | path?: (number[]|null);
|
12254 |
|
12255 | /** Location span */
|
12256 | span?: (number[]|null);
|
12257 |
|
12258 | /** Location leadingComments */
|
12259 | leadingComments?: (string|null);
|
12260 |
|
12261 | /** Location trailingComments */
|
12262 | trailingComments?: (string|null);
|
12263 |
|
12264 | /** Location leadingDetachedComments */
|
12265 | leadingDetachedComments?: (string[]|null);
|
12266 | }
|
12267 |
|
12268 | /** Represents a Location. */
|
12269 | class Location implements ILocation {
|
12270 |
|
12271 | /**
|
12272 | * Constructs a new Location.
|
12273 | * @param [properties] Properties to set
|
12274 | */
|
12275 | constructor(properties?: google.protobuf.SourceCodeInfo.ILocation);
|
12276 |
|
12277 | /** Location path. */
|
12278 | public path: number[];
|
12279 |
|
12280 | /** Location span. */
|
12281 | public span: number[];
|
12282 |
|
12283 | /** Location leadingComments. */
|
12284 | public leadingComments: string;
|
12285 |
|
12286 | /** Location trailingComments. */
|
12287 | public trailingComments: string;
|
12288 |
|
12289 | /** Location leadingDetachedComments. */
|
12290 | public leadingDetachedComments: string[];
|
12291 |
|
12292 | /**
|
12293 | * Creates a new Location instance using the specified properties.
|
12294 | * @param [properties] Properties to set
|
12295 | * @returns Location instance
|
12296 | */
|
12297 | public static create(properties?: google.protobuf.SourceCodeInfo.ILocation): google.protobuf.SourceCodeInfo.Location;
|
12298 |
|
12299 | /**
|
12300 | * Encodes the specified Location message. Does not implicitly { google.protobuf.SourceCodeInfo.Location.verify|verify} messages.
|
12301 | * message Location message or plain object to encode
|
12302 | * [writer] Writer to encode to
|
12303 | * Writer
|
12304 | */
|
12305 | public static encode(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer;
|
12306 |
|
12307 | /**
|
12308 | * Encodes the specified Location message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages.
|
12309 | * @param message Location message or plain object to encode
|
12310 | * @param [writer] Writer to encode to
|
12311 | * @returns Writer
|
12312 | */
|
12313 | public static encodeDelimited(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer;
|
12314 |
|
12315 | /**
|
12316 | * Decodes a Location message from the specified reader or buffer.
|
12317 | * @param reader Reader or buffer to decode from
|
12318 | * @param [length] Message length if known beforehand
|
12319 | * @returns Location
|
12320 | * @throws {Error} If the payload is not a reader or valid buffer
|
12321 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
12322 | */
|
12323 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo.Location;
|
12324 |
|
12325 | /**
|
12326 | * Decodes a Location message from the specified reader or buffer, length delimited.
|
12327 | * @param reader Reader or buffer to decode from
|
12328 | * @returns Location
|
12329 | * @throws {Error} If the payload is not a reader or valid buffer
|
12330 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
12331 | */
|
12332 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.SourceCodeInfo.Location;
|
12333 |
|
12334 | /**
|
12335 | * Verifies a Location message.
|
12336 | * @param message Plain object to verify
|
12337 | * @returns `null` if valid, otherwise the reason why it is not
|
12338 | */
|
12339 | public static verify(message: { [k: string]: any }): (string|null);
|
12340 |
|
12341 | /**
|
12342 | * Creates a Location message from a plain object. Also converts values to their respective internal types.
|
12343 | * @param object Plain object
|
12344 | * @returns Location
|
12345 | */
|
12346 | public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo.Location;
|
12347 |
|
12348 | /**
|
12349 | * Creates a plain object from a Location message. Also converts values to other types if specified.
|
12350 | * @param message Location
|
12351 | * @param [options] Conversion options
|
12352 | * @returns Plain object
|
12353 | */
|
12354 | public static toObject(message: google.protobuf.SourceCodeInfo.Location, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
12355 |
|
12356 | /**
|
12357 | * Converts this Location to JSON.
|
12358 | * @returns JSON object
|
12359 | */
|
12360 | public toJSON(): { [k: string]: any };
|
12361 | }
|
12362 | }
|
12363 |
|
12364 | /** Properties of a GeneratedCodeInfo. */
|
12365 | interface IGeneratedCodeInfo {
|
12366 |
|
12367 | /** GeneratedCodeInfo annotation */
|
12368 | annotation?: (google.protobuf.GeneratedCodeInfo.IAnnotation[]|null);
|
12369 | }
|
12370 |
|
12371 | /** Represents a GeneratedCodeInfo. */
|
12372 | class GeneratedCodeInfo implements IGeneratedCodeInfo {
|
12373 |
|
12374 | /**
|
12375 | * Constructs a new GeneratedCodeInfo.
|
12376 | * @param [properties] Properties to set
|
12377 | */
|
12378 | constructor(properties?: google.protobuf.IGeneratedCodeInfo);
|
12379 |
|
12380 | /** GeneratedCodeInfo annotation. */
|
12381 | public annotation: google.protobuf.GeneratedCodeInfo.IAnnotation[];
|
12382 |
|
12383 | /**
|
12384 | * Creates a new GeneratedCodeInfo instance using the specified properties.
|
12385 | * @param [properties] Properties to set
|
12386 | * @returns GeneratedCodeInfo instance
|
12387 | */
|
12388 | public static create(properties?: google.protobuf.IGeneratedCodeInfo): google.protobuf.GeneratedCodeInfo;
|
12389 |
|
12390 | /**
|
12391 | * Encodes the specified GeneratedCodeInfo message. Does not implicitly { google.protobuf.GeneratedCodeInfo.verify|verify} messages.
|
12392 | * message GeneratedCodeInfo message or plain object to encode
|
12393 | * [writer] Writer to encode to
|
12394 | * Writer
|
12395 | */
|
12396 | public static encode(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
|
12397 |
|
12398 | /**
|
12399 | * Encodes the specified GeneratedCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages.
|
12400 | * @param message GeneratedCodeInfo message or plain object to encode
|
12401 | * @param [writer] Writer to encode to
|
12402 | * @returns Writer
|
12403 | */
|
12404 | public static encodeDelimited(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
|
12405 |
|
12406 | /**
|
12407 | * Decodes a GeneratedCodeInfo message from the specified reader or buffer.
|
12408 | * @param reader Reader or buffer to decode from
|
12409 | * @param [length] Message length if known beforehand
|
12410 | * @returns GeneratedCodeInfo
|
12411 | * @throws {Error} If the payload is not a reader or valid buffer
|
12412 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
12413 | */
|
12414 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo;
|
12415 |
|
12416 | /**
|
12417 | * Decodes a GeneratedCodeInfo message from the specified reader or buffer, length delimited.
|
12418 | * @param reader Reader or buffer to decode from
|
12419 | * @returns GeneratedCodeInfo
|
12420 | * @throws {Error} If the payload is not a reader or valid buffer
|
12421 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
12422 | */
|
12423 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.GeneratedCodeInfo;
|
12424 |
|
12425 | /**
|
12426 | * Verifies a GeneratedCodeInfo message.
|
12427 | * @param message Plain object to verify
|
12428 | * @returns `null` if valid, otherwise the reason why it is not
|
12429 | */
|
12430 | public static verify(message: { [k: string]: any }): (string|null);
|
12431 |
|
12432 | /**
|
12433 | * Creates a GeneratedCodeInfo message from a plain object. Also converts values to their respective internal types.
|
12434 | * @param object Plain object
|
12435 | * @returns GeneratedCodeInfo
|
12436 | */
|
12437 | public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo;
|
12438 |
|
12439 | /**
|
12440 | * Creates a plain object from a GeneratedCodeInfo message. Also converts values to other types if specified.
|
12441 | * @param message GeneratedCodeInfo
|
12442 | * @param [options] Conversion options
|
12443 | * @returns Plain object
|
12444 | */
|
12445 | public static toObject(message: google.protobuf.GeneratedCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
12446 |
|
12447 | /**
|
12448 | * Converts this GeneratedCodeInfo to JSON.
|
12449 | * @returns JSON object
|
12450 | */
|
12451 | public toJSON(): { [k: string]: any };
|
12452 | }
|
12453 |
|
12454 | namespace GeneratedCodeInfo {
|
12455 |
|
12456 | /** Properties of an Annotation. */
|
12457 | interface IAnnotation {
|
12458 |
|
12459 | /** Annotation path */
|
12460 | path?: (number[]|null);
|
12461 |
|
12462 | /** Annotation sourceFile */
|
12463 | sourceFile?: (string|null);
|
12464 |
|
12465 | /** Annotation begin */
|
12466 | begin?: (number|null);
|
12467 |
|
12468 | /** Annotation end */
|
12469 | end?: (number|null);
|
12470 | }
|
12471 |
|
12472 | /** Represents an Annotation. */
|
12473 | class Annotation implements IAnnotation {
|
12474 |
|
12475 | /**
|
12476 | * Constructs a new Annotation.
|
12477 | * @param [properties] Properties to set
|
12478 | */
|
12479 | constructor(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation);
|
12480 |
|
12481 | /** Annotation path. */
|
12482 | public path: number[];
|
12483 |
|
12484 | /** Annotation sourceFile. */
|
12485 | public sourceFile: string;
|
12486 |
|
12487 | /** Annotation begin. */
|
12488 | public begin: number;
|
12489 |
|
12490 | /** Annotation end. */
|
12491 | public end: number;
|
12492 |
|
12493 | /**
|
12494 | * Creates a new Annotation instance using the specified properties.
|
12495 | * @param [properties] Properties to set
|
12496 | * @returns Annotation instance
|
12497 | */
|
12498 | public static create(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation): google.protobuf.GeneratedCodeInfo.Annotation;
|
12499 |
|
12500 | /**
|
12501 | * Encodes the specified Annotation message. Does not implicitly { google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages.
|
12502 | * message Annotation message or plain object to encode
|
12503 | * [writer] Writer to encode to
|
12504 | * Writer
|
12505 | */
|
12506 | public static encode(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
|
12507 |
|
12508 | /**
|
12509 | * Encodes the specified Annotation message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages.
|
12510 | * @param message Annotation message or plain object to encode
|
12511 | * @param [writer] Writer to encode to
|
12512 | * @returns Writer
|
12513 | */
|
12514 | public static encodeDelimited(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
|
12515 |
|
12516 | /**
|
12517 | * Decodes an Annotation message from the specified reader or buffer.
|
12518 | * @param reader Reader or buffer to decode from
|
12519 | * @param [length] Message length if known beforehand
|
12520 | * @returns Annotation
|
12521 | * @throws {Error} If the payload is not a reader or valid buffer
|
12522 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
12523 | */
|
12524 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo.Annotation;
|
12525 |
|
12526 | /**
|
12527 | * Decodes an Annotation message from the specified reader or buffer, length delimited.
|
12528 | * @param reader Reader or buffer to decode from
|
12529 | * @returns Annotation
|
12530 | * @throws {Error} If the payload is not a reader or valid buffer
|
12531 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
12532 | */
|
12533 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.GeneratedCodeInfo.Annotation;
|
12534 |
|
12535 | /**
|
12536 | * Verifies an Annotation message.
|
12537 | * @param message Plain object to verify
|
12538 | * @returns `null` if valid, otherwise the reason why it is not
|
12539 | */
|
12540 | public static verify(message: { [k: string]: any }): (string|null);
|
12541 |
|
12542 | /**
|
12543 | * Creates an Annotation message from a plain object. Also converts values to their respective internal types.
|
12544 | * @param object Plain object
|
12545 | * @returns Annotation
|
12546 | */
|
12547 | public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo.Annotation;
|
12548 |
|
12549 | /**
|
12550 | * Creates a plain object from an Annotation message. Also converts values to other types if specified.
|
12551 | * @param message Annotation
|
12552 | * @param [options] Conversion options
|
12553 | * @returns Plain object
|
12554 | */
|
12555 | public static toObject(message: google.protobuf.GeneratedCodeInfo.Annotation, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
12556 |
|
12557 | /**
|
12558 | * Converts this Annotation to JSON.
|
12559 | * @returns JSON object
|
12560 | */
|
12561 | public toJSON(): { [k: string]: any };
|
12562 | }
|
12563 | }
|
12564 |
|
12565 | /** Properties of an Any. */
|
12566 | interface IAny {
|
12567 |
|
12568 | /** Any type_url */
|
12569 | type_url?: (string|null);
|
12570 |
|
12571 | /** Any value */
|
12572 | value?: (Uint8Array|string|null);
|
12573 | }
|
12574 |
|
12575 | /** Represents an Any. */
|
12576 | class Any implements IAny {
|
12577 |
|
12578 | /**
|
12579 | * Constructs a new Any.
|
12580 | * @param [properties] Properties to set
|
12581 | */
|
12582 | constructor(properties?: google.protobuf.IAny);
|
12583 |
|
12584 | /** Any type_url. */
|
12585 | public type_url: string;
|
12586 |
|
12587 | /** Any value. */
|
12588 | public value: (Uint8Array|string);
|
12589 |
|
12590 | /**
|
12591 | * Creates a new Any instance using the specified properties.
|
12592 | * @param [properties] Properties to set
|
12593 | * @returns Any instance
|
12594 | */
|
12595 | public static create(properties?: google.protobuf.IAny): google.protobuf.Any;
|
12596 |
|
12597 | /**
|
12598 | * Encodes the specified Any message. Does not implicitly { google.protobuf.Any.verify|verify} messages.
|
12599 | * message Any message or plain object to encode
|
12600 | * [writer] Writer to encode to
|
12601 | * Writer
|
12602 | */
|
12603 | public static encode(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer;
|
12604 |
|
12605 | /**
|
12606 | * Encodes the specified Any message, length delimited. Does not implicitly {@link google.protobuf.Any.verify|verify} messages.
|
12607 | * @param message Any message or plain object to encode
|
12608 | * @param [writer] Writer to encode to
|
12609 | * @returns Writer
|
12610 | */
|
12611 | public static encodeDelimited(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer;
|
12612 |
|
12613 | /**
|
12614 | * Decodes an Any message from the specified reader or buffer.
|
12615 | * @param reader Reader or buffer to decode from
|
12616 | * @param [length] Message length if known beforehand
|
12617 | * @returns Any
|
12618 | * @throws {Error} If the payload is not a reader or valid buffer
|
12619 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
12620 | */
|
12621 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Any;
|
12622 |
|
12623 | /**
|
12624 | * Decodes an Any message from the specified reader or buffer, length delimited.
|
12625 | * @param reader Reader or buffer to decode from
|
12626 | * @returns Any
|
12627 | * @throws {Error} If the payload is not a reader or valid buffer
|
12628 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
12629 | */
|
12630 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Any;
|
12631 |
|
12632 | /**
|
12633 | * Verifies an Any message.
|
12634 | * @param message Plain object to verify
|
12635 | * @returns `null` if valid, otherwise the reason why it is not
|
12636 | */
|
12637 | public static verify(message: { [k: string]: any }): (string|null);
|
12638 |
|
12639 | /**
|
12640 | * Creates an Any message from a plain object. Also converts values to their respective internal types.
|
12641 | * @param object Plain object
|
12642 | * @returns Any
|
12643 | */
|
12644 | public static fromObject(object: { [k: string]: any }): google.protobuf.Any;
|
12645 |
|
12646 | /**
|
12647 | * Creates a plain object from an Any message. Also converts values to other types if specified.
|
12648 | * @param message Any
|
12649 | * @param [options] Conversion options
|
12650 | * @returns Plain object
|
12651 | */
|
12652 | public static toObject(message: google.protobuf.Any, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
12653 |
|
12654 | /**
|
12655 | * Converts this Any to JSON.
|
12656 | * @returns JSON object
|
12657 | */
|
12658 | public toJSON(): { [k: string]: any };
|
12659 | }
|
12660 |
|
12661 | /** Properties of a Duration. */
|
12662 | interface IDuration {
|
12663 |
|
12664 | /** Duration seconds */
|
12665 | seconds?: (number|Long|string|null);
|
12666 |
|
12667 | /** Duration nanos */
|
12668 | nanos?: (number|null);
|
12669 | }
|
12670 |
|
12671 | /** Represents a Duration. */
|
12672 | class Duration implements IDuration {
|
12673 |
|
12674 | /**
|
12675 | * Constructs a new Duration.
|
12676 | * @param [properties] Properties to set
|
12677 | */
|
12678 | constructor(properties?: google.protobuf.IDuration);
|
12679 |
|
12680 | /** Duration seconds. */
|
12681 | public seconds: (number|Long|string);
|
12682 |
|
12683 | /** Duration nanos. */
|
12684 | public nanos: number;
|
12685 |
|
12686 | /**
|
12687 | * Creates a new Duration instance using the specified properties.
|
12688 | * @param [properties] Properties to set
|
12689 | * @returns Duration instance
|
12690 | */
|
12691 | public static create(properties?: google.protobuf.IDuration): google.protobuf.Duration;
|
12692 |
|
12693 | /**
|
12694 | * Encodes the specified Duration message. Does not implicitly { google.protobuf.Duration.verify|verify} messages.
|
12695 | * message Duration message or plain object to encode
|
12696 | * [writer] Writer to encode to
|
12697 | * Writer
|
12698 | */
|
12699 | public static encode(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer;
|
12700 |
|
12701 | /**
|
12702 | * Encodes the specified Duration message, length delimited. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages.
|
12703 | * @param message Duration message or plain object to encode
|
12704 | * @param [writer] Writer to encode to
|
12705 | * @returns Writer
|
12706 | */
|
12707 | public static encodeDelimited(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer;
|
12708 |
|
12709 | /**
|
12710 | * Decodes a Duration message from the specified reader or buffer.
|
12711 | * @param reader Reader or buffer to decode from
|
12712 | * @param [length] Message length if known beforehand
|
12713 | * @returns Duration
|
12714 | * @throws {Error} If the payload is not a reader or valid buffer
|
12715 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
12716 | */
|
12717 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Duration;
|
12718 |
|
12719 | /**
|
12720 | * Decodes a Duration message from the specified reader or buffer, length delimited.
|
12721 | * @param reader Reader or buffer to decode from
|
12722 | * @returns Duration
|
12723 | * @throws {Error} If the payload is not a reader or valid buffer
|
12724 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
12725 | */
|
12726 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Duration;
|
12727 |
|
12728 | /**
|
12729 | * Verifies a Duration message.
|
12730 | * @param message Plain object to verify
|
12731 | * @returns `null` if valid, otherwise the reason why it is not
|
12732 | */
|
12733 | public static verify(message: { [k: string]: any }): (string|null);
|
12734 |
|
12735 | /**
|
12736 | * Creates a Duration message from a plain object. Also converts values to their respective internal types.
|
12737 | * @param object Plain object
|
12738 | * @returns Duration
|
12739 | */
|
12740 | public static fromObject(object: { [k: string]: any }): google.protobuf.Duration;
|
12741 |
|
12742 | /**
|
12743 | * Creates a plain object from a Duration message. Also converts values to other types if specified.
|
12744 | * @param message Duration
|
12745 | * @param [options] Conversion options
|
12746 | * @returns Plain object
|
12747 | */
|
12748 | public static toObject(message: google.protobuf.Duration, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
12749 |
|
12750 | /**
|
12751 | * Converts this Duration to JSON.
|
12752 | * @returns JSON object
|
12753 | */
|
12754 | public toJSON(): { [k: string]: any };
|
12755 | }
|
12756 |
|
12757 | /** Properties of an Empty. */
|
12758 | interface IEmpty {
|
12759 | }
|
12760 |
|
12761 | /** Represents an Empty. */
|
12762 | class Empty implements IEmpty {
|
12763 |
|
12764 | /**
|
12765 | * Constructs a new Empty.
|
12766 | * @param [properties] Properties to set
|
12767 | */
|
12768 | constructor(properties?: google.protobuf.IEmpty);
|
12769 |
|
12770 | /**
|
12771 | * Creates a new Empty instance using the specified properties.
|
12772 | * @param [properties] Properties to set
|
12773 | * @returns Empty instance
|
12774 | */
|
12775 | public static create(properties?: google.protobuf.IEmpty): google.protobuf.Empty;
|
12776 |
|
12777 | /**
|
12778 | * Encodes the specified Empty message. Does not implicitly { google.protobuf.Empty.verify|verify} messages.
|
12779 | * message Empty message or plain object to encode
|
12780 | * [writer] Writer to encode to
|
12781 | * Writer
|
12782 | */
|
12783 | public static encode(message: google.protobuf.IEmpty, writer?: $protobuf.Writer): $protobuf.Writer;
|
12784 |
|
12785 | /**
|
12786 | * Encodes the specified Empty message, length delimited. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages.
|
12787 | * @param message Empty message or plain object to encode
|
12788 | * @param [writer] Writer to encode to
|
12789 | * @returns Writer
|
12790 | */
|
12791 | public static encodeDelimited(message: google.protobuf.IEmpty, writer?: $protobuf.Writer): $protobuf.Writer;
|
12792 |
|
12793 | /**
|
12794 | * Decodes an Empty message from the specified reader or buffer.
|
12795 | * @param reader Reader or buffer to decode from
|
12796 | * @param [length] Message length if known beforehand
|
12797 | * @returns Empty
|
12798 | * @throws {Error} If the payload is not a reader or valid buffer
|
12799 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
12800 | */
|
12801 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Empty;
|
12802 |
|
12803 | /**
|
12804 | * Decodes an Empty message from the specified reader or buffer, length delimited.
|
12805 | * @param reader Reader or buffer to decode from
|
12806 | * @returns Empty
|
12807 | * @throws {Error} If the payload is not a reader or valid buffer
|
12808 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
12809 | */
|
12810 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Empty;
|
12811 |
|
12812 | /**
|
12813 | * Verifies an Empty message.
|
12814 | * @param message Plain object to verify
|
12815 | * @returns `null` if valid, otherwise the reason why it is not
|
12816 | */
|
12817 | public static verify(message: { [k: string]: any }): (string|null);
|
12818 |
|
12819 | /**
|
12820 | * Creates an Empty message from a plain object. Also converts values to their respective internal types.
|
12821 | * @param object Plain object
|
12822 | * @returns Empty
|
12823 | */
|
12824 | public static fromObject(object: { [k: string]: any }): google.protobuf.Empty;
|
12825 |
|
12826 | /**
|
12827 | * Creates a plain object from an Empty message. Also converts values to other types if specified.
|
12828 | * @param message Empty
|
12829 | * @param [options] Conversion options
|
12830 | * @returns Plain object
|
12831 | */
|
12832 | public static toObject(message: google.protobuf.Empty, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
12833 |
|
12834 | /**
|
12835 | * Converts this Empty to JSON.
|
12836 | * @returns JSON object
|
12837 | */
|
12838 | public toJSON(): { [k: string]: any };
|
12839 | }
|
12840 |
|
12841 | /** Properties of a Timestamp. */
|
12842 | interface ITimestamp {
|
12843 |
|
12844 | /** Timestamp seconds */
|
12845 | seconds?: (number|Long|string|null);
|
12846 |
|
12847 | /** Timestamp nanos */
|
12848 | nanos?: (number|null);
|
12849 | }
|
12850 |
|
12851 | /** Represents a Timestamp. */
|
12852 | class Timestamp implements ITimestamp {
|
12853 |
|
12854 | /**
|
12855 | * Constructs a new Timestamp.
|
12856 | * @param [properties] Properties to set
|
12857 | */
|
12858 | constructor(properties?: google.protobuf.ITimestamp);
|
12859 |
|
12860 | /** Timestamp seconds. */
|
12861 | public seconds: (number|Long|string);
|
12862 |
|
12863 | /** Timestamp nanos. */
|
12864 | public nanos: number;
|
12865 |
|
12866 | /**
|
12867 | * Creates a new Timestamp instance using the specified properties.
|
12868 | * @param [properties] Properties to set
|
12869 | * @returns Timestamp instance
|
12870 | */
|
12871 | public static create(properties?: google.protobuf.ITimestamp): google.protobuf.Timestamp;
|
12872 |
|
12873 | /**
|
12874 | * Encodes the specified Timestamp message. Does not implicitly { google.protobuf.Timestamp.verify|verify} messages.
|
12875 | * message Timestamp message or plain object to encode
|
12876 | * [writer] Writer to encode to
|
12877 | * Writer
|
12878 | */
|
12879 | public static encode(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer;
|
12880 |
|
12881 | /**
|
12882 | * Encodes the specified Timestamp message, length delimited. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages.
|
12883 | * @param message Timestamp message or plain object to encode
|
12884 | * @param [writer] Writer to encode to
|
12885 | * @returns Writer
|
12886 | */
|
12887 | public static encodeDelimited(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer;
|
12888 |
|
12889 | /**
|
12890 | * Decodes a Timestamp message from the specified reader or buffer.
|
12891 | * @param reader Reader or buffer to decode from
|
12892 | * @param [length] Message length if known beforehand
|
12893 | * @returns Timestamp
|
12894 | * @throws {Error} If the payload is not a reader or valid buffer
|
12895 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
12896 | */
|
12897 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Timestamp;
|
12898 |
|
12899 | /**
|
12900 | * Decodes a Timestamp message from the specified reader or buffer, length delimited.
|
12901 | * @param reader Reader or buffer to decode from
|
12902 | * @returns Timestamp
|
12903 | * @throws {Error} If the payload is not a reader or valid buffer
|
12904 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
12905 | */
|
12906 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Timestamp;
|
12907 |
|
12908 | /**
|
12909 | * Verifies a Timestamp message.
|
12910 | * @param message Plain object to verify
|
12911 | * @returns `null` if valid, otherwise the reason why it is not
|
12912 | */
|
12913 | public static verify(message: { [k: string]: any }): (string|null);
|
12914 |
|
12915 | /**
|
12916 | * Creates a Timestamp message from a plain object. Also converts values to their respective internal types.
|
12917 | * @param object Plain object
|
12918 | * @returns Timestamp
|
12919 | */
|
12920 | public static fromObject(object: { [k: string]: any }): google.protobuf.Timestamp;
|
12921 |
|
12922 | /**
|
12923 | * Creates a plain object from a Timestamp message. Also converts values to other types if specified.
|
12924 | * @param message Timestamp
|
12925 | * @param [options] Conversion options
|
12926 | * @returns Plain object
|
12927 | */
|
12928 | public static toObject(message: google.protobuf.Timestamp, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
12929 |
|
12930 | /**
|
12931 | * Converts this Timestamp to JSON.
|
12932 | * @returns JSON object
|
12933 | */
|
12934 | public toJSON(): { [k: string]: any };
|
12935 | }
|
12936 | }
|
12937 |
|
12938 | /** Namespace longrunning. */
|
12939 | namespace longrunning {
|
12940 |
|
12941 | /** Represents an Operations */
|
12942 | class Operations extends $protobuf.rpc.Service {
|
12943 |
|
12944 | /**
|
12945 | * Constructs a new Operations service.
|
12946 | * @param rpcImpl RPC implementation
|
12947 | * @param [requestDelimited=false] Whether requests are length-delimited
|
12948 | * @param [responseDelimited=false] Whether responses are length-delimited
|
12949 | */
|
12950 | constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
|
12951 |
|
12952 | /**
|
12953 | * Creates new Operations service using the specified rpc implementation.
|
12954 | * @param rpcImpl RPC implementation
|
12955 | * @param [requestDelimited=false] Whether requests are length-delimited
|
12956 | * @param [responseDelimited=false] Whether responses are length-delimited
|
12957 | * @returns RPC service. Useful where requests and/or responses are streamed.
|
12958 | */
|
12959 | public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Operations;
|
12960 |
|
12961 | /**
|
12962 | * Calls ListOperations.
|
12963 | * @param request ListOperationsRequest message or plain object
|
12964 | * @param callback Node-style callback called with the error, if any, and ListOperationsResponse
|
12965 | */
|
12966 | public listOperations(request: google.longrunning.IListOperationsRequest, callback: google.longrunning.Operations.ListOperationsCallback): void;
|
12967 |
|
12968 | /**
|
12969 | * Calls ListOperations.
|
12970 | * @param request ListOperationsRequest message or plain object
|
12971 | * @returns Promise
|
12972 | */
|
12973 | public listOperations(request: google.longrunning.IListOperationsRequest): Promise<google.longrunning.ListOperationsResponse>;
|
12974 |
|
12975 | /**
|
12976 | * Calls GetOperation.
|
12977 | * @param request GetOperationRequest message or plain object
|
12978 | * @param callback Node-style callback called with the error, if any, and Operation
|
12979 | */
|
12980 | public getOperation(request: google.longrunning.IGetOperationRequest, callback: google.longrunning.Operations.GetOperationCallback): void;
|
12981 |
|
12982 | /**
|
12983 | * Calls GetOperation.
|
12984 | * @param request GetOperationRequest message or plain object
|
12985 | * @returns Promise
|
12986 | */
|
12987 | public getOperation(request: google.longrunning.IGetOperationRequest): Promise<google.longrunning.Operation>;
|
12988 |
|
12989 | /**
|
12990 | * Calls DeleteOperation.
|
12991 | * @param request DeleteOperationRequest message or plain object
|
12992 | * @param callback Node-style callback called with the error, if any, and Empty
|
12993 | */
|
12994 | public deleteOperation(request: google.longrunning.IDeleteOperationRequest, callback: google.longrunning.Operations.DeleteOperationCallback): void;
|
12995 |
|
12996 | /**
|
12997 | * Calls DeleteOperation.
|
12998 | * @param request DeleteOperationRequest message or plain object
|
12999 | * @returns Promise
|
13000 | */
|
13001 | public deleteOperation(request: google.longrunning.IDeleteOperationRequest): Promise<google.protobuf.Empty>;
|
13002 |
|
13003 | /**
|
13004 | * Calls CancelOperation.
|
13005 | * @param request CancelOperationRequest message or plain object
|
13006 | * @param callback Node-style callback called with the error, if any, and Empty
|
13007 | */
|
13008 | public cancelOperation(request: google.longrunning.ICancelOperationRequest, callback: google.longrunning.Operations.CancelOperationCallback): void;
|
13009 |
|
13010 | /**
|
13011 | * Calls CancelOperation.
|
13012 | * @param request CancelOperationRequest message or plain object
|
13013 | * @returns Promise
|
13014 | */
|
13015 | public cancelOperation(request: google.longrunning.ICancelOperationRequest): Promise<google.protobuf.Empty>;
|
13016 |
|
13017 | /**
|
13018 | * Calls WaitOperation.
|
13019 | * @param request WaitOperationRequest message or plain object
|
13020 | * @param callback Node-style callback called with the error, if any, and Operation
|
13021 | */
|
13022 | public waitOperation(request: google.longrunning.IWaitOperationRequest, callback: google.longrunning.Operations.WaitOperationCallback): void;
|
13023 |
|
13024 | /**
|
13025 | * Calls WaitOperation.
|
13026 | * @param request WaitOperationRequest message or plain object
|
13027 | * @returns Promise
|
13028 | */
|
13029 | public waitOperation(request: google.longrunning.IWaitOperationRequest): Promise<google.longrunning.Operation>;
|
13030 | }
|
13031 |
|
13032 | namespace Operations {
|
13033 |
|
13034 | /**
|
13035 | * Callback as used by {@link google.longrunning.Operations#listOperations}.
|
13036 | * @param error Error, if any
|
13037 | * @param [response] ListOperationsResponse
|
13038 | */
|
13039 | type ListOperationsCallback = (error: (Error|null), response?: google.longrunning.ListOperationsResponse) => void;
|
13040 |
|
13041 | /**
|
13042 | * Callback as used by {@link google.longrunning.Operations#getOperation}.
|
13043 | * @param error Error, if any
|
13044 | * @param [response] Operation
|
13045 | */
|
13046 | type GetOperationCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
|
13047 |
|
13048 | /**
|
13049 | * Callback as used by {@link google.longrunning.Operations#deleteOperation}.
|
13050 | * @param error Error, if any
|
13051 | * @param [response] Empty
|
13052 | */
|
13053 | type DeleteOperationCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
|
13054 |
|
13055 | /**
|
13056 | * Callback as used by {@link google.longrunning.Operations#cancelOperation}.
|
13057 | * @param error Error, if any
|
13058 | * @param [response] Empty
|
13059 | */
|
13060 | type CancelOperationCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
|
13061 |
|
13062 | /**
|
13063 | * Callback as used by {@link google.longrunning.Operations#waitOperation}.
|
13064 | * @param error Error, if any
|
13065 | * @param [response] Operation
|
13066 | */
|
13067 | type WaitOperationCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
|
13068 | }
|
13069 |
|
13070 | /** Properties of an Operation. */
|
13071 | interface IOperation {
|
13072 |
|
13073 | /** Operation name */
|
13074 | name?: (string|null);
|
13075 |
|
13076 | /** Operation metadata */
|
13077 | metadata?: (google.protobuf.IAny|null);
|
13078 |
|
13079 | /** Operation done */
|
13080 | done?: (boolean|null);
|
13081 |
|
13082 | /** Operation error */
|
13083 | error?: (google.rpc.IStatus|null);
|
13084 |
|
13085 | /** Operation response */
|
13086 | response?: (google.protobuf.IAny|null);
|
13087 | }
|
13088 |
|
13089 | /** Represents an Operation. */
|
13090 | class Operation implements IOperation {
|
13091 |
|
13092 | /**
|
13093 | * Constructs a new Operation.
|
13094 | * @param [properties] Properties to set
|
13095 | */
|
13096 | constructor(properties?: google.longrunning.IOperation);
|
13097 |
|
13098 | /** Operation name. */
|
13099 | public name: string;
|
13100 |
|
13101 | /** Operation metadata. */
|
13102 | public metadata?: (google.protobuf.IAny|null);
|
13103 |
|
13104 | /** Operation done. */
|
13105 | public done: boolean;
|
13106 |
|
13107 | /** Operation error. */
|
13108 | public error?: (google.rpc.IStatus|null);
|
13109 |
|
13110 | /** Operation response. */
|
13111 | public response?: (google.protobuf.IAny|null);
|
13112 |
|
13113 | /** Operation result. */
|
13114 | public result?: ("error"|"response");
|
13115 |
|
13116 | /**
|
13117 | * Creates a new Operation instance using the specified properties.
|
13118 | * @param [properties] Properties to set
|
13119 | * @returns Operation instance
|
13120 | */
|
13121 | public static create(properties?: google.longrunning.IOperation): google.longrunning.Operation;
|
13122 |
|
13123 | /**
|
13124 | * Encodes the specified Operation message. Does not implicitly { google.longrunning.Operation.verify|verify} messages.
|
13125 | * message Operation message or plain object to encode
|
13126 | * [writer] Writer to encode to
|
13127 | * Writer
|
13128 | */
|
13129 | public static encode(message: google.longrunning.IOperation, writer?: $protobuf.Writer): $protobuf.Writer;
|
13130 |
|
13131 | /**
|
13132 | * Encodes the specified Operation message, length delimited. Does not implicitly {@link google.longrunning.Operation.verify|verify} messages.
|
13133 | * @param message Operation message or plain object to encode
|
13134 | * @param [writer] Writer to encode to
|
13135 | * @returns Writer
|
13136 | */
|
13137 | public static encodeDelimited(message: google.longrunning.IOperation, writer?: $protobuf.Writer): $protobuf.Writer;
|
13138 |
|
13139 | /**
|
13140 | * Decodes an Operation message from the specified reader or buffer.
|
13141 | * @param reader Reader or buffer to decode from
|
13142 | * @param [length] Message length if known beforehand
|
13143 | * @returns Operation
|
13144 | * @throws {Error} If the payload is not a reader or valid buffer
|
13145 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
13146 | */
|
13147 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.Operation;
|
13148 |
|
13149 | /**
|
13150 | * Decodes an Operation message from the specified reader or buffer, length delimited.
|
13151 | * @param reader Reader or buffer to decode from
|
13152 | * @returns Operation
|
13153 | * @throws {Error} If the payload is not a reader or valid buffer
|
13154 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
13155 | */
|
13156 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.Operation;
|
13157 |
|
13158 | /**
|
13159 | * Verifies an Operation message.
|
13160 | * @param message Plain object to verify
|
13161 | * @returns `null` if valid, otherwise the reason why it is not
|
13162 | */
|
13163 | public static verify(message: { [k: string]: any }): (string|null);
|
13164 |
|
13165 | /**
|
13166 | * Creates an Operation message from a plain object. Also converts values to their respective internal types.
|
13167 | * @param object Plain object
|
13168 | * @returns Operation
|
13169 | */
|
13170 | public static fromObject(object: { [k: string]: any }): google.longrunning.Operation;
|
13171 |
|
13172 | /**
|
13173 | * Creates a plain object from an Operation message. Also converts values to other types if specified.
|
13174 | * @param message Operation
|
13175 | * @param [options] Conversion options
|
13176 | * @returns Plain object
|
13177 | */
|
13178 | public static toObject(message: google.longrunning.Operation, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
13179 |
|
13180 | /**
|
13181 | * Converts this Operation to JSON.
|
13182 | * @returns JSON object
|
13183 | */
|
13184 | public toJSON(): { [k: string]: any };
|
13185 | }
|
13186 |
|
13187 | /** Properties of a GetOperationRequest. */
|
13188 | interface IGetOperationRequest {
|
13189 |
|
13190 | /** GetOperationRequest name */
|
13191 | name?: (string|null);
|
13192 | }
|
13193 |
|
13194 | /** Represents a GetOperationRequest. */
|
13195 | class GetOperationRequest implements IGetOperationRequest {
|
13196 |
|
13197 | /**
|
13198 | * Constructs a new GetOperationRequest.
|
13199 | * @param [properties] Properties to set
|
13200 | */
|
13201 | constructor(properties?: google.longrunning.IGetOperationRequest);
|
13202 |
|
13203 | /** GetOperationRequest name. */
|
13204 | public name: string;
|
13205 |
|
13206 | /**
|
13207 | * Creates a new GetOperationRequest instance using the specified properties.
|
13208 | * @param [properties] Properties to set
|
13209 | * @returns GetOperationRequest instance
|
13210 | */
|
13211 | public static create(properties?: google.longrunning.IGetOperationRequest): google.longrunning.GetOperationRequest;
|
13212 |
|
13213 | /**
|
13214 | * Encodes the specified GetOperationRequest message. Does not implicitly { google.longrunning.GetOperationRequest.verify|verify} messages.
|
13215 | * message GetOperationRequest message or plain object to encode
|
13216 | * [writer] Writer to encode to
|
13217 | * Writer
|
13218 | */
|
13219 | public static encode(message: google.longrunning.IGetOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
13220 |
|
13221 | /**
|
13222 | * Encodes the specified GetOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.GetOperationRequest.verify|verify} messages.
|
13223 | * @param message GetOperationRequest message or plain object to encode
|
13224 | * @param [writer] Writer to encode to
|
13225 | * @returns Writer
|
13226 | */
|
13227 | public static encodeDelimited(message: google.longrunning.IGetOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
13228 |
|
13229 | /**
|
13230 | * Decodes a GetOperationRequest message from the specified reader or buffer.
|
13231 | * @param reader Reader or buffer to decode from
|
13232 | * @param [length] Message length if known beforehand
|
13233 | * @returns GetOperationRequest
|
13234 | * @throws {Error} If the payload is not a reader or valid buffer
|
13235 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
13236 | */
|
13237 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.GetOperationRequest;
|
13238 |
|
13239 | /**
|
13240 | * Decodes a GetOperationRequest message from the specified reader or buffer, length delimited.
|
13241 | * @param reader Reader or buffer to decode from
|
13242 | * @returns GetOperationRequest
|
13243 | * @throws {Error} If the payload is not a reader or valid buffer
|
13244 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
13245 | */
|
13246 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.GetOperationRequest;
|
13247 |
|
13248 | /**
|
13249 | * Verifies a GetOperationRequest message.
|
13250 | * @param message Plain object to verify
|
13251 | * @returns `null` if valid, otherwise the reason why it is not
|
13252 | */
|
13253 | public static verify(message: { [k: string]: any }): (string|null);
|
13254 |
|
13255 | /**
|
13256 | * Creates a GetOperationRequest message from a plain object. Also converts values to their respective internal types.
|
13257 | * @param object Plain object
|
13258 | * @returns GetOperationRequest
|
13259 | */
|
13260 | public static fromObject(object: { [k: string]: any }): google.longrunning.GetOperationRequest;
|
13261 |
|
13262 | /**
|
13263 | * Creates a plain object from a GetOperationRequest message. Also converts values to other types if specified.
|
13264 | * @param message GetOperationRequest
|
13265 | * @param [options] Conversion options
|
13266 | * @returns Plain object
|
13267 | */
|
13268 | public static toObject(message: google.longrunning.GetOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
13269 |
|
13270 | /**
|
13271 | * Converts this GetOperationRequest to JSON.
|
13272 | * @returns JSON object
|
13273 | */
|
13274 | public toJSON(): { [k: string]: any };
|
13275 | }
|
13276 |
|
13277 | /** Properties of a ListOperationsRequest. */
|
13278 | interface IListOperationsRequest {
|
13279 |
|
13280 | /** ListOperationsRequest name */
|
13281 | name?: (string|null);
|
13282 |
|
13283 | /** ListOperationsRequest filter */
|
13284 | filter?: (string|null);
|
13285 |
|
13286 | /** ListOperationsRequest pageSize */
|
13287 | pageSize?: (number|null);
|
13288 |
|
13289 | /** ListOperationsRequest pageToken */
|
13290 | pageToken?: (string|null);
|
13291 | }
|
13292 |
|
13293 | /** Represents a ListOperationsRequest. */
|
13294 | class ListOperationsRequest implements IListOperationsRequest {
|
13295 |
|
13296 | /**
|
13297 | * Constructs a new ListOperationsRequest.
|
13298 | * @param [properties] Properties to set
|
13299 | */
|
13300 | constructor(properties?: google.longrunning.IListOperationsRequest);
|
13301 |
|
13302 | /** ListOperationsRequest name. */
|
13303 | public name: string;
|
13304 |
|
13305 | /** ListOperationsRequest filter. */
|
13306 | public filter: string;
|
13307 |
|
13308 | /** ListOperationsRequest pageSize. */
|
13309 | public pageSize: number;
|
13310 |
|
13311 | /** ListOperationsRequest pageToken. */
|
13312 | public pageToken: string;
|
13313 |
|
13314 | /**
|
13315 | * Creates a new ListOperationsRequest instance using the specified properties.
|
13316 | * @param [properties] Properties to set
|
13317 | * @returns ListOperationsRequest instance
|
13318 | */
|
13319 | public static create(properties?: google.longrunning.IListOperationsRequest): google.longrunning.ListOperationsRequest;
|
13320 |
|
13321 | /**
|
13322 | * Encodes the specified ListOperationsRequest message. Does not implicitly { google.longrunning.ListOperationsRequest.verify|verify} messages.
|
13323 | * message ListOperationsRequest message or plain object to encode
|
13324 | * [writer] Writer to encode to
|
13325 | * Writer
|
13326 | */
|
13327 | public static encode(message: google.longrunning.IListOperationsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
13328 |
|
13329 | /**
|
13330 | * Encodes the specified ListOperationsRequest message, length delimited. Does not implicitly {@link google.longrunning.ListOperationsRequest.verify|verify} messages.
|
13331 | * @param message ListOperationsRequest message or plain object to encode
|
13332 | * @param [writer] Writer to encode to
|
13333 | * @returns Writer
|
13334 | */
|
13335 | public static encodeDelimited(message: google.longrunning.IListOperationsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
13336 |
|
13337 | /**
|
13338 | * Decodes a ListOperationsRequest message from the specified reader or buffer.
|
13339 | * @param reader Reader or buffer to decode from
|
13340 | * @param [length] Message length if known beforehand
|
13341 | * @returns ListOperationsRequest
|
13342 | * @throws {Error} If the payload is not a reader or valid buffer
|
13343 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
13344 | */
|
13345 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.ListOperationsRequest;
|
13346 |
|
13347 | /**
|
13348 | * Decodes a ListOperationsRequest message from the specified reader or buffer, length delimited.
|
13349 | * @param reader Reader or buffer to decode from
|
13350 | * @returns ListOperationsRequest
|
13351 | * @throws {Error} If the payload is not a reader or valid buffer
|
13352 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
13353 | */
|
13354 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.ListOperationsRequest;
|
13355 |
|
13356 | /**
|
13357 | * Verifies a ListOperationsRequest message.
|
13358 | * @param message Plain object to verify
|
13359 | * @returns `null` if valid, otherwise the reason why it is not
|
13360 | */
|
13361 | public static verify(message: { [k: string]: any }): (string|null);
|
13362 |
|
13363 | /**
|
13364 | * Creates a ListOperationsRequest message from a plain object. Also converts values to their respective internal types.
|
13365 | * @param object Plain object
|
13366 | * @returns ListOperationsRequest
|
13367 | */
|
13368 | public static fromObject(object: { [k: string]: any }): google.longrunning.ListOperationsRequest;
|
13369 |
|
13370 | /**
|
13371 | * Creates a plain object from a ListOperationsRequest message. Also converts values to other types if specified.
|
13372 | * @param message ListOperationsRequest
|
13373 | * @param [options] Conversion options
|
13374 | * @returns Plain object
|
13375 | */
|
13376 | public static toObject(message: google.longrunning.ListOperationsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
13377 |
|
13378 | /**
|
13379 | * Converts this ListOperationsRequest to JSON.
|
13380 | * @returns JSON object
|
13381 | */
|
13382 | public toJSON(): { [k: string]: any };
|
13383 | }
|
13384 |
|
13385 | /** Properties of a ListOperationsResponse. */
|
13386 | interface IListOperationsResponse {
|
13387 |
|
13388 | /** ListOperationsResponse operations */
|
13389 | operations?: (google.longrunning.IOperation[]|null);
|
13390 |
|
13391 | /** ListOperationsResponse nextPageToken */
|
13392 | nextPageToken?: (string|null);
|
13393 | }
|
13394 |
|
13395 | /** Represents a ListOperationsResponse. */
|
13396 | class ListOperationsResponse implements IListOperationsResponse {
|
13397 |
|
13398 | /**
|
13399 | * Constructs a new ListOperationsResponse.
|
13400 | * @param [properties] Properties to set
|
13401 | */
|
13402 | constructor(properties?: google.longrunning.IListOperationsResponse);
|
13403 |
|
13404 | /** ListOperationsResponse operations. */
|
13405 | public operations: google.longrunning.IOperation[];
|
13406 |
|
13407 | /** ListOperationsResponse nextPageToken. */
|
13408 | public nextPageToken: string;
|
13409 |
|
13410 | /**
|
13411 | * Creates a new ListOperationsResponse instance using the specified properties.
|
13412 | * @param [properties] Properties to set
|
13413 | * @returns ListOperationsResponse instance
|
13414 | */
|
13415 | public static create(properties?: google.longrunning.IListOperationsResponse): google.longrunning.ListOperationsResponse;
|
13416 |
|
13417 | /**
|
13418 | * Encodes the specified ListOperationsResponse message. Does not implicitly { google.longrunning.ListOperationsResponse.verify|verify} messages.
|
13419 | * message ListOperationsResponse message or plain object to encode
|
13420 | * [writer] Writer to encode to
|
13421 | * Writer
|
13422 | */
|
13423 | public static encode(message: google.longrunning.IListOperationsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
13424 |
|
13425 | /**
|
13426 | * Encodes the specified ListOperationsResponse message, length delimited. Does not implicitly {@link google.longrunning.ListOperationsResponse.verify|verify} messages.
|
13427 | * @param message ListOperationsResponse message or plain object to encode
|
13428 | * @param [writer] Writer to encode to
|
13429 | * @returns Writer
|
13430 | */
|
13431 | public static encodeDelimited(message: google.longrunning.IListOperationsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
13432 |
|
13433 | /**
|
13434 | * Decodes a ListOperationsResponse message from the specified reader or buffer.
|
13435 | * @param reader Reader or buffer to decode from
|
13436 | * @param [length] Message length if known beforehand
|
13437 | * @returns ListOperationsResponse
|
13438 | * @throws {Error} If the payload is not a reader or valid buffer
|
13439 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
13440 | */
|
13441 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.ListOperationsResponse;
|
13442 |
|
13443 | /**
|
13444 | * Decodes a ListOperationsResponse message from the specified reader or buffer, length delimited.
|
13445 | * @param reader Reader or buffer to decode from
|
13446 | * @returns ListOperationsResponse
|
13447 | * @throws {Error} If the payload is not a reader or valid buffer
|
13448 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
13449 | */
|
13450 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.ListOperationsResponse;
|
13451 |
|
13452 | /**
|
13453 | * Verifies a ListOperationsResponse message.
|
13454 | * @param message Plain object to verify
|
13455 | * @returns `null` if valid, otherwise the reason why it is not
|
13456 | */
|
13457 | public static verify(message: { [k: string]: any }): (string|null);
|
13458 |
|
13459 | /**
|
13460 | * Creates a ListOperationsResponse message from a plain object. Also converts values to their respective internal types.
|
13461 | * @param object Plain object
|
13462 | * @returns ListOperationsResponse
|
13463 | */
|
13464 | public static fromObject(object: { [k: string]: any }): google.longrunning.ListOperationsResponse;
|
13465 |
|
13466 | /**
|
13467 | * Creates a plain object from a ListOperationsResponse message. Also converts values to other types if specified.
|
13468 | * @param message ListOperationsResponse
|
13469 | * @param [options] Conversion options
|
13470 | * @returns Plain object
|
13471 | */
|
13472 | public static toObject(message: google.longrunning.ListOperationsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
13473 |
|
13474 | /**
|
13475 | * Converts this ListOperationsResponse to JSON.
|
13476 | * @returns JSON object
|
13477 | */
|
13478 | public toJSON(): { [k: string]: any };
|
13479 | }
|
13480 |
|
13481 | /** Properties of a CancelOperationRequest. */
|
13482 | interface ICancelOperationRequest {
|
13483 |
|
13484 | /** CancelOperationRequest name */
|
13485 | name?: (string|null);
|
13486 | }
|
13487 |
|
13488 | /** Represents a CancelOperationRequest. */
|
13489 | class CancelOperationRequest implements ICancelOperationRequest {
|
13490 |
|
13491 | /**
|
13492 | * Constructs a new CancelOperationRequest.
|
13493 | * @param [properties] Properties to set
|
13494 | */
|
13495 | constructor(properties?: google.longrunning.ICancelOperationRequest);
|
13496 |
|
13497 | /** CancelOperationRequest name. */
|
13498 | public name: string;
|
13499 |
|
13500 | /**
|
13501 | * Creates a new CancelOperationRequest instance using the specified properties.
|
13502 | * @param [properties] Properties to set
|
13503 | * @returns CancelOperationRequest instance
|
13504 | */
|
13505 | public static create(properties?: google.longrunning.ICancelOperationRequest): google.longrunning.CancelOperationRequest;
|
13506 |
|
13507 | /**
|
13508 | * Encodes the specified CancelOperationRequest message. Does not implicitly { google.longrunning.CancelOperationRequest.verify|verify} messages.
|
13509 | * message CancelOperationRequest message or plain object to encode
|
13510 | * [writer] Writer to encode to
|
13511 | * Writer
|
13512 | */
|
13513 | public static encode(message: google.longrunning.ICancelOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
13514 |
|
13515 | /**
|
13516 | * Encodes the specified CancelOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.CancelOperationRequest.verify|verify} messages.
|
13517 | * @param message CancelOperationRequest message or plain object to encode
|
13518 | * @param [writer] Writer to encode to
|
13519 | * @returns Writer
|
13520 | */
|
13521 | public static encodeDelimited(message: google.longrunning.ICancelOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
13522 |
|
13523 | /**
|
13524 | * Decodes a CancelOperationRequest message from the specified reader or buffer.
|
13525 | * @param reader Reader or buffer to decode from
|
13526 | * @param [length] Message length if known beforehand
|
13527 | * @returns CancelOperationRequest
|
13528 | * @throws {Error} If the payload is not a reader or valid buffer
|
13529 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
13530 | */
|
13531 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.CancelOperationRequest;
|
13532 |
|
13533 | /**
|
13534 | * Decodes a CancelOperationRequest message from the specified reader or buffer, length delimited.
|
13535 | * @param reader Reader or buffer to decode from
|
13536 | * @returns CancelOperationRequest
|
13537 | * @throws {Error} If the payload is not a reader or valid buffer
|
13538 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
13539 | */
|
13540 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.CancelOperationRequest;
|
13541 |
|
13542 | /**
|
13543 | * Verifies a CancelOperationRequest message.
|
13544 | * @param message Plain object to verify
|
13545 | * @returns `null` if valid, otherwise the reason why it is not
|
13546 | */
|
13547 | public static verify(message: { [k: string]: any }): (string|null);
|
13548 |
|
13549 | /**
|
13550 | * Creates a CancelOperationRequest message from a plain object. Also converts values to their respective internal types.
|
13551 | * @param object Plain object
|
13552 | * @returns CancelOperationRequest
|
13553 | */
|
13554 | public static fromObject(object: { [k: string]: any }): google.longrunning.CancelOperationRequest;
|
13555 |
|
13556 | /**
|
13557 | * Creates a plain object from a CancelOperationRequest message. Also converts values to other types if specified.
|
13558 | * @param message CancelOperationRequest
|
13559 | * @param [options] Conversion options
|
13560 | * @returns Plain object
|
13561 | */
|
13562 | public static toObject(message: google.longrunning.CancelOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
13563 |
|
13564 | /**
|
13565 | * Converts this CancelOperationRequest to JSON.
|
13566 | * @returns JSON object
|
13567 | */
|
13568 | public toJSON(): { [k: string]: any };
|
13569 | }
|
13570 |
|
13571 | /** Properties of a DeleteOperationRequest. */
|
13572 | interface IDeleteOperationRequest {
|
13573 |
|
13574 | /** DeleteOperationRequest name */
|
13575 | name?: (string|null);
|
13576 | }
|
13577 |
|
13578 | /** Represents a DeleteOperationRequest. */
|
13579 | class DeleteOperationRequest implements IDeleteOperationRequest {
|
13580 |
|
13581 | /**
|
13582 | * Constructs a new DeleteOperationRequest.
|
13583 | * @param [properties] Properties to set
|
13584 | */
|
13585 | constructor(properties?: google.longrunning.IDeleteOperationRequest);
|
13586 |
|
13587 | /** DeleteOperationRequest name. */
|
13588 | public name: string;
|
13589 |
|
13590 | /**
|
13591 | * Creates a new DeleteOperationRequest instance using the specified properties.
|
13592 | * @param [properties] Properties to set
|
13593 | * @returns DeleteOperationRequest instance
|
13594 | */
|
13595 | public static create(properties?: google.longrunning.IDeleteOperationRequest): google.longrunning.DeleteOperationRequest;
|
13596 |
|
13597 | /**
|
13598 | * Encodes the specified DeleteOperationRequest message. Does not implicitly { google.longrunning.DeleteOperationRequest.verify|verify} messages.
|
13599 | * message DeleteOperationRequest message or plain object to encode
|
13600 | * [writer] Writer to encode to
|
13601 | * Writer
|
13602 | */
|
13603 | public static encode(message: google.longrunning.IDeleteOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
13604 |
|
13605 | /**
|
13606 | * Encodes the specified DeleteOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.DeleteOperationRequest.verify|verify} messages.
|
13607 | * @param message DeleteOperationRequest message or plain object to encode
|
13608 | * @param [writer] Writer to encode to
|
13609 | * @returns Writer
|
13610 | */
|
13611 | public static encodeDelimited(message: google.longrunning.IDeleteOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
13612 |
|
13613 | /**
|
13614 | * Decodes a DeleteOperationRequest message from the specified reader or buffer.
|
13615 | * @param reader Reader or buffer to decode from
|
13616 | * @param [length] Message length if known beforehand
|
13617 | * @returns DeleteOperationRequest
|
13618 | * @throws {Error} If the payload is not a reader or valid buffer
|
13619 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
13620 | */
|
13621 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.DeleteOperationRequest;
|
13622 |
|
13623 | /**
|
13624 | * Decodes a DeleteOperationRequest message from the specified reader or buffer, length delimited.
|
13625 | * @param reader Reader or buffer to decode from
|
13626 | * @returns DeleteOperationRequest
|
13627 | * @throws {Error} If the payload is not a reader or valid buffer
|
13628 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
13629 | */
|
13630 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.DeleteOperationRequest;
|
13631 |
|
13632 | /**
|
13633 | * Verifies a DeleteOperationRequest message.
|
13634 | * @param message Plain object to verify
|
13635 | * @returns `null` if valid, otherwise the reason why it is not
|
13636 | */
|
13637 | public static verify(message: { [k: string]: any }): (string|null);
|
13638 |
|
13639 | /**
|
13640 | * Creates a DeleteOperationRequest message from a plain object. Also converts values to their respective internal types.
|
13641 | * @param object Plain object
|
13642 | * @returns DeleteOperationRequest
|
13643 | */
|
13644 | public static fromObject(object: { [k: string]: any }): google.longrunning.DeleteOperationRequest;
|
13645 |
|
13646 | /**
|
13647 | * Creates a plain object from a DeleteOperationRequest message. Also converts values to other types if specified.
|
13648 | * @param message DeleteOperationRequest
|
13649 | * @param [options] Conversion options
|
13650 | * @returns Plain object
|
13651 | */
|
13652 | public static toObject(message: google.longrunning.DeleteOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
13653 |
|
13654 | /**
|
13655 | * Converts this DeleteOperationRequest to JSON.
|
13656 | * @returns JSON object
|
13657 | */
|
13658 | public toJSON(): { [k: string]: any };
|
13659 | }
|
13660 |
|
13661 | /** Properties of a WaitOperationRequest. */
|
13662 | interface IWaitOperationRequest {
|
13663 |
|
13664 | /** WaitOperationRequest name */
|
13665 | name?: (string|null);
|
13666 |
|
13667 | /** WaitOperationRequest timeout */
|
13668 | timeout?: (google.protobuf.IDuration|null);
|
13669 | }
|
13670 |
|
13671 | /** Represents a WaitOperationRequest. */
|
13672 | class WaitOperationRequest implements IWaitOperationRequest {
|
13673 |
|
13674 | /**
|
13675 | * Constructs a new WaitOperationRequest.
|
13676 | * @param [properties] Properties to set
|
13677 | */
|
13678 | constructor(properties?: google.longrunning.IWaitOperationRequest);
|
13679 |
|
13680 | /** WaitOperationRequest name. */
|
13681 | public name: string;
|
13682 |
|
13683 | /** WaitOperationRequest timeout. */
|
13684 | public timeout?: (google.protobuf.IDuration|null);
|
13685 |
|
13686 | /**
|
13687 | * Creates a new WaitOperationRequest instance using the specified properties.
|
13688 | * @param [properties] Properties to set
|
13689 | * @returns WaitOperationRequest instance
|
13690 | */
|
13691 | public static create(properties?: google.longrunning.IWaitOperationRequest): google.longrunning.WaitOperationRequest;
|
13692 |
|
13693 | /**
|
13694 | * Encodes the specified WaitOperationRequest message. Does not implicitly { google.longrunning.WaitOperationRequest.verify|verify} messages.
|
13695 | * message WaitOperationRequest message or plain object to encode
|
13696 | * [writer] Writer to encode to
|
13697 | * Writer
|
13698 | */
|
13699 | public static encode(message: google.longrunning.IWaitOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
13700 |
|
13701 | /**
|
13702 | * Encodes the specified WaitOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.WaitOperationRequest.verify|verify} messages.
|
13703 | * @param message WaitOperationRequest message or plain object to encode
|
13704 | * @param [writer] Writer to encode to
|
13705 | * @returns Writer
|
13706 | */
|
13707 | public static encodeDelimited(message: google.longrunning.IWaitOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
13708 |
|
13709 | /**
|
13710 | * Decodes a WaitOperationRequest message from the specified reader or buffer.
|
13711 | * @param reader Reader or buffer to decode from
|
13712 | * @param [length] Message length if known beforehand
|
13713 | * @returns WaitOperationRequest
|
13714 | * @throws {Error} If the payload is not a reader or valid buffer
|
13715 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
13716 | */
|
13717 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.WaitOperationRequest;
|
13718 |
|
13719 | /**
|
13720 | * Decodes a WaitOperationRequest message from the specified reader or buffer, length delimited.
|
13721 | * @param reader Reader or buffer to decode from
|
13722 | * @returns WaitOperationRequest
|
13723 | * @throws {Error} If the payload is not a reader or valid buffer
|
13724 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
13725 | */
|
13726 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.WaitOperationRequest;
|
13727 |
|
13728 | /**
|
13729 | * Verifies a WaitOperationRequest message.
|
13730 | * @param message Plain object to verify
|
13731 | * @returns `null` if valid, otherwise the reason why it is not
|
13732 | */
|
13733 | public static verify(message: { [k: string]: any }): (string|null);
|
13734 |
|
13735 | /**
|
13736 | * Creates a WaitOperationRequest message from a plain object. Also converts values to their respective internal types.
|
13737 | * @param object Plain object
|
13738 | * @returns WaitOperationRequest
|
13739 | */
|
13740 | public static fromObject(object: { [k: string]: any }): google.longrunning.WaitOperationRequest;
|
13741 |
|
13742 | /**
|
13743 | * Creates a plain object from a WaitOperationRequest message. Also converts values to other types if specified.
|
13744 | * @param message WaitOperationRequest
|
13745 | * @param [options] Conversion options
|
13746 | * @returns Plain object
|
13747 | */
|
13748 | public static toObject(message: google.longrunning.WaitOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
13749 |
|
13750 | /**
|
13751 | * Converts this WaitOperationRequest to JSON.
|
13752 | * @returns JSON object
|
13753 | */
|
13754 | public toJSON(): { [k: string]: any };
|
13755 | }
|
13756 |
|
13757 | /** Properties of an OperationInfo. */
|
13758 | interface IOperationInfo {
|
13759 |
|
13760 | /** OperationInfo responseType */
|
13761 | responseType?: (string|null);
|
13762 |
|
13763 | /** OperationInfo metadataType */
|
13764 | metadataType?: (string|null);
|
13765 | }
|
13766 |
|
13767 | /** Represents an OperationInfo. */
|
13768 | class OperationInfo implements IOperationInfo {
|
13769 |
|
13770 | /**
|
13771 | * Constructs a new OperationInfo.
|
13772 | * @param [properties] Properties to set
|
13773 | */
|
13774 | constructor(properties?: google.longrunning.IOperationInfo);
|
13775 |
|
13776 | /** OperationInfo responseType. */
|
13777 | public responseType: string;
|
13778 |
|
13779 | /** OperationInfo metadataType. */
|
13780 | public metadataType: string;
|
13781 |
|
13782 | /**
|
13783 | * Creates a new OperationInfo instance using the specified properties.
|
13784 | * @param [properties] Properties to set
|
13785 | * @returns OperationInfo instance
|
13786 | */
|
13787 | public static create(properties?: google.longrunning.IOperationInfo): google.longrunning.OperationInfo;
|
13788 |
|
13789 | /**
|
13790 | * Encodes the specified OperationInfo message. Does not implicitly { google.longrunning.OperationInfo.verify|verify} messages.
|
13791 | * message OperationInfo message or plain object to encode
|
13792 | * [writer] Writer to encode to
|
13793 | * Writer
|
13794 | */
|
13795 | public static encode(message: google.longrunning.IOperationInfo, writer?: $protobuf.Writer): $protobuf.Writer;
|
13796 |
|
13797 | /**
|
13798 | * Encodes the specified OperationInfo message, length delimited. Does not implicitly {@link google.longrunning.OperationInfo.verify|verify} messages.
|
13799 | * @param message OperationInfo message or plain object to encode
|
13800 | * @param [writer] Writer to encode to
|
13801 | * @returns Writer
|
13802 | */
|
13803 | public static encodeDelimited(message: google.longrunning.IOperationInfo, writer?: $protobuf.Writer): $protobuf.Writer;
|
13804 |
|
13805 | /**
|
13806 | * Decodes an OperationInfo message from the specified reader or buffer.
|
13807 | * @param reader Reader or buffer to decode from
|
13808 | * @param [length] Message length if known beforehand
|
13809 | * @returns OperationInfo
|
13810 | * @throws {Error} If the payload is not a reader or valid buffer
|
13811 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
13812 | */
|
13813 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.OperationInfo;
|
13814 |
|
13815 | /**
|
13816 | * Decodes an OperationInfo message from the specified reader or buffer, length delimited.
|
13817 | * @param reader Reader or buffer to decode from
|
13818 | * @returns OperationInfo
|
13819 | * @throws {Error} If the payload is not a reader or valid buffer
|
13820 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
13821 | */
|
13822 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.OperationInfo;
|
13823 |
|
13824 | /**
|
13825 | * Verifies an OperationInfo message.
|
13826 | * @param message Plain object to verify
|
13827 | * @returns `null` if valid, otherwise the reason why it is not
|
13828 | */
|
13829 | public static verify(message: { [k: string]: any }): (string|null);
|
13830 |
|
13831 | /**
|
13832 | * Creates an OperationInfo message from a plain object. Also converts values to their respective internal types.
|
13833 | * @param object Plain object
|
13834 | * @returns OperationInfo
|
13835 | */
|
13836 | public static fromObject(object: { [k: string]: any }): google.longrunning.OperationInfo;
|
13837 |
|
13838 | /**
|
13839 | * Creates a plain object from an OperationInfo message. Also converts values to other types if specified.
|
13840 | * @param message OperationInfo
|
13841 | * @param [options] Conversion options
|
13842 | * @returns Plain object
|
13843 | */
|
13844 | public static toObject(message: google.longrunning.OperationInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
13845 |
|
13846 | /**
|
13847 | * Converts this OperationInfo to JSON.
|
13848 | * @returns JSON object
|
13849 | */
|
13850 | public toJSON(): { [k: string]: any };
|
13851 | }
|
13852 | }
|
13853 |
|
13854 | /** Namespace rpc. */
|
13855 | namespace rpc {
|
13856 |
|
13857 | /** Properties of a Status. */
|
13858 | interface IStatus {
|
13859 |
|
13860 | /** Status code */
|
13861 | code?: (number|null);
|
13862 |
|
13863 | /** Status message */
|
13864 | message?: (string|null);
|
13865 |
|
13866 | /** Status details */
|
13867 | details?: (google.protobuf.IAny[]|null);
|
13868 | }
|
13869 |
|
13870 | /** Represents a Status. */
|
13871 | class Status implements IStatus {
|
13872 |
|
13873 | /**
|
13874 | * Constructs a new Status.
|
13875 | * @param [properties] Properties to set
|
13876 | */
|
13877 | constructor(properties?: google.rpc.IStatus);
|
13878 |
|
13879 | /** Status code. */
|
13880 | public code: number;
|
13881 |
|
13882 | /** Status message. */
|
13883 | public message: string;
|
13884 |
|
13885 | /** Status details. */
|
13886 | public details: google.protobuf.IAny[];
|
13887 |
|
13888 | /**
|
13889 | * Creates a new Status instance using the specified properties.
|
13890 | * @param [properties] Properties to set
|
13891 | * @returns Status instance
|
13892 | */
|
13893 | public static create(properties?: google.rpc.IStatus): google.rpc.Status;
|
13894 |
|
13895 | /**
|
13896 | * Encodes the specified Status message. Does not implicitly { google.rpc.Status.verify|verify} messages.
|
13897 | * message Status message or plain object to encode
|
13898 | * [writer] Writer to encode to
|
13899 | * Writer
|
13900 | */
|
13901 | public static encode(message: google.rpc.IStatus, writer?: $protobuf.Writer): $protobuf.Writer;
|
13902 |
|
13903 | /**
|
13904 | * Encodes the specified Status message, length delimited. Does not implicitly {@link google.rpc.Status.verify|verify} messages.
|
13905 | * @param message Status message or plain object to encode
|
13906 | * @param [writer] Writer to encode to
|
13907 | * @returns Writer
|
13908 | */
|
13909 | public static encodeDelimited(message: google.rpc.IStatus, writer?: $protobuf.Writer): $protobuf.Writer;
|
13910 |
|
13911 | /**
|
13912 | * Decodes a Status message from the specified reader or buffer.
|
13913 | * @param reader Reader or buffer to decode from
|
13914 | * @param [length] Message length if known beforehand
|
13915 | * @returns Status
|
13916 | * @throws {Error} If the payload is not a reader or valid buffer
|
13917 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
13918 | */
|
13919 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.rpc.Status;
|
13920 |
|
13921 | /**
|
13922 | * Decodes a Status message from the specified reader or buffer, length delimited.
|
13923 | * @param reader Reader or buffer to decode from
|
13924 | * @returns Status
|
13925 | * @throws {Error} If the payload is not a reader or valid buffer
|
13926 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
13927 | */
|
13928 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.rpc.Status;
|
13929 |
|
13930 | /**
|
13931 | * Verifies a Status message.
|
13932 | * @param message Plain object to verify
|
13933 | * @returns `null` if valid, otherwise the reason why it is not
|
13934 | */
|
13935 | public static verify(message: { [k: string]: any }): (string|null);
|
13936 |
|
13937 | /**
|
13938 | * Creates a Status message from a plain object. Also converts values to their respective internal types.
|
13939 | * @param object Plain object
|
13940 | * @returns Status
|
13941 | */
|
13942 | public static fromObject(object: { [k: string]: any }): google.rpc.Status;
|
13943 |
|
13944 | /**
|
13945 | * Creates a plain object from a Status message. Also converts values to other types if specified.
|
13946 | * @param message Status
|
13947 | * @param [options] Conversion options
|
13948 | * @returns Plain object
|
13949 | */
|
13950 | public static toObject(message: google.rpc.Status, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
13951 |
|
13952 | /**
|
13953 | * Converts this Status to JSON.
|
13954 | * @returns JSON object
|
13955 | */
|
13956 | public toJSON(): { [k: string]: any };
|
13957 | }
|
13958 | }
|
13959 | }
|