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 language. */
|
24 | namespace language {
|
25 |
|
26 | /** Namespace v1. */
|
27 | namespace v1 {
|
28 |
|
29 | /** Represents a LanguageService */
|
30 | class LanguageService extends $protobuf.rpc.Service {
|
31 |
|
32 | /**
|
33 | * Constructs a new LanguageService 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 LanguageService 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): LanguageService;
|
48 |
|
49 | /**
|
50 | * Calls AnalyzeSentiment.
|
51 | * @param request AnalyzeSentimentRequest message or plain object
|
52 | * @param callback Node-style callback called with the error, if any, and AnalyzeSentimentResponse
|
53 | */
|
54 | public analyzeSentiment(request: google.cloud.language.v1.IAnalyzeSentimentRequest, callback: google.cloud.language.v1.LanguageService.AnalyzeSentimentCallback): void;
|
55 |
|
56 | /**
|
57 | * Calls AnalyzeSentiment.
|
58 | * @param request AnalyzeSentimentRequest message or plain object
|
59 | * @returns Promise
|
60 | */
|
61 | public analyzeSentiment(request: google.cloud.language.v1.IAnalyzeSentimentRequest): Promise<google.cloud.language.v1.AnalyzeSentimentResponse>;
|
62 |
|
63 | /**
|
64 | * Calls AnalyzeEntities.
|
65 | * @param request AnalyzeEntitiesRequest message or plain object
|
66 | * @param callback Node-style callback called with the error, if any, and AnalyzeEntitiesResponse
|
67 | */
|
68 | public analyzeEntities(request: google.cloud.language.v1.IAnalyzeEntitiesRequest, callback: google.cloud.language.v1.LanguageService.AnalyzeEntitiesCallback): void;
|
69 |
|
70 | /**
|
71 | * Calls AnalyzeEntities.
|
72 | * @param request AnalyzeEntitiesRequest message or plain object
|
73 | * @returns Promise
|
74 | */
|
75 | public analyzeEntities(request: google.cloud.language.v1.IAnalyzeEntitiesRequest): Promise<google.cloud.language.v1.AnalyzeEntitiesResponse>;
|
76 |
|
77 | /**
|
78 | * Calls AnalyzeEntitySentiment.
|
79 | * @param request AnalyzeEntitySentimentRequest message or plain object
|
80 | * @param callback Node-style callback called with the error, if any, and AnalyzeEntitySentimentResponse
|
81 | */
|
82 | public analyzeEntitySentiment(request: google.cloud.language.v1.IAnalyzeEntitySentimentRequest, callback: google.cloud.language.v1.LanguageService.AnalyzeEntitySentimentCallback): void;
|
83 |
|
84 | /**
|
85 | * Calls AnalyzeEntitySentiment.
|
86 | * @param request AnalyzeEntitySentimentRequest message or plain object
|
87 | * @returns Promise
|
88 | */
|
89 | public analyzeEntitySentiment(request: google.cloud.language.v1.IAnalyzeEntitySentimentRequest): Promise<google.cloud.language.v1.AnalyzeEntitySentimentResponse>;
|
90 |
|
91 | /**
|
92 | * Calls AnalyzeSyntax.
|
93 | * @param request AnalyzeSyntaxRequest message or plain object
|
94 | * @param callback Node-style callback called with the error, if any, and AnalyzeSyntaxResponse
|
95 | */
|
96 | public analyzeSyntax(request: google.cloud.language.v1.IAnalyzeSyntaxRequest, callback: google.cloud.language.v1.LanguageService.AnalyzeSyntaxCallback): void;
|
97 |
|
98 | /**
|
99 | * Calls AnalyzeSyntax.
|
100 | * @param request AnalyzeSyntaxRequest message or plain object
|
101 | * @returns Promise
|
102 | */
|
103 | public analyzeSyntax(request: google.cloud.language.v1.IAnalyzeSyntaxRequest): Promise<google.cloud.language.v1.AnalyzeSyntaxResponse>;
|
104 |
|
105 | /**
|
106 | * Calls ClassifyText.
|
107 | * @param request ClassifyTextRequest message or plain object
|
108 | * @param callback Node-style callback called with the error, if any, and ClassifyTextResponse
|
109 | */
|
110 | public classifyText(request: google.cloud.language.v1.IClassifyTextRequest, callback: google.cloud.language.v1.LanguageService.ClassifyTextCallback): void;
|
111 |
|
112 | /**
|
113 | * Calls ClassifyText.
|
114 | * @param request ClassifyTextRequest message or plain object
|
115 | * @returns Promise
|
116 | */
|
117 | public classifyText(request: google.cloud.language.v1.IClassifyTextRequest): Promise<google.cloud.language.v1.ClassifyTextResponse>;
|
118 |
|
119 | /**
|
120 | * Calls AnnotateText.
|
121 | * @param request AnnotateTextRequest message or plain object
|
122 | * @param callback Node-style callback called with the error, if any, and AnnotateTextResponse
|
123 | */
|
124 | public annotateText(request: google.cloud.language.v1.IAnnotateTextRequest, callback: google.cloud.language.v1.LanguageService.AnnotateTextCallback): void;
|
125 |
|
126 | /**
|
127 | * Calls AnnotateText.
|
128 | * @param request AnnotateTextRequest message or plain object
|
129 | * @returns Promise
|
130 | */
|
131 | public annotateText(request: google.cloud.language.v1.IAnnotateTextRequest): Promise<google.cloud.language.v1.AnnotateTextResponse>;
|
132 | }
|
133 |
|
134 | namespace LanguageService {
|
135 |
|
136 | /**
|
137 | * Callback as used by {@link google.cloud.language.v1.LanguageService#analyzeSentiment}.
|
138 | * @param error Error, if any
|
139 | * @param [response] AnalyzeSentimentResponse
|
140 | */
|
141 | type AnalyzeSentimentCallback = (error: (Error|null), response?: google.cloud.language.v1.AnalyzeSentimentResponse) => void;
|
142 |
|
143 | /**
|
144 | * Callback as used by {@link google.cloud.language.v1.LanguageService#analyzeEntities}.
|
145 | * @param error Error, if any
|
146 | * @param [response] AnalyzeEntitiesResponse
|
147 | */
|
148 | type AnalyzeEntitiesCallback = (error: (Error|null), response?: google.cloud.language.v1.AnalyzeEntitiesResponse) => void;
|
149 |
|
150 | /**
|
151 | * Callback as used by {@link google.cloud.language.v1.LanguageService#analyzeEntitySentiment}.
|
152 | * @param error Error, if any
|
153 | * @param [response] AnalyzeEntitySentimentResponse
|
154 | */
|
155 | type AnalyzeEntitySentimentCallback = (error: (Error|null), response?: google.cloud.language.v1.AnalyzeEntitySentimentResponse) => void;
|
156 |
|
157 | /**
|
158 | * Callback as used by {@link google.cloud.language.v1.LanguageService#analyzeSyntax}.
|
159 | * @param error Error, if any
|
160 | * @param [response] AnalyzeSyntaxResponse
|
161 | */
|
162 | type AnalyzeSyntaxCallback = (error: (Error|null), response?: google.cloud.language.v1.AnalyzeSyntaxResponse) => void;
|
163 |
|
164 | /**
|
165 | * Callback as used by {@link google.cloud.language.v1.LanguageService#classifyText}.
|
166 | * @param error Error, if any
|
167 | * @param [response] ClassifyTextResponse
|
168 | */
|
169 | type ClassifyTextCallback = (error: (Error|null), response?: google.cloud.language.v1.ClassifyTextResponse) => void;
|
170 |
|
171 | /**
|
172 | * Callback as used by {@link google.cloud.language.v1.LanguageService#annotateText}.
|
173 | * @param error Error, if any
|
174 | * @param [response] AnnotateTextResponse
|
175 | */
|
176 | type AnnotateTextCallback = (error: (Error|null), response?: google.cloud.language.v1.AnnotateTextResponse) => void;
|
177 | }
|
178 |
|
179 | /** Properties of a Document. */
|
180 | interface IDocument {
|
181 |
|
182 | /** Document type */
|
183 | type?: (google.cloud.language.v1.Document.Type|keyof typeof google.cloud.language.v1.Document.Type|null);
|
184 |
|
185 | /** Document content */
|
186 | content?: (string|null);
|
187 |
|
188 | /** Document gcsContentUri */
|
189 | gcsContentUri?: (string|null);
|
190 |
|
191 | /** Document language */
|
192 | language?: (string|null);
|
193 | }
|
194 |
|
195 | /** Represents a Document. */
|
196 | class Document implements IDocument {
|
197 |
|
198 | /**
|
199 | * Constructs a new Document.
|
200 | * @param [properties] Properties to set
|
201 | */
|
202 | constructor(properties?: google.cloud.language.v1.IDocument);
|
203 |
|
204 | /** Document type. */
|
205 | public type: (google.cloud.language.v1.Document.Type|keyof typeof google.cloud.language.v1.Document.Type);
|
206 |
|
207 | /** Document content. */
|
208 | public content?: (string|null);
|
209 |
|
210 | /** Document gcsContentUri. */
|
211 | public gcsContentUri?: (string|null);
|
212 |
|
213 | /** Document language. */
|
214 | public language: string;
|
215 |
|
216 | /** Document source. */
|
217 | public source?: ("content"|"gcsContentUri");
|
218 |
|
219 | /**
|
220 | * Creates a new Document instance using the specified properties.
|
221 | * @param [properties] Properties to set
|
222 | * @returns Document instance
|
223 | */
|
224 | public static create(properties?: google.cloud.language.v1.IDocument): google.cloud.language.v1.Document;
|
225 |
|
226 | /**
|
227 | * Encodes the specified Document message. Does not implicitly { google.cloud.language.v1.Document.verify|verify} messages.
|
228 | * message Document message or plain object to encode
|
229 | * [writer] Writer to encode to
|
230 | * Writer
|
231 | */
|
232 | public static encode(message: google.cloud.language.v1.IDocument, writer?: $protobuf.Writer): $protobuf.Writer;
|
233 |
|
234 | /**
|
235 | * Encodes the specified Document message, length delimited. Does not implicitly {@link google.cloud.language.v1.Document.verify|verify} messages.
|
236 | * @param message Document message or plain object to encode
|
237 | * @param [writer] Writer to encode to
|
238 | * @returns Writer
|
239 | */
|
240 | public static encodeDelimited(message: google.cloud.language.v1.IDocument, writer?: $protobuf.Writer): $protobuf.Writer;
|
241 |
|
242 | /**
|
243 | * Decodes a Document message from the specified reader or buffer.
|
244 | * @param reader Reader or buffer to decode from
|
245 | * @param [length] Message length if known beforehand
|
246 | * @returns Document
|
247 | * @throws {Error} If the payload is not a reader or valid buffer
|
248 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
249 | */
|
250 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.language.v1.Document;
|
251 |
|
252 | /**
|
253 | * Decodes a Document message from the specified reader or buffer, length delimited.
|
254 | * @param reader Reader or buffer to decode from
|
255 | * @returns Document
|
256 | * @throws {Error} If the payload is not a reader or valid buffer
|
257 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
258 | */
|
259 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.language.v1.Document;
|
260 |
|
261 | /**
|
262 | * Verifies a Document message.
|
263 | * @param message Plain object to verify
|
264 | * @returns `null` if valid, otherwise the reason why it is not
|
265 | */
|
266 | public static verify(message: { [k: string]: any }): (string|null);
|
267 |
|
268 | /**
|
269 | * Creates a Document message from a plain object. Also converts values to their respective internal types.
|
270 | * @param object Plain object
|
271 | * @returns Document
|
272 | */
|
273 | public static fromObject(object: { [k: string]: any }): google.cloud.language.v1.Document;
|
274 |
|
275 | /**
|
276 | * Creates a plain object from a Document message. Also converts values to other types if specified.
|
277 | * @param message Document
|
278 | * @param [options] Conversion options
|
279 | * @returns Plain object
|
280 | */
|
281 | public static toObject(message: google.cloud.language.v1.Document, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
282 |
|
283 | /**
|
284 | * Converts this Document to JSON.
|
285 | * @returns JSON object
|
286 | */
|
287 | public toJSON(): { [k: string]: any };
|
288 | }
|
289 |
|
290 | namespace Document {
|
291 |
|
292 | /** Type enum. */
|
293 | enum Type {
|
294 | TYPE_UNSPECIFIED = 0,
|
295 | PLAIN_TEXT = 1,
|
296 | HTML = 2
|
297 | }
|
298 | }
|
299 |
|
300 | /** Properties of a Sentence. */
|
301 | interface ISentence {
|
302 |
|
303 | /** Sentence text */
|
304 | text?: (google.cloud.language.v1.ITextSpan|null);
|
305 |
|
306 | /** Sentence sentiment */
|
307 | sentiment?: (google.cloud.language.v1.ISentiment|null);
|
308 | }
|
309 |
|
310 | /** Represents a Sentence. */
|
311 | class Sentence implements ISentence {
|
312 |
|
313 | /**
|
314 | * Constructs a new Sentence.
|
315 | * @param [properties] Properties to set
|
316 | */
|
317 | constructor(properties?: google.cloud.language.v1.ISentence);
|
318 |
|
319 | /** Sentence text. */
|
320 | public text?: (google.cloud.language.v1.ITextSpan|null);
|
321 |
|
322 | /** Sentence sentiment. */
|
323 | public sentiment?: (google.cloud.language.v1.ISentiment|null);
|
324 |
|
325 | /**
|
326 | * Creates a new Sentence instance using the specified properties.
|
327 | * @param [properties] Properties to set
|
328 | * @returns Sentence instance
|
329 | */
|
330 | public static create(properties?: google.cloud.language.v1.ISentence): google.cloud.language.v1.Sentence;
|
331 |
|
332 | /**
|
333 | * Encodes the specified Sentence message. Does not implicitly { google.cloud.language.v1.Sentence.verify|verify} messages.
|
334 | * message Sentence message or plain object to encode
|
335 | * [writer] Writer to encode to
|
336 | * Writer
|
337 | */
|
338 | public static encode(message: google.cloud.language.v1.ISentence, writer?: $protobuf.Writer): $protobuf.Writer;
|
339 |
|
340 | /**
|
341 | * Encodes the specified Sentence message, length delimited. Does not implicitly {@link google.cloud.language.v1.Sentence.verify|verify} messages.
|
342 | * @param message Sentence message or plain object to encode
|
343 | * @param [writer] Writer to encode to
|
344 | * @returns Writer
|
345 | */
|
346 | public static encodeDelimited(message: google.cloud.language.v1.ISentence, writer?: $protobuf.Writer): $protobuf.Writer;
|
347 |
|
348 | /**
|
349 | * Decodes a Sentence message from the specified reader or buffer.
|
350 | * @param reader Reader or buffer to decode from
|
351 | * @param [length] Message length if known beforehand
|
352 | * @returns Sentence
|
353 | * @throws {Error} If the payload is not a reader or valid buffer
|
354 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
355 | */
|
356 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.language.v1.Sentence;
|
357 |
|
358 | /**
|
359 | * Decodes a Sentence message from the specified reader or buffer, length delimited.
|
360 | * @param reader Reader or buffer to decode from
|
361 | * @returns Sentence
|
362 | * @throws {Error} If the payload is not a reader or valid buffer
|
363 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
364 | */
|
365 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.language.v1.Sentence;
|
366 |
|
367 | /**
|
368 | * Verifies a Sentence message.
|
369 | * @param message Plain object to verify
|
370 | * @returns `null` if valid, otherwise the reason why it is not
|
371 | */
|
372 | public static verify(message: { [k: string]: any }): (string|null);
|
373 |
|
374 | /**
|
375 | * Creates a Sentence message from a plain object. Also converts values to their respective internal types.
|
376 | * @param object Plain object
|
377 | * @returns Sentence
|
378 | */
|
379 | public static fromObject(object: { [k: string]: any }): google.cloud.language.v1.Sentence;
|
380 |
|
381 | /**
|
382 | * Creates a plain object from a Sentence message. Also converts values to other types if specified.
|
383 | * @param message Sentence
|
384 | * @param [options] Conversion options
|
385 | * @returns Plain object
|
386 | */
|
387 | public static toObject(message: google.cloud.language.v1.Sentence, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
388 |
|
389 | /**
|
390 | * Converts this Sentence to JSON.
|
391 | * @returns JSON object
|
392 | */
|
393 | public toJSON(): { [k: string]: any };
|
394 | }
|
395 |
|
396 | /** Properties of an Entity. */
|
397 | interface IEntity {
|
398 |
|
399 | /** Entity name */
|
400 | name?: (string|null);
|
401 |
|
402 | /** Entity type */
|
403 | type?: (google.cloud.language.v1.Entity.Type|keyof typeof google.cloud.language.v1.Entity.Type|null);
|
404 |
|
405 | /** Entity metadata */
|
406 | metadata?: ({ [k: string]: string }|null);
|
407 |
|
408 | /** Entity salience */
|
409 | salience?: (number|null);
|
410 |
|
411 | /** Entity mentions */
|
412 | mentions?: (google.cloud.language.v1.IEntityMention[]|null);
|
413 |
|
414 | /** Entity sentiment */
|
415 | sentiment?: (google.cloud.language.v1.ISentiment|null);
|
416 | }
|
417 |
|
418 | /** Represents an Entity. */
|
419 | class Entity implements IEntity {
|
420 |
|
421 | /**
|
422 | * Constructs a new Entity.
|
423 | * @param [properties] Properties to set
|
424 | */
|
425 | constructor(properties?: google.cloud.language.v1.IEntity);
|
426 |
|
427 | /** Entity name. */
|
428 | public name: string;
|
429 |
|
430 | /** Entity type. */
|
431 | public type: (google.cloud.language.v1.Entity.Type|keyof typeof google.cloud.language.v1.Entity.Type);
|
432 |
|
433 | /** Entity metadata. */
|
434 | public metadata: { [k: string]: string };
|
435 |
|
436 | /** Entity salience. */
|
437 | public salience: number;
|
438 |
|
439 | /** Entity mentions. */
|
440 | public mentions: google.cloud.language.v1.IEntityMention[];
|
441 |
|
442 | /** Entity sentiment. */
|
443 | public sentiment?: (google.cloud.language.v1.ISentiment|null);
|
444 |
|
445 | /**
|
446 | * Creates a new Entity instance using the specified properties.
|
447 | * @param [properties] Properties to set
|
448 | * @returns Entity instance
|
449 | */
|
450 | public static create(properties?: google.cloud.language.v1.IEntity): google.cloud.language.v1.Entity;
|
451 |
|
452 | /**
|
453 | * Encodes the specified Entity message. Does not implicitly {@link google.cloud.language.v1.Entity.verify|verify} messages.
|
454 | * @param message Entity message or plain object to encode
|
455 | * @param [writer] Writer to encode to
|
456 | * @returns Writer
|
457 | */
|
458 | public static encode(message: google.cloud.language.v1.IEntity, writer?: $protobuf.Writer): $protobuf.Writer;
|
459 |
|
460 | /**
|
461 | * Encodes the specified Entity message, length delimited. Does not implicitly {@link google.cloud.language.v1.Entity.verify|verify} messages.
|
462 | * @param message Entity message or plain object to encode
|
463 | * @param [writer] Writer to encode to
|
464 | * @returns Writer
|
465 | */
|
466 | public static encodeDelimited(message: google.cloud.language.v1.IEntity, writer?: $protobuf.Writer): $protobuf.Writer;
|
467 |
|
468 | /**
|
469 | * Decodes an Entity message from the specified reader or buffer.
|
470 | * @param reader Reader or buffer to decode from
|
471 | * @param [length] Message length if known beforehand
|
472 | * @returns Entity
|
473 | * @throws {Error} If the payload is not a reader or valid buffer
|
474 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
475 | */
|
476 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.language.v1.Entity;
|
477 |
|
478 | /**
|
479 | * Decodes an Entity message from the specified reader or buffer, length delimited.
|
480 | * @param reader Reader or buffer to decode from
|
481 | * @returns Entity
|
482 | * @throws {Error} If the payload is not a reader or valid buffer
|
483 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
484 | */
|
485 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.language.v1.Entity;
|
486 |
|
487 | /**
|
488 | * Verifies an Entity message.
|
489 | * @param message Plain object to verify
|
490 | * @returns `null` if valid, otherwise the reason why it is not
|
491 | */
|
492 | public static verify(message: { [k: string]: any }): (string|null);
|
493 |
|
494 | /**
|
495 | * Creates an Entity message from a plain object. Also converts values to their respective internal types.
|
496 | * @param object Plain object
|
497 | * @returns Entity
|
498 | */
|
499 | public static fromObject(object: { [k: string]: any }): google.cloud.language.v1.Entity;
|
500 |
|
501 | /**
|
502 | * Creates a plain object from an Entity message. Also converts values to other types if specified.
|
503 | * @param message Entity
|
504 | * @param [options] Conversion options
|
505 | * @returns Plain object
|
506 | */
|
507 | public static toObject(message: google.cloud.language.v1.Entity, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
508 |
|
509 | /**
|
510 | * Converts this Entity to JSON.
|
511 | * @returns JSON object
|
512 | */
|
513 | public toJSON(): { [k: string]: any };
|
514 | }
|
515 |
|
516 | namespace Entity {
|
517 |
|
518 | /** Type enum. */
|
519 | enum Type {
|
520 | UNKNOWN = 0,
|
521 | PERSON = 1,
|
522 | LOCATION = 2,
|
523 | ORGANIZATION = 3,
|
524 | EVENT = 4,
|
525 | WORK_OF_ART = 5,
|
526 | CONSUMER_GOOD = 6,
|
527 | OTHER = 7,
|
528 | PHONE_NUMBER = 9,
|
529 | ADDRESS = 10,
|
530 | DATE = 11,
|
531 | NUMBER = 12,
|
532 | PRICE = 13
|
533 | }
|
534 | }
|
535 |
|
536 | /** EncodingType enum. */
|
537 | enum EncodingType {
|
538 | NONE = 0,
|
539 | UTF8 = 1,
|
540 | UTF16 = 2,
|
541 | UTF32 = 3
|
542 | }
|
543 |
|
544 | /** Properties of a Token. */
|
545 | interface IToken {
|
546 |
|
547 | /** Token text */
|
548 | text?: (google.cloud.language.v1.ITextSpan|null);
|
549 |
|
550 | /** Token partOfSpeech */
|
551 | partOfSpeech?: (google.cloud.language.v1.IPartOfSpeech|null);
|
552 |
|
553 | /** Token dependencyEdge */
|
554 | dependencyEdge?: (google.cloud.language.v1.IDependencyEdge|null);
|
555 |
|
556 | /** Token lemma */
|
557 | lemma?: (string|null);
|
558 | }
|
559 |
|
560 | /** Represents a Token. */
|
561 | class Token implements IToken {
|
562 |
|
563 | /**
|
564 | * Constructs a new Token.
|
565 | * @param [properties] Properties to set
|
566 | */
|
567 | constructor(properties?: google.cloud.language.v1.IToken);
|
568 |
|
569 | /** Token text. */
|
570 | public text?: (google.cloud.language.v1.ITextSpan|null);
|
571 |
|
572 | /** Token partOfSpeech. */
|
573 | public partOfSpeech?: (google.cloud.language.v1.IPartOfSpeech|null);
|
574 |
|
575 | /** Token dependencyEdge. */
|
576 | public dependencyEdge?: (google.cloud.language.v1.IDependencyEdge|null);
|
577 |
|
578 | /** Token lemma. */
|
579 | public lemma: string;
|
580 |
|
581 | /**
|
582 | * Creates a new Token instance using the specified properties.
|
583 | * @param [properties] Properties to set
|
584 | * @returns Token instance
|
585 | */
|
586 | public static create(properties?: google.cloud.language.v1.IToken): google.cloud.language.v1.Token;
|
587 |
|
588 | /**
|
589 | * Encodes the specified Token message. Does not implicitly { google.cloud.language.v1.Token.verify|verify} messages.
|
590 | * message Token message or plain object to encode
|
591 | * [writer] Writer to encode to
|
592 | * Writer
|
593 | */
|
594 | public static encode(message: google.cloud.language.v1.IToken, writer?: $protobuf.Writer): $protobuf.Writer;
|
595 |
|
596 | /**
|
597 | * Encodes the specified Token message, length delimited. Does not implicitly {@link google.cloud.language.v1.Token.verify|verify} messages.
|
598 | * @param message Token message or plain object to encode
|
599 | * @param [writer] Writer to encode to
|
600 | * @returns Writer
|
601 | */
|
602 | public static encodeDelimited(message: google.cloud.language.v1.IToken, writer?: $protobuf.Writer): $protobuf.Writer;
|
603 |
|
604 | /**
|
605 | * Decodes a Token message from the specified reader or buffer.
|
606 | * @param reader Reader or buffer to decode from
|
607 | * @param [length] Message length if known beforehand
|
608 | * @returns Token
|
609 | * @throws {Error} If the payload is not a reader or valid buffer
|
610 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
611 | */
|
612 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.language.v1.Token;
|
613 |
|
614 | /**
|
615 | * Decodes a Token message from the specified reader or buffer, length delimited.
|
616 | * @param reader Reader or buffer to decode from
|
617 | * @returns Token
|
618 | * @throws {Error} If the payload is not a reader or valid buffer
|
619 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
620 | */
|
621 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.language.v1.Token;
|
622 |
|
623 | /**
|
624 | * Verifies a Token message.
|
625 | * @param message Plain object to verify
|
626 | * @returns `null` if valid, otherwise the reason why it is not
|
627 | */
|
628 | public static verify(message: { [k: string]: any }): (string|null);
|
629 |
|
630 | /**
|
631 | * Creates a Token message from a plain object. Also converts values to their respective internal types.
|
632 | * @param object Plain object
|
633 | * @returns Token
|
634 | */
|
635 | public static fromObject(object: { [k: string]: any }): google.cloud.language.v1.Token;
|
636 |
|
637 | /**
|
638 | * Creates a plain object from a Token message. Also converts values to other types if specified.
|
639 | * @param message Token
|
640 | * @param [options] Conversion options
|
641 | * @returns Plain object
|
642 | */
|
643 | public static toObject(message: google.cloud.language.v1.Token, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
644 |
|
645 | /**
|
646 | * Converts this Token to JSON.
|
647 | * @returns JSON object
|
648 | */
|
649 | public toJSON(): { [k: string]: any };
|
650 | }
|
651 |
|
652 | /** Properties of a Sentiment. */
|
653 | interface ISentiment {
|
654 |
|
655 | /** Sentiment magnitude */
|
656 | magnitude?: (number|null);
|
657 |
|
658 | /** Sentiment score */
|
659 | score?: (number|null);
|
660 | }
|
661 |
|
662 | /** Represents a Sentiment. */
|
663 | class Sentiment implements ISentiment {
|
664 |
|
665 | /**
|
666 | * Constructs a new Sentiment.
|
667 | * @param [properties] Properties to set
|
668 | */
|
669 | constructor(properties?: google.cloud.language.v1.ISentiment);
|
670 |
|
671 | /** Sentiment magnitude. */
|
672 | public magnitude: number;
|
673 |
|
674 | /** Sentiment score. */
|
675 | public score: number;
|
676 |
|
677 | /**
|
678 | * Creates a new Sentiment instance using the specified properties.
|
679 | * @param [properties] Properties to set
|
680 | * @returns Sentiment instance
|
681 | */
|
682 | public static create(properties?: google.cloud.language.v1.ISentiment): google.cloud.language.v1.Sentiment;
|
683 |
|
684 | /**
|
685 | * Encodes the specified Sentiment message. Does not implicitly { google.cloud.language.v1.Sentiment.verify|verify} messages.
|
686 | * message Sentiment message or plain object to encode
|
687 | * [writer] Writer to encode to
|
688 | * Writer
|
689 | */
|
690 | public static encode(message: google.cloud.language.v1.ISentiment, writer?: $protobuf.Writer): $protobuf.Writer;
|
691 |
|
692 | /**
|
693 | * Encodes the specified Sentiment message, length delimited. Does not implicitly {@link google.cloud.language.v1.Sentiment.verify|verify} messages.
|
694 | * @param message Sentiment message or plain object to encode
|
695 | * @param [writer] Writer to encode to
|
696 | * @returns Writer
|
697 | */
|
698 | public static encodeDelimited(message: google.cloud.language.v1.ISentiment, writer?: $protobuf.Writer): $protobuf.Writer;
|
699 |
|
700 | /**
|
701 | * Decodes a Sentiment message from the specified reader or buffer.
|
702 | * @param reader Reader or buffer to decode from
|
703 | * @param [length] Message length if known beforehand
|
704 | * @returns Sentiment
|
705 | * @throws {Error} If the payload is not a reader or valid buffer
|
706 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
707 | */
|
708 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.language.v1.Sentiment;
|
709 |
|
710 | /**
|
711 | * Decodes a Sentiment message from the specified reader or buffer, length delimited.
|
712 | * @param reader Reader or buffer to decode from
|
713 | * @returns Sentiment
|
714 | * @throws {Error} If the payload is not a reader or valid buffer
|
715 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
716 | */
|
717 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.language.v1.Sentiment;
|
718 |
|
719 | /**
|
720 | * Verifies a Sentiment message.
|
721 | * @param message Plain object to verify
|
722 | * @returns `null` if valid, otherwise the reason why it is not
|
723 | */
|
724 | public static verify(message: { [k: string]: any }): (string|null);
|
725 |
|
726 | /**
|
727 | * Creates a Sentiment message from a plain object. Also converts values to their respective internal types.
|
728 | * @param object Plain object
|
729 | * @returns Sentiment
|
730 | */
|
731 | public static fromObject(object: { [k: string]: any }): google.cloud.language.v1.Sentiment;
|
732 |
|
733 | /**
|
734 | * Creates a plain object from a Sentiment message. Also converts values to other types if specified.
|
735 | * @param message Sentiment
|
736 | * @param [options] Conversion options
|
737 | * @returns Plain object
|
738 | */
|
739 | public static toObject(message: google.cloud.language.v1.Sentiment, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
740 |
|
741 | /**
|
742 | * Converts this Sentiment to JSON.
|
743 | * @returns JSON object
|
744 | */
|
745 | public toJSON(): { [k: string]: any };
|
746 | }
|
747 |
|
748 | /** Properties of a PartOfSpeech. */
|
749 | interface IPartOfSpeech {
|
750 |
|
751 | /** PartOfSpeech tag */
|
752 | tag?: (google.cloud.language.v1.PartOfSpeech.Tag|keyof typeof google.cloud.language.v1.PartOfSpeech.Tag|null);
|
753 |
|
754 | /** PartOfSpeech aspect */
|
755 | aspect?: (google.cloud.language.v1.PartOfSpeech.Aspect|keyof typeof google.cloud.language.v1.PartOfSpeech.Aspect|null);
|
756 |
|
757 | /** PartOfSpeech case */
|
758 | "case"?: (google.cloud.language.v1.PartOfSpeech.Case|keyof typeof google.cloud.language.v1.PartOfSpeech.Case|null);
|
759 |
|
760 | /** PartOfSpeech form */
|
761 | form?: (google.cloud.language.v1.PartOfSpeech.Form|keyof typeof google.cloud.language.v1.PartOfSpeech.Form|null);
|
762 |
|
763 | /** PartOfSpeech gender */
|
764 | gender?: (google.cloud.language.v1.PartOfSpeech.Gender|keyof typeof google.cloud.language.v1.PartOfSpeech.Gender|null);
|
765 |
|
766 | /** PartOfSpeech mood */
|
767 | mood?: (google.cloud.language.v1.PartOfSpeech.Mood|keyof typeof google.cloud.language.v1.PartOfSpeech.Mood|null);
|
768 |
|
769 | /** PartOfSpeech number */
|
770 | number?: (google.cloud.language.v1.PartOfSpeech.Number|keyof typeof google.cloud.language.v1.PartOfSpeech.Number|null);
|
771 |
|
772 | /** PartOfSpeech person */
|
773 | person?: (google.cloud.language.v1.PartOfSpeech.Person|keyof typeof google.cloud.language.v1.PartOfSpeech.Person|null);
|
774 |
|
775 | /** PartOfSpeech proper */
|
776 | proper?: (google.cloud.language.v1.PartOfSpeech.Proper|keyof typeof google.cloud.language.v1.PartOfSpeech.Proper|null);
|
777 |
|
778 | /** PartOfSpeech reciprocity */
|
779 | reciprocity?: (google.cloud.language.v1.PartOfSpeech.Reciprocity|keyof typeof google.cloud.language.v1.PartOfSpeech.Reciprocity|null);
|
780 |
|
781 | /** PartOfSpeech tense */
|
782 | tense?: (google.cloud.language.v1.PartOfSpeech.Tense|keyof typeof google.cloud.language.v1.PartOfSpeech.Tense|null);
|
783 |
|
784 | /** PartOfSpeech voice */
|
785 | voice?: (google.cloud.language.v1.PartOfSpeech.Voice|keyof typeof google.cloud.language.v1.PartOfSpeech.Voice|null);
|
786 | }
|
787 |
|
788 | /** Represents a PartOfSpeech. */
|
789 | class PartOfSpeech implements IPartOfSpeech {
|
790 |
|
791 | /**
|
792 | * Constructs a new PartOfSpeech.
|
793 | * @param [properties] Properties to set
|
794 | */
|
795 | constructor(properties?: google.cloud.language.v1.IPartOfSpeech);
|
796 |
|
797 | /** PartOfSpeech tag. */
|
798 | public tag: (google.cloud.language.v1.PartOfSpeech.Tag|keyof typeof google.cloud.language.v1.PartOfSpeech.Tag);
|
799 |
|
800 | /** PartOfSpeech aspect. */
|
801 | public aspect: (google.cloud.language.v1.PartOfSpeech.Aspect|keyof typeof google.cloud.language.v1.PartOfSpeech.Aspect);
|
802 |
|
803 | /** PartOfSpeech case. */
|
804 | public case: (google.cloud.language.v1.PartOfSpeech.Case|keyof typeof google.cloud.language.v1.PartOfSpeech.Case);
|
805 |
|
806 | /** PartOfSpeech form. */
|
807 | public form: (google.cloud.language.v1.PartOfSpeech.Form|keyof typeof google.cloud.language.v1.PartOfSpeech.Form);
|
808 |
|
809 | /** PartOfSpeech gender. */
|
810 | public gender: (google.cloud.language.v1.PartOfSpeech.Gender|keyof typeof google.cloud.language.v1.PartOfSpeech.Gender);
|
811 |
|
812 | /** PartOfSpeech mood. */
|
813 | public mood: (google.cloud.language.v1.PartOfSpeech.Mood|keyof typeof google.cloud.language.v1.PartOfSpeech.Mood);
|
814 |
|
815 | /** PartOfSpeech number. */
|
816 | public number: (google.cloud.language.v1.PartOfSpeech.Number|keyof typeof google.cloud.language.v1.PartOfSpeech.Number);
|
817 |
|
818 | /** PartOfSpeech person. */
|
819 | public person: (google.cloud.language.v1.PartOfSpeech.Person|keyof typeof google.cloud.language.v1.PartOfSpeech.Person);
|
820 |
|
821 | /** PartOfSpeech proper. */
|
822 | public proper: (google.cloud.language.v1.PartOfSpeech.Proper|keyof typeof google.cloud.language.v1.PartOfSpeech.Proper);
|
823 |
|
824 | /** PartOfSpeech reciprocity. */
|
825 | public reciprocity: (google.cloud.language.v1.PartOfSpeech.Reciprocity|keyof typeof google.cloud.language.v1.PartOfSpeech.Reciprocity);
|
826 |
|
827 | /** PartOfSpeech tense. */
|
828 | public tense: (google.cloud.language.v1.PartOfSpeech.Tense|keyof typeof google.cloud.language.v1.PartOfSpeech.Tense);
|
829 |
|
830 | /** PartOfSpeech voice. */
|
831 | public voice: (google.cloud.language.v1.PartOfSpeech.Voice|keyof typeof google.cloud.language.v1.PartOfSpeech.Voice);
|
832 |
|
833 | /**
|
834 | * Creates a new PartOfSpeech instance using the specified properties.
|
835 | * @param [properties] Properties to set
|
836 | * @returns PartOfSpeech instance
|
837 | */
|
838 | public static create(properties?: google.cloud.language.v1.IPartOfSpeech): google.cloud.language.v1.PartOfSpeech;
|
839 |
|
840 | /**
|
841 | * Encodes the specified PartOfSpeech message. Does not implicitly { google.cloud.language.v1.PartOfSpeech.verify|verify} messages.
|
842 | * message PartOfSpeech message or plain object to encode
|
843 | * [writer] Writer to encode to
|
844 | * Writer
|
845 | */
|
846 | public static encode(message: google.cloud.language.v1.IPartOfSpeech, writer?: $protobuf.Writer): $protobuf.Writer;
|
847 |
|
848 | /**
|
849 | * Encodes the specified PartOfSpeech message, length delimited. Does not implicitly {@link google.cloud.language.v1.PartOfSpeech.verify|verify} messages.
|
850 | * @param message PartOfSpeech message or plain object to encode
|
851 | * @param [writer] Writer to encode to
|
852 | * @returns Writer
|
853 | */
|
854 | public static encodeDelimited(message: google.cloud.language.v1.IPartOfSpeech, writer?: $protobuf.Writer): $protobuf.Writer;
|
855 |
|
856 | /**
|
857 | * Decodes a PartOfSpeech message from the specified reader or buffer.
|
858 | * @param reader Reader or buffer to decode from
|
859 | * @param [length] Message length if known beforehand
|
860 | * @returns PartOfSpeech
|
861 | * @throws {Error} If the payload is not a reader or valid buffer
|
862 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
863 | */
|
864 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.language.v1.PartOfSpeech;
|
865 |
|
866 | /**
|
867 | * Decodes a PartOfSpeech message from the specified reader or buffer, length delimited.
|
868 | * @param reader Reader or buffer to decode from
|
869 | * @returns PartOfSpeech
|
870 | * @throws {Error} If the payload is not a reader or valid buffer
|
871 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
872 | */
|
873 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.language.v1.PartOfSpeech;
|
874 |
|
875 | /**
|
876 | * Verifies a PartOfSpeech message.
|
877 | * @param message Plain object to verify
|
878 | * @returns `null` if valid, otherwise the reason why it is not
|
879 | */
|
880 | public static verify(message: { [k: string]: any }): (string|null);
|
881 |
|
882 | /**
|
883 | * Creates a PartOfSpeech message from a plain object. Also converts values to their respective internal types.
|
884 | * @param object Plain object
|
885 | * @returns PartOfSpeech
|
886 | */
|
887 | public static fromObject(object: { [k: string]: any }): google.cloud.language.v1.PartOfSpeech;
|
888 |
|
889 | /**
|
890 | * Creates a plain object from a PartOfSpeech message. Also converts values to other types if specified.
|
891 | * @param message PartOfSpeech
|
892 | * @param [options] Conversion options
|
893 | * @returns Plain object
|
894 | */
|
895 | public static toObject(message: google.cloud.language.v1.PartOfSpeech, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
896 |
|
897 | /**
|
898 | * Converts this PartOfSpeech to JSON.
|
899 | * @returns JSON object
|
900 | */
|
901 | public toJSON(): { [k: string]: any };
|
902 | }
|
903 |
|
904 | namespace PartOfSpeech {
|
905 |
|
906 | /** Tag enum. */
|
907 | enum Tag {
|
908 | UNKNOWN = 0,
|
909 | ADJ = 1,
|
910 | ADP = 2,
|
911 | ADV = 3,
|
912 | CONJ = 4,
|
913 | DET = 5,
|
914 | NOUN = 6,
|
915 | NUM = 7,
|
916 | PRON = 8,
|
917 | PRT = 9,
|
918 | PUNCT = 10,
|
919 | VERB = 11,
|
920 | X = 12,
|
921 | AFFIX = 13
|
922 | }
|
923 |
|
924 | /** Aspect enum. */
|
925 | enum Aspect {
|
926 | ASPECT_UNKNOWN = 0,
|
927 | PERFECTIVE = 1,
|
928 | IMPERFECTIVE = 2,
|
929 | PROGRESSIVE = 3
|
930 | }
|
931 |
|
932 | /** Case enum. */
|
933 | enum Case {
|
934 | CASE_UNKNOWN = 0,
|
935 | ACCUSATIVE = 1,
|
936 | ADVERBIAL = 2,
|
937 | COMPLEMENTIVE = 3,
|
938 | DATIVE = 4,
|
939 | GENITIVE = 5,
|
940 | INSTRUMENTAL = 6,
|
941 | LOCATIVE = 7,
|
942 | NOMINATIVE = 8,
|
943 | OBLIQUE = 9,
|
944 | PARTITIVE = 10,
|
945 | PREPOSITIONAL = 11,
|
946 | REFLEXIVE_CASE = 12,
|
947 | RELATIVE_CASE = 13,
|
948 | VOCATIVE = 14
|
949 | }
|
950 |
|
951 | /** Form enum. */
|
952 | enum Form {
|
953 | FORM_UNKNOWN = 0,
|
954 | ADNOMIAL = 1,
|
955 | AUXILIARY = 2,
|
956 | COMPLEMENTIZER = 3,
|
957 | FINAL_ENDING = 4,
|
958 | GERUND = 5,
|
959 | REALIS = 6,
|
960 | IRREALIS = 7,
|
961 | SHORT = 8,
|
962 | LONG = 9,
|
963 | ORDER = 10,
|
964 | SPECIFIC = 11
|
965 | }
|
966 |
|
967 | /** Gender enum. */
|
968 | enum Gender {
|
969 | GENDER_UNKNOWN = 0,
|
970 | FEMININE = 1,
|
971 | MASCULINE = 2,
|
972 | NEUTER = 3
|
973 | }
|
974 |
|
975 | /** Mood enum. */
|
976 | enum Mood {
|
977 | MOOD_UNKNOWN = 0,
|
978 | CONDITIONAL_MOOD = 1,
|
979 | IMPERATIVE = 2,
|
980 | INDICATIVE = 3,
|
981 | INTERROGATIVE = 4,
|
982 | JUSSIVE = 5,
|
983 | SUBJUNCTIVE = 6
|
984 | }
|
985 |
|
986 | /** Number enum. */
|
987 | enum Number {
|
988 | NUMBER_UNKNOWN = 0,
|
989 | SINGULAR = 1,
|
990 | PLURAL = 2,
|
991 | DUAL = 3
|
992 | }
|
993 |
|
994 | /** Person enum. */
|
995 | enum Person {
|
996 | PERSON_UNKNOWN = 0,
|
997 | FIRST = 1,
|
998 | SECOND = 2,
|
999 | THIRD = 3,
|
1000 | REFLEXIVE_PERSON = 4
|
1001 | }
|
1002 |
|
1003 | /** Proper enum. */
|
1004 | enum Proper {
|
1005 | PROPER_UNKNOWN = 0,
|
1006 | PROPER = 1,
|
1007 | NOT_PROPER = 2
|
1008 | }
|
1009 |
|
1010 | /** Reciprocity enum. */
|
1011 | enum Reciprocity {
|
1012 | RECIPROCITY_UNKNOWN = 0,
|
1013 | RECIPROCAL = 1,
|
1014 | NON_RECIPROCAL = 2
|
1015 | }
|
1016 |
|
1017 | /** Tense enum. */
|
1018 | enum Tense {
|
1019 | TENSE_UNKNOWN = 0,
|
1020 | CONDITIONAL_TENSE = 1,
|
1021 | FUTURE = 2,
|
1022 | PAST = 3,
|
1023 | PRESENT = 4,
|
1024 | IMPERFECT = 5,
|
1025 | PLUPERFECT = 6
|
1026 | }
|
1027 |
|
1028 | /** Voice enum. */
|
1029 | enum Voice {
|
1030 | VOICE_UNKNOWN = 0,
|
1031 | ACTIVE = 1,
|
1032 | CAUSATIVE = 2,
|
1033 | PASSIVE = 3
|
1034 | }
|
1035 | }
|
1036 |
|
1037 | /** Properties of a DependencyEdge. */
|
1038 | interface IDependencyEdge {
|
1039 |
|
1040 | /** DependencyEdge headTokenIndex */
|
1041 | headTokenIndex?: (number|null);
|
1042 |
|
1043 | /** DependencyEdge label */
|
1044 | label?: (google.cloud.language.v1.DependencyEdge.Label|keyof typeof google.cloud.language.v1.DependencyEdge.Label|null);
|
1045 | }
|
1046 |
|
1047 | /** Represents a DependencyEdge. */
|
1048 | class DependencyEdge implements IDependencyEdge {
|
1049 |
|
1050 | /**
|
1051 | * Constructs a new DependencyEdge.
|
1052 | * @param [properties] Properties to set
|
1053 | */
|
1054 | constructor(properties?: google.cloud.language.v1.IDependencyEdge);
|
1055 |
|
1056 | /** DependencyEdge headTokenIndex. */
|
1057 | public headTokenIndex: number;
|
1058 |
|
1059 | /** DependencyEdge label. */
|
1060 | public label: (google.cloud.language.v1.DependencyEdge.Label|keyof typeof google.cloud.language.v1.DependencyEdge.Label);
|
1061 |
|
1062 | /**
|
1063 | * Creates a new DependencyEdge instance using the specified properties.
|
1064 | * @param [properties] Properties to set
|
1065 | * @returns DependencyEdge instance
|
1066 | */
|
1067 | public static create(properties?: google.cloud.language.v1.IDependencyEdge): google.cloud.language.v1.DependencyEdge;
|
1068 |
|
1069 | /**
|
1070 | * Encodes the specified DependencyEdge message. Does not implicitly { google.cloud.language.v1.DependencyEdge.verify|verify} messages.
|
1071 | * message DependencyEdge message or plain object to encode
|
1072 | * [writer] Writer to encode to
|
1073 | * Writer
|
1074 | */
|
1075 | public static encode(message: google.cloud.language.v1.IDependencyEdge, writer?: $protobuf.Writer): $protobuf.Writer;
|
1076 |
|
1077 | /**
|
1078 | * Encodes the specified DependencyEdge message, length delimited. Does not implicitly {@link google.cloud.language.v1.DependencyEdge.verify|verify} messages.
|
1079 | * @param message DependencyEdge message or plain object to encode
|
1080 | * @param [writer] Writer to encode to
|
1081 | * @returns Writer
|
1082 | */
|
1083 | public static encodeDelimited(message: google.cloud.language.v1.IDependencyEdge, writer?: $protobuf.Writer): $protobuf.Writer;
|
1084 |
|
1085 | /**
|
1086 | * Decodes a DependencyEdge message from the specified reader or buffer.
|
1087 | * @param reader Reader or buffer to decode from
|
1088 | * @param [length] Message length if known beforehand
|
1089 | * @returns DependencyEdge
|
1090 | * @throws {Error} If the payload is not a reader or valid buffer
|
1091 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1092 | */
|
1093 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.language.v1.DependencyEdge;
|
1094 |
|
1095 | /**
|
1096 | * Decodes a DependencyEdge message from the specified reader or buffer, length delimited.
|
1097 | * @param reader Reader or buffer to decode from
|
1098 | * @returns DependencyEdge
|
1099 | * @throws {Error} If the payload is not a reader or valid buffer
|
1100 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1101 | */
|
1102 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.language.v1.DependencyEdge;
|
1103 |
|
1104 | /**
|
1105 | * Verifies a DependencyEdge message.
|
1106 | * @param message Plain object to verify
|
1107 | * @returns `null` if valid, otherwise the reason why it is not
|
1108 | */
|
1109 | public static verify(message: { [k: string]: any }): (string|null);
|
1110 |
|
1111 | /**
|
1112 | * Creates a DependencyEdge message from a plain object. Also converts values to their respective internal types.
|
1113 | * @param object Plain object
|
1114 | * @returns DependencyEdge
|
1115 | */
|
1116 | public static fromObject(object: { [k: string]: any }): google.cloud.language.v1.DependencyEdge;
|
1117 |
|
1118 | /**
|
1119 | * Creates a plain object from a DependencyEdge message. Also converts values to other types if specified.
|
1120 | * @param message DependencyEdge
|
1121 | * @param [options] Conversion options
|
1122 | * @returns Plain object
|
1123 | */
|
1124 | public static toObject(message: google.cloud.language.v1.DependencyEdge, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
1125 |
|
1126 | /**
|
1127 | * Converts this DependencyEdge to JSON.
|
1128 | * @returns JSON object
|
1129 | */
|
1130 | public toJSON(): { [k: string]: any };
|
1131 | }
|
1132 |
|
1133 | namespace DependencyEdge {
|
1134 |
|
1135 | /** Label enum. */
|
1136 | enum Label {
|
1137 | UNKNOWN = 0,
|
1138 | ABBREV = 1,
|
1139 | ACOMP = 2,
|
1140 | ADVCL = 3,
|
1141 | ADVMOD = 4,
|
1142 | AMOD = 5,
|
1143 | APPOS = 6,
|
1144 | ATTR = 7,
|
1145 | AUX = 8,
|
1146 | AUXPASS = 9,
|
1147 | CC = 10,
|
1148 | CCOMP = 11,
|
1149 | CONJ = 12,
|
1150 | CSUBJ = 13,
|
1151 | CSUBJPASS = 14,
|
1152 | DEP = 15,
|
1153 | DET = 16,
|
1154 | DISCOURSE = 17,
|
1155 | DOBJ = 18,
|
1156 | EXPL = 19,
|
1157 | GOESWITH = 20,
|
1158 | IOBJ = 21,
|
1159 | MARK = 22,
|
1160 | MWE = 23,
|
1161 | MWV = 24,
|
1162 | NEG = 25,
|
1163 | NN = 26,
|
1164 | NPADVMOD = 27,
|
1165 | NSUBJ = 28,
|
1166 | NSUBJPASS = 29,
|
1167 | NUM = 30,
|
1168 | NUMBER = 31,
|
1169 | P = 32,
|
1170 | PARATAXIS = 33,
|
1171 | PARTMOD = 34,
|
1172 | PCOMP = 35,
|
1173 | POBJ = 36,
|
1174 | POSS = 37,
|
1175 | POSTNEG = 38,
|
1176 | PRECOMP = 39,
|
1177 | PRECONJ = 40,
|
1178 | PREDET = 41,
|
1179 | PREF = 42,
|
1180 | PREP = 43,
|
1181 | PRONL = 44,
|
1182 | PRT = 45,
|
1183 | PS = 46,
|
1184 | QUANTMOD = 47,
|
1185 | RCMOD = 48,
|
1186 | RCMODREL = 49,
|
1187 | RDROP = 50,
|
1188 | REF = 51,
|
1189 | REMNANT = 52,
|
1190 | REPARANDUM = 53,
|
1191 | ROOT = 54,
|
1192 | SNUM = 55,
|
1193 | SUFF = 56,
|
1194 | TMOD = 57,
|
1195 | TOPIC = 58,
|
1196 | VMOD = 59,
|
1197 | VOCATIVE = 60,
|
1198 | XCOMP = 61,
|
1199 | SUFFIX = 62,
|
1200 | TITLE = 63,
|
1201 | ADVPHMOD = 64,
|
1202 | AUXCAUS = 65,
|
1203 | AUXVV = 66,
|
1204 | DTMOD = 67,
|
1205 | FOREIGN = 68,
|
1206 | KW = 69,
|
1207 | LIST = 70,
|
1208 | NOMC = 71,
|
1209 | NOMCSUBJ = 72,
|
1210 | NOMCSUBJPASS = 73,
|
1211 | NUMC = 74,
|
1212 | COP = 75,
|
1213 | DISLOCATED = 76,
|
1214 | ASP = 77,
|
1215 | GMOD = 78,
|
1216 | GOBJ = 79,
|
1217 | INFMOD = 80,
|
1218 | MES = 81,
|
1219 | NCOMP = 82
|
1220 | }
|
1221 | }
|
1222 |
|
1223 | /** Properties of an EntityMention. */
|
1224 | interface IEntityMention {
|
1225 |
|
1226 | /** EntityMention text */
|
1227 | text?: (google.cloud.language.v1.ITextSpan|null);
|
1228 |
|
1229 | /** EntityMention type */
|
1230 | type?: (google.cloud.language.v1.EntityMention.Type|keyof typeof google.cloud.language.v1.EntityMention.Type|null);
|
1231 |
|
1232 | /** EntityMention sentiment */
|
1233 | sentiment?: (google.cloud.language.v1.ISentiment|null);
|
1234 | }
|
1235 |
|
1236 | /** Represents an EntityMention. */
|
1237 | class EntityMention implements IEntityMention {
|
1238 |
|
1239 | /**
|
1240 | * Constructs a new EntityMention.
|
1241 | * @param [properties] Properties to set
|
1242 | */
|
1243 | constructor(properties?: google.cloud.language.v1.IEntityMention);
|
1244 |
|
1245 | /** EntityMention text. */
|
1246 | public text?: (google.cloud.language.v1.ITextSpan|null);
|
1247 |
|
1248 | /** EntityMention type. */
|
1249 | public type: (google.cloud.language.v1.EntityMention.Type|keyof typeof google.cloud.language.v1.EntityMention.Type);
|
1250 |
|
1251 | /** EntityMention sentiment. */
|
1252 | public sentiment?: (google.cloud.language.v1.ISentiment|null);
|
1253 |
|
1254 | /**
|
1255 | * Creates a new EntityMention instance using the specified properties.
|
1256 | * @param [properties] Properties to set
|
1257 | * @returns EntityMention instance
|
1258 | */
|
1259 | public static create(properties?: google.cloud.language.v1.IEntityMention): google.cloud.language.v1.EntityMention;
|
1260 |
|
1261 | /**
|
1262 | * Encodes the specified EntityMention message. Does not implicitly { google.cloud.language.v1.EntityMention.verify|verify} messages.
|
1263 | * message EntityMention message or plain object to encode
|
1264 | * [writer] Writer to encode to
|
1265 | * Writer
|
1266 | */
|
1267 | public static encode(message: google.cloud.language.v1.IEntityMention, writer?: $protobuf.Writer): $protobuf.Writer;
|
1268 |
|
1269 | /**
|
1270 | * Encodes the specified EntityMention message, length delimited. Does not implicitly {@link google.cloud.language.v1.EntityMention.verify|verify} messages.
|
1271 | * @param message EntityMention message or plain object to encode
|
1272 | * @param [writer] Writer to encode to
|
1273 | * @returns Writer
|
1274 | */
|
1275 | public static encodeDelimited(message: google.cloud.language.v1.IEntityMention, writer?: $protobuf.Writer): $protobuf.Writer;
|
1276 |
|
1277 | /**
|
1278 | * Decodes an EntityMention message from the specified reader or buffer.
|
1279 | * @param reader Reader or buffer to decode from
|
1280 | * @param [length] Message length if known beforehand
|
1281 | * @returns EntityMention
|
1282 | * @throws {Error} If the payload is not a reader or valid buffer
|
1283 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1284 | */
|
1285 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.language.v1.EntityMention;
|
1286 |
|
1287 | /**
|
1288 | * Decodes an EntityMention message from the specified reader or buffer, length delimited.
|
1289 | * @param reader Reader or buffer to decode from
|
1290 | * @returns EntityMention
|
1291 | * @throws {Error} If the payload is not a reader or valid buffer
|
1292 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1293 | */
|
1294 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.language.v1.EntityMention;
|
1295 |
|
1296 | /**
|
1297 | * Verifies an EntityMention message.
|
1298 | * @param message Plain object to verify
|
1299 | * @returns `null` if valid, otherwise the reason why it is not
|
1300 | */
|
1301 | public static verify(message: { [k: string]: any }): (string|null);
|
1302 |
|
1303 | /**
|
1304 | * Creates an EntityMention message from a plain object. Also converts values to their respective internal types.
|
1305 | * @param object Plain object
|
1306 | * @returns EntityMention
|
1307 | */
|
1308 | public static fromObject(object: { [k: string]: any }): google.cloud.language.v1.EntityMention;
|
1309 |
|
1310 | /**
|
1311 | * Creates a plain object from an EntityMention message. Also converts values to other types if specified.
|
1312 | * @param message EntityMention
|
1313 | * @param [options] Conversion options
|
1314 | * @returns Plain object
|
1315 | */
|
1316 | public static toObject(message: google.cloud.language.v1.EntityMention, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
1317 |
|
1318 | /**
|
1319 | * Converts this EntityMention to JSON.
|
1320 | * @returns JSON object
|
1321 | */
|
1322 | public toJSON(): { [k: string]: any };
|
1323 | }
|
1324 |
|
1325 | namespace EntityMention {
|
1326 |
|
1327 | /** Type enum. */
|
1328 | enum Type {
|
1329 | TYPE_UNKNOWN = 0,
|
1330 | PROPER = 1,
|
1331 | COMMON = 2
|
1332 | }
|
1333 | }
|
1334 |
|
1335 | /** Properties of a TextSpan. */
|
1336 | interface ITextSpan {
|
1337 |
|
1338 | /** TextSpan content */
|
1339 | content?: (string|null);
|
1340 |
|
1341 | /** TextSpan beginOffset */
|
1342 | beginOffset?: (number|null);
|
1343 | }
|
1344 |
|
1345 | /** Represents a TextSpan. */
|
1346 | class TextSpan implements ITextSpan {
|
1347 |
|
1348 | /**
|
1349 | * Constructs a new TextSpan.
|
1350 | * @param [properties] Properties to set
|
1351 | */
|
1352 | constructor(properties?: google.cloud.language.v1.ITextSpan);
|
1353 |
|
1354 | /** TextSpan content. */
|
1355 | public content: string;
|
1356 |
|
1357 | /** TextSpan beginOffset. */
|
1358 | public beginOffset: number;
|
1359 |
|
1360 | /**
|
1361 | * Creates a new TextSpan instance using the specified properties.
|
1362 | * @param [properties] Properties to set
|
1363 | * @returns TextSpan instance
|
1364 | */
|
1365 | public static create(properties?: google.cloud.language.v1.ITextSpan): google.cloud.language.v1.TextSpan;
|
1366 |
|
1367 | /**
|
1368 | * Encodes the specified TextSpan message. Does not implicitly { google.cloud.language.v1.TextSpan.verify|verify} messages.
|
1369 | * message TextSpan message or plain object to encode
|
1370 | * [writer] Writer to encode to
|
1371 | * Writer
|
1372 | */
|
1373 | public static encode(message: google.cloud.language.v1.ITextSpan, writer?: $protobuf.Writer): $protobuf.Writer;
|
1374 |
|
1375 | /**
|
1376 | * Encodes the specified TextSpan message, length delimited. Does not implicitly {@link google.cloud.language.v1.TextSpan.verify|verify} messages.
|
1377 | * @param message TextSpan message or plain object to encode
|
1378 | * @param [writer] Writer to encode to
|
1379 | * @returns Writer
|
1380 | */
|
1381 | public static encodeDelimited(message: google.cloud.language.v1.ITextSpan, writer?: $protobuf.Writer): $protobuf.Writer;
|
1382 |
|
1383 | /**
|
1384 | * Decodes a TextSpan message from the specified reader or buffer.
|
1385 | * @param reader Reader or buffer to decode from
|
1386 | * @param [length] Message length if known beforehand
|
1387 | * @returns TextSpan
|
1388 | * @throws {Error} If the payload is not a reader or valid buffer
|
1389 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1390 | */
|
1391 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.language.v1.TextSpan;
|
1392 |
|
1393 | /**
|
1394 | * Decodes a TextSpan message from the specified reader or buffer, length delimited.
|
1395 | * @param reader Reader or buffer to decode from
|
1396 | * @returns TextSpan
|
1397 | * @throws {Error} If the payload is not a reader or valid buffer
|
1398 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1399 | */
|
1400 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.language.v1.TextSpan;
|
1401 |
|
1402 | /**
|
1403 | * Verifies a TextSpan message.
|
1404 | * @param message Plain object to verify
|
1405 | * @returns `null` if valid, otherwise the reason why it is not
|
1406 | */
|
1407 | public static verify(message: { [k: string]: any }): (string|null);
|
1408 |
|
1409 | /**
|
1410 | * Creates a TextSpan message from a plain object. Also converts values to their respective internal types.
|
1411 | * @param object Plain object
|
1412 | * @returns TextSpan
|
1413 | */
|
1414 | public static fromObject(object: { [k: string]: any }): google.cloud.language.v1.TextSpan;
|
1415 |
|
1416 | /**
|
1417 | * Creates a plain object from a TextSpan message. Also converts values to other types if specified.
|
1418 | * @param message TextSpan
|
1419 | * @param [options] Conversion options
|
1420 | * @returns Plain object
|
1421 | */
|
1422 | public static toObject(message: google.cloud.language.v1.TextSpan, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
1423 |
|
1424 | /**
|
1425 | * Converts this TextSpan to JSON.
|
1426 | * @returns JSON object
|
1427 | */
|
1428 | public toJSON(): { [k: string]: any };
|
1429 | }
|
1430 |
|
1431 | /** Properties of a ClassificationCategory. */
|
1432 | interface IClassificationCategory {
|
1433 |
|
1434 | /** ClassificationCategory name */
|
1435 | name?: (string|null);
|
1436 |
|
1437 | /** ClassificationCategory confidence */
|
1438 | confidence?: (number|null);
|
1439 | }
|
1440 |
|
1441 | /** Represents a ClassificationCategory. */
|
1442 | class ClassificationCategory implements IClassificationCategory {
|
1443 |
|
1444 | /**
|
1445 | * Constructs a new ClassificationCategory.
|
1446 | * @param [properties] Properties to set
|
1447 | */
|
1448 | constructor(properties?: google.cloud.language.v1.IClassificationCategory);
|
1449 |
|
1450 | /** ClassificationCategory name. */
|
1451 | public name: string;
|
1452 |
|
1453 | /** ClassificationCategory confidence. */
|
1454 | public confidence: number;
|
1455 |
|
1456 | /**
|
1457 | * Creates a new ClassificationCategory instance using the specified properties.
|
1458 | * @param [properties] Properties to set
|
1459 | * @returns ClassificationCategory instance
|
1460 | */
|
1461 | public static create(properties?: google.cloud.language.v1.IClassificationCategory): google.cloud.language.v1.ClassificationCategory;
|
1462 |
|
1463 | /**
|
1464 | * Encodes the specified ClassificationCategory message. Does not implicitly { google.cloud.language.v1.ClassificationCategory.verify|verify} messages.
|
1465 | * message ClassificationCategory message or plain object to encode
|
1466 | * [writer] Writer to encode to
|
1467 | * Writer
|
1468 | */
|
1469 | public static encode(message: google.cloud.language.v1.IClassificationCategory, writer?: $protobuf.Writer): $protobuf.Writer;
|
1470 |
|
1471 | /**
|
1472 | * Encodes the specified ClassificationCategory message, length delimited. Does not implicitly {@link google.cloud.language.v1.ClassificationCategory.verify|verify} messages.
|
1473 | * @param message ClassificationCategory message or plain object to encode
|
1474 | * @param [writer] Writer to encode to
|
1475 | * @returns Writer
|
1476 | */
|
1477 | public static encodeDelimited(message: google.cloud.language.v1.IClassificationCategory, writer?: $protobuf.Writer): $protobuf.Writer;
|
1478 |
|
1479 | /**
|
1480 | * Decodes a ClassificationCategory message from the specified reader or buffer.
|
1481 | * @param reader Reader or buffer to decode from
|
1482 | * @param [length] Message length if known beforehand
|
1483 | * @returns ClassificationCategory
|
1484 | * @throws {Error} If the payload is not a reader or valid buffer
|
1485 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1486 | */
|
1487 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.language.v1.ClassificationCategory;
|
1488 |
|
1489 | /**
|
1490 | * Decodes a ClassificationCategory message from the specified reader or buffer, length delimited.
|
1491 | * @param reader Reader or buffer to decode from
|
1492 | * @returns ClassificationCategory
|
1493 | * @throws {Error} If the payload is not a reader or valid buffer
|
1494 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1495 | */
|
1496 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.language.v1.ClassificationCategory;
|
1497 |
|
1498 | /**
|
1499 | * Verifies a ClassificationCategory message.
|
1500 | * @param message Plain object to verify
|
1501 | * @returns `null` if valid, otherwise the reason why it is not
|
1502 | */
|
1503 | public static verify(message: { [k: string]: any }): (string|null);
|
1504 |
|
1505 | /**
|
1506 | * Creates a ClassificationCategory message from a plain object. Also converts values to their respective internal types.
|
1507 | * @param object Plain object
|
1508 | * @returns ClassificationCategory
|
1509 | */
|
1510 | public static fromObject(object: { [k: string]: any }): google.cloud.language.v1.ClassificationCategory;
|
1511 |
|
1512 | /**
|
1513 | * Creates a plain object from a ClassificationCategory message. Also converts values to other types if specified.
|
1514 | * @param message ClassificationCategory
|
1515 | * @param [options] Conversion options
|
1516 | * @returns Plain object
|
1517 | */
|
1518 | public static toObject(message: google.cloud.language.v1.ClassificationCategory, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
1519 |
|
1520 | /**
|
1521 | * Converts this ClassificationCategory to JSON.
|
1522 | * @returns JSON object
|
1523 | */
|
1524 | public toJSON(): { [k: string]: any };
|
1525 | }
|
1526 |
|
1527 | /** Properties of an AnalyzeSentimentRequest. */
|
1528 | interface IAnalyzeSentimentRequest {
|
1529 |
|
1530 | /** AnalyzeSentimentRequest document */
|
1531 | document?: (google.cloud.language.v1.IDocument|null);
|
1532 |
|
1533 | /** AnalyzeSentimentRequest encodingType */
|
1534 | encodingType?: (google.cloud.language.v1.EncodingType|keyof typeof google.cloud.language.v1.EncodingType|null);
|
1535 | }
|
1536 |
|
1537 | /** Represents an AnalyzeSentimentRequest. */
|
1538 | class AnalyzeSentimentRequest implements IAnalyzeSentimentRequest {
|
1539 |
|
1540 | /**
|
1541 | * Constructs a new AnalyzeSentimentRequest.
|
1542 | * @param [properties] Properties to set
|
1543 | */
|
1544 | constructor(properties?: google.cloud.language.v1.IAnalyzeSentimentRequest);
|
1545 |
|
1546 | /** AnalyzeSentimentRequest document. */
|
1547 | public document?: (google.cloud.language.v1.IDocument|null);
|
1548 |
|
1549 | /** AnalyzeSentimentRequest encodingType. */
|
1550 | public encodingType: (google.cloud.language.v1.EncodingType|keyof typeof google.cloud.language.v1.EncodingType);
|
1551 |
|
1552 | /**
|
1553 | * Creates a new AnalyzeSentimentRequest instance using the specified properties.
|
1554 | * @param [properties] Properties to set
|
1555 | * @returns AnalyzeSentimentRequest instance
|
1556 | */
|
1557 | public static create(properties?: google.cloud.language.v1.IAnalyzeSentimentRequest): google.cloud.language.v1.AnalyzeSentimentRequest;
|
1558 |
|
1559 | /**
|
1560 | * Encodes the specified AnalyzeSentimentRequest message. Does not implicitly { google.cloud.language.v1.AnalyzeSentimentRequest.verify|verify} messages.
|
1561 | * message AnalyzeSentimentRequest message or plain object to encode
|
1562 | * [writer] Writer to encode to
|
1563 | * Writer
|
1564 | */
|
1565 | public static encode(message: google.cloud.language.v1.IAnalyzeSentimentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
1566 |
|
1567 | /**
|
1568 | * Encodes the specified AnalyzeSentimentRequest message, length delimited. Does not implicitly {@link google.cloud.language.v1.AnalyzeSentimentRequest.verify|verify} messages.
|
1569 | * @param message AnalyzeSentimentRequest message or plain object to encode
|
1570 | * @param [writer] Writer to encode to
|
1571 | * @returns Writer
|
1572 | */
|
1573 | public static encodeDelimited(message: google.cloud.language.v1.IAnalyzeSentimentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
1574 |
|
1575 | /**
|
1576 | * Decodes an AnalyzeSentimentRequest message from the specified reader or buffer.
|
1577 | * @param reader Reader or buffer to decode from
|
1578 | * @param [length] Message length if known beforehand
|
1579 | * @returns AnalyzeSentimentRequest
|
1580 | * @throws {Error} If the payload is not a reader or valid buffer
|
1581 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1582 | */
|
1583 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.language.v1.AnalyzeSentimentRequest;
|
1584 |
|
1585 | /**
|
1586 | * Decodes an AnalyzeSentimentRequest message from the specified reader or buffer, length delimited.
|
1587 | * @param reader Reader or buffer to decode from
|
1588 | * @returns AnalyzeSentimentRequest
|
1589 | * @throws {Error} If the payload is not a reader or valid buffer
|
1590 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1591 | */
|
1592 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.language.v1.AnalyzeSentimentRequest;
|
1593 |
|
1594 | /**
|
1595 | * Verifies an AnalyzeSentimentRequest message.
|
1596 | * @param message Plain object to verify
|
1597 | * @returns `null` if valid, otherwise the reason why it is not
|
1598 | */
|
1599 | public static verify(message: { [k: string]: any }): (string|null);
|
1600 |
|
1601 | /**
|
1602 | * Creates an AnalyzeSentimentRequest message from a plain object. Also converts values to their respective internal types.
|
1603 | * @param object Plain object
|
1604 | * @returns AnalyzeSentimentRequest
|
1605 | */
|
1606 | public static fromObject(object: { [k: string]: any }): google.cloud.language.v1.AnalyzeSentimentRequest;
|
1607 |
|
1608 | /**
|
1609 | * Creates a plain object from an AnalyzeSentimentRequest message. Also converts values to other types if specified.
|
1610 | * @param message AnalyzeSentimentRequest
|
1611 | * @param [options] Conversion options
|
1612 | * @returns Plain object
|
1613 | */
|
1614 | public static toObject(message: google.cloud.language.v1.AnalyzeSentimentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
1615 |
|
1616 | /**
|
1617 | * Converts this AnalyzeSentimentRequest to JSON.
|
1618 | * @returns JSON object
|
1619 | */
|
1620 | public toJSON(): { [k: string]: any };
|
1621 | }
|
1622 |
|
1623 | /** Properties of an AnalyzeSentimentResponse. */
|
1624 | interface IAnalyzeSentimentResponse {
|
1625 |
|
1626 | /** AnalyzeSentimentResponse documentSentiment */
|
1627 | documentSentiment?: (google.cloud.language.v1.ISentiment|null);
|
1628 |
|
1629 | /** AnalyzeSentimentResponse language */
|
1630 | language?: (string|null);
|
1631 |
|
1632 | /** AnalyzeSentimentResponse sentences */
|
1633 | sentences?: (google.cloud.language.v1.ISentence[]|null);
|
1634 | }
|
1635 |
|
1636 | /** Represents an AnalyzeSentimentResponse. */
|
1637 | class AnalyzeSentimentResponse implements IAnalyzeSentimentResponse {
|
1638 |
|
1639 | /**
|
1640 | * Constructs a new AnalyzeSentimentResponse.
|
1641 | * @param [properties] Properties to set
|
1642 | */
|
1643 | constructor(properties?: google.cloud.language.v1.IAnalyzeSentimentResponse);
|
1644 |
|
1645 | /** AnalyzeSentimentResponse documentSentiment. */
|
1646 | public documentSentiment?: (google.cloud.language.v1.ISentiment|null);
|
1647 |
|
1648 | /** AnalyzeSentimentResponse language. */
|
1649 | public language: string;
|
1650 |
|
1651 | /** AnalyzeSentimentResponse sentences. */
|
1652 | public sentences: google.cloud.language.v1.ISentence[];
|
1653 |
|
1654 | /**
|
1655 | * Creates a new AnalyzeSentimentResponse instance using the specified properties.
|
1656 | * @param [properties] Properties to set
|
1657 | * @returns AnalyzeSentimentResponse instance
|
1658 | */
|
1659 | public static create(properties?: google.cloud.language.v1.IAnalyzeSentimentResponse): google.cloud.language.v1.AnalyzeSentimentResponse;
|
1660 |
|
1661 | /**
|
1662 | * Encodes the specified AnalyzeSentimentResponse message. Does not implicitly { google.cloud.language.v1.AnalyzeSentimentResponse.verify|verify} messages.
|
1663 | * message AnalyzeSentimentResponse message or plain object to encode
|
1664 | * [writer] Writer to encode to
|
1665 | * Writer
|
1666 | */
|
1667 | public static encode(message: google.cloud.language.v1.IAnalyzeSentimentResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
1668 |
|
1669 | /**
|
1670 | * Encodes the specified AnalyzeSentimentResponse message, length delimited. Does not implicitly {@link google.cloud.language.v1.AnalyzeSentimentResponse.verify|verify} messages.
|
1671 | * @param message AnalyzeSentimentResponse message or plain object to encode
|
1672 | * @param [writer] Writer to encode to
|
1673 | * @returns Writer
|
1674 | */
|
1675 | public static encodeDelimited(message: google.cloud.language.v1.IAnalyzeSentimentResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
1676 |
|
1677 | /**
|
1678 | * Decodes an AnalyzeSentimentResponse message from the specified reader or buffer.
|
1679 | * @param reader Reader or buffer to decode from
|
1680 | * @param [length] Message length if known beforehand
|
1681 | * @returns AnalyzeSentimentResponse
|
1682 | * @throws {Error} If the payload is not a reader or valid buffer
|
1683 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1684 | */
|
1685 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.language.v1.AnalyzeSentimentResponse;
|
1686 |
|
1687 | /**
|
1688 | * Decodes an AnalyzeSentimentResponse message from the specified reader or buffer, length delimited.
|
1689 | * @param reader Reader or buffer to decode from
|
1690 | * @returns AnalyzeSentimentResponse
|
1691 | * @throws {Error} If the payload is not a reader or valid buffer
|
1692 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1693 | */
|
1694 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.language.v1.AnalyzeSentimentResponse;
|
1695 |
|
1696 | /**
|
1697 | * Verifies an AnalyzeSentimentResponse message.
|
1698 | * @param message Plain object to verify
|
1699 | * @returns `null` if valid, otherwise the reason why it is not
|
1700 | */
|
1701 | public static verify(message: { [k: string]: any }): (string|null);
|
1702 |
|
1703 | /**
|
1704 | * Creates an AnalyzeSentimentResponse message from a plain object. Also converts values to their respective internal types.
|
1705 | * @param object Plain object
|
1706 | * @returns AnalyzeSentimentResponse
|
1707 | */
|
1708 | public static fromObject(object: { [k: string]: any }): google.cloud.language.v1.AnalyzeSentimentResponse;
|
1709 |
|
1710 | /**
|
1711 | * Creates a plain object from an AnalyzeSentimentResponse message. Also converts values to other types if specified.
|
1712 | * @param message AnalyzeSentimentResponse
|
1713 | * @param [options] Conversion options
|
1714 | * @returns Plain object
|
1715 | */
|
1716 | public static toObject(message: google.cloud.language.v1.AnalyzeSentimentResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
1717 |
|
1718 | /**
|
1719 | * Converts this AnalyzeSentimentResponse to JSON.
|
1720 | * @returns JSON object
|
1721 | */
|
1722 | public toJSON(): { [k: string]: any };
|
1723 | }
|
1724 |
|
1725 | /** Properties of an AnalyzeEntitySentimentRequest. */
|
1726 | interface IAnalyzeEntitySentimentRequest {
|
1727 |
|
1728 | /** AnalyzeEntitySentimentRequest document */
|
1729 | document?: (google.cloud.language.v1.IDocument|null);
|
1730 |
|
1731 | /** AnalyzeEntitySentimentRequest encodingType */
|
1732 | encodingType?: (google.cloud.language.v1.EncodingType|keyof typeof google.cloud.language.v1.EncodingType|null);
|
1733 | }
|
1734 |
|
1735 | /** Represents an AnalyzeEntitySentimentRequest. */
|
1736 | class AnalyzeEntitySentimentRequest implements IAnalyzeEntitySentimentRequest {
|
1737 |
|
1738 | /**
|
1739 | * Constructs a new AnalyzeEntitySentimentRequest.
|
1740 | * @param [properties] Properties to set
|
1741 | */
|
1742 | constructor(properties?: google.cloud.language.v1.IAnalyzeEntitySentimentRequest);
|
1743 |
|
1744 | /** AnalyzeEntitySentimentRequest document. */
|
1745 | public document?: (google.cloud.language.v1.IDocument|null);
|
1746 |
|
1747 | /** AnalyzeEntitySentimentRequest encodingType. */
|
1748 | public encodingType: (google.cloud.language.v1.EncodingType|keyof typeof google.cloud.language.v1.EncodingType);
|
1749 |
|
1750 | /**
|
1751 | * Creates a new AnalyzeEntitySentimentRequest instance using the specified properties.
|
1752 | * @param [properties] Properties to set
|
1753 | * @returns AnalyzeEntitySentimentRequest instance
|
1754 | */
|
1755 | public static create(properties?: google.cloud.language.v1.IAnalyzeEntitySentimentRequest): google.cloud.language.v1.AnalyzeEntitySentimentRequest;
|
1756 |
|
1757 | /**
|
1758 | * Encodes the specified AnalyzeEntitySentimentRequest message. Does not implicitly { google.cloud.language.v1.AnalyzeEntitySentimentRequest.verify|verify} messages.
|
1759 | * message AnalyzeEntitySentimentRequest message or plain object to encode
|
1760 | * [writer] Writer to encode to
|
1761 | * Writer
|
1762 | */
|
1763 | public static encode(message: google.cloud.language.v1.IAnalyzeEntitySentimentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
1764 |
|
1765 | /**
|
1766 | * Encodes the specified AnalyzeEntitySentimentRequest message, length delimited. Does not implicitly {@link google.cloud.language.v1.AnalyzeEntitySentimentRequest.verify|verify} messages.
|
1767 | * @param message AnalyzeEntitySentimentRequest message or plain object to encode
|
1768 | * @param [writer] Writer to encode to
|
1769 | * @returns Writer
|
1770 | */
|
1771 | public static encodeDelimited(message: google.cloud.language.v1.IAnalyzeEntitySentimentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
1772 |
|
1773 | /**
|
1774 | * Decodes an AnalyzeEntitySentimentRequest message from the specified reader or buffer.
|
1775 | * @param reader Reader or buffer to decode from
|
1776 | * @param [length] Message length if known beforehand
|
1777 | * @returns AnalyzeEntitySentimentRequest
|
1778 | * @throws {Error} If the payload is not a reader or valid buffer
|
1779 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1780 | */
|
1781 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.language.v1.AnalyzeEntitySentimentRequest;
|
1782 |
|
1783 | /**
|
1784 | * Decodes an AnalyzeEntitySentimentRequest message from the specified reader or buffer, length delimited.
|
1785 | * @param reader Reader or buffer to decode from
|
1786 | * @returns AnalyzeEntitySentimentRequest
|
1787 | * @throws {Error} If the payload is not a reader or valid buffer
|
1788 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1789 | */
|
1790 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.language.v1.AnalyzeEntitySentimentRequest;
|
1791 |
|
1792 | /**
|
1793 | * Verifies an AnalyzeEntitySentimentRequest message.
|
1794 | * @param message Plain object to verify
|
1795 | * @returns `null` if valid, otherwise the reason why it is not
|
1796 | */
|
1797 | public static verify(message: { [k: string]: any }): (string|null);
|
1798 |
|
1799 | /**
|
1800 | * Creates an AnalyzeEntitySentimentRequest message from a plain object. Also converts values to their respective internal types.
|
1801 | * @param object Plain object
|
1802 | * @returns AnalyzeEntitySentimentRequest
|
1803 | */
|
1804 | public static fromObject(object: { [k: string]: any }): google.cloud.language.v1.AnalyzeEntitySentimentRequest;
|
1805 |
|
1806 | /**
|
1807 | * Creates a plain object from an AnalyzeEntitySentimentRequest message. Also converts values to other types if specified.
|
1808 | * @param message AnalyzeEntitySentimentRequest
|
1809 | * @param [options] Conversion options
|
1810 | * @returns Plain object
|
1811 | */
|
1812 | public static toObject(message: google.cloud.language.v1.AnalyzeEntitySentimentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
1813 |
|
1814 | /**
|
1815 | * Converts this AnalyzeEntitySentimentRequest to JSON.
|
1816 | * @returns JSON object
|
1817 | */
|
1818 | public toJSON(): { [k: string]: any };
|
1819 | }
|
1820 |
|
1821 | /** Properties of an AnalyzeEntitySentimentResponse. */
|
1822 | interface IAnalyzeEntitySentimentResponse {
|
1823 |
|
1824 | /** AnalyzeEntitySentimentResponse entities */
|
1825 | entities?: (google.cloud.language.v1.IEntity[]|null);
|
1826 |
|
1827 | /** AnalyzeEntitySentimentResponse language */
|
1828 | language?: (string|null);
|
1829 | }
|
1830 |
|
1831 | /** Represents an AnalyzeEntitySentimentResponse. */
|
1832 | class AnalyzeEntitySentimentResponse implements IAnalyzeEntitySentimentResponse {
|
1833 |
|
1834 | /**
|
1835 | * Constructs a new AnalyzeEntitySentimentResponse.
|
1836 | * @param [properties] Properties to set
|
1837 | */
|
1838 | constructor(properties?: google.cloud.language.v1.IAnalyzeEntitySentimentResponse);
|
1839 |
|
1840 | /** AnalyzeEntitySentimentResponse entities. */
|
1841 | public entities: google.cloud.language.v1.IEntity[];
|
1842 |
|
1843 | /** AnalyzeEntitySentimentResponse language. */
|
1844 | public language: string;
|
1845 |
|
1846 | /**
|
1847 | * Creates a new AnalyzeEntitySentimentResponse instance using the specified properties.
|
1848 | * @param [properties] Properties to set
|
1849 | * @returns AnalyzeEntitySentimentResponse instance
|
1850 | */
|
1851 | public static create(properties?: google.cloud.language.v1.IAnalyzeEntitySentimentResponse): google.cloud.language.v1.AnalyzeEntitySentimentResponse;
|
1852 |
|
1853 | /**
|
1854 | * Encodes the specified AnalyzeEntitySentimentResponse message. Does not implicitly { google.cloud.language.v1.AnalyzeEntitySentimentResponse.verify|verify} messages.
|
1855 | * message AnalyzeEntitySentimentResponse message or plain object to encode
|
1856 | * [writer] Writer to encode to
|
1857 | * Writer
|
1858 | */
|
1859 | public static encode(message: google.cloud.language.v1.IAnalyzeEntitySentimentResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
1860 |
|
1861 | /**
|
1862 | * Encodes the specified AnalyzeEntitySentimentResponse message, length delimited. Does not implicitly {@link google.cloud.language.v1.AnalyzeEntitySentimentResponse.verify|verify} messages.
|
1863 | * @param message AnalyzeEntitySentimentResponse message or plain object to encode
|
1864 | * @param [writer] Writer to encode to
|
1865 | * @returns Writer
|
1866 | */
|
1867 | public static encodeDelimited(message: google.cloud.language.v1.IAnalyzeEntitySentimentResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
1868 |
|
1869 | /**
|
1870 | * Decodes an AnalyzeEntitySentimentResponse message from the specified reader or buffer.
|
1871 | * @param reader Reader or buffer to decode from
|
1872 | * @param [length] Message length if known beforehand
|
1873 | * @returns AnalyzeEntitySentimentResponse
|
1874 | * @throws {Error} If the payload is not a reader or valid buffer
|
1875 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1876 | */
|
1877 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.language.v1.AnalyzeEntitySentimentResponse;
|
1878 |
|
1879 | /**
|
1880 | * Decodes an AnalyzeEntitySentimentResponse message from the specified reader or buffer, length delimited.
|
1881 | * @param reader Reader or buffer to decode from
|
1882 | * @returns AnalyzeEntitySentimentResponse
|
1883 | * @throws {Error} If the payload is not a reader or valid buffer
|
1884 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1885 | */
|
1886 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.language.v1.AnalyzeEntitySentimentResponse;
|
1887 |
|
1888 | /**
|
1889 | * Verifies an AnalyzeEntitySentimentResponse message.
|
1890 | * @param message Plain object to verify
|
1891 | * @returns `null` if valid, otherwise the reason why it is not
|
1892 | */
|
1893 | public static verify(message: { [k: string]: any }): (string|null);
|
1894 |
|
1895 | /**
|
1896 | * Creates an AnalyzeEntitySentimentResponse message from a plain object. Also converts values to their respective internal types.
|
1897 | * @param object Plain object
|
1898 | * @returns AnalyzeEntitySentimentResponse
|
1899 | */
|
1900 | public static fromObject(object: { [k: string]: any }): google.cloud.language.v1.AnalyzeEntitySentimentResponse;
|
1901 |
|
1902 | /**
|
1903 | * Creates a plain object from an AnalyzeEntitySentimentResponse message. Also converts values to other types if specified.
|
1904 | * @param message AnalyzeEntitySentimentResponse
|
1905 | * @param [options] Conversion options
|
1906 | * @returns Plain object
|
1907 | */
|
1908 | public static toObject(message: google.cloud.language.v1.AnalyzeEntitySentimentResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
1909 |
|
1910 | /**
|
1911 | * Converts this AnalyzeEntitySentimentResponse to JSON.
|
1912 | * @returns JSON object
|
1913 | */
|
1914 | public toJSON(): { [k: string]: any };
|
1915 | }
|
1916 |
|
1917 | /** Properties of an AnalyzeEntitiesRequest. */
|
1918 | interface IAnalyzeEntitiesRequest {
|
1919 |
|
1920 | /** AnalyzeEntitiesRequest document */
|
1921 | document?: (google.cloud.language.v1.IDocument|null);
|
1922 |
|
1923 | /** AnalyzeEntitiesRequest encodingType */
|
1924 | encodingType?: (google.cloud.language.v1.EncodingType|keyof typeof google.cloud.language.v1.EncodingType|null);
|
1925 | }
|
1926 |
|
1927 | /** Represents an AnalyzeEntitiesRequest. */
|
1928 | class AnalyzeEntitiesRequest implements IAnalyzeEntitiesRequest {
|
1929 |
|
1930 | /**
|
1931 | * Constructs a new AnalyzeEntitiesRequest.
|
1932 | * @param [properties] Properties to set
|
1933 | */
|
1934 | constructor(properties?: google.cloud.language.v1.IAnalyzeEntitiesRequest);
|
1935 |
|
1936 | /** AnalyzeEntitiesRequest document. */
|
1937 | public document?: (google.cloud.language.v1.IDocument|null);
|
1938 |
|
1939 | /** AnalyzeEntitiesRequest encodingType. */
|
1940 | public encodingType: (google.cloud.language.v1.EncodingType|keyof typeof google.cloud.language.v1.EncodingType);
|
1941 |
|
1942 | /**
|
1943 | * Creates a new AnalyzeEntitiesRequest instance using the specified properties.
|
1944 | * @param [properties] Properties to set
|
1945 | * @returns AnalyzeEntitiesRequest instance
|
1946 | */
|
1947 | public static create(properties?: google.cloud.language.v1.IAnalyzeEntitiesRequest): google.cloud.language.v1.AnalyzeEntitiesRequest;
|
1948 |
|
1949 | /**
|
1950 | * Encodes the specified AnalyzeEntitiesRequest message. Does not implicitly { google.cloud.language.v1.AnalyzeEntitiesRequest.verify|verify} messages.
|
1951 | * message AnalyzeEntitiesRequest message or plain object to encode
|
1952 | * [writer] Writer to encode to
|
1953 | * Writer
|
1954 | */
|
1955 | public static encode(message: google.cloud.language.v1.IAnalyzeEntitiesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
1956 |
|
1957 | /**
|
1958 | * Encodes the specified AnalyzeEntitiesRequest message, length delimited. Does not implicitly {@link google.cloud.language.v1.AnalyzeEntitiesRequest.verify|verify} messages.
|
1959 | * @param message AnalyzeEntitiesRequest message or plain object to encode
|
1960 | * @param [writer] Writer to encode to
|
1961 | * @returns Writer
|
1962 | */
|
1963 | public static encodeDelimited(message: google.cloud.language.v1.IAnalyzeEntitiesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
1964 |
|
1965 | /**
|
1966 | * Decodes an AnalyzeEntitiesRequest message from the specified reader or buffer.
|
1967 | * @param reader Reader or buffer to decode from
|
1968 | * @param [length] Message length if known beforehand
|
1969 | * @returns AnalyzeEntitiesRequest
|
1970 | * @throws {Error} If the payload is not a reader or valid buffer
|
1971 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1972 | */
|
1973 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.language.v1.AnalyzeEntitiesRequest;
|
1974 |
|
1975 | /**
|
1976 | * Decodes an AnalyzeEntitiesRequest message from the specified reader or buffer, length delimited.
|
1977 | * @param reader Reader or buffer to decode from
|
1978 | * @returns AnalyzeEntitiesRequest
|
1979 | * @throws {Error} If the payload is not a reader or valid buffer
|
1980 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1981 | */
|
1982 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.language.v1.AnalyzeEntitiesRequest;
|
1983 |
|
1984 | /**
|
1985 | * Verifies an AnalyzeEntitiesRequest message.
|
1986 | * @param message Plain object to verify
|
1987 | * @returns `null` if valid, otherwise the reason why it is not
|
1988 | */
|
1989 | public static verify(message: { [k: string]: any }): (string|null);
|
1990 |
|
1991 | /**
|
1992 | * Creates an AnalyzeEntitiesRequest message from a plain object. Also converts values to their respective internal types.
|
1993 | * @param object Plain object
|
1994 | * @returns AnalyzeEntitiesRequest
|
1995 | */
|
1996 | public static fromObject(object: { [k: string]: any }): google.cloud.language.v1.AnalyzeEntitiesRequest;
|
1997 |
|
1998 | /**
|
1999 | * Creates a plain object from an AnalyzeEntitiesRequest message. Also converts values to other types if specified.
|
2000 | * @param message AnalyzeEntitiesRequest
|
2001 | * @param [options] Conversion options
|
2002 | * @returns Plain object
|
2003 | */
|
2004 | public static toObject(message: google.cloud.language.v1.AnalyzeEntitiesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
2005 |
|
2006 | /**
|
2007 | * Converts this AnalyzeEntitiesRequest to JSON.
|
2008 | * @returns JSON object
|
2009 | */
|
2010 | public toJSON(): { [k: string]: any };
|
2011 | }
|
2012 |
|
2013 | /** Properties of an AnalyzeEntitiesResponse. */
|
2014 | interface IAnalyzeEntitiesResponse {
|
2015 |
|
2016 | /** AnalyzeEntitiesResponse entities */
|
2017 | entities?: (google.cloud.language.v1.IEntity[]|null);
|
2018 |
|
2019 | /** AnalyzeEntitiesResponse language */
|
2020 | language?: (string|null);
|
2021 | }
|
2022 |
|
2023 | /** Represents an AnalyzeEntitiesResponse. */
|
2024 | class AnalyzeEntitiesResponse implements IAnalyzeEntitiesResponse {
|
2025 |
|
2026 | /**
|
2027 | * Constructs a new AnalyzeEntitiesResponse.
|
2028 | * @param [properties] Properties to set
|
2029 | */
|
2030 | constructor(properties?: google.cloud.language.v1.IAnalyzeEntitiesResponse);
|
2031 |
|
2032 | /** AnalyzeEntitiesResponse entities. */
|
2033 | public entities: google.cloud.language.v1.IEntity[];
|
2034 |
|
2035 | /** AnalyzeEntitiesResponse language. */
|
2036 | public language: string;
|
2037 |
|
2038 | /**
|
2039 | * Creates a new AnalyzeEntitiesResponse instance using the specified properties.
|
2040 | * @param [properties] Properties to set
|
2041 | * @returns AnalyzeEntitiesResponse instance
|
2042 | */
|
2043 | public static create(properties?: google.cloud.language.v1.IAnalyzeEntitiesResponse): google.cloud.language.v1.AnalyzeEntitiesResponse;
|
2044 |
|
2045 | /**
|
2046 | * Encodes the specified AnalyzeEntitiesResponse message. Does not implicitly { google.cloud.language.v1.AnalyzeEntitiesResponse.verify|verify} messages.
|
2047 | * message AnalyzeEntitiesResponse message or plain object to encode
|
2048 | * [writer] Writer to encode to
|
2049 | * Writer
|
2050 | */
|
2051 | public static encode(message: google.cloud.language.v1.IAnalyzeEntitiesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
2052 |
|
2053 | /**
|
2054 | * Encodes the specified AnalyzeEntitiesResponse message, length delimited. Does not implicitly {@link google.cloud.language.v1.AnalyzeEntitiesResponse.verify|verify} messages.
|
2055 | * @param message AnalyzeEntitiesResponse message or plain object to encode
|
2056 | * @param [writer] Writer to encode to
|
2057 | * @returns Writer
|
2058 | */
|
2059 | public static encodeDelimited(message: google.cloud.language.v1.IAnalyzeEntitiesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
2060 |
|
2061 | /**
|
2062 | * Decodes an AnalyzeEntitiesResponse message from the specified reader or buffer.
|
2063 | * @param reader Reader or buffer to decode from
|
2064 | * @param [length] Message length if known beforehand
|
2065 | * @returns AnalyzeEntitiesResponse
|
2066 | * @throws {Error} If the payload is not a reader or valid buffer
|
2067 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
2068 | */
|
2069 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.language.v1.AnalyzeEntitiesResponse;
|
2070 |
|
2071 | /**
|
2072 | * Decodes an AnalyzeEntitiesResponse message from the specified reader or buffer, length delimited.
|
2073 | * @param reader Reader or buffer to decode from
|
2074 | * @returns AnalyzeEntitiesResponse
|
2075 | * @throws {Error} If the payload is not a reader or valid buffer
|
2076 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
2077 | */
|
2078 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.language.v1.AnalyzeEntitiesResponse;
|
2079 |
|
2080 | /**
|
2081 | * Verifies an AnalyzeEntitiesResponse message.
|
2082 | * @param message Plain object to verify
|
2083 | * @returns `null` if valid, otherwise the reason why it is not
|
2084 | */
|
2085 | public static verify(message: { [k: string]: any }): (string|null);
|
2086 |
|
2087 | /**
|
2088 | * Creates an AnalyzeEntitiesResponse message from a plain object. Also converts values to their respective internal types.
|
2089 | * @param object Plain object
|
2090 | * @returns AnalyzeEntitiesResponse
|
2091 | */
|
2092 | public static fromObject(object: { [k: string]: any }): google.cloud.language.v1.AnalyzeEntitiesResponse;
|
2093 |
|
2094 | /**
|
2095 | * Creates a plain object from an AnalyzeEntitiesResponse message. Also converts values to other types if specified.
|
2096 | * @param message AnalyzeEntitiesResponse
|
2097 | * @param [options] Conversion options
|
2098 | * @returns Plain object
|
2099 | */
|
2100 | public static toObject(message: google.cloud.language.v1.AnalyzeEntitiesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
2101 |
|
2102 | /**
|
2103 | * Converts this AnalyzeEntitiesResponse to JSON.
|
2104 | * @returns JSON object
|
2105 | */
|
2106 | public toJSON(): { [k: string]: any };
|
2107 | }
|
2108 |
|
2109 | /** Properties of an AnalyzeSyntaxRequest. */
|
2110 | interface IAnalyzeSyntaxRequest {
|
2111 |
|
2112 | /** AnalyzeSyntaxRequest document */
|
2113 | document?: (google.cloud.language.v1.IDocument|null);
|
2114 |
|
2115 | /** AnalyzeSyntaxRequest encodingType */
|
2116 | encodingType?: (google.cloud.language.v1.EncodingType|keyof typeof google.cloud.language.v1.EncodingType|null);
|
2117 | }
|
2118 |
|
2119 | /** Represents an AnalyzeSyntaxRequest. */
|
2120 | class AnalyzeSyntaxRequest implements IAnalyzeSyntaxRequest {
|
2121 |
|
2122 | /**
|
2123 | * Constructs a new AnalyzeSyntaxRequest.
|
2124 | * @param [properties] Properties to set
|
2125 | */
|
2126 | constructor(properties?: google.cloud.language.v1.IAnalyzeSyntaxRequest);
|
2127 |
|
2128 | /** AnalyzeSyntaxRequest document. */
|
2129 | public document?: (google.cloud.language.v1.IDocument|null);
|
2130 |
|
2131 | /** AnalyzeSyntaxRequest encodingType. */
|
2132 | public encodingType: (google.cloud.language.v1.EncodingType|keyof typeof google.cloud.language.v1.EncodingType);
|
2133 |
|
2134 | /**
|
2135 | * Creates a new AnalyzeSyntaxRequest instance using the specified properties.
|
2136 | * @param [properties] Properties to set
|
2137 | * @returns AnalyzeSyntaxRequest instance
|
2138 | */
|
2139 | public static create(properties?: google.cloud.language.v1.IAnalyzeSyntaxRequest): google.cloud.language.v1.AnalyzeSyntaxRequest;
|
2140 |
|
2141 | /**
|
2142 | * Encodes the specified AnalyzeSyntaxRequest message. Does not implicitly { google.cloud.language.v1.AnalyzeSyntaxRequest.verify|verify} messages.
|
2143 | * message AnalyzeSyntaxRequest message or plain object to encode
|
2144 | * [writer] Writer to encode to
|
2145 | * Writer
|
2146 | */
|
2147 | public static encode(message: google.cloud.language.v1.IAnalyzeSyntaxRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
2148 |
|
2149 | /**
|
2150 | * Encodes the specified AnalyzeSyntaxRequest message, length delimited. Does not implicitly {@link google.cloud.language.v1.AnalyzeSyntaxRequest.verify|verify} messages.
|
2151 | * @param message AnalyzeSyntaxRequest message or plain object to encode
|
2152 | * @param [writer] Writer to encode to
|
2153 | * @returns Writer
|
2154 | */
|
2155 | public static encodeDelimited(message: google.cloud.language.v1.IAnalyzeSyntaxRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
2156 |
|
2157 | /**
|
2158 | * Decodes an AnalyzeSyntaxRequest message from the specified reader or buffer.
|
2159 | * @param reader Reader or buffer to decode from
|
2160 | * @param [length] Message length if known beforehand
|
2161 | * @returns AnalyzeSyntaxRequest
|
2162 | * @throws {Error} If the payload is not a reader or valid buffer
|
2163 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
2164 | */
|
2165 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.language.v1.AnalyzeSyntaxRequest;
|
2166 |
|
2167 | /**
|
2168 | * Decodes an AnalyzeSyntaxRequest message from the specified reader or buffer, length delimited.
|
2169 | * @param reader Reader or buffer to decode from
|
2170 | * @returns AnalyzeSyntaxRequest
|
2171 | * @throws {Error} If the payload is not a reader or valid buffer
|
2172 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
2173 | */
|
2174 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.language.v1.AnalyzeSyntaxRequest;
|
2175 |
|
2176 | /**
|
2177 | * Verifies an AnalyzeSyntaxRequest message.
|
2178 | * @param message Plain object to verify
|
2179 | * @returns `null` if valid, otherwise the reason why it is not
|
2180 | */
|
2181 | public static verify(message: { [k: string]: any }): (string|null);
|
2182 |
|
2183 | /**
|
2184 | * Creates an AnalyzeSyntaxRequest message from a plain object. Also converts values to their respective internal types.
|
2185 | * @param object Plain object
|
2186 | * @returns AnalyzeSyntaxRequest
|
2187 | */
|
2188 | public static fromObject(object: { [k: string]: any }): google.cloud.language.v1.AnalyzeSyntaxRequest;
|
2189 |
|
2190 | /**
|
2191 | * Creates a plain object from an AnalyzeSyntaxRequest message. Also converts values to other types if specified.
|
2192 | * @param message AnalyzeSyntaxRequest
|
2193 | * @param [options] Conversion options
|
2194 | * @returns Plain object
|
2195 | */
|
2196 | public static toObject(message: google.cloud.language.v1.AnalyzeSyntaxRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
2197 |
|
2198 | /**
|
2199 | * Converts this AnalyzeSyntaxRequest to JSON.
|
2200 | * @returns JSON object
|
2201 | */
|
2202 | public toJSON(): { [k: string]: any };
|
2203 | }
|
2204 |
|
2205 | /** Properties of an AnalyzeSyntaxResponse. */
|
2206 | interface IAnalyzeSyntaxResponse {
|
2207 |
|
2208 | /** AnalyzeSyntaxResponse sentences */
|
2209 | sentences?: (google.cloud.language.v1.ISentence[]|null);
|
2210 |
|
2211 | /** AnalyzeSyntaxResponse tokens */
|
2212 | tokens?: (google.cloud.language.v1.IToken[]|null);
|
2213 |
|
2214 | /** AnalyzeSyntaxResponse language */
|
2215 | language?: (string|null);
|
2216 | }
|
2217 |
|
2218 | /** Represents an AnalyzeSyntaxResponse. */
|
2219 | class AnalyzeSyntaxResponse implements IAnalyzeSyntaxResponse {
|
2220 |
|
2221 | /**
|
2222 | * Constructs a new AnalyzeSyntaxResponse.
|
2223 | * @param [properties] Properties to set
|
2224 | */
|
2225 | constructor(properties?: google.cloud.language.v1.IAnalyzeSyntaxResponse);
|
2226 |
|
2227 | /** AnalyzeSyntaxResponse sentences. */
|
2228 | public sentences: google.cloud.language.v1.ISentence[];
|
2229 |
|
2230 | /** AnalyzeSyntaxResponse tokens. */
|
2231 | public tokens: google.cloud.language.v1.IToken[];
|
2232 |
|
2233 | /** AnalyzeSyntaxResponse language. */
|
2234 | public language: string;
|
2235 |
|
2236 | /**
|
2237 | * Creates a new AnalyzeSyntaxResponse instance using the specified properties.
|
2238 | * @param [properties] Properties to set
|
2239 | * @returns AnalyzeSyntaxResponse instance
|
2240 | */
|
2241 | public static create(properties?: google.cloud.language.v1.IAnalyzeSyntaxResponse): google.cloud.language.v1.AnalyzeSyntaxResponse;
|
2242 |
|
2243 | /**
|
2244 | * Encodes the specified AnalyzeSyntaxResponse message. Does not implicitly { google.cloud.language.v1.AnalyzeSyntaxResponse.verify|verify} messages.
|
2245 | * message AnalyzeSyntaxResponse message or plain object to encode
|
2246 | * [writer] Writer to encode to
|
2247 | * Writer
|
2248 | */
|
2249 | public static encode(message: google.cloud.language.v1.IAnalyzeSyntaxResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
2250 |
|
2251 | /**
|
2252 | * Encodes the specified AnalyzeSyntaxResponse message, length delimited. Does not implicitly {@link google.cloud.language.v1.AnalyzeSyntaxResponse.verify|verify} messages.
|
2253 | * @param message AnalyzeSyntaxResponse message or plain object to encode
|
2254 | * @param [writer] Writer to encode to
|
2255 | * @returns Writer
|
2256 | */
|
2257 | public static encodeDelimited(message: google.cloud.language.v1.IAnalyzeSyntaxResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
2258 |
|
2259 | /**
|
2260 | * Decodes an AnalyzeSyntaxResponse message from the specified reader or buffer.
|
2261 | * @param reader Reader or buffer to decode from
|
2262 | * @param [length] Message length if known beforehand
|
2263 | * @returns AnalyzeSyntaxResponse
|
2264 | * @throws {Error} If the payload is not a reader or valid buffer
|
2265 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
2266 | */
|
2267 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.language.v1.AnalyzeSyntaxResponse;
|
2268 |
|
2269 | /**
|
2270 | * Decodes an AnalyzeSyntaxResponse message from the specified reader or buffer, length delimited.
|
2271 | * @param reader Reader or buffer to decode from
|
2272 | * @returns AnalyzeSyntaxResponse
|
2273 | * @throws {Error} If the payload is not a reader or valid buffer
|
2274 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
2275 | */
|
2276 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.language.v1.AnalyzeSyntaxResponse;
|
2277 |
|
2278 | /**
|
2279 | * Verifies an AnalyzeSyntaxResponse message.
|
2280 | * @param message Plain object to verify
|
2281 | * @returns `null` if valid, otherwise the reason why it is not
|
2282 | */
|
2283 | public static verify(message: { [k: string]: any }): (string|null);
|
2284 |
|
2285 | /**
|
2286 | * Creates an AnalyzeSyntaxResponse message from a plain object. Also converts values to their respective internal types.
|
2287 | * @param object Plain object
|
2288 | * @returns AnalyzeSyntaxResponse
|
2289 | */
|
2290 | public static fromObject(object: { [k: string]: any }): google.cloud.language.v1.AnalyzeSyntaxResponse;
|
2291 |
|
2292 | /**
|
2293 | * Creates a plain object from an AnalyzeSyntaxResponse message. Also converts values to other types if specified.
|
2294 | * @param message AnalyzeSyntaxResponse
|
2295 | * @param [options] Conversion options
|
2296 | * @returns Plain object
|
2297 | */
|
2298 | public static toObject(message: google.cloud.language.v1.AnalyzeSyntaxResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
2299 |
|
2300 | /**
|
2301 | * Converts this AnalyzeSyntaxResponse to JSON.
|
2302 | * @returns JSON object
|
2303 | */
|
2304 | public toJSON(): { [k: string]: any };
|
2305 | }
|
2306 |
|
2307 | /** Properties of a ClassifyTextRequest. */
|
2308 | interface IClassifyTextRequest {
|
2309 |
|
2310 | /** ClassifyTextRequest document */
|
2311 | document?: (google.cloud.language.v1.IDocument|null);
|
2312 | }
|
2313 |
|
2314 | /** Represents a ClassifyTextRequest. */
|
2315 | class ClassifyTextRequest implements IClassifyTextRequest {
|
2316 |
|
2317 | /**
|
2318 | * Constructs a new ClassifyTextRequest.
|
2319 | * @param [properties] Properties to set
|
2320 | */
|
2321 | constructor(properties?: google.cloud.language.v1.IClassifyTextRequest);
|
2322 |
|
2323 | /** ClassifyTextRequest document. */
|
2324 | public document?: (google.cloud.language.v1.IDocument|null);
|
2325 |
|
2326 | /**
|
2327 | * Creates a new ClassifyTextRequest instance using the specified properties.
|
2328 | * @param [properties] Properties to set
|
2329 | * @returns ClassifyTextRequest instance
|
2330 | */
|
2331 | public static create(properties?: google.cloud.language.v1.IClassifyTextRequest): google.cloud.language.v1.ClassifyTextRequest;
|
2332 |
|
2333 | /**
|
2334 | * Encodes the specified ClassifyTextRequest message. Does not implicitly { google.cloud.language.v1.ClassifyTextRequest.verify|verify} messages.
|
2335 | * message ClassifyTextRequest message or plain object to encode
|
2336 | * [writer] Writer to encode to
|
2337 | * Writer
|
2338 | */
|
2339 | public static encode(message: google.cloud.language.v1.IClassifyTextRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
2340 |
|
2341 | /**
|
2342 | * Encodes the specified ClassifyTextRequest message, length delimited. Does not implicitly {@link google.cloud.language.v1.ClassifyTextRequest.verify|verify} messages.
|
2343 | * @param message ClassifyTextRequest message or plain object to encode
|
2344 | * @param [writer] Writer to encode to
|
2345 | * @returns Writer
|
2346 | */
|
2347 | public static encodeDelimited(message: google.cloud.language.v1.IClassifyTextRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
2348 |
|
2349 | /**
|
2350 | * Decodes a ClassifyTextRequest message from the specified reader or buffer.
|
2351 | * @param reader Reader or buffer to decode from
|
2352 | * @param [length] Message length if known beforehand
|
2353 | * @returns ClassifyTextRequest
|
2354 | * @throws {Error} If the payload is not a reader or valid buffer
|
2355 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
2356 | */
|
2357 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.language.v1.ClassifyTextRequest;
|
2358 |
|
2359 | /**
|
2360 | * Decodes a ClassifyTextRequest message from the specified reader or buffer, length delimited.
|
2361 | * @param reader Reader or buffer to decode from
|
2362 | * @returns ClassifyTextRequest
|
2363 | * @throws {Error} If the payload is not a reader or valid buffer
|
2364 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
2365 | */
|
2366 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.language.v1.ClassifyTextRequest;
|
2367 |
|
2368 | /**
|
2369 | * Verifies a ClassifyTextRequest message.
|
2370 | * @param message Plain object to verify
|
2371 | * @returns `null` if valid, otherwise the reason why it is not
|
2372 | */
|
2373 | public static verify(message: { [k: string]: any }): (string|null);
|
2374 |
|
2375 | /**
|
2376 | * Creates a ClassifyTextRequest message from a plain object. Also converts values to their respective internal types.
|
2377 | * @param object Plain object
|
2378 | * @returns ClassifyTextRequest
|
2379 | */
|
2380 | public static fromObject(object: { [k: string]: any }): google.cloud.language.v1.ClassifyTextRequest;
|
2381 |
|
2382 | /**
|
2383 | * Creates a plain object from a ClassifyTextRequest message. Also converts values to other types if specified.
|
2384 | * @param message ClassifyTextRequest
|
2385 | * @param [options] Conversion options
|
2386 | * @returns Plain object
|
2387 | */
|
2388 | public static toObject(message: google.cloud.language.v1.ClassifyTextRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
2389 |
|
2390 | /**
|
2391 | * Converts this ClassifyTextRequest to JSON.
|
2392 | * @returns JSON object
|
2393 | */
|
2394 | public toJSON(): { [k: string]: any };
|
2395 | }
|
2396 |
|
2397 | /** Properties of a ClassifyTextResponse. */
|
2398 | interface IClassifyTextResponse {
|
2399 |
|
2400 | /** ClassifyTextResponse categories */
|
2401 | categories?: (google.cloud.language.v1.IClassificationCategory[]|null);
|
2402 | }
|
2403 |
|
2404 | /** Represents a ClassifyTextResponse. */
|
2405 | class ClassifyTextResponse implements IClassifyTextResponse {
|
2406 |
|
2407 | /**
|
2408 | * Constructs a new ClassifyTextResponse.
|
2409 | * @param [properties] Properties to set
|
2410 | */
|
2411 | constructor(properties?: google.cloud.language.v1.IClassifyTextResponse);
|
2412 |
|
2413 | /** ClassifyTextResponse categories. */
|
2414 | public categories: google.cloud.language.v1.IClassificationCategory[];
|
2415 |
|
2416 | /**
|
2417 | * Creates a new ClassifyTextResponse instance using the specified properties.
|
2418 | * @param [properties] Properties to set
|
2419 | * @returns ClassifyTextResponse instance
|
2420 | */
|
2421 | public static create(properties?: google.cloud.language.v1.IClassifyTextResponse): google.cloud.language.v1.ClassifyTextResponse;
|
2422 |
|
2423 | /**
|
2424 | * Encodes the specified ClassifyTextResponse message. Does not implicitly { google.cloud.language.v1.ClassifyTextResponse.verify|verify} messages.
|
2425 | * message ClassifyTextResponse message or plain object to encode
|
2426 | * [writer] Writer to encode to
|
2427 | * Writer
|
2428 | */
|
2429 | public static encode(message: google.cloud.language.v1.IClassifyTextResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
2430 |
|
2431 | /**
|
2432 | * Encodes the specified ClassifyTextResponse message, length delimited. Does not implicitly {@link google.cloud.language.v1.ClassifyTextResponse.verify|verify} messages.
|
2433 | * @param message ClassifyTextResponse message or plain object to encode
|
2434 | * @param [writer] Writer to encode to
|
2435 | * @returns Writer
|
2436 | */
|
2437 | public static encodeDelimited(message: google.cloud.language.v1.IClassifyTextResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
2438 |
|
2439 | /**
|
2440 | * Decodes a ClassifyTextResponse message from the specified reader or buffer.
|
2441 | * @param reader Reader or buffer to decode from
|
2442 | * @param [length] Message length if known beforehand
|
2443 | * @returns ClassifyTextResponse
|
2444 | * @throws {Error} If the payload is not a reader or valid buffer
|
2445 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
2446 | */
|
2447 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.language.v1.ClassifyTextResponse;
|
2448 |
|
2449 | /**
|
2450 | * Decodes a ClassifyTextResponse message from the specified reader or buffer, length delimited.
|
2451 | * @param reader Reader or buffer to decode from
|
2452 | * @returns ClassifyTextResponse
|
2453 | * @throws {Error} If the payload is not a reader or valid buffer
|
2454 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
2455 | */
|
2456 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.language.v1.ClassifyTextResponse;
|
2457 |
|
2458 | /**
|
2459 | * Verifies a ClassifyTextResponse message.
|
2460 | * @param message Plain object to verify
|
2461 | * @returns `null` if valid, otherwise the reason why it is not
|
2462 | */
|
2463 | public static verify(message: { [k: string]: any }): (string|null);
|
2464 |
|
2465 | /**
|
2466 | * Creates a ClassifyTextResponse message from a plain object. Also converts values to their respective internal types.
|
2467 | * @param object Plain object
|
2468 | * @returns ClassifyTextResponse
|
2469 | */
|
2470 | public static fromObject(object: { [k: string]: any }): google.cloud.language.v1.ClassifyTextResponse;
|
2471 |
|
2472 | /**
|
2473 | * Creates a plain object from a ClassifyTextResponse message. Also converts values to other types if specified.
|
2474 | * @param message ClassifyTextResponse
|
2475 | * @param [options] Conversion options
|
2476 | * @returns Plain object
|
2477 | */
|
2478 | public static toObject(message: google.cloud.language.v1.ClassifyTextResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
2479 |
|
2480 | /**
|
2481 | * Converts this ClassifyTextResponse to JSON.
|
2482 | * @returns JSON object
|
2483 | */
|
2484 | public toJSON(): { [k: string]: any };
|
2485 | }
|
2486 |
|
2487 | /** Properties of an AnnotateTextRequest. */
|
2488 | interface IAnnotateTextRequest {
|
2489 |
|
2490 | /** AnnotateTextRequest document */
|
2491 | document?: (google.cloud.language.v1.IDocument|null);
|
2492 |
|
2493 | /** AnnotateTextRequest features */
|
2494 | features?: (google.cloud.language.v1.AnnotateTextRequest.IFeatures|null);
|
2495 |
|
2496 | /** AnnotateTextRequest encodingType */
|
2497 | encodingType?: (google.cloud.language.v1.EncodingType|keyof typeof google.cloud.language.v1.EncodingType|null);
|
2498 | }
|
2499 |
|
2500 | /** Represents an AnnotateTextRequest. */
|
2501 | class AnnotateTextRequest implements IAnnotateTextRequest {
|
2502 |
|
2503 | /**
|
2504 | * Constructs a new AnnotateTextRequest.
|
2505 | * @param [properties] Properties to set
|
2506 | */
|
2507 | constructor(properties?: google.cloud.language.v1.IAnnotateTextRequest);
|
2508 |
|
2509 | /** AnnotateTextRequest document. */
|
2510 | public document?: (google.cloud.language.v1.IDocument|null);
|
2511 |
|
2512 | /** AnnotateTextRequest features. */
|
2513 | public features?: (google.cloud.language.v1.AnnotateTextRequest.IFeatures|null);
|
2514 |
|
2515 | /** AnnotateTextRequest encodingType. */
|
2516 | public encodingType: (google.cloud.language.v1.EncodingType|keyof typeof google.cloud.language.v1.EncodingType);
|
2517 |
|
2518 | /**
|
2519 | * Creates a new AnnotateTextRequest instance using the specified properties.
|
2520 | * @param [properties] Properties to set
|
2521 | * @returns AnnotateTextRequest instance
|
2522 | */
|
2523 | public static create(properties?: google.cloud.language.v1.IAnnotateTextRequest): google.cloud.language.v1.AnnotateTextRequest;
|
2524 |
|
2525 | /**
|
2526 | * Encodes the specified AnnotateTextRequest message. Does not implicitly { google.cloud.language.v1.AnnotateTextRequest.verify|verify} messages.
|
2527 | * message AnnotateTextRequest message or plain object to encode
|
2528 | * [writer] Writer to encode to
|
2529 | * Writer
|
2530 | */
|
2531 | public static encode(message: google.cloud.language.v1.IAnnotateTextRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
2532 |
|
2533 | /**
|
2534 | * Encodes the specified AnnotateTextRequest message, length delimited. Does not implicitly {@link google.cloud.language.v1.AnnotateTextRequest.verify|verify} messages.
|
2535 | * @param message AnnotateTextRequest message or plain object to encode
|
2536 | * @param [writer] Writer to encode to
|
2537 | * @returns Writer
|
2538 | */
|
2539 | public static encodeDelimited(message: google.cloud.language.v1.IAnnotateTextRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
2540 |
|
2541 | /**
|
2542 | * Decodes an AnnotateTextRequest 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 AnnotateTextRequest
|
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.language.v1.AnnotateTextRequest;
|
2550 |
|
2551 | /**
|
2552 | * Decodes an AnnotateTextRequest message from the specified reader or buffer, length delimited.
|
2553 | * @param reader Reader or buffer to decode from
|
2554 | * @returns AnnotateTextRequest
|
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.language.v1.AnnotateTextRequest;
|
2559 |
|
2560 | /**
|
2561 | * Verifies an AnnotateTextRequest 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 an AnnotateTextRequest message from a plain object. Also converts values to their respective internal types.
|
2569 | * @param object Plain object
|
2570 | * @returns AnnotateTextRequest
|
2571 | */
|
2572 | public static fromObject(object: { [k: string]: any }): google.cloud.language.v1.AnnotateTextRequest;
|
2573 |
|
2574 | /**
|
2575 | * Creates a plain object from an AnnotateTextRequest message. Also converts values to other types if specified.
|
2576 | * @param message AnnotateTextRequest
|
2577 | * @param [options] Conversion options
|
2578 | * @returns Plain object
|
2579 | */
|
2580 | public static toObject(message: google.cloud.language.v1.AnnotateTextRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
2581 |
|
2582 | /**
|
2583 | * Converts this AnnotateTextRequest to JSON.
|
2584 | * @returns JSON object
|
2585 | */
|
2586 | public toJSON(): { [k: string]: any };
|
2587 | }
|
2588 |
|
2589 | namespace AnnotateTextRequest {
|
2590 |
|
2591 | /** Properties of a Features. */
|
2592 | interface IFeatures {
|
2593 |
|
2594 | /** Features extractSyntax */
|
2595 | extractSyntax?: (boolean|null);
|
2596 |
|
2597 | /** Features extractEntities */
|
2598 | extractEntities?: (boolean|null);
|
2599 |
|
2600 | /** Features extractDocumentSentiment */
|
2601 | extractDocumentSentiment?: (boolean|null);
|
2602 |
|
2603 | /** Features extractEntitySentiment */
|
2604 | extractEntitySentiment?: (boolean|null);
|
2605 |
|
2606 | /** Features classifyText */
|
2607 | classifyText?: (boolean|null);
|
2608 | }
|
2609 |
|
2610 | /** Represents a Features. */
|
2611 | class Features implements IFeatures {
|
2612 |
|
2613 | /**
|
2614 | * Constructs a new Features.
|
2615 | * @param [properties] Properties to set
|
2616 | */
|
2617 | constructor(properties?: google.cloud.language.v1.AnnotateTextRequest.IFeatures);
|
2618 |
|
2619 | /** Features extractSyntax. */
|
2620 | public extractSyntax: boolean;
|
2621 |
|
2622 | /** Features extractEntities. */
|
2623 | public extractEntities: boolean;
|
2624 |
|
2625 | /** Features extractDocumentSentiment. */
|
2626 | public extractDocumentSentiment: boolean;
|
2627 |
|
2628 | /** Features extractEntitySentiment. */
|
2629 | public extractEntitySentiment: boolean;
|
2630 |
|
2631 | /** Features classifyText. */
|
2632 | public classifyText: boolean;
|
2633 |
|
2634 | /**
|
2635 | * Creates a new Features instance using the specified properties.
|
2636 | * @param [properties] Properties to set
|
2637 | * @returns Features instance
|
2638 | */
|
2639 | public static create(properties?: google.cloud.language.v1.AnnotateTextRequest.IFeatures): google.cloud.language.v1.AnnotateTextRequest.Features;
|
2640 |
|
2641 | /**
|
2642 | * Encodes the specified Features message. Does not implicitly { google.cloud.language.v1.AnnotateTextRequest.Features.verify|verify} messages.
|
2643 | * message Features message or plain object to encode
|
2644 | * [writer] Writer to encode to
|
2645 | * Writer
|
2646 | */
|
2647 | public static encode(message: google.cloud.language.v1.AnnotateTextRequest.IFeatures, writer?: $protobuf.Writer): $protobuf.Writer;
|
2648 |
|
2649 | /**
|
2650 | * Encodes the specified Features message, length delimited. Does not implicitly {@link google.cloud.language.v1.AnnotateTextRequest.Features.verify|verify} messages.
|
2651 | * @param message Features message or plain object to encode
|
2652 | * @param [writer] Writer to encode to
|
2653 | * @returns Writer
|
2654 | */
|
2655 | public static encodeDelimited(message: google.cloud.language.v1.AnnotateTextRequest.IFeatures, writer?: $protobuf.Writer): $protobuf.Writer;
|
2656 |
|
2657 | /**
|
2658 | * Decodes a Features message from the specified reader or buffer.
|
2659 | * @param reader Reader or buffer to decode from
|
2660 | * @param [length] Message length if known beforehand
|
2661 | * @returns Features
|
2662 | * @throws {Error} If the payload is not a reader or valid buffer
|
2663 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
2664 | */
|
2665 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.language.v1.AnnotateTextRequest.Features;
|
2666 |
|
2667 | /**
|
2668 | * Decodes a Features message from the specified reader or buffer, length delimited.
|
2669 | * @param reader Reader or buffer to decode from
|
2670 | * @returns Features
|
2671 | * @throws {Error} If the payload is not a reader or valid buffer
|
2672 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
2673 | */
|
2674 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.language.v1.AnnotateTextRequest.Features;
|
2675 |
|
2676 | /**
|
2677 | * Verifies a Features message.
|
2678 | * @param message Plain object to verify
|
2679 | * @returns `null` if valid, otherwise the reason why it is not
|
2680 | */
|
2681 | public static verify(message: { [k: string]: any }): (string|null);
|
2682 |
|
2683 | /**
|
2684 | * Creates a Features message from a plain object. Also converts values to their respective internal types.
|
2685 | * @param object Plain object
|
2686 | * @returns Features
|
2687 | */
|
2688 | public static fromObject(object: { [k: string]: any }): google.cloud.language.v1.AnnotateTextRequest.Features;
|
2689 |
|
2690 | /**
|
2691 | * Creates a plain object from a Features message. Also converts values to other types if specified.
|
2692 | * @param message Features
|
2693 | * @param [options] Conversion options
|
2694 | * @returns Plain object
|
2695 | */
|
2696 | public static toObject(message: google.cloud.language.v1.AnnotateTextRequest.Features, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
2697 |
|
2698 | /**
|
2699 | * Converts this Features to JSON.
|
2700 | * @returns JSON object
|
2701 | */
|
2702 | public toJSON(): { [k: string]: any };
|
2703 | }
|
2704 | }
|
2705 |
|
2706 | /** Properties of an AnnotateTextResponse. */
|
2707 | interface IAnnotateTextResponse {
|
2708 |
|
2709 | /** AnnotateTextResponse sentences */
|
2710 | sentences?: (google.cloud.language.v1.ISentence[]|null);
|
2711 |
|
2712 | /** AnnotateTextResponse tokens */
|
2713 | tokens?: (google.cloud.language.v1.IToken[]|null);
|
2714 |
|
2715 | /** AnnotateTextResponse entities */
|
2716 | entities?: (google.cloud.language.v1.IEntity[]|null);
|
2717 |
|
2718 | /** AnnotateTextResponse documentSentiment */
|
2719 | documentSentiment?: (google.cloud.language.v1.ISentiment|null);
|
2720 |
|
2721 | /** AnnotateTextResponse language */
|
2722 | language?: (string|null);
|
2723 |
|
2724 | /** AnnotateTextResponse categories */
|
2725 | categories?: (google.cloud.language.v1.IClassificationCategory[]|null);
|
2726 | }
|
2727 |
|
2728 | /** Represents an AnnotateTextResponse. */
|
2729 | class AnnotateTextResponse implements IAnnotateTextResponse {
|
2730 |
|
2731 | /**
|
2732 | * Constructs a new AnnotateTextResponse.
|
2733 | * @param [properties] Properties to set
|
2734 | */
|
2735 | constructor(properties?: google.cloud.language.v1.IAnnotateTextResponse);
|
2736 |
|
2737 | /** AnnotateTextResponse sentences. */
|
2738 | public sentences: google.cloud.language.v1.ISentence[];
|
2739 |
|
2740 | /** AnnotateTextResponse tokens. */
|
2741 | public tokens: google.cloud.language.v1.IToken[];
|
2742 |
|
2743 | /** AnnotateTextResponse entities. */
|
2744 | public entities: google.cloud.language.v1.IEntity[];
|
2745 |
|
2746 | /** AnnotateTextResponse documentSentiment. */
|
2747 | public documentSentiment?: (google.cloud.language.v1.ISentiment|null);
|
2748 |
|
2749 | /** AnnotateTextResponse language. */
|
2750 | public language: string;
|
2751 |
|
2752 | /** AnnotateTextResponse categories. */
|
2753 | public categories: google.cloud.language.v1.IClassificationCategory[];
|
2754 |
|
2755 | /**
|
2756 | * Creates a new AnnotateTextResponse instance using the specified properties.
|
2757 | * @param [properties] Properties to set
|
2758 | * @returns AnnotateTextResponse instance
|
2759 | */
|
2760 | public static create(properties?: google.cloud.language.v1.IAnnotateTextResponse): google.cloud.language.v1.AnnotateTextResponse;
|
2761 |
|
2762 | /**
|
2763 | * Encodes the specified AnnotateTextResponse message. Does not implicitly { google.cloud.language.v1.AnnotateTextResponse.verify|verify} messages.
|
2764 | * message AnnotateTextResponse message or plain object to encode
|
2765 | * [writer] Writer to encode to
|
2766 | * Writer
|
2767 | */
|
2768 | public static encode(message: google.cloud.language.v1.IAnnotateTextResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
2769 |
|
2770 | /**
|
2771 | * Encodes the specified AnnotateTextResponse message, length delimited. Does not implicitly {@link google.cloud.language.v1.AnnotateTextResponse.verify|verify} messages.
|
2772 | * @param message AnnotateTextResponse message or plain object to encode
|
2773 | * @param [writer] Writer to encode to
|
2774 | * @returns Writer
|
2775 | */
|
2776 | public static encodeDelimited(message: google.cloud.language.v1.IAnnotateTextResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
2777 |
|
2778 | /**
|
2779 | * Decodes an AnnotateTextResponse message from the specified reader or buffer.
|
2780 | * @param reader Reader or buffer to decode from
|
2781 | * @param [length] Message length if known beforehand
|
2782 | * @returns AnnotateTextResponse
|
2783 | * @throws {Error} If the payload is not a reader or valid buffer
|
2784 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
2785 | */
|
2786 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.language.v1.AnnotateTextResponse;
|
2787 |
|
2788 | /**
|
2789 | * Decodes an AnnotateTextResponse message from the specified reader or buffer, length delimited.
|
2790 | * @param reader Reader or buffer to decode from
|
2791 | * @returns AnnotateTextResponse
|
2792 | * @throws {Error} If the payload is not a reader or valid buffer
|
2793 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
2794 | */
|
2795 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.language.v1.AnnotateTextResponse;
|
2796 |
|
2797 | /**
|
2798 | * Verifies an AnnotateTextResponse message.
|
2799 | * @param message Plain object to verify
|
2800 | * @returns `null` if valid, otherwise the reason why it is not
|
2801 | */
|
2802 | public static verify(message: { [k: string]: any }): (string|null);
|
2803 |
|
2804 | /**
|
2805 | * Creates an AnnotateTextResponse message from a plain object. Also converts values to their respective internal types.
|
2806 | * @param object Plain object
|
2807 | * @returns AnnotateTextResponse
|
2808 | */
|
2809 | public static fromObject(object: { [k: string]: any }): google.cloud.language.v1.AnnotateTextResponse;
|
2810 |
|
2811 | /**
|
2812 | * Creates a plain object from an AnnotateTextResponse message. Also converts values to other types if specified.
|
2813 | * @param message AnnotateTextResponse
|
2814 | * @param [options] Conversion options
|
2815 | * @returns Plain object
|
2816 | */
|
2817 | public static toObject(message: google.cloud.language.v1.AnnotateTextResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
2818 |
|
2819 | /**
|
2820 | * Converts this AnnotateTextResponse to JSON.
|
2821 | * @returns JSON object
|
2822 | */
|
2823 | public toJSON(): { [k: string]: any };
|
2824 | }
|
2825 | }
|
2826 |
|
2827 | /** Namespace v1beta2. */
|
2828 | namespace v1beta2 {
|
2829 |
|
2830 | /** Represents a LanguageService */
|
2831 | class LanguageService extends $protobuf.rpc.Service {
|
2832 |
|
2833 | /**
|
2834 | * Constructs a new LanguageService service.
|
2835 | * @param rpcImpl RPC implementation
|
2836 | * @param [requestDelimited=false] Whether requests are length-delimited
|
2837 | * @param [responseDelimited=false] Whether responses are length-delimited
|
2838 | */
|
2839 | constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
|
2840 |
|
2841 | /**
|
2842 | * Creates new LanguageService service using the specified rpc implementation.
|
2843 | * @param rpcImpl RPC implementation
|
2844 | * @param [requestDelimited=false] Whether requests are length-delimited
|
2845 | * @param [responseDelimited=false] Whether responses are length-delimited
|
2846 | * @returns RPC service. Useful where requests and/or responses are streamed.
|
2847 | */
|
2848 | public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): LanguageService;
|
2849 |
|
2850 | /**
|
2851 | * Calls AnalyzeSentiment.
|
2852 | * @param request AnalyzeSentimentRequest message or plain object
|
2853 | * @param callback Node-style callback called with the error, if any, and AnalyzeSentimentResponse
|
2854 | */
|
2855 | public analyzeSentiment(request: google.cloud.language.v1beta2.IAnalyzeSentimentRequest, callback: google.cloud.language.v1beta2.LanguageService.AnalyzeSentimentCallback): void;
|
2856 |
|
2857 | /**
|
2858 | * Calls AnalyzeSentiment.
|
2859 | * @param request AnalyzeSentimentRequest message or plain object
|
2860 | * @returns Promise
|
2861 | */
|
2862 | public analyzeSentiment(request: google.cloud.language.v1beta2.IAnalyzeSentimentRequest): Promise<google.cloud.language.v1beta2.AnalyzeSentimentResponse>;
|
2863 |
|
2864 | /**
|
2865 | * Calls AnalyzeEntities.
|
2866 | * @param request AnalyzeEntitiesRequest message or plain object
|
2867 | * @param callback Node-style callback called with the error, if any, and AnalyzeEntitiesResponse
|
2868 | */
|
2869 | public analyzeEntities(request: google.cloud.language.v1beta2.IAnalyzeEntitiesRequest, callback: google.cloud.language.v1beta2.LanguageService.AnalyzeEntitiesCallback): void;
|
2870 |
|
2871 | /**
|
2872 | * Calls AnalyzeEntities.
|
2873 | * @param request AnalyzeEntitiesRequest message or plain object
|
2874 | * @returns Promise
|
2875 | */
|
2876 | public analyzeEntities(request: google.cloud.language.v1beta2.IAnalyzeEntitiesRequest): Promise<google.cloud.language.v1beta2.AnalyzeEntitiesResponse>;
|
2877 |
|
2878 | /**
|
2879 | * Calls AnalyzeEntitySentiment.
|
2880 | * @param request AnalyzeEntitySentimentRequest message or plain object
|
2881 | * @param callback Node-style callback called with the error, if any, and AnalyzeEntitySentimentResponse
|
2882 | */
|
2883 | public analyzeEntitySentiment(request: google.cloud.language.v1beta2.IAnalyzeEntitySentimentRequest, callback: google.cloud.language.v1beta2.LanguageService.AnalyzeEntitySentimentCallback): void;
|
2884 |
|
2885 | /**
|
2886 | * Calls AnalyzeEntitySentiment.
|
2887 | * @param request AnalyzeEntitySentimentRequest message or plain object
|
2888 | * @returns Promise
|
2889 | */
|
2890 | public analyzeEntitySentiment(request: google.cloud.language.v1beta2.IAnalyzeEntitySentimentRequest): Promise<google.cloud.language.v1beta2.AnalyzeEntitySentimentResponse>;
|
2891 |
|
2892 | /**
|
2893 | * Calls AnalyzeSyntax.
|
2894 | * @param request AnalyzeSyntaxRequest message or plain object
|
2895 | * @param callback Node-style callback called with the error, if any, and AnalyzeSyntaxResponse
|
2896 | */
|
2897 | public analyzeSyntax(request: google.cloud.language.v1beta2.IAnalyzeSyntaxRequest, callback: google.cloud.language.v1beta2.LanguageService.AnalyzeSyntaxCallback): void;
|
2898 |
|
2899 | /**
|
2900 | * Calls AnalyzeSyntax.
|
2901 | * @param request AnalyzeSyntaxRequest message or plain object
|
2902 | * @returns Promise
|
2903 | */
|
2904 | public analyzeSyntax(request: google.cloud.language.v1beta2.IAnalyzeSyntaxRequest): Promise<google.cloud.language.v1beta2.AnalyzeSyntaxResponse>;
|
2905 |
|
2906 | /**
|
2907 | * Calls ClassifyText.
|
2908 | * @param request ClassifyTextRequest message or plain object
|
2909 | * @param callback Node-style callback called with the error, if any, and ClassifyTextResponse
|
2910 | */
|
2911 | public classifyText(request: google.cloud.language.v1beta2.IClassifyTextRequest, callback: google.cloud.language.v1beta2.LanguageService.ClassifyTextCallback): void;
|
2912 |
|
2913 | /**
|
2914 | * Calls ClassifyText.
|
2915 | * @param request ClassifyTextRequest message or plain object
|
2916 | * @returns Promise
|
2917 | */
|
2918 | public classifyText(request: google.cloud.language.v1beta2.IClassifyTextRequest): Promise<google.cloud.language.v1beta2.ClassifyTextResponse>;
|
2919 |
|
2920 | /**
|
2921 | * Calls AnnotateText.
|
2922 | * @param request AnnotateTextRequest message or plain object
|
2923 | * @param callback Node-style callback called with the error, if any, and AnnotateTextResponse
|
2924 | */
|
2925 | public annotateText(request: google.cloud.language.v1beta2.IAnnotateTextRequest, callback: google.cloud.language.v1beta2.LanguageService.AnnotateTextCallback): void;
|
2926 |
|
2927 | /**
|
2928 | * Calls AnnotateText.
|
2929 | * @param request AnnotateTextRequest message or plain object
|
2930 | * @returns Promise
|
2931 | */
|
2932 | public annotateText(request: google.cloud.language.v1beta2.IAnnotateTextRequest): Promise<google.cloud.language.v1beta2.AnnotateTextResponse>;
|
2933 | }
|
2934 |
|
2935 | namespace LanguageService {
|
2936 |
|
2937 | /**
|
2938 | * Callback as used by {@link google.cloud.language.v1beta2.LanguageService#analyzeSentiment}.
|
2939 | * @param error Error, if any
|
2940 | * @param [response] AnalyzeSentimentResponse
|
2941 | */
|
2942 | type AnalyzeSentimentCallback = (error: (Error|null), response?: google.cloud.language.v1beta2.AnalyzeSentimentResponse) => void;
|
2943 |
|
2944 | /**
|
2945 | * Callback as used by {@link google.cloud.language.v1beta2.LanguageService#analyzeEntities}.
|
2946 | * @param error Error, if any
|
2947 | * @param [response] AnalyzeEntitiesResponse
|
2948 | */
|
2949 | type AnalyzeEntitiesCallback = (error: (Error|null), response?: google.cloud.language.v1beta2.AnalyzeEntitiesResponse) => void;
|
2950 |
|
2951 | /**
|
2952 | * Callback as used by {@link google.cloud.language.v1beta2.LanguageService#analyzeEntitySentiment}.
|
2953 | * @param error Error, if any
|
2954 | * @param [response] AnalyzeEntitySentimentResponse
|
2955 | */
|
2956 | type AnalyzeEntitySentimentCallback = (error: (Error|null), response?: google.cloud.language.v1beta2.AnalyzeEntitySentimentResponse) => void;
|
2957 |
|
2958 | /**
|
2959 | * Callback as used by {@link google.cloud.language.v1beta2.LanguageService#analyzeSyntax}.
|
2960 | * @param error Error, if any
|
2961 | * @param [response] AnalyzeSyntaxResponse
|
2962 | */
|
2963 | type AnalyzeSyntaxCallback = (error: (Error|null), response?: google.cloud.language.v1beta2.AnalyzeSyntaxResponse) => void;
|
2964 |
|
2965 | /**
|
2966 | * Callback as used by {@link google.cloud.language.v1beta2.LanguageService#classifyText}.
|
2967 | * @param error Error, if any
|
2968 | * @param [response] ClassifyTextResponse
|
2969 | */
|
2970 | type ClassifyTextCallback = (error: (Error|null), response?: google.cloud.language.v1beta2.ClassifyTextResponse) => void;
|
2971 |
|
2972 | /**
|
2973 | * Callback as used by {@link google.cloud.language.v1beta2.LanguageService#annotateText}.
|
2974 | * @param error Error, if any
|
2975 | * @param [response] AnnotateTextResponse
|
2976 | */
|
2977 | type AnnotateTextCallback = (error: (Error|null), response?: google.cloud.language.v1beta2.AnnotateTextResponse) => void;
|
2978 | }
|
2979 |
|
2980 | /** Properties of a Document. */
|
2981 | interface IDocument {
|
2982 |
|
2983 | /** Document type */
|
2984 | type?: (google.cloud.language.v1beta2.Document.Type|keyof typeof google.cloud.language.v1beta2.Document.Type|null);
|
2985 |
|
2986 | /** Document content */
|
2987 | content?: (string|null);
|
2988 |
|
2989 | /** Document gcsContentUri */
|
2990 | gcsContentUri?: (string|null);
|
2991 |
|
2992 | /** Document language */
|
2993 | language?: (string|null);
|
2994 | }
|
2995 |
|
2996 | /** Represents a Document. */
|
2997 | class Document implements IDocument {
|
2998 |
|
2999 | /**
|
3000 | * Constructs a new Document.
|
3001 | * @param [properties] Properties to set
|
3002 | */
|
3003 | constructor(properties?: google.cloud.language.v1beta2.IDocument);
|
3004 |
|
3005 | /** Document type. */
|
3006 | public type: (google.cloud.language.v1beta2.Document.Type|keyof typeof google.cloud.language.v1beta2.Document.Type);
|
3007 |
|
3008 | /** Document content. */
|
3009 | public content?: (string|null);
|
3010 |
|
3011 | /** Document gcsContentUri. */
|
3012 | public gcsContentUri?: (string|null);
|
3013 |
|
3014 | /** Document language. */
|
3015 | public language: string;
|
3016 |
|
3017 | /** Document source. */
|
3018 | public source?: ("content"|"gcsContentUri");
|
3019 |
|
3020 | /**
|
3021 | * Creates a new Document instance using the specified properties.
|
3022 | * @param [properties] Properties to set
|
3023 | * @returns Document instance
|
3024 | */
|
3025 | public static create(properties?: google.cloud.language.v1beta2.IDocument): google.cloud.language.v1beta2.Document;
|
3026 |
|
3027 | /**
|
3028 | * Encodes the specified Document message. Does not implicitly { google.cloud.language.v1beta2.Document.verify|verify} messages.
|
3029 | * message Document message or plain object to encode
|
3030 | * [writer] Writer to encode to
|
3031 | * Writer
|
3032 | */
|
3033 | public static encode(message: google.cloud.language.v1beta2.IDocument, writer?: $protobuf.Writer): $protobuf.Writer;
|
3034 |
|
3035 | /**
|
3036 | * Encodes the specified Document message, length delimited. Does not implicitly {@link google.cloud.language.v1beta2.Document.verify|verify} messages.
|
3037 | * @param message Document message or plain object to encode
|
3038 | * @param [writer] Writer to encode to
|
3039 | * @returns Writer
|
3040 | */
|
3041 | public static encodeDelimited(message: google.cloud.language.v1beta2.IDocument, writer?: $protobuf.Writer): $protobuf.Writer;
|
3042 |
|
3043 | /**
|
3044 | * Decodes a Document message from the specified reader or buffer.
|
3045 | * @param reader Reader or buffer to decode from
|
3046 | * @param [length] Message length if known beforehand
|
3047 | * @returns Document
|
3048 | * @throws {Error} If the payload is not a reader or valid buffer
|
3049 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
3050 | */
|
3051 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.language.v1beta2.Document;
|
3052 |
|
3053 | /**
|
3054 | * Decodes a Document message from the specified reader or buffer, length delimited.
|
3055 | * @param reader Reader or buffer to decode from
|
3056 | * @returns Document
|
3057 | * @throws {Error} If the payload is not a reader or valid buffer
|
3058 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
3059 | */
|
3060 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.language.v1beta2.Document;
|
3061 |
|
3062 | /**
|
3063 | * Verifies a Document message.
|
3064 | * @param message Plain object to verify
|
3065 | * @returns `null` if valid, otherwise the reason why it is not
|
3066 | */
|
3067 | public static verify(message: { [k: string]: any }): (string|null);
|
3068 |
|
3069 | /**
|
3070 | * Creates a Document message from a plain object. Also converts values to their respective internal types.
|
3071 | * @param object Plain object
|
3072 | * @returns Document
|
3073 | */
|
3074 | public static fromObject(object: { [k: string]: any }): google.cloud.language.v1beta2.Document;
|
3075 |
|
3076 | /**
|
3077 | * Creates a plain object from a Document message. Also converts values to other types if specified.
|
3078 | * @param message Document
|
3079 | * @param [options] Conversion options
|
3080 | * @returns Plain object
|
3081 | */
|
3082 | public static toObject(message: google.cloud.language.v1beta2.Document, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
3083 |
|
3084 | /**
|
3085 | * Converts this Document to JSON.
|
3086 | * @returns JSON object
|
3087 | */
|
3088 | public toJSON(): { [k: string]: any };
|
3089 | }
|
3090 |
|
3091 | namespace Document {
|
3092 |
|
3093 | /** Type enum. */
|
3094 | enum Type {
|
3095 | TYPE_UNSPECIFIED = 0,
|
3096 | PLAIN_TEXT = 1,
|
3097 | HTML = 2
|
3098 | }
|
3099 | }
|
3100 |
|
3101 | /** Properties of a Sentence. */
|
3102 | interface ISentence {
|
3103 |
|
3104 | /** Sentence text */
|
3105 | text?: (google.cloud.language.v1beta2.ITextSpan|null);
|
3106 |
|
3107 | /** Sentence sentiment */
|
3108 | sentiment?: (google.cloud.language.v1beta2.ISentiment|null);
|
3109 | }
|
3110 |
|
3111 | /** Represents a Sentence. */
|
3112 | class Sentence implements ISentence {
|
3113 |
|
3114 | /**
|
3115 | * Constructs a new Sentence.
|
3116 | * @param [properties] Properties to set
|
3117 | */
|
3118 | constructor(properties?: google.cloud.language.v1beta2.ISentence);
|
3119 |
|
3120 | /** Sentence text. */
|
3121 | public text?: (google.cloud.language.v1beta2.ITextSpan|null);
|
3122 |
|
3123 | /** Sentence sentiment. */
|
3124 | public sentiment?: (google.cloud.language.v1beta2.ISentiment|null);
|
3125 |
|
3126 | /**
|
3127 | * Creates a new Sentence instance using the specified properties.
|
3128 | * @param [properties] Properties to set
|
3129 | * @returns Sentence instance
|
3130 | */
|
3131 | public static create(properties?: google.cloud.language.v1beta2.ISentence): google.cloud.language.v1beta2.Sentence;
|
3132 |
|
3133 | /**
|
3134 | * Encodes the specified Sentence message. Does not implicitly { google.cloud.language.v1beta2.Sentence.verify|verify} messages.
|
3135 | * message Sentence message or plain object to encode
|
3136 | * [writer] Writer to encode to
|
3137 | * Writer
|
3138 | */
|
3139 | public static encode(message: google.cloud.language.v1beta2.ISentence, writer?: $protobuf.Writer): $protobuf.Writer;
|
3140 |
|
3141 | /**
|
3142 | * Encodes the specified Sentence message, length delimited. Does not implicitly {@link google.cloud.language.v1beta2.Sentence.verify|verify} messages.
|
3143 | * @param message Sentence message or plain object to encode
|
3144 | * @param [writer] Writer to encode to
|
3145 | * @returns Writer
|
3146 | */
|
3147 | public static encodeDelimited(message: google.cloud.language.v1beta2.ISentence, writer?: $protobuf.Writer): $protobuf.Writer;
|
3148 |
|
3149 | /**
|
3150 | * Decodes a Sentence message from the specified reader or buffer.
|
3151 | * @param reader Reader or buffer to decode from
|
3152 | * @param [length] Message length if known beforehand
|
3153 | * @returns Sentence
|
3154 | * @throws {Error} If the payload is not a reader or valid buffer
|
3155 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
3156 | */
|
3157 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.language.v1beta2.Sentence;
|
3158 |
|
3159 | /**
|
3160 | * Decodes a Sentence message from the specified reader or buffer, length delimited.
|
3161 | * @param reader Reader or buffer to decode from
|
3162 | * @returns Sentence
|
3163 | * @throws {Error} If the payload is not a reader or valid buffer
|
3164 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
3165 | */
|
3166 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.language.v1beta2.Sentence;
|
3167 |
|
3168 | /**
|
3169 | * Verifies a Sentence message.
|
3170 | * @param message Plain object to verify
|
3171 | * @returns `null` if valid, otherwise the reason why it is not
|
3172 | */
|
3173 | public static verify(message: { [k: string]: any }): (string|null);
|
3174 |
|
3175 | /**
|
3176 | * Creates a Sentence message from a plain object. Also converts values to their respective internal types.
|
3177 | * @param object Plain object
|
3178 | * @returns Sentence
|
3179 | */
|
3180 | public static fromObject(object: { [k: string]: any }): google.cloud.language.v1beta2.Sentence;
|
3181 |
|
3182 | /**
|
3183 | * Creates a plain object from a Sentence message. Also converts values to other types if specified.
|
3184 | * @param message Sentence
|
3185 | * @param [options] Conversion options
|
3186 | * @returns Plain object
|
3187 | */
|
3188 | public static toObject(message: google.cloud.language.v1beta2.Sentence, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
3189 |
|
3190 | /**
|
3191 | * Converts this Sentence to JSON.
|
3192 | * @returns JSON object
|
3193 | */
|
3194 | public toJSON(): { [k: string]: any };
|
3195 | }
|
3196 |
|
3197 | /** Properties of an Entity. */
|
3198 | interface IEntity {
|
3199 |
|
3200 | /** Entity name */
|
3201 | name?: (string|null);
|
3202 |
|
3203 | /** Entity type */
|
3204 | type?: (google.cloud.language.v1beta2.Entity.Type|keyof typeof google.cloud.language.v1beta2.Entity.Type|null);
|
3205 |
|
3206 | /** Entity metadata */
|
3207 | metadata?: ({ [k: string]: string }|null);
|
3208 |
|
3209 | /** Entity salience */
|
3210 | salience?: (number|null);
|
3211 |
|
3212 | /** Entity mentions */
|
3213 | mentions?: (google.cloud.language.v1beta2.IEntityMention[]|null);
|
3214 |
|
3215 | /** Entity sentiment */
|
3216 | sentiment?: (google.cloud.language.v1beta2.ISentiment|null);
|
3217 | }
|
3218 |
|
3219 | /** Represents an Entity. */
|
3220 | class Entity implements IEntity {
|
3221 |
|
3222 | /**
|
3223 | * Constructs a new Entity.
|
3224 | * @param [properties] Properties to set
|
3225 | */
|
3226 | constructor(properties?: google.cloud.language.v1beta2.IEntity);
|
3227 |
|
3228 | /** Entity name. */
|
3229 | public name: string;
|
3230 |
|
3231 | /** Entity type. */
|
3232 | public type: (google.cloud.language.v1beta2.Entity.Type|keyof typeof google.cloud.language.v1beta2.Entity.Type);
|
3233 |
|
3234 | /** Entity metadata. */
|
3235 | public metadata: { [k: string]: string };
|
3236 |
|
3237 | /** Entity salience. */
|
3238 | public salience: number;
|
3239 |
|
3240 | /** Entity mentions. */
|
3241 | public mentions: google.cloud.language.v1beta2.IEntityMention[];
|
3242 |
|
3243 | /** Entity sentiment. */
|
3244 | public sentiment?: (google.cloud.language.v1beta2.ISentiment|null);
|
3245 |
|
3246 | /**
|
3247 | * Creates a new Entity instance using the specified properties.
|
3248 | * @param [properties] Properties to set
|
3249 | * @returns Entity instance
|
3250 | */
|
3251 | public static create(properties?: google.cloud.language.v1beta2.IEntity): google.cloud.language.v1beta2.Entity;
|
3252 |
|
3253 | /**
|
3254 | * Encodes the specified Entity message. Does not implicitly {@link google.cloud.language.v1beta2.Entity.verify|verify} messages.
|
3255 | * @param message Entity message or plain object to encode
|
3256 | * @param [writer] Writer to encode to
|
3257 | * @returns Writer
|
3258 | */
|
3259 | public static encode(message: google.cloud.language.v1beta2.IEntity, writer?: $protobuf.Writer): $protobuf.Writer;
|
3260 |
|
3261 | /**
|
3262 | * Encodes the specified Entity message, length delimited. Does not implicitly {@link google.cloud.language.v1beta2.Entity.verify|verify} messages.
|
3263 | * @param message Entity message or plain object to encode
|
3264 | * @param [writer] Writer to encode to
|
3265 | * @returns Writer
|
3266 | */
|
3267 | public static encodeDelimited(message: google.cloud.language.v1beta2.IEntity, writer?: $protobuf.Writer): $protobuf.Writer;
|
3268 |
|
3269 | /**
|
3270 | * Decodes an Entity message from the specified reader or buffer.
|
3271 | * @param reader Reader or buffer to decode from
|
3272 | * @param [length] Message length if known beforehand
|
3273 | * @returns Entity
|
3274 | * @throws {Error} If the payload is not a reader or valid buffer
|
3275 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
3276 | */
|
3277 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.language.v1beta2.Entity;
|
3278 |
|
3279 | /**
|
3280 | * Decodes an Entity message from the specified reader or buffer, length delimited.
|
3281 | * @param reader Reader or buffer to decode from
|
3282 | * @returns Entity
|
3283 | * @throws {Error} If the payload is not a reader or valid buffer
|
3284 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
3285 | */
|
3286 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.language.v1beta2.Entity;
|
3287 |
|
3288 | /**
|
3289 | * Verifies an Entity message.
|
3290 | * @param message Plain object to verify
|
3291 | * @returns `null` if valid, otherwise the reason why it is not
|
3292 | */
|
3293 | public static verify(message: { [k: string]: any }): (string|null);
|
3294 |
|
3295 | /**
|
3296 | * Creates an Entity message from a plain object. Also converts values to their respective internal types.
|
3297 | * @param object Plain object
|
3298 | * @returns Entity
|
3299 | */
|
3300 | public static fromObject(object: { [k: string]: any }): google.cloud.language.v1beta2.Entity;
|
3301 |
|
3302 | /**
|
3303 | * Creates a plain object from an Entity message. Also converts values to other types if specified.
|
3304 | * @param message Entity
|
3305 | * @param [options] Conversion options
|
3306 | * @returns Plain object
|
3307 | */
|
3308 | public static toObject(message: google.cloud.language.v1beta2.Entity, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
3309 |
|
3310 | /**
|
3311 | * Converts this Entity to JSON.
|
3312 | * @returns JSON object
|
3313 | */
|
3314 | public toJSON(): { [k: string]: any };
|
3315 | }
|
3316 |
|
3317 | namespace Entity {
|
3318 |
|
3319 | /** Type enum. */
|
3320 | enum Type {
|
3321 | UNKNOWN = 0,
|
3322 | PERSON = 1,
|
3323 | LOCATION = 2,
|
3324 | ORGANIZATION = 3,
|
3325 | EVENT = 4,
|
3326 | WORK_OF_ART = 5,
|
3327 | CONSUMER_GOOD = 6,
|
3328 | OTHER = 7,
|
3329 | PHONE_NUMBER = 9,
|
3330 | ADDRESS = 10,
|
3331 | DATE = 11,
|
3332 | NUMBER = 12,
|
3333 | PRICE = 13
|
3334 | }
|
3335 | }
|
3336 |
|
3337 | /** Properties of a Token. */
|
3338 | interface IToken {
|
3339 |
|
3340 | /** Token text */
|
3341 | text?: (google.cloud.language.v1beta2.ITextSpan|null);
|
3342 |
|
3343 | /** Token partOfSpeech */
|
3344 | partOfSpeech?: (google.cloud.language.v1beta2.IPartOfSpeech|null);
|
3345 |
|
3346 | /** Token dependencyEdge */
|
3347 | dependencyEdge?: (google.cloud.language.v1beta2.IDependencyEdge|null);
|
3348 |
|
3349 | /** Token lemma */
|
3350 | lemma?: (string|null);
|
3351 | }
|
3352 |
|
3353 | /** Represents a Token. */
|
3354 | class Token implements IToken {
|
3355 |
|
3356 | /**
|
3357 | * Constructs a new Token.
|
3358 | * @param [properties] Properties to set
|
3359 | */
|
3360 | constructor(properties?: google.cloud.language.v1beta2.IToken);
|
3361 |
|
3362 | /** Token text. */
|
3363 | public text?: (google.cloud.language.v1beta2.ITextSpan|null);
|
3364 |
|
3365 | /** Token partOfSpeech. */
|
3366 | public partOfSpeech?: (google.cloud.language.v1beta2.IPartOfSpeech|null);
|
3367 |
|
3368 | /** Token dependencyEdge. */
|
3369 | public dependencyEdge?: (google.cloud.language.v1beta2.IDependencyEdge|null);
|
3370 |
|
3371 | /** Token lemma. */
|
3372 | public lemma: string;
|
3373 |
|
3374 | /**
|
3375 | * Creates a new Token instance using the specified properties.
|
3376 | * @param [properties] Properties to set
|
3377 | * @returns Token instance
|
3378 | */
|
3379 | public static create(properties?: google.cloud.language.v1beta2.IToken): google.cloud.language.v1beta2.Token;
|
3380 |
|
3381 | /**
|
3382 | * Encodes the specified Token message. Does not implicitly { google.cloud.language.v1beta2.Token.verify|verify} messages.
|
3383 | * message Token message or plain object to encode
|
3384 | * [writer] Writer to encode to
|
3385 | * Writer
|
3386 | */
|
3387 | public static encode(message: google.cloud.language.v1beta2.IToken, writer?: $protobuf.Writer): $protobuf.Writer;
|
3388 |
|
3389 | /**
|
3390 | * Encodes the specified Token message, length delimited. Does not implicitly {@link google.cloud.language.v1beta2.Token.verify|verify} messages.
|
3391 | * @param message Token message or plain object to encode
|
3392 | * @param [writer] Writer to encode to
|
3393 | * @returns Writer
|
3394 | */
|
3395 | public static encodeDelimited(message: google.cloud.language.v1beta2.IToken, writer?: $protobuf.Writer): $protobuf.Writer;
|
3396 |
|
3397 | /**
|
3398 | * Decodes a Token message from the specified reader or buffer.
|
3399 | * @param reader Reader or buffer to decode from
|
3400 | * @param [length] Message length if known beforehand
|
3401 | * @returns Token
|
3402 | * @throws {Error} If the payload is not a reader or valid buffer
|
3403 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
3404 | */
|
3405 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.language.v1beta2.Token;
|
3406 |
|
3407 | /**
|
3408 | * Decodes a Token message from the specified reader or buffer, length delimited.
|
3409 | * @param reader Reader or buffer to decode from
|
3410 | * @returns Token
|
3411 | * @throws {Error} If the payload is not a reader or valid buffer
|
3412 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
3413 | */
|
3414 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.language.v1beta2.Token;
|
3415 |
|
3416 | /**
|
3417 | * Verifies a Token message.
|
3418 | * @param message Plain object to verify
|
3419 | * @returns `null` if valid, otherwise the reason why it is not
|
3420 | */
|
3421 | public static verify(message: { [k: string]: any }): (string|null);
|
3422 |
|
3423 | /**
|
3424 | * Creates a Token message from a plain object. Also converts values to their respective internal types.
|
3425 | * @param object Plain object
|
3426 | * @returns Token
|
3427 | */
|
3428 | public static fromObject(object: { [k: string]: any }): google.cloud.language.v1beta2.Token;
|
3429 |
|
3430 | /**
|
3431 | * Creates a plain object from a Token message. Also converts values to other types if specified.
|
3432 | * @param message Token
|
3433 | * @param [options] Conversion options
|
3434 | * @returns Plain object
|
3435 | */
|
3436 | public static toObject(message: google.cloud.language.v1beta2.Token, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
3437 |
|
3438 | /**
|
3439 | * Converts this Token to JSON.
|
3440 | * @returns JSON object
|
3441 | */
|
3442 | public toJSON(): { [k: string]: any };
|
3443 | }
|
3444 |
|
3445 | /** EncodingType enum. */
|
3446 | enum EncodingType {
|
3447 | NONE = 0,
|
3448 | UTF8 = 1,
|
3449 | UTF16 = 2,
|
3450 | UTF32 = 3
|
3451 | }
|
3452 |
|
3453 | /** Properties of a Sentiment. */
|
3454 | interface ISentiment {
|
3455 |
|
3456 | /** Sentiment magnitude */
|
3457 | magnitude?: (number|null);
|
3458 |
|
3459 | /** Sentiment score */
|
3460 | score?: (number|null);
|
3461 | }
|
3462 |
|
3463 | /** Represents a Sentiment. */
|
3464 | class Sentiment implements ISentiment {
|
3465 |
|
3466 | /**
|
3467 | * Constructs a new Sentiment.
|
3468 | * @param [properties] Properties to set
|
3469 | */
|
3470 | constructor(properties?: google.cloud.language.v1beta2.ISentiment);
|
3471 |
|
3472 | /** Sentiment magnitude. */
|
3473 | public magnitude: number;
|
3474 |
|
3475 | /** Sentiment score. */
|
3476 | public score: number;
|
3477 |
|
3478 | /**
|
3479 | * Creates a new Sentiment instance using the specified properties.
|
3480 | * @param [properties] Properties to set
|
3481 | * @returns Sentiment instance
|
3482 | */
|
3483 | public static create(properties?: google.cloud.language.v1beta2.ISentiment): google.cloud.language.v1beta2.Sentiment;
|
3484 |
|
3485 | /**
|
3486 | * Encodes the specified Sentiment message. Does not implicitly { google.cloud.language.v1beta2.Sentiment.verify|verify} messages.
|
3487 | * message Sentiment message or plain object to encode
|
3488 | * [writer] Writer to encode to
|
3489 | * Writer
|
3490 | */
|
3491 | public static encode(message: google.cloud.language.v1beta2.ISentiment, writer?: $protobuf.Writer): $protobuf.Writer;
|
3492 |
|
3493 | /**
|
3494 | * Encodes the specified Sentiment message, length delimited. Does not implicitly {@link google.cloud.language.v1beta2.Sentiment.verify|verify} messages.
|
3495 | * @param message Sentiment message or plain object to encode
|
3496 | * @param [writer] Writer to encode to
|
3497 | * @returns Writer
|
3498 | */
|
3499 | public static encodeDelimited(message: google.cloud.language.v1beta2.ISentiment, writer?: $protobuf.Writer): $protobuf.Writer;
|
3500 |
|
3501 | /**
|
3502 | * Decodes a Sentiment message from the specified reader or buffer.
|
3503 | * @param reader Reader or buffer to decode from
|
3504 | * @param [length] Message length if known beforehand
|
3505 | * @returns Sentiment
|
3506 | * @throws {Error} If the payload is not a reader or valid buffer
|
3507 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
3508 | */
|
3509 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.language.v1beta2.Sentiment;
|
3510 |
|
3511 | /**
|
3512 | * Decodes a Sentiment message from the specified reader or buffer, length delimited.
|
3513 | * @param reader Reader or buffer to decode from
|
3514 | * @returns Sentiment
|
3515 | * @throws {Error} If the payload is not a reader or valid buffer
|
3516 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
3517 | */
|
3518 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.language.v1beta2.Sentiment;
|
3519 |
|
3520 | /**
|
3521 | * Verifies a Sentiment message.
|
3522 | * @param message Plain object to verify
|
3523 | * @returns `null` if valid, otherwise the reason why it is not
|
3524 | */
|
3525 | public static verify(message: { [k: string]: any }): (string|null);
|
3526 |
|
3527 | /**
|
3528 | * Creates a Sentiment message from a plain object. Also converts values to their respective internal types.
|
3529 | * @param object Plain object
|
3530 | * @returns Sentiment
|
3531 | */
|
3532 | public static fromObject(object: { [k: string]: any }): google.cloud.language.v1beta2.Sentiment;
|
3533 |
|
3534 | /**
|
3535 | * Creates a plain object from a Sentiment message. Also converts values to other types if specified.
|
3536 | * @param message Sentiment
|
3537 | * @param [options] Conversion options
|
3538 | * @returns Plain object
|
3539 | */
|
3540 | public static toObject(message: google.cloud.language.v1beta2.Sentiment, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
3541 |
|
3542 | /**
|
3543 | * Converts this Sentiment to JSON.
|
3544 | * @returns JSON object
|
3545 | */
|
3546 | public toJSON(): { [k: string]: any };
|
3547 | }
|
3548 |
|
3549 | /** Properties of a PartOfSpeech. */
|
3550 | interface IPartOfSpeech {
|
3551 |
|
3552 | /** PartOfSpeech tag */
|
3553 | tag?: (google.cloud.language.v1beta2.PartOfSpeech.Tag|keyof typeof google.cloud.language.v1beta2.PartOfSpeech.Tag|null);
|
3554 |
|
3555 | /** PartOfSpeech aspect */
|
3556 | aspect?: (google.cloud.language.v1beta2.PartOfSpeech.Aspect|keyof typeof google.cloud.language.v1beta2.PartOfSpeech.Aspect|null);
|
3557 |
|
3558 | /** PartOfSpeech case */
|
3559 | "case"?: (google.cloud.language.v1beta2.PartOfSpeech.Case|keyof typeof google.cloud.language.v1beta2.PartOfSpeech.Case|null);
|
3560 |
|
3561 | /** PartOfSpeech form */
|
3562 | form?: (google.cloud.language.v1beta2.PartOfSpeech.Form|keyof typeof google.cloud.language.v1beta2.PartOfSpeech.Form|null);
|
3563 |
|
3564 | /** PartOfSpeech gender */
|
3565 | gender?: (google.cloud.language.v1beta2.PartOfSpeech.Gender|keyof typeof google.cloud.language.v1beta2.PartOfSpeech.Gender|null);
|
3566 |
|
3567 | /** PartOfSpeech mood */
|
3568 | mood?: (google.cloud.language.v1beta2.PartOfSpeech.Mood|keyof typeof google.cloud.language.v1beta2.PartOfSpeech.Mood|null);
|
3569 |
|
3570 | /** PartOfSpeech number */
|
3571 | number?: (google.cloud.language.v1beta2.PartOfSpeech.Number|keyof typeof google.cloud.language.v1beta2.PartOfSpeech.Number|null);
|
3572 |
|
3573 | /** PartOfSpeech person */
|
3574 | person?: (google.cloud.language.v1beta2.PartOfSpeech.Person|keyof typeof google.cloud.language.v1beta2.PartOfSpeech.Person|null);
|
3575 |
|
3576 | /** PartOfSpeech proper */
|
3577 | proper?: (google.cloud.language.v1beta2.PartOfSpeech.Proper|keyof typeof google.cloud.language.v1beta2.PartOfSpeech.Proper|null);
|
3578 |
|
3579 | /** PartOfSpeech reciprocity */
|
3580 | reciprocity?: (google.cloud.language.v1beta2.PartOfSpeech.Reciprocity|keyof typeof google.cloud.language.v1beta2.PartOfSpeech.Reciprocity|null);
|
3581 |
|
3582 | /** PartOfSpeech tense */
|
3583 | tense?: (google.cloud.language.v1beta2.PartOfSpeech.Tense|keyof typeof google.cloud.language.v1beta2.PartOfSpeech.Tense|null);
|
3584 |
|
3585 | /** PartOfSpeech voice */
|
3586 | voice?: (google.cloud.language.v1beta2.PartOfSpeech.Voice|keyof typeof google.cloud.language.v1beta2.PartOfSpeech.Voice|null);
|
3587 | }
|
3588 |
|
3589 | /** Represents a PartOfSpeech. */
|
3590 | class PartOfSpeech implements IPartOfSpeech {
|
3591 |
|
3592 | /**
|
3593 | * Constructs a new PartOfSpeech.
|
3594 | * @param [properties] Properties to set
|
3595 | */
|
3596 | constructor(properties?: google.cloud.language.v1beta2.IPartOfSpeech);
|
3597 |
|
3598 | /** PartOfSpeech tag. */
|
3599 | public tag: (google.cloud.language.v1beta2.PartOfSpeech.Tag|keyof typeof google.cloud.language.v1beta2.PartOfSpeech.Tag);
|
3600 |
|
3601 | /** PartOfSpeech aspect. */
|
3602 | public aspect: (google.cloud.language.v1beta2.PartOfSpeech.Aspect|keyof typeof google.cloud.language.v1beta2.PartOfSpeech.Aspect);
|
3603 |
|
3604 | /** PartOfSpeech case. */
|
3605 | public case: (google.cloud.language.v1beta2.PartOfSpeech.Case|keyof typeof google.cloud.language.v1beta2.PartOfSpeech.Case);
|
3606 |
|
3607 | /** PartOfSpeech form. */
|
3608 | public form: (google.cloud.language.v1beta2.PartOfSpeech.Form|keyof typeof google.cloud.language.v1beta2.PartOfSpeech.Form);
|
3609 |
|
3610 | /** PartOfSpeech gender. */
|
3611 | public gender: (google.cloud.language.v1beta2.PartOfSpeech.Gender|keyof typeof google.cloud.language.v1beta2.PartOfSpeech.Gender);
|
3612 |
|
3613 | /** PartOfSpeech mood. */
|
3614 | public mood: (google.cloud.language.v1beta2.PartOfSpeech.Mood|keyof typeof google.cloud.language.v1beta2.PartOfSpeech.Mood);
|
3615 |
|
3616 | /** PartOfSpeech number. */
|
3617 | public number: (google.cloud.language.v1beta2.PartOfSpeech.Number|keyof typeof google.cloud.language.v1beta2.PartOfSpeech.Number);
|
3618 |
|
3619 | /** PartOfSpeech person. */
|
3620 | public person: (google.cloud.language.v1beta2.PartOfSpeech.Person|keyof typeof google.cloud.language.v1beta2.PartOfSpeech.Person);
|
3621 |
|
3622 | /** PartOfSpeech proper. */
|
3623 | public proper: (google.cloud.language.v1beta2.PartOfSpeech.Proper|keyof typeof google.cloud.language.v1beta2.PartOfSpeech.Proper);
|
3624 |
|
3625 | /** PartOfSpeech reciprocity. */
|
3626 | public reciprocity: (google.cloud.language.v1beta2.PartOfSpeech.Reciprocity|keyof typeof google.cloud.language.v1beta2.PartOfSpeech.Reciprocity);
|
3627 |
|
3628 | /** PartOfSpeech tense. */
|
3629 | public tense: (google.cloud.language.v1beta2.PartOfSpeech.Tense|keyof typeof google.cloud.language.v1beta2.PartOfSpeech.Tense);
|
3630 |
|
3631 | /** PartOfSpeech voice. */
|
3632 | public voice: (google.cloud.language.v1beta2.PartOfSpeech.Voice|keyof typeof google.cloud.language.v1beta2.PartOfSpeech.Voice);
|
3633 |
|
3634 | /**
|
3635 | * Creates a new PartOfSpeech instance using the specified properties.
|
3636 | * @param [properties] Properties to set
|
3637 | * @returns PartOfSpeech instance
|
3638 | */
|
3639 | public static create(properties?: google.cloud.language.v1beta2.IPartOfSpeech): google.cloud.language.v1beta2.PartOfSpeech;
|
3640 |
|
3641 | /**
|
3642 | * Encodes the specified PartOfSpeech message. Does not implicitly { google.cloud.language.v1beta2.PartOfSpeech.verify|verify} messages.
|
3643 | * message PartOfSpeech message or plain object to encode
|
3644 | * [writer] Writer to encode to
|
3645 | * Writer
|
3646 | */
|
3647 | public static encode(message: google.cloud.language.v1beta2.IPartOfSpeech, writer?: $protobuf.Writer): $protobuf.Writer;
|
3648 |
|
3649 | /**
|
3650 | * Encodes the specified PartOfSpeech message, length delimited. Does not implicitly {@link google.cloud.language.v1beta2.PartOfSpeech.verify|verify} messages.
|
3651 | * @param message PartOfSpeech message or plain object to encode
|
3652 | * @param [writer] Writer to encode to
|
3653 | * @returns Writer
|
3654 | */
|
3655 | public static encodeDelimited(message: google.cloud.language.v1beta2.IPartOfSpeech, writer?: $protobuf.Writer): $protobuf.Writer;
|
3656 |
|
3657 | /**
|
3658 | * Decodes a PartOfSpeech message from the specified reader or buffer.
|
3659 | * @param reader Reader or buffer to decode from
|
3660 | * @param [length] Message length if known beforehand
|
3661 | * @returns PartOfSpeech
|
3662 | * @throws {Error} If the payload is not a reader or valid buffer
|
3663 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
3664 | */
|
3665 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.language.v1beta2.PartOfSpeech;
|
3666 |
|
3667 | /**
|
3668 | * Decodes a PartOfSpeech message from the specified reader or buffer, length delimited.
|
3669 | * @param reader Reader or buffer to decode from
|
3670 | * @returns PartOfSpeech
|
3671 | * @throws {Error} If the payload is not a reader or valid buffer
|
3672 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
3673 | */
|
3674 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.language.v1beta2.PartOfSpeech;
|
3675 |
|
3676 | /**
|
3677 | * Verifies a PartOfSpeech message.
|
3678 | * @param message Plain object to verify
|
3679 | * @returns `null` if valid, otherwise the reason why it is not
|
3680 | */
|
3681 | public static verify(message: { [k: string]: any }): (string|null);
|
3682 |
|
3683 | /**
|
3684 | * Creates a PartOfSpeech message from a plain object. Also converts values to their respective internal types.
|
3685 | * @param object Plain object
|
3686 | * @returns PartOfSpeech
|
3687 | */
|
3688 | public static fromObject(object: { [k: string]: any }): google.cloud.language.v1beta2.PartOfSpeech;
|
3689 |
|
3690 | /**
|
3691 | * Creates a plain object from a PartOfSpeech message. Also converts values to other types if specified.
|
3692 | * @param message PartOfSpeech
|
3693 | * @param [options] Conversion options
|
3694 | * @returns Plain object
|
3695 | */
|
3696 | public static toObject(message: google.cloud.language.v1beta2.PartOfSpeech, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
3697 |
|
3698 | /**
|
3699 | * Converts this PartOfSpeech to JSON.
|
3700 | * @returns JSON object
|
3701 | */
|
3702 | public toJSON(): { [k: string]: any };
|
3703 | }
|
3704 |
|
3705 | namespace PartOfSpeech {
|
3706 |
|
3707 | /** Tag enum. */
|
3708 | enum Tag {
|
3709 | UNKNOWN = 0,
|
3710 | ADJ = 1,
|
3711 | ADP = 2,
|
3712 | ADV = 3,
|
3713 | CONJ = 4,
|
3714 | DET = 5,
|
3715 | NOUN = 6,
|
3716 | NUM = 7,
|
3717 | PRON = 8,
|
3718 | PRT = 9,
|
3719 | PUNCT = 10,
|
3720 | VERB = 11,
|
3721 | X = 12,
|
3722 | AFFIX = 13
|
3723 | }
|
3724 |
|
3725 | /** Aspect enum. */
|
3726 | enum Aspect {
|
3727 | ASPECT_UNKNOWN = 0,
|
3728 | PERFECTIVE = 1,
|
3729 | IMPERFECTIVE = 2,
|
3730 | PROGRESSIVE = 3
|
3731 | }
|
3732 |
|
3733 | /** Case enum. */
|
3734 | enum Case {
|
3735 | CASE_UNKNOWN = 0,
|
3736 | ACCUSATIVE = 1,
|
3737 | ADVERBIAL = 2,
|
3738 | COMPLEMENTIVE = 3,
|
3739 | DATIVE = 4,
|
3740 | GENITIVE = 5,
|
3741 | INSTRUMENTAL = 6,
|
3742 | LOCATIVE = 7,
|
3743 | NOMINATIVE = 8,
|
3744 | OBLIQUE = 9,
|
3745 | PARTITIVE = 10,
|
3746 | PREPOSITIONAL = 11,
|
3747 | REFLEXIVE_CASE = 12,
|
3748 | RELATIVE_CASE = 13,
|
3749 | VOCATIVE = 14
|
3750 | }
|
3751 |
|
3752 | /** Form enum. */
|
3753 | enum Form {
|
3754 | FORM_UNKNOWN = 0,
|
3755 | ADNOMIAL = 1,
|
3756 | AUXILIARY = 2,
|
3757 | COMPLEMENTIZER = 3,
|
3758 | FINAL_ENDING = 4,
|
3759 | GERUND = 5,
|
3760 | REALIS = 6,
|
3761 | IRREALIS = 7,
|
3762 | SHORT = 8,
|
3763 | LONG = 9,
|
3764 | ORDER = 10,
|
3765 | SPECIFIC = 11
|
3766 | }
|
3767 |
|
3768 | /** Gender enum. */
|
3769 | enum Gender {
|
3770 | GENDER_UNKNOWN = 0,
|
3771 | FEMININE = 1,
|
3772 | MASCULINE = 2,
|
3773 | NEUTER = 3
|
3774 | }
|
3775 |
|
3776 | /** Mood enum. */
|
3777 | enum Mood {
|
3778 | MOOD_UNKNOWN = 0,
|
3779 | CONDITIONAL_MOOD = 1,
|
3780 | IMPERATIVE = 2,
|
3781 | INDICATIVE = 3,
|
3782 | INTERROGATIVE = 4,
|
3783 | JUSSIVE = 5,
|
3784 | SUBJUNCTIVE = 6
|
3785 | }
|
3786 |
|
3787 | /** Number enum. */
|
3788 | enum Number {
|
3789 | NUMBER_UNKNOWN = 0,
|
3790 | SINGULAR = 1,
|
3791 | PLURAL = 2,
|
3792 | DUAL = 3
|
3793 | }
|
3794 |
|
3795 | /** Person enum. */
|
3796 | enum Person {
|
3797 | PERSON_UNKNOWN = 0,
|
3798 | FIRST = 1,
|
3799 | SECOND = 2,
|
3800 | THIRD = 3,
|
3801 | REFLEXIVE_PERSON = 4
|
3802 | }
|
3803 |
|
3804 | /** Proper enum. */
|
3805 | enum Proper {
|
3806 | PROPER_UNKNOWN = 0,
|
3807 | PROPER = 1,
|
3808 | NOT_PROPER = 2
|
3809 | }
|
3810 |
|
3811 | /** Reciprocity enum. */
|
3812 | enum Reciprocity {
|
3813 | RECIPROCITY_UNKNOWN = 0,
|
3814 | RECIPROCAL = 1,
|
3815 | NON_RECIPROCAL = 2
|
3816 | }
|
3817 |
|
3818 | /** Tense enum. */
|
3819 | enum Tense {
|
3820 | TENSE_UNKNOWN = 0,
|
3821 | CONDITIONAL_TENSE = 1,
|
3822 | FUTURE = 2,
|
3823 | PAST = 3,
|
3824 | PRESENT = 4,
|
3825 | IMPERFECT = 5,
|
3826 | PLUPERFECT = 6
|
3827 | }
|
3828 |
|
3829 | /** Voice enum. */
|
3830 | enum Voice {
|
3831 | VOICE_UNKNOWN = 0,
|
3832 | ACTIVE = 1,
|
3833 | CAUSATIVE = 2,
|
3834 | PASSIVE = 3
|
3835 | }
|
3836 | }
|
3837 |
|
3838 | /** Properties of a DependencyEdge. */
|
3839 | interface IDependencyEdge {
|
3840 |
|
3841 | /** DependencyEdge headTokenIndex */
|
3842 | headTokenIndex?: (number|null);
|
3843 |
|
3844 | /** DependencyEdge label */
|
3845 | label?: (google.cloud.language.v1beta2.DependencyEdge.Label|keyof typeof google.cloud.language.v1beta2.DependencyEdge.Label|null);
|
3846 | }
|
3847 |
|
3848 | /** Represents a DependencyEdge. */
|
3849 | class DependencyEdge implements IDependencyEdge {
|
3850 |
|
3851 | /**
|
3852 | * Constructs a new DependencyEdge.
|
3853 | * @param [properties] Properties to set
|
3854 | */
|
3855 | constructor(properties?: google.cloud.language.v1beta2.IDependencyEdge);
|
3856 |
|
3857 | /** DependencyEdge headTokenIndex. */
|
3858 | public headTokenIndex: number;
|
3859 |
|
3860 | /** DependencyEdge label. */
|
3861 | public label: (google.cloud.language.v1beta2.DependencyEdge.Label|keyof typeof google.cloud.language.v1beta2.DependencyEdge.Label);
|
3862 |
|
3863 | /**
|
3864 | * Creates a new DependencyEdge instance using the specified properties.
|
3865 | * @param [properties] Properties to set
|
3866 | * @returns DependencyEdge instance
|
3867 | */
|
3868 | public static create(properties?: google.cloud.language.v1beta2.IDependencyEdge): google.cloud.language.v1beta2.DependencyEdge;
|
3869 |
|
3870 | /**
|
3871 | * Encodes the specified DependencyEdge message. Does not implicitly { google.cloud.language.v1beta2.DependencyEdge.verify|verify} messages.
|
3872 | * message DependencyEdge message or plain object to encode
|
3873 | * [writer] Writer to encode to
|
3874 | * Writer
|
3875 | */
|
3876 | public static encode(message: google.cloud.language.v1beta2.IDependencyEdge, writer?: $protobuf.Writer): $protobuf.Writer;
|
3877 |
|
3878 | /**
|
3879 | * Encodes the specified DependencyEdge message, length delimited. Does not implicitly {@link google.cloud.language.v1beta2.DependencyEdge.verify|verify} messages.
|
3880 | * @param message DependencyEdge message or plain object to encode
|
3881 | * @param [writer] Writer to encode to
|
3882 | * @returns Writer
|
3883 | */
|
3884 | public static encodeDelimited(message: google.cloud.language.v1beta2.IDependencyEdge, writer?: $protobuf.Writer): $protobuf.Writer;
|
3885 |
|
3886 | /**
|
3887 | * Decodes a DependencyEdge message from the specified reader or buffer.
|
3888 | * @param reader Reader or buffer to decode from
|
3889 | * @param [length] Message length if known beforehand
|
3890 | * @returns DependencyEdge
|
3891 | * @throws {Error} If the payload is not a reader or valid buffer
|
3892 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
3893 | */
|
3894 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.language.v1beta2.DependencyEdge;
|
3895 |
|
3896 | /**
|
3897 | * Decodes a DependencyEdge message from the specified reader or buffer, length delimited.
|
3898 | * @param reader Reader or buffer to decode from
|
3899 | * @returns DependencyEdge
|
3900 | * @throws {Error} If the payload is not a reader or valid buffer
|
3901 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
3902 | */
|
3903 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.language.v1beta2.DependencyEdge;
|
3904 |
|
3905 | /**
|
3906 | * Verifies a DependencyEdge message.
|
3907 | * @param message Plain object to verify
|
3908 | * @returns `null` if valid, otherwise the reason why it is not
|
3909 | */
|
3910 | public static verify(message: { [k: string]: any }): (string|null);
|
3911 |
|
3912 | /**
|
3913 | * Creates a DependencyEdge message from a plain object. Also converts values to their respective internal types.
|
3914 | * @param object Plain object
|
3915 | * @returns DependencyEdge
|
3916 | */
|
3917 | public static fromObject(object: { [k: string]: any }): google.cloud.language.v1beta2.DependencyEdge;
|
3918 |
|
3919 | /**
|
3920 | * Creates a plain object from a DependencyEdge message. Also converts values to other types if specified.
|
3921 | * @param message DependencyEdge
|
3922 | * @param [options] Conversion options
|
3923 | * @returns Plain object
|
3924 | */
|
3925 | public static toObject(message: google.cloud.language.v1beta2.DependencyEdge, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
3926 |
|
3927 | /**
|
3928 | * Converts this DependencyEdge to JSON.
|
3929 | * @returns JSON object
|
3930 | */
|
3931 | public toJSON(): { [k: string]: any };
|
3932 | }
|
3933 |
|
3934 | namespace DependencyEdge {
|
3935 |
|
3936 | /** Label enum. */
|
3937 | enum Label {
|
3938 | UNKNOWN = 0,
|
3939 | ABBREV = 1,
|
3940 | ACOMP = 2,
|
3941 | ADVCL = 3,
|
3942 | ADVMOD = 4,
|
3943 | AMOD = 5,
|
3944 | APPOS = 6,
|
3945 | ATTR = 7,
|
3946 | AUX = 8,
|
3947 | AUXPASS = 9,
|
3948 | CC = 10,
|
3949 | CCOMP = 11,
|
3950 | CONJ = 12,
|
3951 | CSUBJ = 13,
|
3952 | CSUBJPASS = 14,
|
3953 | DEP = 15,
|
3954 | DET = 16,
|
3955 | DISCOURSE = 17,
|
3956 | DOBJ = 18,
|
3957 | EXPL = 19,
|
3958 | GOESWITH = 20,
|
3959 | IOBJ = 21,
|
3960 | MARK = 22,
|
3961 | MWE = 23,
|
3962 | MWV = 24,
|
3963 | NEG = 25,
|
3964 | NN = 26,
|
3965 | NPADVMOD = 27,
|
3966 | NSUBJ = 28,
|
3967 | NSUBJPASS = 29,
|
3968 | NUM = 30,
|
3969 | NUMBER = 31,
|
3970 | P = 32,
|
3971 | PARATAXIS = 33,
|
3972 | PARTMOD = 34,
|
3973 | PCOMP = 35,
|
3974 | POBJ = 36,
|
3975 | POSS = 37,
|
3976 | POSTNEG = 38,
|
3977 | PRECOMP = 39,
|
3978 | PRECONJ = 40,
|
3979 | PREDET = 41,
|
3980 | PREF = 42,
|
3981 | PREP = 43,
|
3982 | PRONL = 44,
|
3983 | PRT = 45,
|
3984 | PS = 46,
|
3985 | QUANTMOD = 47,
|
3986 | RCMOD = 48,
|
3987 | RCMODREL = 49,
|
3988 | RDROP = 50,
|
3989 | REF = 51,
|
3990 | REMNANT = 52,
|
3991 | REPARANDUM = 53,
|
3992 | ROOT = 54,
|
3993 | SNUM = 55,
|
3994 | SUFF = 56,
|
3995 | TMOD = 57,
|
3996 | TOPIC = 58,
|
3997 | VMOD = 59,
|
3998 | VOCATIVE = 60,
|
3999 | XCOMP = 61,
|
4000 | SUFFIX = 62,
|
4001 | TITLE = 63,
|
4002 | ADVPHMOD = 64,
|
4003 | AUXCAUS = 65,
|
4004 | AUXVV = 66,
|
4005 | DTMOD = 67,
|
4006 | FOREIGN = 68,
|
4007 | KW = 69,
|
4008 | LIST = 70,
|
4009 | NOMC = 71,
|
4010 | NOMCSUBJ = 72,
|
4011 | NOMCSUBJPASS = 73,
|
4012 | NUMC = 74,
|
4013 | COP = 75,
|
4014 | DISLOCATED = 76,
|
4015 | ASP = 77,
|
4016 | GMOD = 78,
|
4017 | GOBJ = 79,
|
4018 | INFMOD = 80,
|
4019 | MES = 81,
|
4020 | NCOMP = 82
|
4021 | }
|
4022 | }
|
4023 |
|
4024 | /** Properties of an EntityMention. */
|
4025 | interface IEntityMention {
|
4026 |
|
4027 | /** EntityMention text */
|
4028 | text?: (google.cloud.language.v1beta2.ITextSpan|null);
|
4029 |
|
4030 | /** EntityMention type */
|
4031 | type?: (google.cloud.language.v1beta2.EntityMention.Type|keyof typeof google.cloud.language.v1beta2.EntityMention.Type|null);
|
4032 |
|
4033 | /** EntityMention sentiment */
|
4034 | sentiment?: (google.cloud.language.v1beta2.ISentiment|null);
|
4035 | }
|
4036 |
|
4037 | /** Represents an EntityMention. */
|
4038 | class EntityMention implements IEntityMention {
|
4039 |
|
4040 | /**
|
4041 | * Constructs a new EntityMention.
|
4042 | * @param [properties] Properties to set
|
4043 | */
|
4044 | constructor(properties?: google.cloud.language.v1beta2.IEntityMention);
|
4045 |
|
4046 | /** EntityMention text. */
|
4047 | public text?: (google.cloud.language.v1beta2.ITextSpan|null);
|
4048 |
|
4049 | /** EntityMention type. */
|
4050 | public type: (google.cloud.language.v1beta2.EntityMention.Type|keyof typeof google.cloud.language.v1beta2.EntityMention.Type);
|
4051 |
|
4052 | /** EntityMention sentiment. */
|
4053 | public sentiment?: (google.cloud.language.v1beta2.ISentiment|null);
|
4054 |
|
4055 | /**
|
4056 | * Creates a new EntityMention instance using the specified properties.
|
4057 | * @param [properties] Properties to set
|
4058 | * @returns EntityMention instance
|
4059 | */
|
4060 | public static create(properties?: google.cloud.language.v1beta2.IEntityMention): google.cloud.language.v1beta2.EntityMention;
|
4061 |
|
4062 | /**
|
4063 | * Encodes the specified EntityMention message. Does not implicitly { google.cloud.language.v1beta2.EntityMention.verify|verify} messages.
|
4064 | * message EntityMention message or plain object to encode
|
4065 | * [writer] Writer to encode to
|
4066 | * Writer
|
4067 | */
|
4068 | public static encode(message: google.cloud.language.v1beta2.IEntityMention, writer?: $protobuf.Writer): $protobuf.Writer;
|
4069 |
|
4070 | /**
|
4071 | * Encodes the specified EntityMention message, length delimited. Does not implicitly {@link google.cloud.language.v1beta2.EntityMention.verify|verify} messages.
|
4072 | * @param message EntityMention message or plain object to encode
|
4073 | * @param [writer] Writer to encode to
|
4074 | * @returns Writer
|
4075 | */
|
4076 | public static encodeDelimited(message: google.cloud.language.v1beta2.IEntityMention, writer?: $protobuf.Writer): $protobuf.Writer;
|
4077 |
|
4078 | /**
|
4079 | * Decodes an EntityMention message from the specified reader or buffer.
|
4080 | * @param reader Reader or buffer to decode from
|
4081 | * @param [length] Message length if known beforehand
|
4082 | * @returns EntityMention
|
4083 | * @throws {Error} If the payload is not a reader or valid buffer
|
4084 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
4085 | */
|
4086 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.language.v1beta2.EntityMention;
|
4087 |
|
4088 | /**
|
4089 | * Decodes an EntityMention message from the specified reader or buffer, length delimited.
|
4090 | * @param reader Reader or buffer to decode from
|
4091 | * @returns EntityMention
|
4092 | * @throws {Error} If the payload is not a reader or valid buffer
|
4093 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
4094 | */
|
4095 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.language.v1beta2.EntityMention;
|
4096 |
|
4097 | /**
|
4098 | * Verifies an EntityMention message.
|
4099 | * @param message Plain object to verify
|
4100 | * @returns `null` if valid, otherwise the reason why it is not
|
4101 | */
|
4102 | public static verify(message: { [k: string]: any }): (string|null);
|
4103 |
|
4104 | /**
|
4105 | * Creates an EntityMention message from a plain object. Also converts values to their respective internal types.
|
4106 | * @param object Plain object
|
4107 | * @returns EntityMention
|
4108 | */
|
4109 | public static fromObject(object: { [k: string]: any }): google.cloud.language.v1beta2.EntityMention;
|
4110 |
|
4111 | /**
|
4112 | * Creates a plain object from an EntityMention message. Also converts values to other types if specified.
|
4113 | * @param message EntityMention
|
4114 | * @param [options] Conversion options
|
4115 | * @returns Plain object
|
4116 | */
|
4117 | public static toObject(message: google.cloud.language.v1beta2.EntityMention, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
4118 |
|
4119 | /**
|
4120 | * Converts this EntityMention to JSON.
|
4121 | * @returns JSON object
|
4122 | */
|
4123 | public toJSON(): { [k: string]: any };
|
4124 | }
|
4125 |
|
4126 | namespace EntityMention {
|
4127 |
|
4128 | /** Type enum. */
|
4129 | enum Type {
|
4130 | TYPE_UNKNOWN = 0,
|
4131 | PROPER = 1,
|
4132 | COMMON = 2
|
4133 | }
|
4134 | }
|
4135 |
|
4136 | /** Properties of a TextSpan. */
|
4137 | interface ITextSpan {
|
4138 |
|
4139 | /** TextSpan content */
|
4140 | content?: (string|null);
|
4141 |
|
4142 | /** TextSpan beginOffset */
|
4143 | beginOffset?: (number|null);
|
4144 | }
|
4145 |
|
4146 | /** Represents a TextSpan. */
|
4147 | class TextSpan implements ITextSpan {
|
4148 |
|
4149 | /**
|
4150 | * Constructs a new TextSpan.
|
4151 | * @param [properties] Properties to set
|
4152 | */
|
4153 | constructor(properties?: google.cloud.language.v1beta2.ITextSpan);
|
4154 |
|
4155 | /** TextSpan content. */
|
4156 | public content: string;
|
4157 |
|
4158 | /** TextSpan beginOffset. */
|
4159 | public beginOffset: number;
|
4160 |
|
4161 | /**
|
4162 | * Creates a new TextSpan instance using the specified properties.
|
4163 | * @param [properties] Properties to set
|
4164 | * @returns TextSpan instance
|
4165 | */
|
4166 | public static create(properties?: google.cloud.language.v1beta2.ITextSpan): google.cloud.language.v1beta2.TextSpan;
|
4167 |
|
4168 | /**
|
4169 | * Encodes the specified TextSpan message. Does not implicitly { google.cloud.language.v1beta2.TextSpan.verify|verify} messages.
|
4170 | * message TextSpan message or plain object to encode
|
4171 | * [writer] Writer to encode to
|
4172 | * Writer
|
4173 | */
|
4174 | public static encode(message: google.cloud.language.v1beta2.ITextSpan, writer?: $protobuf.Writer): $protobuf.Writer;
|
4175 |
|
4176 | /**
|
4177 | * Encodes the specified TextSpan message, length delimited. Does not implicitly {@link google.cloud.language.v1beta2.TextSpan.verify|verify} messages.
|
4178 | * @param message TextSpan message or plain object to encode
|
4179 | * @param [writer] Writer to encode to
|
4180 | * @returns Writer
|
4181 | */
|
4182 | public static encodeDelimited(message: google.cloud.language.v1beta2.ITextSpan, writer?: $protobuf.Writer): $protobuf.Writer;
|
4183 |
|
4184 | /**
|
4185 | * Decodes a TextSpan message from the specified reader or buffer.
|
4186 | * @param reader Reader or buffer to decode from
|
4187 | * @param [length] Message length if known beforehand
|
4188 | * @returns TextSpan
|
4189 | * @throws {Error} If the payload is not a reader or valid buffer
|
4190 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
4191 | */
|
4192 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.language.v1beta2.TextSpan;
|
4193 |
|
4194 | /**
|
4195 | * Decodes a TextSpan message from the specified reader or buffer, length delimited.
|
4196 | * @param reader Reader or buffer to decode from
|
4197 | * @returns TextSpan
|
4198 | * @throws {Error} If the payload is not a reader or valid buffer
|
4199 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
4200 | */
|
4201 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.language.v1beta2.TextSpan;
|
4202 |
|
4203 | /**
|
4204 | * Verifies a TextSpan message.
|
4205 | * @param message Plain object to verify
|
4206 | * @returns `null` if valid, otherwise the reason why it is not
|
4207 | */
|
4208 | public static verify(message: { [k: string]: any }): (string|null);
|
4209 |
|
4210 | /**
|
4211 | * Creates a TextSpan message from a plain object. Also converts values to their respective internal types.
|
4212 | * @param object Plain object
|
4213 | * @returns TextSpan
|
4214 | */
|
4215 | public static fromObject(object: { [k: string]: any }): google.cloud.language.v1beta2.TextSpan;
|
4216 |
|
4217 | /**
|
4218 | * Creates a plain object from a TextSpan message. Also converts values to other types if specified.
|
4219 | * @param message TextSpan
|
4220 | * @param [options] Conversion options
|
4221 | * @returns Plain object
|
4222 | */
|
4223 | public static toObject(message: google.cloud.language.v1beta2.TextSpan, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
4224 |
|
4225 | /**
|
4226 | * Converts this TextSpan to JSON.
|
4227 | * @returns JSON object
|
4228 | */
|
4229 | public toJSON(): { [k: string]: any };
|
4230 | }
|
4231 |
|
4232 | /** Properties of a ClassificationCategory. */
|
4233 | interface IClassificationCategory {
|
4234 |
|
4235 | /** ClassificationCategory name */
|
4236 | name?: (string|null);
|
4237 |
|
4238 | /** ClassificationCategory confidence */
|
4239 | confidence?: (number|null);
|
4240 | }
|
4241 |
|
4242 | /** Represents a ClassificationCategory. */
|
4243 | class ClassificationCategory implements IClassificationCategory {
|
4244 |
|
4245 | /**
|
4246 | * Constructs a new ClassificationCategory.
|
4247 | * @param [properties] Properties to set
|
4248 | */
|
4249 | constructor(properties?: google.cloud.language.v1beta2.IClassificationCategory);
|
4250 |
|
4251 | /** ClassificationCategory name. */
|
4252 | public name: string;
|
4253 |
|
4254 | /** ClassificationCategory confidence. */
|
4255 | public confidence: number;
|
4256 |
|
4257 | /**
|
4258 | * Creates a new ClassificationCategory instance using the specified properties.
|
4259 | * @param [properties] Properties to set
|
4260 | * @returns ClassificationCategory instance
|
4261 | */
|
4262 | public static create(properties?: google.cloud.language.v1beta2.IClassificationCategory): google.cloud.language.v1beta2.ClassificationCategory;
|
4263 |
|
4264 | /**
|
4265 | * Encodes the specified ClassificationCategory message. Does not implicitly { google.cloud.language.v1beta2.ClassificationCategory.verify|verify} messages.
|
4266 | * message ClassificationCategory message or plain object to encode
|
4267 | * [writer] Writer to encode to
|
4268 | * Writer
|
4269 | */
|
4270 | public static encode(message: google.cloud.language.v1beta2.IClassificationCategory, writer?: $protobuf.Writer): $protobuf.Writer;
|
4271 |
|
4272 | /**
|
4273 | * Encodes the specified ClassificationCategory message, length delimited. Does not implicitly {@link google.cloud.language.v1beta2.ClassificationCategory.verify|verify} messages.
|
4274 | * @param message ClassificationCategory message or plain object to encode
|
4275 | * @param [writer] Writer to encode to
|
4276 | * @returns Writer
|
4277 | */
|
4278 | public static encodeDelimited(message: google.cloud.language.v1beta2.IClassificationCategory, writer?: $protobuf.Writer): $protobuf.Writer;
|
4279 |
|
4280 | /**
|
4281 | * Decodes a ClassificationCategory message from the specified reader or buffer.
|
4282 | * @param reader Reader or buffer to decode from
|
4283 | * @param [length] Message length if known beforehand
|
4284 | * @returns ClassificationCategory
|
4285 | * @throws {Error} If the payload is not a reader or valid buffer
|
4286 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
4287 | */
|
4288 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.language.v1beta2.ClassificationCategory;
|
4289 |
|
4290 | /**
|
4291 | * Decodes a ClassificationCategory message from the specified reader or buffer, length delimited.
|
4292 | * @param reader Reader or buffer to decode from
|
4293 | * @returns ClassificationCategory
|
4294 | * @throws {Error} If the payload is not a reader or valid buffer
|
4295 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
4296 | */
|
4297 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.language.v1beta2.ClassificationCategory;
|
4298 |
|
4299 | /**
|
4300 | * Verifies a ClassificationCategory message.
|
4301 | * @param message Plain object to verify
|
4302 | * @returns `null` if valid, otherwise the reason why it is not
|
4303 | */
|
4304 | public static verify(message: { [k: string]: any }): (string|null);
|
4305 |
|
4306 | /**
|
4307 | * Creates a ClassificationCategory message from a plain object. Also converts values to their respective internal types.
|
4308 | * @param object Plain object
|
4309 | * @returns ClassificationCategory
|
4310 | */
|
4311 | public static fromObject(object: { [k: string]: any }): google.cloud.language.v1beta2.ClassificationCategory;
|
4312 |
|
4313 | /**
|
4314 | * Creates a plain object from a ClassificationCategory message. Also converts values to other types if specified.
|
4315 | * @param message ClassificationCategory
|
4316 | * @param [options] Conversion options
|
4317 | * @returns Plain object
|
4318 | */
|
4319 | public static toObject(message: google.cloud.language.v1beta2.ClassificationCategory, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
4320 |
|
4321 | /**
|
4322 | * Converts this ClassificationCategory to JSON.
|
4323 | * @returns JSON object
|
4324 | */
|
4325 | public toJSON(): { [k: string]: any };
|
4326 | }
|
4327 |
|
4328 | /** Properties of an AnalyzeSentimentRequest. */
|
4329 | interface IAnalyzeSentimentRequest {
|
4330 |
|
4331 | /** AnalyzeSentimentRequest document */
|
4332 | document?: (google.cloud.language.v1beta2.IDocument|null);
|
4333 |
|
4334 | /** AnalyzeSentimentRequest encodingType */
|
4335 | encodingType?: (google.cloud.language.v1beta2.EncodingType|keyof typeof google.cloud.language.v1beta2.EncodingType|null);
|
4336 | }
|
4337 |
|
4338 | /** Represents an AnalyzeSentimentRequest. */
|
4339 | class AnalyzeSentimentRequest implements IAnalyzeSentimentRequest {
|
4340 |
|
4341 | /**
|
4342 | * Constructs a new AnalyzeSentimentRequest.
|
4343 | * @param [properties] Properties to set
|
4344 | */
|
4345 | constructor(properties?: google.cloud.language.v1beta2.IAnalyzeSentimentRequest);
|
4346 |
|
4347 | /** AnalyzeSentimentRequest document. */
|
4348 | public document?: (google.cloud.language.v1beta2.IDocument|null);
|
4349 |
|
4350 | /** AnalyzeSentimentRequest encodingType. */
|
4351 | public encodingType: (google.cloud.language.v1beta2.EncodingType|keyof typeof google.cloud.language.v1beta2.EncodingType);
|
4352 |
|
4353 | /**
|
4354 | * Creates a new AnalyzeSentimentRequest instance using the specified properties.
|
4355 | * @param [properties] Properties to set
|
4356 | * @returns AnalyzeSentimentRequest instance
|
4357 | */
|
4358 | public static create(properties?: google.cloud.language.v1beta2.IAnalyzeSentimentRequest): google.cloud.language.v1beta2.AnalyzeSentimentRequest;
|
4359 |
|
4360 | /**
|
4361 | * Encodes the specified AnalyzeSentimentRequest message. Does not implicitly { google.cloud.language.v1beta2.AnalyzeSentimentRequest.verify|verify} messages.
|
4362 | * message AnalyzeSentimentRequest message or plain object to encode
|
4363 | * [writer] Writer to encode to
|
4364 | * Writer
|
4365 | */
|
4366 | public static encode(message: google.cloud.language.v1beta2.IAnalyzeSentimentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
4367 |
|
4368 | /**
|
4369 | * Encodes the specified AnalyzeSentimentRequest message, length delimited. Does not implicitly {@link google.cloud.language.v1beta2.AnalyzeSentimentRequest.verify|verify} messages.
|
4370 | * @param message AnalyzeSentimentRequest message or plain object to encode
|
4371 | * @param [writer] Writer to encode to
|
4372 | * @returns Writer
|
4373 | */
|
4374 | public static encodeDelimited(message: google.cloud.language.v1beta2.IAnalyzeSentimentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
4375 |
|
4376 | /**
|
4377 | * Decodes an AnalyzeSentimentRequest message from the specified reader or buffer.
|
4378 | * @param reader Reader or buffer to decode from
|
4379 | * @param [length] Message length if known beforehand
|
4380 | * @returns AnalyzeSentimentRequest
|
4381 | * @throws {Error} If the payload is not a reader or valid buffer
|
4382 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
4383 | */
|
4384 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.language.v1beta2.AnalyzeSentimentRequest;
|
4385 |
|
4386 | /**
|
4387 | * Decodes an AnalyzeSentimentRequest message from the specified reader or buffer, length delimited.
|
4388 | * @param reader Reader or buffer to decode from
|
4389 | * @returns AnalyzeSentimentRequest
|
4390 | * @throws {Error} If the payload is not a reader or valid buffer
|
4391 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
4392 | */
|
4393 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.language.v1beta2.AnalyzeSentimentRequest;
|
4394 |
|
4395 | /**
|
4396 | * Verifies an AnalyzeSentimentRequest message.
|
4397 | * @param message Plain object to verify
|
4398 | * @returns `null` if valid, otherwise the reason why it is not
|
4399 | */
|
4400 | public static verify(message: { [k: string]: any }): (string|null);
|
4401 |
|
4402 | /**
|
4403 | * Creates an AnalyzeSentimentRequest message from a plain object. Also converts values to their respective internal types.
|
4404 | * @param object Plain object
|
4405 | * @returns AnalyzeSentimentRequest
|
4406 | */
|
4407 | public static fromObject(object: { [k: string]: any }): google.cloud.language.v1beta2.AnalyzeSentimentRequest;
|
4408 |
|
4409 | /**
|
4410 | * Creates a plain object from an AnalyzeSentimentRequest message. Also converts values to other types if specified.
|
4411 | * @param message AnalyzeSentimentRequest
|
4412 | * @param [options] Conversion options
|
4413 | * @returns Plain object
|
4414 | */
|
4415 | public static toObject(message: google.cloud.language.v1beta2.AnalyzeSentimentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
4416 |
|
4417 | /**
|
4418 | * Converts this AnalyzeSentimentRequest to JSON.
|
4419 | * @returns JSON object
|
4420 | */
|
4421 | public toJSON(): { [k: string]: any };
|
4422 | }
|
4423 |
|
4424 | /** Properties of an AnalyzeSentimentResponse. */
|
4425 | interface IAnalyzeSentimentResponse {
|
4426 |
|
4427 | /** AnalyzeSentimentResponse documentSentiment */
|
4428 | documentSentiment?: (google.cloud.language.v1beta2.ISentiment|null);
|
4429 |
|
4430 | /** AnalyzeSentimentResponse language */
|
4431 | language?: (string|null);
|
4432 |
|
4433 | /** AnalyzeSentimentResponse sentences */
|
4434 | sentences?: (google.cloud.language.v1beta2.ISentence[]|null);
|
4435 | }
|
4436 |
|
4437 | /** Represents an AnalyzeSentimentResponse. */
|
4438 | class AnalyzeSentimentResponse implements IAnalyzeSentimentResponse {
|
4439 |
|
4440 | /**
|
4441 | * Constructs a new AnalyzeSentimentResponse.
|
4442 | * @param [properties] Properties to set
|
4443 | */
|
4444 | constructor(properties?: google.cloud.language.v1beta2.IAnalyzeSentimentResponse);
|
4445 |
|
4446 | /** AnalyzeSentimentResponse documentSentiment. */
|
4447 | public documentSentiment?: (google.cloud.language.v1beta2.ISentiment|null);
|
4448 |
|
4449 | /** AnalyzeSentimentResponse language. */
|
4450 | public language: string;
|
4451 |
|
4452 | /** AnalyzeSentimentResponse sentences. */
|
4453 | public sentences: google.cloud.language.v1beta2.ISentence[];
|
4454 |
|
4455 | /**
|
4456 | * Creates a new AnalyzeSentimentResponse instance using the specified properties.
|
4457 | * @param [properties] Properties to set
|
4458 | * @returns AnalyzeSentimentResponse instance
|
4459 | */
|
4460 | public static create(properties?: google.cloud.language.v1beta2.IAnalyzeSentimentResponse): google.cloud.language.v1beta2.AnalyzeSentimentResponse;
|
4461 |
|
4462 | /**
|
4463 | * Encodes the specified AnalyzeSentimentResponse message. Does not implicitly { google.cloud.language.v1beta2.AnalyzeSentimentResponse.verify|verify} messages.
|
4464 | * message AnalyzeSentimentResponse message or plain object to encode
|
4465 | * [writer] Writer to encode to
|
4466 | * Writer
|
4467 | */
|
4468 | public static encode(message: google.cloud.language.v1beta2.IAnalyzeSentimentResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
4469 |
|
4470 | /**
|
4471 | * Encodes the specified AnalyzeSentimentResponse message, length delimited. Does not implicitly {@link google.cloud.language.v1beta2.AnalyzeSentimentResponse.verify|verify} messages.
|
4472 | * @param message AnalyzeSentimentResponse message or plain object to encode
|
4473 | * @param [writer] Writer to encode to
|
4474 | * @returns Writer
|
4475 | */
|
4476 | public static encodeDelimited(message: google.cloud.language.v1beta2.IAnalyzeSentimentResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
4477 |
|
4478 | /**
|
4479 | * Decodes an AnalyzeSentimentResponse message from the specified reader or buffer.
|
4480 | * @param reader Reader or buffer to decode from
|
4481 | * @param [length] Message length if known beforehand
|
4482 | * @returns AnalyzeSentimentResponse
|
4483 | * @throws {Error} If the payload is not a reader or valid buffer
|
4484 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
4485 | */
|
4486 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.language.v1beta2.AnalyzeSentimentResponse;
|
4487 |
|
4488 | /**
|
4489 | * Decodes an AnalyzeSentimentResponse message from the specified reader or buffer, length delimited.
|
4490 | * @param reader Reader or buffer to decode from
|
4491 | * @returns AnalyzeSentimentResponse
|
4492 | * @throws {Error} If the payload is not a reader or valid buffer
|
4493 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
4494 | */
|
4495 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.language.v1beta2.AnalyzeSentimentResponse;
|
4496 |
|
4497 | /**
|
4498 | * Verifies an AnalyzeSentimentResponse message.
|
4499 | * @param message Plain object to verify
|
4500 | * @returns `null` if valid, otherwise the reason why it is not
|
4501 | */
|
4502 | public static verify(message: { [k: string]: any }): (string|null);
|
4503 |
|
4504 | /**
|
4505 | * Creates an AnalyzeSentimentResponse message from a plain object. Also converts values to their respective internal types.
|
4506 | * @param object Plain object
|
4507 | * @returns AnalyzeSentimentResponse
|
4508 | */
|
4509 | public static fromObject(object: { [k: string]: any }): google.cloud.language.v1beta2.AnalyzeSentimentResponse;
|
4510 |
|
4511 | /**
|
4512 | * Creates a plain object from an AnalyzeSentimentResponse message. Also converts values to other types if specified.
|
4513 | * @param message AnalyzeSentimentResponse
|
4514 | * @param [options] Conversion options
|
4515 | * @returns Plain object
|
4516 | */
|
4517 | public static toObject(message: google.cloud.language.v1beta2.AnalyzeSentimentResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
4518 |
|
4519 | /**
|
4520 | * Converts this AnalyzeSentimentResponse to JSON.
|
4521 | * @returns JSON object
|
4522 | */
|
4523 | public toJSON(): { [k: string]: any };
|
4524 | }
|
4525 |
|
4526 | /** Properties of an AnalyzeEntitySentimentRequest. */
|
4527 | interface IAnalyzeEntitySentimentRequest {
|
4528 |
|
4529 | /** AnalyzeEntitySentimentRequest document */
|
4530 | document?: (google.cloud.language.v1beta2.IDocument|null);
|
4531 |
|
4532 | /** AnalyzeEntitySentimentRequest encodingType */
|
4533 | encodingType?: (google.cloud.language.v1beta2.EncodingType|keyof typeof google.cloud.language.v1beta2.EncodingType|null);
|
4534 | }
|
4535 |
|
4536 | /** Represents an AnalyzeEntitySentimentRequest. */
|
4537 | class AnalyzeEntitySentimentRequest implements IAnalyzeEntitySentimentRequest {
|
4538 |
|
4539 | /**
|
4540 | * Constructs a new AnalyzeEntitySentimentRequest.
|
4541 | * @param [properties] Properties to set
|
4542 | */
|
4543 | constructor(properties?: google.cloud.language.v1beta2.IAnalyzeEntitySentimentRequest);
|
4544 |
|
4545 | /** AnalyzeEntitySentimentRequest document. */
|
4546 | public document?: (google.cloud.language.v1beta2.IDocument|null);
|
4547 |
|
4548 | /** AnalyzeEntitySentimentRequest encodingType. */
|
4549 | public encodingType: (google.cloud.language.v1beta2.EncodingType|keyof typeof google.cloud.language.v1beta2.EncodingType);
|
4550 |
|
4551 | /**
|
4552 | * Creates a new AnalyzeEntitySentimentRequest instance using the specified properties.
|
4553 | * @param [properties] Properties to set
|
4554 | * @returns AnalyzeEntitySentimentRequest instance
|
4555 | */
|
4556 | public static create(properties?: google.cloud.language.v1beta2.IAnalyzeEntitySentimentRequest): google.cloud.language.v1beta2.AnalyzeEntitySentimentRequest;
|
4557 |
|
4558 | /**
|
4559 | * Encodes the specified AnalyzeEntitySentimentRequest message. Does not implicitly { google.cloud.language.v1beta2.AnalyzeEntitySentimentRequest.verify|verify} messages.
|
4560 | * message AnalyzeEntitySentimentRequest message or plain object to encode
|
4561 | * [writer] Writer to encode to
|
4562 | * Writer
|
4563 | */
|
4564 | public static encode(message: google.cloud.language.v1beta2.IAnalyzeEntitySentimentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
4565 |
|
4566 | /**
|
4567 | * Encodes the specified AnalyzeEntitySentimentRequest message, length delimited. Does not implicitly {@link google.cloud.language.v1beta2.AnalyzeEntitySentimentRequest.verify|verify} messages.
|
4568 | * @param message AnalyzeEntitySentimentRequest message or plain object to encode
|
4569 | * @param [writer] Writer to encode to
|
4570 | * @returns Writer
|
4571 | */
|
4572 | public static encodeDelimited(message: google.cloud.language.v1beta2.IAnalyzeEntitySentimentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
4573 |
|
4574 | /**
|
4575 | * Decodes an AnalyzeEntitySentimentRequest message from the specified reader or buffer.
|
4576 | * @param reader Reader or buffer to decode from
|
4577 | * @param [length] Message length if known beforehand
|
4578 | * @returns AnalyzeEntitySentimentRequest
|
4579 | * @throws {Error} If the payload is not a reader or valid buffer
|
4580 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
4581 | */
|
4582 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.language.v1beta2.AnalyzeEntitySentimentRequest;
|
4583 |
|
4584 | /**
|
4585 | * Decodes an AnalyzeEntitySentimentRequest message from the specified reader or buffer, length delimited.
|
4586 | * @param reader Reader or buffer to decode from
|
4587 | * @returns AnalyzeEntitySentimentRequest
|
4588 | * @throws {Error} If the payload is not a reader or valid buffer
|
4589 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
4590 | */
|
4591 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.language.v1beta2.AnalyzeEntitySentimentRequest;
|
4592 |
|
4593 | /**
|
4594 | * Verifies an AnalyzeEntitySentimentRequest message.
|
4595 | * @param message Plain object to verify
|
4596 | * @returns `null` if valid, otherwise the reason why it is not
|
4597 | */
|
4598 | public static verify(message: { [k: string]: any }): (string|null);
|
4599 |
|
4600 | /**
|
4601 | * Creates an AnalyzeEntitySentimentRequest message from a plain object. Also converts values to their respective internal types.
|
4602 | * @param object Plain object
|
4603 | * @returns AnalyzeEntitySentimentRequest
|
4604 | */
|
4605 | public static fromObject(object: { [k: string]: any }): google.cloud.language.v1beta2.AnalyzeEntitySentimentRequest;
|
4606 |
|
4607 | /**
|
4608 | * Creates a plain object from an AnalyzeEntitySentimentRequest message. Also converts values to other types if specified.
|
4609 | * @param message AnalyzeEntitySentimentRequest
|
4610 | * @param [options] Conversion options
|
4611 | * @returns Plain object
|
4612 | */
|
4613 | public static toObject(message: google.cloud.language.v1beta2.AnalyzeEntitySentimentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
4614 |
|
4615 | /**
|
4616 | * Converts this AnalyzeEntitySentimentRequest to JSON.
|
4617 | * @returns JSON object
|
4618 | */
|
4619 | public toJSON(): { [k: string]: any };
|
4620 | }
|
4621 |
|
4622 | /** Properties of an AnalyzeEntitySentimentResponse. */
|
4623 | interface IAnalyzeEntitySentimentResponse {
|
4624 |
|
4625 | /** AnalyzeEntitySentimentResponse entities */
|
4626 | entities?: (google.cloud.language.v1beta2.IEntity[]|null);
|
4627 |
|
4628 | /** AnalyzeEntitySentimentResponse language */
|
4629 | language?: (string|null);
|
4630 | }
|
4631 |
|
4632 | /** Represents an AnalyzeEntitySentimentResponse. */
|
4633 | class AnalyzeEntitySentimentResponse implements IAnalyzeEntitySentimentResponse {
|
4634 |
|
4635 | /**
|
4636 | * Constructs a new AnalyzeEntitySentimentResponse.
|
4637 | * @param [properties] Properties to set
|
4638 | */
|
4639 | constructor(properties?: google.cloud.language.v1beta2.IAnalyzeEntitySentimentResponse);
|
4640 |
|
4641 | /** AnalyzeEntitySentimentResponse entities. */
|
4642 | public entities: google.cloud.language.v1beta2.IEntity[];
|
4643 |
|
4644 | /** AnalyzeEntitySentimentResponse language. */
|
4645 | public language: string;
|
4646 |
|
4647 | /**
|
4648 | * Creates a new AnalyzeEntitySentimentResponse instance using the specified properties.
|
4649 | * @param [properties] Properties to set
|
4650 | * @returns AnalyzeEntitySentimentResponse instance
|
4651 | */
|
4652 | public static create(properties?: google.cloud.language.v1beta2.IAnalyzeEntitySentimentResponse): google.cloud.language.v1beta2.AnalyzeEntitySentimentResponse;
|
4653 |
|
4654 | /**
|
4655 | * Encodes the specified AnalyzeEntitySentimentResponse message. Does not implicitly { google.cloud.language.v1beta2.AnalyzeEntitySentimentResponse.verify|verify} messages.
|
4656 | * message AnalyzeEntitySentimentResponse message or plain object to encode
|
4657 | * [writer] Writer to encode to
|
4658 | * Writer
|
4659 | */
|
4660 | public static encode(message: google.cloud.language.v1beta2.IAnalyzeEntitySentimentResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
4661 |
|
4662 | /**
|
4663 | * Encodes the specified AnalyzeEntitySentimentResponse message, length delimited. Does not implicitly {@link google.cloud.language.v1beta2.AnalyzeEntitySentimentResponse.verify|verify} messages.
|
4664 | * @param message AnalyzeEntitySentimentResponse message or plain object to encode
|
4665 | * @param [writer] Writer to encode to
|
4666 | * @returns Writer
|
4667 | */
|
4668 | public static encodeDelimited(message: google.cloud.language.v1beta2.IAnalyzeEntitySentimentResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
4669 |
|
4670 | /**
|
4671 | * Decodes an AnalyzeEntitySentimentResponse message from the specified reader or buffer.
|
4672 | * @param reader Reader or buffer to decode from
|
4673 | * @param [length] Message length if known beforehand
|
4674 | * @returns AnalyzeEntitySentimentResponse
|
4675 | * @throws {Error} If the payload is not a reader or valid buffer
|
4676 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
4677 | */
|
4678 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.language.v1beta2.AnalyzeEntitySentimentResponse;
|
4679 |
|
4680 | /**
|
4681 | * Decodes an AnalyzeEntitySentimentResponse message from the specified reader or buffer, length delimited.
|
4682 | * @param reader Reader or buffer to decode from
|
4683 | * @returns AnalyzeEntitySentimentResponse
|
4684 | * @throws {Error} If the payload is not a reader or valid buffer
|
4685 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
4686 | */
|
4687 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.language.v1beta2.AnalyzeEntitySentimentResponse;
|
4688 |
|
4689 | /**
|
4690 | * Verifies an AnalyzeEntitySentimentResponse message.
|
4691 | * @param message Plain object to verify
|
4692 | * @returns `null` if valid, otherwise the reason why it is not
|
4693 | */
|
4694 | public static verify(message: { [k: string]: any }): (string|null);
|
4695 |
|
4696 | /**
|
4697 | * Creates an AnalyzeEntitySentimentResponse message from a plain object. Also converts values to their respective internal types.
|
4698 | * @param object Plain object
|
4699 | * @returns AnalyzeEntitySentimentResponse
|
4700 | */
|
4701 | public static fromObject(object: { [k: string]: any }): google.cloud.language.v1beta2.AnalyzeEntitySentimentResponse;
|
4702 |
|
4703 | /**
|
4704 | * Creates a plain object from an AnalyzeEntitySentimentResponse message. Also converts values to other types if specified.
|
4705 | * @param message AnalyzeEntitySentimentResponse
|
4706 | * @param [options] Conversion options
|
4707 | * @returns Plain object
|
4708 | */
|
4709 | public static toObject(message: google.cloud.language.v1beta2.AnalyzeEntitySentimentResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
4710 |
|
4711 | /**
|
4712 | * Converts this AnalyzeEntitySentimentResponse to JSON.
|
4713 | * @returns JSON object
|
4714 | */
|
4715 | public toJSON(): { [k: string]: any };
|
4716 | }
|
4717 |
|
4718 | /** Properties of an AnalyzeEntitiesRequest. */
|
4719 | interface IAnalyzeEntitiesRequest {
|
4720 |
|
4721 | /** AnalyzeEntitiesRequest document */
|
4722 | document?: (google.cloud.language.v1beta2.IDocument|null);
|
4723 |
|
4724 | /** AnalyzeEntitiesRequest encodingType */
|
4725 | encodingType?: (google.cloud.language.v1beta2.EncodingType|keyof typeof google.cloud.language.v1beta2.EncodingType|null);
|
4726 | }
|
4727 |
|
4728 | /** Represents an AnalyzeEntitiesRequest. */
|
4729 | class AnalyzeEntitiesRequest implements IAnalyzeEntitiesRequest {
|
4730 |
|
4731 | /**
|
4732 | * Constructs a new AnalyzeEntitiesRequest.
|
4733 | * @param [properties] Properties to set
|
4734 | */
|
4735 | constructor(properties?: google.cloud.language.v1beta2.IAnalyzeEntitiesRequest);
|
4736 |
|
4737 | /** AnalyzeEntitiesRequest document. */
|
4738 | public document?: (google.cloud.language.v1beta2.IDocument|null);
|
4739 |
|
4740 | /** AnalyzeEntitiesRequest encodingType. */
|
4741 | public encodingType: (google.cloud.language.v1beta2.EncodingType|keyof typeof google.cloud.language.v1beta2.EncodingType);
|
4742 |
|
4743 | /**
|
4744 | * Creates a new AnalyzeEntitiesRequest instance using the specified properties.
|
4745 | * @param [properties] Properties to set
|
4746 | * @returns AnalyzeEntitiesRequest instance
|
4747 | */
|
4748 | public static create(properties?: google.cloud.language.v1beta2.IAnalyzeEntitiesRequest): google.cloud.language.v1beta2.AnalyzeEntitiesRequest;
|
4749 |
|
4750 | /**
|
4751 | * Encodes the specified AnalyzeEntitiesRequest message. Does not implicitly { google.cloud.language.v1beta2.AnalyzeEntitiesRequest.verify|verify} messages.
|
4752 | * message AnalyzeEntitiesRequest message or plain object to encode
|
4753 | * [writer] Writer to encode to
|
4754 | * Writer
|
4755 | */
|
4756 | public static encode(message: google.cloud.language.v1beta2.IAnalyzeEntitiesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
4757 |
|
4758 | /**
|
4759 | * Encodes the specified AnalyzeEntitiesRequest message, length delimited. Does not implicitly {@link google.cloud.language.v1beta2.AnalyzeEntitiesRequest.verify|verify} messages.
|
4760 | * @param message AnalyzeEntitiesRequest message or plain object to encode
|
4761 | * @param [writer] Writer to encode to
|
4762 | * @returns Writer
|
4763 | */
|
4764 | public static encodeDelimited(message: google.cloud.language.v1beta2.IAnalyzeEntitiesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
4765 |
|
4766 | /**
|
4767 | * Decodes an AnalyzeEntitiesRequest message from the specified reader or buffer.
|
4768 | * @param reader Reader or buffer to decode from
|
4769 | * @param [length] Message length if known beforehand
|
4770 | * @returns AnalyzeEntitiesRequest
|
4771 | * @throws {Error} If the payload is not a reader or valid buffer
|
4772 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
4773 | */
|
4774 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.language.v1beta2.AnalyzeEntitiesRequest;
|
4775 |
|
4776 | /**
|
4777 | * Decodes an AnalyzeEntitiesRequest message from the specified reader or buffer, length delimited.
|
4778 | * @param reader Reader or buffer to decode from
|
4779 | * @returns AnalyzeEntitiesRequest
|
4780 | * @throws {Error} If the payload is not a reader or valid buffer
|
4781 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
4782 | */
|
4783 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.language.v1beta2.AnalyzeEntitiesRequest;
|
4784 |
|
4785 | /**
|
4786 | * Verifies an AnalyzeEntitiesRequest message.
|
4787 | * @param message Plain object to verify
|
4788 | * @returns `null` if valid, otherwise the reason why it is not
|
4789 | */
|
4790 | public static verify(message: { [k: string]: any }): (string|null);
|
4791 |
|
4792 | /**
|
4793 | * Creates an AnalyzeEntitiesRequest message from a plain object. Also converts values to their respective internal types.
|
4794 | * @param object Plain object
|
4795 | * @returns AnalyzeEntitiesRequest
|
4796 | */
|
4797 | public static fromObject(object: { [k: string]: any }): google.cloud.language.v1beta2.AnalyzeEntitiesRequest;
|
4798 |
|
4799 | /**
|
4800 | * Creates a plain object from an AnalyzeEntitiesRequest message. Also converts values to other types if specified.
|
4801 | * @param message AnalyzeEntitiesRequest
|
4802 | * @param [options] Conversion options
|
4803 | * @returns Plain object
|
4804 | */
|
4805 | public static toObject(message: google.cloud.language.v1beta2.AnalyzeEntitiesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
4806 |
|
4807 | /**
|
4808 | * Converts this AnalyzeEntitiesRequest to JSON.
|
4809 | * @returns JSON object
|
4810 | */
|
4811 | public toJSON(): { [k: string]: any };
|
4812 | }
|
4813 |
|
4814 | /** Properties of an AnalyzeEntitiesResponse. */
|
4815 | interface IAnalyzeEntitiesResponse {
|
4816 |
|
4817 | /** AnalyzeEntitiesResponse entities */
|
4818 | entities?: (google.cloud.language.v1beta2.IEntity[]|null);
|
4819 |
|
4820 | /** AnalyzeEntitiesResponse language */
|
4821 | language?: (string|null);
|
4822 | }
|
4823 |
|
4824 | /** Represents an AnalyzeEntitiesResponse. */
|
4825 | class AnalyzeEntitiesResponse implements IAnalyzeEntitiesResponse {
|
4826 |
|
4827 | /**
|
4828 | * Constructs a new AnalyzeEntitiesResponse.
|
4829 | * @param [properties] Properties to set
|
4830 | */
|
4831 | constructor(properties?: google.cloud.language.v1beta2.IAnalyzeEntitiesResponse);
|
4832 |
|
4833 | /** AnalyzeEntitiesResponse entities. */
|
4834 | public entities: google.cloud.language.v1beta2.IEntity[];
|
4835 |
|
4836 | /** AnalyzeEntitiesResponse language. */
|
4837 | public language: string;
|
4838 |
|
4839 | /**
|
4840 | * Creates a new AnalyzeEntitiesResponse instance using the specified properties.
|
4841 | * @param [properties] Properties to set
|
4842 | * @returns AnalyzeEntitiesResponse instance
|
4843 | */
|
4844 | public static create(properties?: google.cloud.language.v1beta2.IAnalyzeEntitiesResponse): google.cloud.language.v1beta2.AnalyzeEntitiesResponse;
|
4845 |
|
4846 | /**
|
4847 | * Encodes the specified AnalyzeEntitiesResponse message. Does not implicitly { google.cloud.language.v1beta2.AnalyzeEntitiesResponse.verify|verify} messages.
|
4848 | * message AnalyzeEntitiesResponse message or plain object to encode
|
4849 | * [writer] Writer to encode to
|
4850 | * Writer
|
4851 | */
|
4852 | public static encode(message: google.cloud.language.v1beta2.IAnalyzeEntitiesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
4853 |
|
4854 | /**
|
4855 | * Encodes the specified AnalyzeEntitiesResponse message, length delimited. Does not implicitly {@link google.cloud.language.v1beta2.AnalyzeEntitiesResponse.verify|verify} messages.
|
4856 | * @param message AnalyzeEntitiesResponse message or plain object to encode
|
4857 | * @param [writer] Writer to encode to
|
4858 | * @returns Writer
|
4859 | */
|
4860 | public static encodeDelimited(message: google.cloud.language.v1beta2.IAnalyzeEntitiesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
4861 |
|
4862 | /**
|
4863 | * Decodes an AnalyzeEntitiesResponse message from the specified reader or buffer.
|
4864 | * @param reader Reader or buffer to decode from
|
4865 | * @param [length] Message length if known beforehand
|
4866 | * @returns AnalyzeEntitiesResponse
|
4867 | * @throws {Error} If the payload is not a reader or valid buffer
|
4868 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
4869 | */
|
4870 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.language.v1beta2.AnalyzeEntitiesResponse;
|
4871 |
|
4872 | /**
|
4873 | * Decodes an AnalyzeEntitiesResponse message from the specified reader or buffer, length delimited.
|
4874 | * @param reader Reader or buffer to decode from
|
4875 | * @returns AnalyzeEntitiesResponse
|
4876 | * @throws {Error} If the payload is not a reader or valid buffer
|
4877 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
4878 | */
|
4879 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.language.v1beta2.AnalyzeEntitiesResponse;
|
4880 |
|
4881 | /**
|
4882 | * Verifies an AnalyzeEntitiesResponse message.
|
4883 | * @param message Plain object to verify
|
4884 | * @returns `null` if valid, otherwise the reason why it is not
|
4885 | */
|
4886 | public static verify(message: { [k: string]: any }): (string|null);
|
4887 |
|
4888 | /**
|
4889 | * Creates an AnalyzeEntitiesResponse message from a plain object. Also converts values to their respective internal types.
|
4890 | * @param object Plain object
|
4891 | * @returns AnalyzeEntitiesResponse
|
4892 | */
|
4893 | public static fromObject(object: { [k: string]: any }): google.cloud.language.v1beta2.AnalyzeEntitiesResponse;
|
4894 |
|
4895 | /**
|
4896 | * Creates a plain object from an AnalyzeEntitiesResponse message. Also converts values to other types if specified.
|
4897 | * @param message AnalyzeEntitiesResponse
|
4898 | * @param [options] Conversion options
|
4899 | * @returns Plain object
|
4900 | */
|
4901 | public static toObject(message: google.cloud.language.v1beta2.AnalyzeEntitiesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
4902 |
|
4903 | /**
|
4904 | * Converts this AnalyzeEntitiesResponse to JSON.
|
4905 | * @returns JSON object
|
4906 | */
|
4907 | public toJSON(): { [k: string]: any };
|
4908 | }
|
4909 |
|
4910 | /** Properties of an AnalyzeSyntaxRequest. */
|
4911 | interface IAnalyzeSyntaxRequest {
|
4912 |
|
4913 | /** AnalyzeSyntaxRequest document */
|
4914 | document?: (google.cloud.language.v1beta2.IDocument|null);
|
4915 |
|
4916 | /** AnalyzeSyntaxRequest encodingType */
|
4917 | encodingType?: (google.cloud.language.v1beta2.EncodingType|keyof typeof google.cloud.language.v1beta2.EncodingType|null);
|
4918 | }
|
4919 |
|
4920 | /** Represents an AnalyzeSyntaxRequest. */
|
4921 | class AnalyzeSyntaxRequest implements IAnalyzeSyntaxRequest {
|
4922 |
|
4923 | /**
|
4924 | * Constructs a new AnalyzeSyntaxRequest.
|
4925 | * @param [properties] Properties to set
|
4926 | */
|
4927 | constructor(properties?: google.cloud.language.v1beta2.IAnalyzeSyntaxRequest);
|
4928 |
|
4929 | /** AnalyzeSyntaxRequest document. */
|
4930 | public document?: (google.cloud.language.v1beta2.IDocument|null);
|
4931 |
|
4932 | /** AnalyzeSyntaxRequest encodingType. */
|
4933 | public encodingType: (google.cloud.language.v1beta2.EncodingType|keyof typeof google.cloud.language.v1beta2.EncodingType);
|
4934 |
|
4935 | /**
|
4936 | * Creates a new AnalyzeSyntaxRequest instance using the specified properties.
|
4937 | * @param [properties] Properties to set
|
4938 | * @returns AnalyzeSyntaxRequest instance
|
4939 | */
|
4940 | public static create(properties?: google.cloud.language.v1beta2.IAnalyzeSyntaxRequest): google.cloud.language.v1beta2.AnalyzeSyntaxRequest;
|
4941 |
|
4942 | /**
|
4943 | * Encodes the specified AnalyzeSyntaxRequest message. Does not implicitly { google.cloud.language.v1beta2.AnalyzeSyntaxRequest.verify|verify} messages.
|
4944 | * message AnalyzeSyntaxRequest message or plain object to encode
|
4945 | * [writer] Writer to encode to
|
4946 | * Writer
|
4947 | */
|
4948 | public static encode(message: google.cloud.language.v1beta2.IAnalyzeSyntaxRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
4949 |
|
4950 | /**
|
4951 | * Encodes the specified AnalyzeSyntaxRequest message, length delimited. Does not implicitly {@link google.cloud.language.v1beta2.AnalyzeSyntaxRequest.verify|verify} messages.
|
4952 | * @param message AnalyzeSyntaxRequest message or plain object to encode
|
4953 | * @param [writer] Writer to encode to
|
4954 | * @returns Writer
|
4955 | */
|
4956 | public static encodeDelimited(message: google.cloud.language.v1beta2.IAnalyzeSyntaxRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
4957 |
|
4958 | /**
|
4959 | * Decodes an AnalyzeSyntaxRequest message from the specified reader or buffer.
|
4960 | * @param reader Reader or buffer to decode from
|
4961 | * @param [length] Message length if known beforehand
|
4962 | * @returns AnalyzeSyntaxRequest
|
4963 | * @throws {Error} If the payload is not a reader or valid buffer
|
4964 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
4965 | */
|
4966 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.language.v1beta2.AnalyzeSyntaxRequest;
|
4967 |
|
4968 | /**
|
4969 | * Decodes an AnalyzeSyntaxRequest message from the specified reader or buffer, length delimited.
|
4970 | * @param reader Reader or buffer to decode from
|
4971 | * @returns AnalyzeSyntaxRequest
|
4972 | * @throws {Error} If the payload is not a reader or valid buffer
|
4973 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
4974 | */
|
4975 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.language.v1beta2.AnalyzeSyntaxRequest;
|
4976 |
|
4977 | /**
|
4978 | * Verifies an AnalyzeSyntaxRequest message.
|
4979 | * @param message Plain object to verify
|
4980 | * @returns `null` if valid, otherwise the reason why it is not
|
4981 | */
|
4982 | public static verify(message: { [k: string]: any }): (string|null);
|
4983 |
|
4984 | /**
|
4985 | * Creates an AnalyzeSyntaxRequest message from a plain object. Also converts values to their respective internal types.
|
4986 | * @param object Plain object
|
4987 | * @returns AnalyzeSyntaxRequest
|
4988 | */
|
4989 | public static fromObject(object: { [k: string]: any }): google.cloud.language.v1beta2.AnalyzeSyntaxRequest;
|
4990 |
|
4991 | /**
|
4992 | * Creates a plain object from an AnalyzeSyntaxRequest message. Also converts values to other types if specified.
|
4993 | * @param message AnalyzeSyntaxRequest
|
4994 | * @param [options] Conversion options
|
4995 | * @returns Plain object
|
4996 | */
|
4997 | public static toObject(message: google.cloud.language.v1beta2.AnalyzeSyntaxRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
4998 |
|
4999 | /**
|
5000 | * Converts this AnalyzeSyntaxRequest to JSON.
|
5001 | * @returns JSON object
|
5002 | */
|
5003 | public toJSON(): { [k: string]: any };
|
5004 | }
|
5005 |
|
5006 | /** Properties of an AnalyzeSyntaxResponse. */
|
5007 | interface IAnalyzeSyntaxResponse {
|
5008 |
|
5009 | /** AnalyzeSyntaxResponse sentences */
|
5010 | sentences?: (google.cloud.language.v1beta2.ISentence[]|null);
|
5011 |
|
5012 | /** AnalyzeSyntaxResponse tokens */
|
5013 | tokens?: (google.cloud.language.v1beta2.IToken[]|null);
|
5014 |
|
5015 | /** AnalyzeSyntaxResponse language */
|
5016 | language?: (string|null);
|
5017 | }
|
5018 |
|
5019 | /** Represents an AnalyzeSyntaxResponse. */
|
5020 | class AnalyzeSyntaxResponse implements IAnalyzeSyntaxResponse {
|
5021 |
|
5022 | /**
|
5023 | * Constructs a new AnalyzeSyntaxResponse.
|
5024 | * @param [properties] Properties to set
|
5025 | */
|
5026 | constructor(properties?: google.cloud.language.v1beta2.IAnalyzeSyntaxResponse);
|
5027 |
|
5028 | /** AnalyzeSyntaxResponse sentences. */
|
5029 | public sentences: google.cloud.language.v1beta2.ISentence[];
|
5030 |
|
5031 | /** AnalyzeSyntaxResponse tokens. */
|
5032 | public tokens: google.cloud.language.v1beta2.IToken[];
|
5033 |
|
5034 | /** AnalyzeSyntaxResponse language. */
|
5035 | public language: string;
|
5036 |
|
5037 | /**
|
5038 | * Creates a new AnalyzeSyntaxResponse instance using the specified properties.
|
5039 | * @param [properties] Properties to set
|
5040 | * @returns AnalyzeSyntaxResponse instance
|
5041 | */
|
5042 | public static create(properties?: google.cloud.language.v1beta2.IAnalyzeSyntaxResponse): google.cloud.language.v1beta2.AnalyzeSyntaxResponse;
|
5043 |
|
5044 | /**
|
5045 | * Encodes the specified AnalyzeSyntaxResponse message. Does not implicitly { google.cloud.language.v1beta2.AnalyzeSyntaxResponse.verify|verify} messages.
|
5046 | * message AnalyzeSyntaxResponse message or plain object to encode
|
5047 | * [writer] Writer to encode to
|
5048 | * Writer
|
5049 | */
|
5050 | public static encode(message: google.cloud.language.v1beta2.IAnalyzeSyntaxResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
5051 |
|
5052 | /**
|
5053 | * Encodes the specified AnalyzeSyntaxResponse message, length delimited. Does not implicitly {@link google.cloud.language.v1beta2.AnalyzeSyntaxResponse.verify|verify} messages.
|
5054 | * @param message AnalyzeSyntaxResponse message or plain object to encode
|
5055 | * @param [writer] Writer to encode to
|
5056 | * @returns Writer
|
5057 | */
|
5058 | public static encodeDelimited(message: google.cloud.language.v1beta2.IAnalyzeSyntaxResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
5059 |
|
5060 | /**
|
5061 | * Decodes an AnalyzeSyntaxResponse message from the specified reader or buffer.
|
5062 | * @param reader Reader or buffer to decode from
|
5063 | * @param [length] Message length if known beforehand
|
5064 | * @returns AnalyzeSyntaxResponse
|
5065 | * @throws {Error} If the payload is not a reader or valid buffer
|
5066 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
5067 | */
|
5068 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.language.v1beta2.AnalyzeSyntaxResponse;
|
5069 |
|
5070 | /**
|
5071 | * Decodes an AnalyzeSyntaxResponse message from the specified reader or buffer, length delimited.
|
5072 | * @param reader Reader or buffer to decode from
|
5073 | * @returns AnalyzeSyntaxResponse
|
5074 | * @throws {Error} If the payload is not a reader or valid buffer
|
5075 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
5076 | */
|
5077 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.language.v1beta2.AnalyzeSyntaxResponse;
|
5078 |
|
5079 | /**
|
5080 | * Verifies an AnalyzeSyntaxResponse message.
|
5081 | * @param message Plain object to verify
|
5082 | * @returns `null` if valid, otherwise the reason why it is not
|
5083 | */
|
5084 | public static verify(message: { [k: string]: any }): (string|null);
|
5085 |
|
5086 | /**
|
5087 | * Creates an AnalyzeSyntaxResponse message from a plain object. Also converts values to their respective internal types.
|
5088 | * @param object Plain object
|
5089 | * @returns AnalyzeSyntaxResponse
|
5090 | */
|
5091 | public static fromObject(object: { [k: string]: any }): google.cloud.language.v1beta2.AnalyzeSyntaxResponse;
|
5092 |
|
5093 | /**
|
5094 | * Creates a plain object from an AnalyzeSyntaxResponse message. Also converts values to other types if specified.
|
5095 | * @param message AnalyzeSyntaxResponse
|
5096 | * @param [options] Conversion options
|
5097 | * @returns Plain object
|
5098 | */
|
5099 | public static toObject(message: google.cloud.language.v1beta2.AnalyzeSyntaxResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
5100 |
|
5101 | /**
|
5102 | * Converts this AnalyzeSyntaxResponse to JSON.
|
5103 | * @returns JSON object
|
5104 | */
|
5105 | public toJSON(): { [k: string]: any };
|
5106 | }
|
5107 |
|
5108 | /** Properties of a ClassifyTextRequest. */
|
5109 | interface IClassifyTextRequest {
|
5110 |
|
5111 | /** ClassifyTextRequest document */
|
5112 | document?: (google.cloud.language.v1beta2.IDocument|null);
|
5113 | }
|
5114 |
|
5115 | /** Represents a ClassifyTextRequest. */
|
5116 | class ClassifyTextRequest implements IClassifyTextRequest {
|
5117 |
|
5118 | /**
|
5119 | * Constructs a new ClassifyTextRequest.
|
5120 | * @param [properties] Properties to set
|
5121 | */
|
5122 | constructor(properties?: google.cloud.language.v1beta2.IClassifyTextRequest);
|
5123 |
|
5124 | /** ClassifyTextRequest document. */
|
5125 | public document?: (google.cloud.language.v1beta2.IDocument|null);
|
5126 |
|
5127 | /**
|
5128 | * Creates a new ClassifyTextRequest instance using the specified properties.
|
5129 | * @param [properties] Properties to set
|
5130 | * @returns ClassifyTextRequest instance
|
5131 | */
|
5132 | public static create(properties?: google.cloud.language.v1beta2.IClassifyTextRequest): google.cloud.language.v1beta2.ClassifyTextRequest;
|
5133 |
|
5134 | /**
|
5135 | * Encodes the specified ClassifyTextRequest message. Does not implicitly { google.cloud.language.v1beta2.ClassifyTextRequest.verify|verify} messages.
|
5136 | * message ClassifyTextRequest message or plain object to encode
|
5137 | * [writer] Writer to encode to
|
5138 | * Writer
|
5139 | */
|
5140 | public static encode(message: google.cloud.language.v1beta2.IClassifyTextRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
5141 |
|
5142 | /**
|
5143 | * Encodes the specified ClassifyTextRequest message, length delimited. Does not implicitly {@link google.cloud.language.v1beta2.ClassifyTextRequest.verify|verify} messages.
|
5144 | * @param message ClassifyTextRequest message or plain object to encode
|
5145 | * @param [writer] Writer to encode to
|
5146 | * @returns Writer
|
5147 | */
|
5148 | public static encodeDelimited(message: google.cloud.language.v1beta2.IClassifyTextRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
5149 |
|
5150 | /**
|
5151 | * Decodes a ClassifyTextRequest message from the specified reader or buffer.
|
5152 | * @param reader Reader or buffer to decode from
|
5153 | * @param [length] Message length if known beforehand
|
5154 | * @returns ClassifyTextRequest
|
5155 | * @throws {Error} If the payload is not a reader or valid buffer
|
5156 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
5157 | */
|
5158 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.language.v1beta2.ClassifyTextRequest;
|
5159 |
|
5160 | /**
|
5161 | * Decodes a ClassifyTextRequest message from the specified reader or buffer, length delimited.
|
5162 | * @param reader Reader or buffer to decode from
|
5163 | * @returns ClassifyTextRequest
|
5164 | * @throws {Error} If the payload is not a reader or valid buffer
|
5165 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
5166 | */
|
5167 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.language.v1beta2.ClassifyTextRequest;
|
5168 |
|
5169 | /**
|
5170 | * Verifies a ClassifyTextRequest message.
|
5171 | * @param message Plain object to verify
|
5172 | * @returns `null` if valid, otherwise the reason why it is not
|
5173 | */
|
5174 | public static verify(message: { [k: string]: any }): (string|null);
|
5175 |
|
5176 | /**
|
5177 | * Creates a ClassifyTextRequest message from a plain object. Also converts values to their respective internal types.
|
5178 | * @param object Plain object
|
5179 | * @returns ClassifyTextRequest
|
5180 | */
|
5181 | public static fromObject(object: { [k: string]: any }): google.cloud.language.v1beta2.ClassifyTextRequest;
|
5182 |
|
5183 | /**
|
5184 | * Creates a plain object from a ClassifyTextRequest message. Also converts values to other types if specified.
|
5185 | * @param message ClassifyTextRequest
|
5186 | * @param [options] Conversion options
|
5187 | * @returns Plain object
|
5188 | */
|
5189 | public static toObject(message: google.cloud.language.v1beta2.ClassifyTextRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
5190 |
|
5191 | /**
|
5192 | * Converts this ClassifyTextRequest to JSON.
|
5193 | * @returns JSON object
|
5194 | */
|
5195 | public toJSON(): { [k: string]: any };
|
5196 | }
|
5197 |
|
5198 | /** Properties of a ClassifyTextResponse. */
|
5199 | interface IClassifyTextResponse {
|
5200 |
|
5201 | /** ClassifyTextResponse categories */
|
5202 | categories?: (google.cloud.language.v1beta2.IClassificationCategory[]|null);
|
5203 | }
|
5204 |
|
5205 | /** Represents a ClassifyTextResponse. */
|
5206 | class ClassifyTextResponse implements IClassifyTextResponse {
|
5207 |
|
5208 | /**
|
5209 | * Constructs a new ClassifyTextResponse.
|
5210 | * @param [properties] Properties to set
|
5211 | */
|
5212 | constructor(properties?: google.cloud.language.v1beta2.IClassifyTextResponse);
|
5213 |
|
5214 | /** ClassifyTextResponse categories. */
|
5215 | public categories: google.cloud.language.v1beta2.IClassificationCategory[];
|
5216 |
|
5217 | /**
|
5218 | * Creates a new ClassifyTextResponse instance using the specified properties.
|
5219 | * @param [properties] Properties to set
|
5220 | * @returns ClassifyTextResponse instance
|
5221 | */
|
5222 | public static create(properties?: google.cloud.language.v1beta2.IClassifyTextResponse): google.cloud.language.v1beta2.ClassifyTextResponse;
|
5223 |
|
5224 | /**
|
5225 | * Encodes the specified ClassifyTextResponse message. Does not implicitly { google.cloud.language.v1beta2.ClassifyTextResponse.verify|verify} messages.
|
5226 | * message ClassifyTextResponse message or plain object to encode
|
5227 | * [writer] Writer to encode to
|
5228 | * Writer
|
5229 | */
|
5230 | public static encode(message: google.cloud.language.v1beta2.IClassifyTextResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
5231 |
|
5232 | /**
|
5233 | * Encodes the specified ClassifyTextResponse message, length delimited. Does not implicitly {@link google.cloud.language.v1beta2.ClassifyTextResponse.verify|verify} messages.
|
5234 | * @param message ClassifyTextResponse message or plain object to encode
|
5235 | * @param [writer] Writer to encode to
|
5236 | * @returns Writer
|
5237 | */
|
5238 | public static encodeDelimited(message: google.cloud.language.v1beta2.IClassifyTextResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
5239 |
|
5240 | /**
|
5241 | * Decodes a ClassifyTextResponse message from the specified reader or buffer.
|
5242 | * @param reader Reader or buffer to decode from
|
5243 | * @param [length] Message length if known beforehand
|
5244 | * @returns ClassifyTextResponse
|
5245 | * @throws {Error} If the payload is not a reader or valid buffer
|
5246 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
5247 | */
|
5248 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.language.v1beta2.ClassifyTextResponse;
|
5249 |
|
5250 | /**
|
5251 | * Decodes a ClassifyTextResponse message from the specified reader or buffer, length delimited.
|
5252 | * @param reader Reader or buffer to decode from
|
5253 | * @returns ClassifyTextResponse
|
5254 | * @throws {Error} If the payload is not a reader or valid buffer
|
5255 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
5256 | */
|
5257 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.language.v1beta2.ClassifyTextResponse;
|
5258 |
|
5259 | /**
|
5260 | * Verifies a ClassifyTextResponse message.
|
5261 | * @param message Plain object to verify
|
5262 | * @returns `null` if valid, otherwise the reason why it is not
|
5263 | */
|
5264 | public static verify(message: { [k: string]: any }): (string|null);
|
5265 |
|
5266 | /**
|
5267 | * Creates a ClassifyTextResponse message from a plain object. Also converts values to their respective internal types.
|
5268 | * @param object Plain object
|
5269 | * @returns ClassifyTextResponse
|
5270 | */
|
5271 | public static fromObject(object: { [k: string]: any }): google.cloud.language.v1beta2.ClassifyTextResponse;
|
5272 |
|
5273 | /**
|
5274 | * Creates a plain object from a ClassifyTextResponse message. Also converts values to other types if specified.
|
5275 | * @param message ClassifyTextResponse
|
5276 | * @param [options] Conversion options
|
5277 | * @returns Plain object
|
5278 | */
|
5279 | public static toObject(message: google.cloud.language.v1beta2.ClassifyTextResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
5280 |
|
5281 | /**
|
5282 | * Converts this ClassifyTextResponse to JSON.
|
5283 | * @returns JSON object
|
5284 | */
|
5285 | public toJSON(): { [k: string]: any };
|
5286 | }
|
5287 |
|
5288 | /** Properties of an AnnotateTextRequest. */
|
5289 | interface IAnnotateTextRequest {
|
5290 |
|
5291 | /** AnnotateTextRequest document */
|
5292 | document?: (google.cloud.language.v1beta2.IDocument|null);
|
5293 |
|
5294 | /** AnnotateTextRequest features */
|
5295 | features?: (google.cloud.language.v1beta2.AnnotateTextRequest.IFeatures|null);
|
5296 |
|
5297 | /** AnnotateTextRequest encodingType */
|
5298 | encodingType?: (google.cloud.language.v1beta2.EncodingType|keyof typeof google.cloud.language.v1beta2.EncodingType|null);
|
5299 | }
|
5300 |
|
5301 | /** Represents an AnnotateTextRequest. */
|
5302 | class AnnotateTextRequest implements IAnnotateTextRequest {
|
5303 |
|
5304 | /**
|
5305 | * Constructs a new AnnotateTextRequest.
|
5306 | * @param [properties] Properties to set
|
5307 | */
|
5308 | constructor(properties?: google.cloud.language.v1beta2.IAnnotateTextRequest);
|
5309 |
|
5310 | /** AnnotateTextRequest document. */
|
5311 | public document?: (google.cloud.language.v1beta2.IDocument|null);
|
5312 |
|
5313 | /** AnnotateTextRequest features. */
|
5314 | public features?: (google.cloud.language.v1beta2.AnnotateTextRequest.IFeatures|null);
|
5315 |
|
5316 | /** AnnotateTextRequest encodingType. */
|
5317 | public encodingType: (google.cloud.language.v1beta2.EncodingType|keyof typeof google.cloud.language.v1beta2.EncodingType);
|
5318 |
|
5319 | /**
|
5320 | * Creates a new AnnotateTextRequest instance using the specified properties.
|
5321 | * @param [properties] Properties to set
|
5322 | * @returns AnnotateTextRequest instance
|
5323 | */
|
5324 | public static create(properties?: google.cloud.language.v1beta2.IAnnotateTextRequest): google.cloud.language.v1beta2.AnnotateTextRequest;
|
5325 |
|
5326 | /**
|
5327 | * Encodes the specified AnnotateTextRequest message. Does not implicitly { google.cloud.language.v1beta2.AnnotateTextRequest.verify|verify} messages.
|
5328 | * message AnnotateTextRequest message or plain object to encode
|
5329 | * [writer] Writer to encode to
|
5330 | * Writer
|
5331 | */
|
5332 | public static encode(message: google.cloud.language.v1beta2.IAnnotateTextRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
5333 |
|
5334 | /**
|
5335 | * Encodes the specified AnnotateTextRequest message, length delimited. Does not implicitly {@link google.cloud.language.v1beta2.AnnotateTextRequest.verify|verify} messages.
|
5336 | * @param message AnnotateTextRequest message or plain object to encode
|
5337 | * @param [writer] Writer to encode to
|
5338 | * @returns Writer
|
5339 | */
|
5340 | public static encodeDelimited(message: google.cloud.language.v1beta2.IAnnotateTextRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
5341 |
|
5342 | /**
|
5343 | * Decodes an AnnotateTextRequest message from the specified reader or buffer.
|
5344 | * @param reader Reader or buffer to decode from
|
5345 | * @param [length] Message length if known beforehand
|
5346 | * @returns AnnotateTextRequest
|
5347 | * @throws {Error} If the payload is not a reader or valid buffer
|
5348 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
5349 | */
|
5350 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.language.v1beta2.AnnotateTextRequest;
|
5351 |
|
5352 | /**
|
5353 | * Decodes an AnnotateTextRequest message from the specified reader or buffer, length delimited.
|
5354 | * @param reader Reader or buffer to decode from
|
5355 | * @returns AnnotateTextRequest
|
5356 | * @throws {Error} If the payload is not a reader or valid buffer
|
5357 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
5358 | */
|
5359 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.language.v1beta2.AnnotateTextRequest;
|
5360 |
|
5361 | /**
|
5362 | * Verifies an AnnotateTextRequest message.
|
5363 | * @param message Plain object to verify
|
5364 | * @returns `null` if valid, otherwise the reason why it is not
|
5365 | */
|
5366 | public static verify(message: { [k: string]: any }): (string|null);
|
5367 |
|
5368 | /**
|
5369 | * Creates an AnnotateTextRequest message from a plain object. Also converts values to their respective internal types.
|
5370 | * @param object Plain object
|
5371 | * @returns AnnotateTextRequest
|
5372 | */
|
5373 | public static fromObject(object: { [k: string]: any }): google.cloud.language.v1beta2.AnnotateTextRequest;
|
5374 |
|
5375 | /**
|
5376 | * Creates a plain object from an AnnotateTextRequest message. Also converts values to other types if specified.
|
5377 | * @param message AnnotateTextRequest
|
5378 | * @param [options] Conversion options
|
5379 | * @returns Plain object
|
5380 | */
|
5381 | public static toObject(message: google.cloud.language.v1beta2.AnnotateTextRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
5382 |
|
5383 | /**
|
5384 | * Converts this AnnotateTextRequest to JSON.
|
5385 | * @returns JSON object
|
5386 | */
|
5387 | public toJSON(): { [k: string]: any };
|
5388 | }
|
5389 |
|
5390 | namespace AnnotateTextRequest {
|
5391 |
|
5392 | /** Properties of a Features. */
|
5393 | interface IFeatures {
|
5394 |
|
5395 | /** Features extractSyntax */
|
5396 | extractSyntax?: (boolean|null);
|
5397 |
|
5398 | /** Features extractEntities */
|
5399 | extractEntities?: (boolean|null);
|
5400 |
|
5401 | /** Features extractDocumentSentiment */
|
5402 | extractDocumentSentiment?: (boolean|null);
|
5403 |
|
5404 | /** Features extractEntitySentiment */
|
5405 | extractEntitySentiment?: (boolean|null);
|
5406 |
|
5407 | /** Features classifyText */
|
5408 | classifyText?: (boolean|null);
|
5409 | }
|
5410 |
|
5411 | /** Represents a Features. */
|
5412 | class Features implements IFeatures {
|
5413 |
|
5414 | /**
|
5415 | * Constructs a new Features.
|
5416 | * @param [properties] Properties to set
|
5417 | */
|
5418 | constructor(properties?: google.cloud.language.v1beta2.AnnotateTextRequest.IFeatures);
|
5419 |
|
5420 | /** Features extractSyntax. */
|
5421 | public extractSyntax: boolean;
|
5422 |
|
5423 | /** Features extractEntities. */
|
5424 | public extractEntities: boolean;
|
5425 |
|
5426 | /** Features extractDocumentSentiment. */
|
5427 | public extractDocumentSentiment: boolean;
|
5428 |
|
5429 | /** Features extractEntitySentiment. */
|
5430 | public extractEntitySentiment: boolean;
|
5431 |
|
5432 | /** Features classifyText. */
|
5433 | public classifyText: boolean;
|
5434 |
|
5435 | /**
|
5436 | * Creates a new Features instance using the specified properties.
|
5437 | * @param [properties] Properties to set
|
5438 | * @returns Features instance
|
5439 | */
|
5440 | public static create(properties?: google.cloud.language.v1beta2.AnnotateTextRequest.IFeatures): google.cloud.language.v1beta2.AnnotateTextRequest.Features;
|
5441 |
|
5442 | /**
|
5443 | * Encodes the specified Features message. Does not implicitly { google.cloud.language.v1beta2.AnnotateTextRequest.Features.verify|verify} messages.
|
5444 | * message Features message or plain object to encode
|
5445 | * [writer] Writer to encode to
|
5446 | * Writer
|
5447 | */
|
5448 | public static encode(message: google.cloud.language.v1beta2.AnnotateTextRequest.IFeatures, writer?: $protobuf.Writer): $protobuf.Writer;
|
5449 |
|
5450 | /**
|
5451 | * Encodes the specified Features message, length delimited. Does not implicitly {@link google.cloud.language.v1beta2.AnnotateTextRequest.Features.verify|verify} messages.
|
5452 | * @param message Features message or plain object to encode
|
5453 | * @param [writer] Writer to encode to
|
5454 | * @returns Writer
|
5455 | */
|
5456 | public static encodeDelimited(message: google.cloud.language.v1beta2.AnnotateTextRequest.IFeatures, writer?: $protobuf.Writer): $protobuf.Writer;
|
5457 |
|
5458 | /**
|
5459 | * Decodes a Features 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 Features
|
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.language.v1beta2.AnnotateTextRequest.Features;
|
5467 |
|
5468 | /**
|
5469 | * Decodes a Features message from the specified reader or buffer, length delimited.
|
5470 | * @param reader Reader or buffer to decode from
|
5471 | * @returns Features
|
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.language.v1beta2.AnnotateTextRequest.Features;
|
5476 |
|
5477 | /**
|
5478 | * Verifies a Features 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 Features message from a plain object. Also converts values to their respective internal types.
|
5486 | * @param object Plain object
|
5487 | * @returns Features
|
5488 | */
|
5489 | public static fromObject(object: { [k: string]: any }): google.cloud.language.v1beta2.AnnotateTextRequest.Features;
|
5490 |
|
5491 | /**
|
5492 | * Creates a plain object from a Features message. Also converts values to other types if specified.
|
5493 | * @param message Features
|
5494 | * @param [options] Conversion options
|
5495 | * @returns Plain object
|
5496 | */
|
5497 | public static toObject(message: google.cloud.language.v1beta2.AnnotateTextRequest.Features, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
5498 |
|
5499 | /**
|
5500 | * Converts this Features to JSON.
|
5501 | * @returns JSON object
|
5502 | */
|
5503 | public toJSON(): { [k: string]: any };
|
5504 | }
|
5505 | }
|
5506 |
|
5507 | /** Properties of an AnnotateTextResponse. */
|
5508 | interface IAnnotateTextResponse {
|
5509 |
|
5510 | /** AnnotateTextResponse sentences */
|
5511 | sentences?: (google.cloud.language.v1beta2.ISentence[]|null);
|
5512 |
|
5513 | /** AnnotateTextResponse tokens */
|
5514 | tokens?: (google.cloud.language.v1beta2.IToken[]|null);
|
5515 |
|
5516 | /** AnnotateTextResponse entities */
|
5517 | entities?: (google.cloud.language.v1beta2.IEntity[]|null);
|
5518 |
|
5519 | /** AnnotateTextResponse documentSentiment */
|
5520 | documentSentiment?: (google.cloud.language.v1beta2.ISentiment|null);
|
5521 |
|
5522 | /** AnnotateTextResponse language */
|
5523 | language?: (string|null);
|
5524 |
|
5525 | /** AnnotateTextResponse categories */
|
5526 | categories?: (google.cloud.language.v1beta2.IClassificationCategory[]|null);
|
5527 | }
|
5528 |
|
5529 | /** Represents an AnnotateTextResponse. */
|
5530 | class AnnotateTextResponse implements IAnnotateTextResponse {
|
5531 |
|
5532 | /**
|
5533 | * Constructs a new AnnotateTextResponse.
|
5534 | * @param [properties] Properties to set
|
5535 | */
|
5536 | constructor(properties?: google.cloud.language.v1beta2.IAnnotateTextResponse);
|
5537 |
|
5538 | /** AnnotateTextResponse sentences. */
|
5539 | public sentences: google.cloud.language.v1beta2.ISentence[];
|
5540 |
|
5541 | /** AnnotateTextResponse tokens. */
|
5542 | public tokens: google.cloud.language.v1beta2.IToken[];
|
5543 |
|
5544 | /** AnnotateTextResponse entities. */
|
5545 | public entities: google.cloud.language.v1beta2.IEntity[];
|
5546 |
|
5547 | /** AnnotateTextResponse documentSentiment. */
|
5548 | public documentSentiment?: (google.cloud.language.v1beta2.ISentiment|null);
|
5549 |
|
5550 | /** AnnotateTextResponse language. */
|
5551 | public language: string;
|
5552 |
|
5553 | /** AnnotateTextResponse categories. */
|
5554 | public categories: google.cloud.language.v1beta2.IClassificationCategory[];
|
5555 |
|
5556 | /**
|
5557 | * Creates a new AnnotateTextResponse instance using the specified properties.
|
5558 | * @param [properties] Properties to set
|
5559 | * @returns AnnotateTextResponse instance
|
5560 | */
|
5561 | public static create(properties?: google.cloud.language.v1beta2.IAnnotateTextResponse): google.cloud.language.v1beta2.AnnotateTextResponse;
|
5562 |
|
5563 | /**
|
5564 | * Encodes the specified AnnotateTextResponse message. Does not implicitly { google.cloud.language.v1beta2.AnnotateTextResponse.verify|verify} messages.
|
5565 | * message AnnotateTextResponse message or plain object to encode
|
5566 | * [writer] Writer to encode to
|
5567 | * Writer
|
5568 | */
|
5569 | public static encode(message: google.cloud.language.v1beta2.IAnnotateTextResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
5570 |
|
5571 | /**
|
5572 | * Encodes the specified AnnotateTextResponse message, length delimited. Does not implicitly {@link google.cloud.language.v1beta2.AnnotateTextResponse.verify|verify} messages.
|
5573 | * @param message AnnotateTextResponse message or plain object to encode
|
5574 | * @param [writer] Writer to encode to
|
5575 | * @returns Writer
|
5576 | */
|
5577 | public static encodeDelimited(message: google.cloud.language.v1beta2.IAnnotateTextResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
5578 |
|
5579 | /**
|
5580 | * Decodes an AnnotateTextResponse message from the specified reader or buffer.
|
5581 | * @param reader Reader or buffer to decode from
|
5582 | * @param [length] Message length if known beforehand
|
5583 | * @returns AnnotateTextResponse
|
5584 | * @throws {Error} If the payload is not a reader or valid buffer
|
5585 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
5586 | */
|
5587 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.language.v1beta2.AnnotateTextResponse;
|
5588 |
|
5589 | /**
|
5590 | * Decodes an AnnotateTextResponse message from the specified reader or buffer, length delimited.
|
5591 | * @param reader Reader or buffer to decode from
|
5592 | * @returns AnnotateTextResponse
|
5593 | * @throws {Error} If the payload is not a reader or valid buffer
|
5594 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
5595 | */
|
5596 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.language.v1beta2.AnnotateTextResponse;
|
5597 |
|
5598 | /**
|
5599 | * Verifies an AnnotateTextResponse message.
|
5600 | * @param message Plain object to verify
|
5601 | * @returns `null` if valid, otherwise the reason why it is not
|
5602 | */
|
5603 | public static verify(message: { [k: string]: any }): (string|null);
|
5604 |
|
5605 | /**
|
5606 | * Creates an AnnotateTextResponse message from a plain object. Also converts values to their respective internal types.
|
5607 | * @param object Plain object
|
5608 | * @returns AnnotateTextResponse
|
5609 | */
|
5610 | public static fromObject(object: { [k: string]: any }): google.cloud.language.v1beta2.AnnotateTextResponse;
|
5611 |
|
5612 | /**
|
5613 | * Creates a plain object from an AnnotateTextResponse message. Also converts values to other types if specified.
|
5614 | * @param message AnnotateTextResponse
|
5615 | * @param [options] Conversion options
|
5616 | * @returns Plain object
|
5617 | */
|
5618 | public static toObject(message: google.cloud.language.v1beta2.AnnotateTextResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
5619 |
|
5620 | /**
|
5621 | * Converts this AnnotateTextResponse to JSON.
|
5622 | * @returns JSON object
|
5623 | */
|
5624 | public toJSON(): { [k: string]: any };
|
5625 | }
|
5626 | }
|
5627 | }
|
5628 | }
|
5629 |
|
5630 | /** Namespace api. */
|
5631 | namespace api {
|
5632 |
|
5633 | /** Properties of a Http. */
|
5634 | interface IHttp {
|
5635 |
|
5636 | /** Http rules */
|
5637 | rules?: (google.api.IHttpRule[]|null);
|
5638 |
|
5639 | /** Http fullyDecodeReservedExpansion */
|
5640 | fullyDecodeReservedExpansion?: (boolean|null);
|
5641 | }
|
5642 |
|
5643 | /** Represents a Http. */
|
5644 | class Http implements IHttp {
|
5645 |
|
5646 | /**
|
5647 | * Constructs a new Http.
|
5648 | * @param [properties] Properties to set
|
5649 | */
|
5650 | constructor(properties?: google.api.IHttp);
|
5651 |
|
5652 | /** Http rules. */
|
5653 | public rules: google.api.IHttpRule[];
|
5654 |
|
5655 | /** Http fullyDecodeReservedExpansion. */
|
5656 | public fullyDecodeReservedExpansion: boolean;
|
5657 |
|
5658 | /**
|
5659 | * Creates a new Http instance using the specified properties.
|
5660 | * @param [properties] Properties to set
|
5661 | * @returns Http instance
|
5662 | */
|
5663 | public static create(properties?: google.api.IHttp): google.api.Http;
|
5664 |
|
5665 | /**
|
5666 | * Encodes the specified Http message. Does not implicitly { google.api.Http.verify|verify} messages.
|
5667 | * message Http message or plain object to encode
|
5668 | * [writer] Writer to encode to
|
5669 | * Writer
|
5670 | */
|
5671 | public static encode(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer;
|
5672 |
|
5673 | /**
|
5674 | * Encodes the specified Http message, length delimited. Does not implicitly {@link google.api.Http.verify|verify} messages.
|
5675 | * @param message Http message or plain object to encode
|
5676 | * @param [writer] Writer to encode to
|
5677 | * @returns Writer
|
5678 | */
|
5679 | public static encodeDelimited(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer;
|
5680 |
|
5681 | /**
|
5682 | * Decodes a Http message from the specified reader or buffer.
|
5683 | * @param reader Reader or buffer to decode from
|
5684 | * @param [length] Message length if known beforehand
|
5685 | * @returns Http
|
5686 | * @throws {Error} If the payload is not a reader or valid buffer
|
5687 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
5688 | */
|
5689 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.Http;
|
5690 |
|
5691 | /**
|
5692 | * Decodes a Http message from the specified reader or buffer, length delimited.
|
5693 | * @param reader Reader or buffer to decode from
|
5694 | * @returns Http
|
5695 | * @throws {Error} If the payload is not a reader or valid buffer
|
5696 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
5697 | */
|
5698 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.Http;
|
5699 |
|
5700 | /**
|
5701 | * Verifies a Http message.
|
5702 | * @param message Plain object to verify
|
5703 | * @returns `null` if valid, otherwise the reason why it is not
|
5704 | */
|
5705 | public static verify(message: { [k: string]: any }): (string|null);
|
5706 |
|
5707 | /**
|
5708 | * Creates a Http message from a plain object. Also converts values to their respective internal types.
|
5709 | * @param object Plain object
|
5710 | * @returns Http
|
5711 | */
|
5712 | public static fromObject(object: { [k: string]: any }): google.api.Http;
|
5713 |
|
5714 | /**
|
5715 | * Creates a plain object from a Http message. Also converts values to other types if specified.
|
5716 | * @param message Http
|
5717 | * @param [options] Conversion options
|
5718 | * @returns Plain object
|
5719 | */
|
5720 | public static toObject(message: google.api.Http, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
5721 |
|
5722 | /**
|
5723 | * Converts this Http to JSON.
|
5724 | * @returns JSON object
|
5725 | */
|
5726 | public toJSON(): { [k: string]: any };
|
5727 | }
|
5728 |
|
5729 | /** Properties of a HttpRule. */
|
5730 | interface IHttpRule {
|
5731 |
|
5732 | /** HttpRule selector */
|
5733 | selector?: (string|null);
|
5734 |
|
5735 | /** HttpRule get */
|
5736 | get?: (string|null);
|
5737 |
|
5738 | /** HttpRule put */
|
5739 | put?: (string|null);
|
5740 |
|
5741 | /** HttpRule post */
|
5742 | post?: (string|null);
|
5743 |
|
5744 | /** HttpRule delete */
|
5745 | "delete"?: (string|null);
|
5746 |
|
5747 | /** HttpRule patch */
|
5748 | patch?: (string|null);
|
5749 |
|
5750 | /** HttpRule custom */
|
5751 | custom?: (google.api.ICustomHttpPattern|null);
|
5752 |
|
5753 | /** HttpRule body */
|
5754 | body?: (string|null);
|
5755 |
|
5756 | /** HttpRule responseBody */
|
5757 | responseBody?: (string|null);
|
5758 |
|
5759 | /** HttpRule additionalBindings */
|
5760 | additionalBindings?: (google.api.IHttpRule[]|null);
|
5761 | }
|
5762 |
|
5763 | /** Represents a HttpRule. */
|
5764 | class HttpRule implements IHttpRule {
|
5765 |
|
5766 | /**
|
5767 | * Constructs a new HttpRule.
|
5768 | * @param [properties] Properties to set
|
5769 | */
|
5770 | constructor(properties?: google.api.IHttpRule);
|
5771 |
|
5772 | /** HttpRule selector. */
|
5773 | public selector: string;
|
5774 |
|
5775 | /** HttpRule get. */
|
5776 | public get?: (string|null);
|
5777 |
|
5778 | /** HttpRule put. */
|
5779 | public put?: (string|null);
|
5780 |
|
5781 | /** HttpRule post. */
|
5782 | public post?: (string|null);
|
5783 |
|
5784 | /** HttpRule delete. */
|
5785 | public delete?: (string|null);
|
5786 |
|
5787 | /** HttpRule patch. */
|
5788 | public patch?: (string|null);
|
5789 |
|
5790 | /** HttpRule custom. */
|
5791 | public custom?: (google.api.ICustomHttpPattern|null);
|
5792 |
|
5793 | /** HttpRule body. */
|
5794 | public body: string;
|
5795 |
|
5796 | /** HttpRule responseBody. */
|
5797 | public responseBody: string;
|
5798 |
|
5799 | /** HttpRule additionalBindings. */
|
5800 | public additionalBindings: google.api.IHttpRule[];
|
5801 |
|
5802 | /** HttpRule pattern. */
|
5803 | public pattern?: ("get"|"put"|"post"|"delete"|"patch"|"custom");
|
5804 |
|
5805 | /**
|
5806 | * Creates a new HttpRule instance using the specified properties.
|
5807 | * @param [properties] Properties to set
|
5808 | * @returns HttpRule instance
|
5809 | */
|
5810 | public static create(properties?: google.api.IHttpRule): google.api.HttpRule;
|
5811 |
|
5812 | /**
|
5813 | * Encodes the specified HttpRule message. Does not implicitly { google.api.HttpRule.verify|verify} messages.
|
5814 | * message HttpRule message or plain object to encode
|
5815 | * [writer] Writer to encode to
|
5816 | * Writer
|
5817 | */
|
5818 | public static encode(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer;
|
5819 |
|
5820 | /**
|
5821 | * Encodes the specified HttpRule message, length delimited. Does not implicitly {@link google.api.HttpRule.verify|verify} messages.
|
5822 | * @param message HttpRule message or plain object to encode
|
5823 | * @param [writer] Writer to encode to
|
5824 | * @returns Writer
|
5825 | */
|
5826 | public static encodeDelimited(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer;
|
5827 |
|
5828 | /**
|
5829 | * Decodes a HttpRule message from the specified reader or buffer.
|
5830 | * @param reader Reader or buffer to decode from
|
5831 | * @param [length] Message length if known beforehand
|
5832 | * @returns HttpRule
|
5833 | * @throws {Error} If the payload is not a reader or valid buffer
|
5834 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
5835 | */
|
5836 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.HttpRule;
|
5837 |
|
5838 | /**
|
5839 | * Decodes a HttpRule message from the specified reader or buffer, length delimited.
|
5840 | * @param reader Reader or buffer to decode from
|
5841 | * @returns HttpRule
|
5842 | * @throws {Error} If the payload is not a reader or valid buffer
|
5843 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
5844 | */
|
5845 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.HttpRule;
|
5846 |
|
5847 | /**
|
5848 | * Verifies a HttpRule message.
|
5849 | * @param message Plain object to verify
|
5850 | * @returns `null` if valid, otherwise the reason why it is not
|
5851 | */
|
5852 | public static verify(message: { [k: string]: any }): (string|null);
|
5853 |
|
5854 | /**
|
5855 | * Creates a HttpRule message from a plain object. Also converts values to their respective internal types.
|
5856 | * @param object Plain object
|
5857 | * @returns HttpRule
|
5858 | */
|
5859 | public static fromObject(object: { [k: string]: any }): google.api.HttpRule;
|
5860 |
|
5861 | /**
|
5862 | * Creates a plain object from a HttpRule message. Also converts values to other types if specified.
|
5863 | * @param message HttpRule
|
5864 | * @param [options] Conversion options
|
5865 | * @returns Plain object
|
5866 | */
|
5867 | public static toObject(message: google.api.HttpRule, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
5868 |
|
5869 | /**
|
5870 | * Converts this HttpRule to JSON.
|
5871 | * @returns JSON object
|
5872 | */
|
5873 | public toJSON(): { [k: string]: any };
|
5874 | }
|
5875 |
|
5876 | /** Properties of a CustomHttpPattern. */
|
5877 | interface ICustomHttpPattern {
|
5878 |
|
5879 | /** CustomHttpPattern kind */
|
5880 | kind?: (string|null);
|
5881 |
|
5882 | /** CustomHttpPattern path */
|
5883 | path?: (string|null);
|
5884 | }
|
5885 |
|
5886 | /** Represents a CustomHttpPattern. */
|
5887 | class CustomHttpPattern implements ICustomHttpPattern {
|
5888 |
|
5889 | /**
|
5890 | * Constructs a new CustomHttpPattern.
|
5891 | * @param [properties] Properties to set
|
5892 | */
|
5893 | constructor(properties?: google.api.ICustomHttpPattern);
|
5894 |
|
5895 | /** CustomHttpPattern kind. */
|
5896 | public kind: string;
|
5897 |
|
5898 | /** CustomHttpPattern path. */
|
5899 | public path: string;
|
5900 |
|
5901 | /**
|
5902 | * Creates a new CustomHttpPattern instance using the specified properties.
|
5903 | * @param [properties] Properties to set
|
5904 | * @returns CustomHttpPattern instance
|
5905 | */
|
5906 | public static create(properties?: google.api.ICustomHttpPattern): google.api.CustomHttpPattern;
|
5907 |
|
5908 | /**
|
5909 | * Encodes the specified CustomHttpPattern message. Does not implicitly { google.api.CustomHttpPattern.verify|verify} messages.
|
5910 | * message CustomHttpPattern message or plain object to encode
|
5911 | * [writer] Writer to encode to
|
5912 | * Writer
|
5913 | */
|
5914 | public static encode(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer;
|
5915 |
|
5916 | /**
|
5917 | * Encodes the specified CustomHttpPattern message, length delimited. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages.
|
5918 | * @param message CustomHttpPattern message or plain object to encode
|
5919 | * @param [writer] Writer to encode to
|
5920 | * @returns Writer
|
5921 | */
|
5922 | public static encodeDelimited(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer;
|
5923 |
|
5924 | /**
|
5925 | * Decodes a CustomHttpPattern message from the specified reader or buffer.
|
5926 | * @param reader Reader or buffer to decode from
|
5927 | * @param [length] Message length if known beforehand
|
5928 | * @returns CustomHttpPattern
|
5929 | * @throws {Error} If the payload is not a reader or valid buffer
|
5930 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
5931 | */
|
5932 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.CustomHttpPattern;
|
5933 |
|
5934 | /**
|
5935 | * Decodes a CustomHttpPattern message from the specified reader or buffer, length delimited.
|
5936 | * @param reader Reader or buffer to decode from
|
5937 | * @returns CustomHttpPattern
|
5938 | * @throws {Error} If the payload is not a reader or valid buffer
|
5939 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
5940 | */
|
5941 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.CustomHttpPattern;
|
5942 |
|
5943 | /**
|
5944 | * Verifies a CustomHttpPattern message.
|
5945 | * @param message Plain object to verify
|
5946 | * @returns `null` if valid, otherwise the reason why it is not
|
5947 | */
|
5948 | public static verify(message: { [k: string]: any }): (string|null);
|
5949 |
|
5950 | /**
|
5951 | * Creates a CustomHttpPattern message from a plain object. Also converts values to their respective internal types.
|
5952 | * @param object Plain object
|
5953 | * @returns CustomHttpPattern
|
5954 | */
|
5955 | public static fromObject(object: { [k: string]: any }): google.api.CustomHttpPattern;
|
5956 |
|
5957 | /**
|
5958 | * Creates a plain object from a CustomHttpPattern message. Also converts values to other types if specified.
|
5959 | * @param message CustomHttpPattern
|
5960 | * @param [options] Conversion options
|
5961 | * @returns Plain object
|
5962 | */
|
5963 | public static toObject(message: google.api.CustomHttpPattern, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
5964 |
|
5965 | /**
|
5966 | * Converts this CustomHttpPattern to JSON.
|
5967 | * @returns JSON object
|
5968 | */
|
5969 | public toJSON(): { [k: string]: any };
|
5970 | }
|
5971 |
|
5972 | /** FieldBehavior enum. */
|
5973 | enum FieldBehavior {
|
5974 | FIELD_BEHAVIOR_UNSPECIFIED = 0,
|
5975 | OPTIONAL = 1,
|
5976 | REQUIRED = 2,
|
5977 | OUTPUT_ONLY = 3,
|
5978 | INPUT_ONLY = 4,
|
5979 | IMMUTABLE = 5,
|
5980 | UNORDERED_LIST = 6,
|
5981 | NON_EMPTY_DEFAULT = 7
|
5982 | }
|
5983 | }
|
5984 |
|
5985 | /** Namespace protobuf. */
|
5986 | namespace protobuf {
|
5987 |
|
5988 | /** Properties of a FileDescriptorSet. */
|
5989 | interface IFileDescriptorSet {
|
5990 |
|
5991 | /** FileDescriptorSet file */
|
5992 | file?: (google.protobuf.IFileDescriptorProto[]|null);
|
5993 | }
|
5994 |
|
5995 | /** Represents a FileDescriptorSet. */
|
5996 | class FileDescriptorSet implements IFileDescriptorSet {
|
5997 |
|
5998 | /**
|
5999 | * Constructs a new FileDescriptorSet.
|
6000 | * @param [properties] Properties to set
|
6001 | */
|
6002 | constructor(properties?: google.protobuf.IFileDescriptorSet);
|
6003 |
|
6004 | /** FileDescriptorSet file. */
|
6005 | public file: google.protobuf.IFileDescriptorProto[];
|
6006 |
|
6007 | /**
|
6008 | * Creates a new FileDescriptorSet instance using the specified properties.
|
6009 | * @param [properties] Properties to set
|
6010 | * @returns FileDescriptorSet instance
|
6011 | */
|
6012 | public static create(properties?: google.protobuf.IFileDescriptorSet): google.protobuf.FileDescriptorSet;
|
6013 |
|
6014 | /**
|
6015 | * Encodes the specified FileDescriptorSet message. Does not implicitly { google.protobuf.FileDescriptorSet.verify|verify} messages.
|
6016 | * message FileDescriptorSet message or plain object to encode
|
6017 | * [writer] Writer to encode to
|
6018 | * Writer
|
6019 | */
|
6020 | public static encode(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer;
|
6021 |
|
6022 | /**
|
6023 | * Encodes the specified FileDescriptorSet message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages.
|
6024 | * @param message FileDescriptorSet message or plain object to encode
|
6025 | * @param [writer] Writer to encode to
|
6026 | * @returns Writer
|
6027 | */
|
6028 | public static encodeDelimited(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer;
|
6029 |
|
6030 | /**
|
6031 | * Decodes a FileDescriptorSet message from the specified reader or buffer.
|
6032 | * @param reader Reader or buffer to decode from
|
6033 | * @param [length] Message length if known beforehand
|
6034 | * @returns FileDescriptorSet
|
6035 | * @throws {Error} If the payload is not a reader or valid buffer
|
6036 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
6037 | */
|
6038 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorSet;
|
6039 |
|
6040 | /**
|
6041 | * Decodes a FileDescriptorSet message from the specified reader or buffer, length delimited.
|
6042 | * @param reader Reader or buffer to decode from
|
6043 | * @returns FileDescriptorSet
|
6044 | * @throws {Error} If the payload is not a reader or valid buffer
|
6045 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
6046 | */
|
6047 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileDescriptorSet;
|
6048 |
|
6049 | /**
|
6050 | * Verifies a FileDescriptorSet message.
|
6051 | * @param message Plain object to verify
|
6052 | * @returns `null` if valid, otherwise the reason why it is not
|
6053 | */
|
6054 | public static verify(message: { [k: string]: any }): (string|null);
|
6055 |
|
6056 | /**
|
6057 | * Creates a FileDescriptorSet message from a plain object. Also converts values to their respective internal types.
|
6058 | * @param object Plain object
|
6059 | * @returns FileDescriptorSet
|
6060 | */
|
6061 | public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorSet;
|
6062 |
|
6063 | /**
|
6064 | * Creates a plain object from a FileDescriptorSet message. Also converts values to other types if specified.
|
6065 | * @param message FileDescriptorSet
|
6066 | * @param [options] Conversion options
|
6067 | * @returns Plain object
|
6068 | */
|
6069 | public static toObject(message: google.protobuf.FileDescriptorSet, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
6070 |
|
6071 | /**
|
6072 | * Converts this FileDescriptorSet to JSON.
|
6073 | * @returns JSON object
|
6074 | */
|
6075 | public toJSON(): { [k: string]: any };
|
6076 | }
|
6077 |
|
6078 | /** Properties of a FileDescriptorProto. */
|
6079 | interface IFileDescriptorProto {
|
6080 |
|
6081 | /** FileDescriptorProto name */
|
6082 | name?: (string|null);
|
6083 |
|
6084 | /** FileDescriptorProto package */
|
6085 | "package"?: (string|null);
|
6086 |
|
6087 | /** FileDescriptorProto dependency */
|
6088 | dependency?: (string[]|null);
|
6089 |
|
6090 | /** FileDescriptorProto publicDependency */
|
6091 | publicDependency?: (number[]|null);
|
6092 |
|
6093 | /** FileDescriptorProto weakDependency */
|
6094 | weakDependency?: (number[]|null);
|
6095 |
|
6096 | /** FileDescriptorProto messageType */
|
6097 | messageType?: (google.protobuf.IDescriptorProto[]|null);
|
6098 |
|
6099 | /** FileDescriptorProto enumType */
|
6100 | enumType?: (google.protobuf.IEnumDescriptorProto[]|null);
|
6101 |
|
6102 | /** FileDescriptorProto service */
|
6103 | service?: (google.protobuf.IServiceDescriptorProto[]|null);
|
6104 |
|
6105 | /** FileDescriptorProto extension */
|
6106 | extension?: (google.protobuf.IFieldDescriptorProto[]|null);
|
6107 |
|
6108 | /** FileDescriptorProto options */
|
6109 | options?: (google.protobuf.IFileOptions|null);
|
6110 |
|
6111 | /** FileDescriptorProto sourceCodeInfo */
|
6112 | sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null);
|
6113 |
|
6114 | /** FileDescriptorProto syntax */
|
6115 | syntax?: (string|null);
|
6116 | }
|
6117 |
|
6118 | /** Represents a FileDescriptorProto. */
|
6119 | class FileDescriptorProto implements IFileDescriptorProto {
|
6120 |
|
6121 | /**
|
6122 | * Constructs a new FileDescriptorProto.
|
6123 | * @param [properties] Properties to set
|
6124 | */
|
6125 | constructor(properties?: google.protobuf.IFileDescriptorProto);
|
6126 |
|
6127 | /** FileDescriptorProto name. */
|
6128 | public name: string;
|
6129 |
|
6130 | /** FileDescriptorProto package. */
|
6131 | public package: string;
|
6132 |
|
6133 | /** FileDescriptorProto dependency. */
|
6134 | public dependency: string[];
|
6135 |
|
6136 | /** FileDescriptorProto publicDependency. */
|
6137 | public publicDependency: number[];
|
6138 |
|
6139 | /** FileDescriptorProto weakDependency. */
|
6140 | public weakDependency: number[];
|
6141 |
|
6142 | /** FileDescriptorProto messageType. */
|
6143 | public messageType: google.protobuf.IDescriptorProto[];
|
6144 |
|
6145 | /** FileDescriptorProto enumType. */
|
6146 | public enumType: google.protobuf.IEnumDescriptorProto[];
|
6147 |
|
6148 | /** FileDescriptorProto service. */
|
6149 | public service: google.protobuf.IServiceDescriptorProto[];
|
6150 |
|
6151 | /** FileDescriptorProto extension. */
|
6152 | public extension: google.protobuf.IFieldDescriptorProto[];
|
6153 |
|
6154 | /** FileDescriptorProto options. */
|
6155 | public options?: (google.protobuf.IFileOptions|null);
|
6156 |
|
6157 | /** FileDescriptorProto sourceCodeInfo. */
|
6158 | public sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null);
|
6159 |
|
6160 | /** FileDescriptorProto syntax. */
|
6161 | public syntax: string;
|
6162 |
|
6163 | /**
|
6164 | * Creates a new FileDescriptorProto instance using the specified properties.
|
6165 | * @param [properties] Properties to set
|
6166 | * @returns FileDescriptorProto instance
|
6167 | */
|
6168 | public static create(properties?: google.protobuf.IFileDescriptorProto): google.protobuf.FileDescriptorProto;
|
6169 |
|
6170 | /**
|
6171 | * Encodes the specified FileDescriptorProto message. Does not implicitly { google.protobuf.FileDescriptorProto.verify|verify} messages.
|
6172 | * message FileDescriptorProto message or plain object to encode
|
6173 | * [writer] Writer to encode to
|
6174 | * Writer
|
6175 | */
|
6176 | public static encode(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
|
6177 |
|
6178 | /**
|
6179 | * Encodes the specified FileDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages.
|
6180 | * @param message FileDescriptorProto message or plain object to encode
|
6181 | * @param [writer] Writer to encode to
|
6182 | * @returns Writer
|
6183 | */
|
6184 | public static encodeDelimited(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
|
6185 |
|
6186 | /**
|
6187 | * Decodes a FileDescriptorProto message from the specified reader or buffer.
|
6188 | * @param reader Reader or buffer to decode from
|
6189 | * @param [length] Message length if known beforehand
|
6190 | * @returns FileDescriptorProto
|
6191 | * @throws {Error} If the payload is not a reader or valid buffer
|
6192 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
6193 | */
|
6194 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorProto;
|
6195 |
|
6196 | /**
|
6197 | * Decodes a FileDescriptorProto message from the specified reader or buffer, length delimited.
|
6198 | * @param reader Reader or buffer to decode from
|
6199 | * @returns FileDescriptorProto
|
6200 | * @throws {Error} If the payload is not a reader or valid buffer
|
6201 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
6202 | */
|
6203 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileDescriptorProto;
|
6204 |
|
6205 | /**
|
6206 | * Verifies a FileDescriptorProto message.
|
6207 | * @param message Plain object to verify
|
6208 | * @returns `null` if valid, otherwise the reason why it is not
|
6209 | */
|
6210 | public static verify(message: { [k: string]: any }): (string|null);
|
6211 |
|
6212 | /**
|
6213 | * Creates a FileDescriptorProto message from a plain object. Also converts values to their respective internal types.
|
6214 | * @param object Plain object
|
6215 | * @returns FileDescriptorProto
|
6216 | */
|
6217 | public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorProto;
|
6218 |
|
6219 | /**
|
6220 | * Creates a plain object from a FileDescriptorProto message. Also converts values to other types if specified.
|
6221 | * @param message FileDescriptorProto
|
6222 | * @param [options] Conversion options
|
6223 | * @returns Plain object
|
6224 | */
|
6225 | public static toObject(message: google.protobuf.FileDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
6226 |
|
6227 | /**
|
6228 | * Converts this FileDescriptorProto to JSON.
|
6229 | * @returns JSON object
|
6230 | */
|
6231 | public toJSON(): { [k: string]: any };
|
6232 | }
|
6233 |
|
6234 | /** Properties of a DescriptorProto. */
|
6235 | interface IDescriptorProto {
|
6236 |
|
6237 | /** DescriptorProto name */
|
6238 | name?: (string|null);
|
6239 |
|
6240 | /** DescriptorProto field */
|
6241 | field?: (google.protobuf.IFieldDescriptorProto[]|null);
|
6242 |
|
6243 | /** DescriptorProto extension */
|
6244 | extension?: (google.protobuf.IFieldDescriptorProto[]|null);
|
6245 |
|
6246 | /** DescriptorProto nestedType */
|
6247 | nestedType?: (google.protobuf.IDescriptorProto[]|null);
|
6248 |
|
6249 | /** DescriptorProto enumType */
|
6250 | enumType?: (google.protobuf.IEnumDescriptorProto[]|null);
|
6251 |
|
6252 | /** DescriptorProto extensionRange */
|
6253 | extensionRange?: (google.protobuf.DescriptorProto.IExtensionRange[]|null);
|
6254 |
|
6255 | /** DescriptorProto oneofDecl */
|
6256 | oneofDecl?: (google.protobuf.IOneofDescriptorProto[]|null);
|
6257 |
|
6258 | /** DescriptorProto options */
|
6259 | options?: (google.protobuf.IMessageOptions|null);
|
6260 |
|
6261 | /** DescriptorProto reservedRange */
|
6262 | reservedRange?: (google.protobuf.DescriptorProto.IReservedRange[]|null);
|
6263 |
|
6264 | /** DescriptorProto reservedName */
|
6265 | reservedName?: (string[]|null);
|
6266 | }
|
6267 |
|
6268 | /** Represents a DescriptorProto. */
|
6269 | class DescriptorProto implements IDescriptorProto {
|
6270 |
|
6271 | /**
|
6272 | * Constructs a new DescriptorProto.
|
6273 | * @param [properties] Properties to set
|
6274 | */
|
6275 | constructor(properties?: google.protobuf.IDescriptorProto);
|
6276 |
|
6277 | /** DescriptorProto name. */
|
6278 | public name: string;
|
6279 |
|
6280 | /** DescriptorProto field. */
|
6281 | public field: google.protobuf.IFieldDescriptorProto[];
|
6282 |
|
6283 | /** DescriptorProto extension. */
|
6284 | public extension: google.protobuf.IFieldDescriptorProto[];
|
6285 |
|
6286 | /** DescriptorProto nestedType. */
|
6287 | public nestedType: google.protobuf.IDescriptorProto[];
|
6288 |
|
6289 | /** DescriptorProto enumType. */
|
6290 | public enumType: google.protobuf.IEnumDescriptorProto[];
|
6291 |
|
6292 | /** DescriptorProto extensionRange. */
|
6293 | public extensionRange: google.protobuf.DescriptorProto.IExtensionRange[];
|
6294 |
|
6295 | /** DescriptorProto oneofDecl. */
|
6296 | public oneofDecl: google.protobuf.IOneofDescriptorProto[];
|
6297 |
|
6298 | /** DescriptorProto options. */
|
6299 | public options?: (google.protobuf.IMessageOptions|null);
|
6300 |
|
6301 | /** DescriptorProto reservedRange. */
|
6302 | public reservedRange: google.protobuf.DescriptorProto.IReservedRange[];
|
6303 |
|
6304 | /** DescriptorProto reservedName. */
|
6305 | public reservedName: string[];
|
6306 |
|
6307 | /**
|
6308 | * Creates a new DescriptorProto instance using the specified properties.
|
6309 | * @param [properties] Properties to set
|
6310 | * @returns DescriptorProto instance
|
6311 | */
|
6312 | public static create(properties?: google.protobuf.IDescriptorProto): google.protobuf.DescriptorProto;
|
6313 |
|
6314 | /**
|
6315 | * Encodes the specified DescriptorProto message. Does not implicitly { google.protobuf.DescriptorProto.verify|verify} messages.
|
6316 | * message DescriptorProto message or plain object to encode
|
6317 | * [writer] Writer to encode to
|
6318 | * Writer
|
6319 | */
|
6320 | public static encode(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
|
6321 |
|
6322 | /**
|
6323 | * Encodes the specified DescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages.
|
6324 | * @param message DescriptorProto message or plain object to encode
|
6325 | * @param [writer] Writer to encode to
|
6326 | * @returns Writer
|
6327 | */
|
6328 | public static encodeDelimited(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
|
6329 |
|
6330 | /**
|
6331 | * Decodes a DescriptorProto message from the specified reader or buffer.
|
6332 | * @param reader Reader or buffer to decode from
|
6333 | * @param [length] Message length if known beforehand
|
6334 | * @returns DescriptorProto
|
6335 | * @throws {Error} If the payload is not a reader or valid buffer
|
6336 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
6337 | */
|
6338 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto;
|
6339 |
|
6340 | /**
|
6341 | * Decodes a DescriptorProto message from the specified reader or buffer, length delimited.
|
6342 | * @param reader Reader or buffer to decode from
|
6343 | * @returns DescriptorProto
|
6344 | * @throws {Error} If the payload is not a reader or valid buffer
|
6345 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
6346 | */
|
6347 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto;
|
6348 |
|
6349 | /**
|
6350 | * Verifies a DescriptorProto message.
|
6351 | * @param message Plain object to verify
|
6352 | * @returns `null` if valid, otherwise the reason why it is not
|
6353 | */
|
6354 | public static verify(message: { [k: string]: any }): (string|null);
|
6355 |
|
6356 | /**
|
6357 | * Creates a DescriptorProto message from a plain object. Also converts values to their respective internal types.
|
6358 | * @param object Plain object
|
6359 | * @returns DescriptorProto
|
6360 | */
|
6361 | public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto;
|
6362 |
|
6363 | /**
|
6364 | * Creates a plain object from a DescriptorProto message. Also converts values to other types if specified.
|
6365 | * @param message DescriptorProto
|
6366 | * @param [options] Conversion options
|
6367 | * @returns Plain object
|
6368 | */
|
6369 | public static toObject(message: google.protobuf.DescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
6370 |
|
6371 | /**
|
6372 | * Converts this DescriptorProto to JSON.
|
6373 | * @returns JSON object
|
6374 | */
|
6375 | public toJSON(): { [k: string]: any };
|
6376 | }
|
6377 |
|
6378 | namespace DescriptorProto {
|
6379 |
|
6380 | /** Properties of an ExtensionRange. */
|
6381 | interface IExtensionRange {
|
6382 |
|
6383 | /** ExtensionRange start */
|
6384 | start?: (number|null);
|
6385 |
|
6386 | /** ExtensionRange end */
|
6387 | end?: (number|null);
|
6388 |
|
6389 | /** ExtensionRange options */
|
6390 | options?: (google.protobuf.IExtensionRangeOptions|null);
|
6391 | }
|
6392 |
|
6393 | /** Represents an ExtensionRange. */
|
6394 | class ExtensionRange implements IExtensionRange {
|
6395 |
|
6396 | /**
|
6397 | * Constructs a new ExtensionRange.
|
6398 | * @param [properties] Properties to set
|
6399 | */
|
6400 | constructor(properties?: google.protobuf.DescriptorProto.IExtensionRange);
|
6401 |
|
6402 | /** ExtensionRange start. */
|
6403 | public start: number;
|
6404 |
|
6405 | /** ExtensionRange end. */
|
6406 | public end: number;
|
6407 |
|
6408 | /** ExtensionRange options. */
|
6409 | public options?: (google.protobuf.IExtensionRangeOptions|null);
|
6410 |
|
6411 | /**
|
6412 | * Creates a new ExtensionRange instance using the specified properties.
|
6413 | * @param [properties] Properties to set
|
6414 | * @returns ExtensionRange instance
|
6415 | */
|
6416 | public static create(properties?: google.protobuf.DescriptorProto.IExtensionRange): google.protobuf.DescriptorProto.ExtensionRange;
|
6417 |
|
6418 | /**
|
6419 | * Encodes the specified ExtensionRange message. Does not implicitly { google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages.
|
6420 | * message ExtensionRange message or plain object to encode
|
6421 | * [writer] Writer to encode to
|
6422 | * Writer
|
6423 | */
|
6424 | public static encode(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer;
|
6425 |
|
6426 | /**
|
6427 | * Encodes the specified ExtensionRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages.
|
6428 | * @param message ExtensionRange message or plain object to encode
|
6429 | * @param [writer] Writer to encode to
|
6430 | * @returns Writer
|
6431 | */
|
6432 | public static encodeDelimited(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer;
|
6433 |
|
6434 | /**
|
6435 | * Decodes an ExtensionRange message from the specified reader or buffer.
|
6436 | * @param reader Reader or buffer to decode from
|
6437 | * @param [length] Message length if known beforehand
|
6438 | * @returns ExtensionRange
|
6439 | * @throws {Error} If the payload is not a reader or valid buffer
|
6440 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
6441 | */
|
6442 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto.ExtensionRange;
|
6443 |
|
6444 | /**
|
6445 | * Decodes an ExtensionRange message from the specified reader or buffer, length delimited.
|
6446 | * @param reader Reader or buffer to decode from
|
6447 | * @returns ExtensionRange
|
6448 | * @throws {Error} If the payload is not a reader or valid buffer
|
6449 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
6450 | */
|
6451 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto.ExtensionRange;
|
6452 |
|
6453 | /**
|
6454 | * Verifies an ExtensionRange message.
|
6455 | * @param message Plain object to verify
|
6456 | * @returns `null` if valid, otherwise the reason why it is not
|
6457 | */
|
6458 | public static verify(message: { [k: string]: any }): (string|null);
|
6459 |
|
6460 | /**
|
6461 | * Creates an ExtensionRange message from a plain object. Also converts values to their respective internal types.
|
6462 | * @param object Plain object
|
6463 | * @returns ExtensionRange
|
6464 | */
|
6465 | public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ExtensionRange;
|
6466 |
|
6467 | /**
|
6468 | * Creates a plain object from an ExtensionRange message. Also converts values to other types if specified.
|
6469 | * @param message ExtensionRange
|
6470 | * @param [options] Conversion options
|
6471 | * @returns Plain object
|
6472 | */
|
6473 | public static toObject(message: google.protobuf.DescriptorProto.ExtensionRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
6474 |
|
6475 | /**
|
6476 | * Converts this ExtensionRange to JSON.
|
6477 | * @returns JSON object
|
6478 | */
|
6479 | public toJSON(): { [k: string]: any };
|
6480 | }
|
6481 |
|
6482 | /** Properties of a ReservedRange. */
|
6483 | interface IReservedRange {
|
6484 |
|
6485 | /** ReservedRange start */
|
6486 | start?: (number|null);
|
6487 |
|
6488 | /** ReservedRange end */
|
6489 | end?: (number|null);
|
6490 | }
|
6491 |
|
6492 | /** Represents a ReservedRange. */
|
6493 | class ReservedRange implements IReservedRange {
|
6494 |
|
6495 | /**
|
6496 | * Constructs a new ReservedRange.
|
6497 | * @param [properties] Properties to set
|
6498 | */
|
6499 | constructor(properties?: google.protobuf.DescriptorProto.IReservedRange);
|
6500 |
|
6501 | /** ReservedRange start. */
|
6502 | public start: number;
|
6503 |
|
6504 | /** ReservedRange end. */
|
6505 | public end: number;
|
6506 |
|
6507 | /**
|
6508 | * Creates a new ReservedRange instance using the specified properties.
|
6509 | * @param [properties] Properties to set
|
6510 | * @returns ReservedRange instance
|
6511 | */
|
6512 | public static create(properties?: google.protobuf.DescriptorProto.IReservedRange): google.protobuf.DescriptorProto.ReservedRange;
|
6513 |
|
6514 | /**
|
6515 | * Encodes the specified ReservedRange message. Does not implicitly { google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages.
|
6516 | * message ReservedRange message or plain object to encode
|
6517 | * [writer] Writer to encode to
|
6518 | * Writer
|
6519 | */
|
6520 | public static encode(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
|
6521 |
|
6522 | /**
|
6523 | * Encodes the specified ReservedRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages.
|
6524 | * @param message ReservedRange message or plain object to encode
|
6525 | * @param [writer] Writer to encode to
|
6526 | * @returns Writer
|
6527 | */
|
6528 | public static encodeDelimited(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
|
6529 |
|
6530 | /**
|
6531 | * Decodes a ReservedRange message from the specified reader or buffer.
|
6532 | * @param reader Reader or buffer to decode from
|
6533 | * @param [length] Message length if known beforehand
|
6534 | * @returns ReservedRange
|
6535 | * @throws {Error} If the payload is not a reader or valid buffer
|
6536 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
6537 | */
|
6538 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto.ReservedRange;
|
6539 |
|
6540 | /**
|
6541 | * Decodes a ReservedRange message from the specified reader or buffer, length delimited.
|
6542 | * @param reader Reader or buffer to decode from
|
6543 | * @returns ReservedRange
|
6544 | * @throws {Error} If the payload is not a reader or valid buffer
|
6545 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
6546 | */
|
6547 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto.ReservedRange;
|
6548 |
|
6549 | /**
|
6550 | * Verifies a ReservedRange message.
|
6551 | * @param message Plain object to verify
|
6552 | * @returns `null` if valid, otherwise the reason why it is not
|
6553 | */
|
6554 | public static verify(message: { [k: string]: any }): (string|null);
|
6555 |
|
6556 | /**
|
6557 | * Creates a ReservedRange message from a plain object. Also converts values to their respective internal types.
|
6558 | * @param object Plain object
|
6559 | * @returns ReservedRange
|
6560 | */
|
6561 | public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ReservedRange;
|
6562 |
|
6563 | /**
|
6564 | * Creates a plain object from a ReservedRange message. Also converts values to other types if specified.
|
6565 | * @param message ReservedRange
|
6566 | * @param [options] Conversion options
|
6567 | * @returns Plain object
|
6568 | */
|
6569 | public static toObject(message: google.protobuf.DescriptorProto.ReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
6570 |
|
6571 | /**
|
6572 | * Converts this ReservedRange to JSON.
|
6573 | * @returns JSON object
|
6574 | */
|
6575 | public toJSON(): { [k: string]: any };
|
6576 | }
|
6577 | }
|
6578 |
|
6579 | /** Properties of an ExtensionRangeOptions. */
|
6580 | interface IExtensionRangeOptions {
|
6581 |
|
6582 | /** ExtensionRangeOptions uninterpretedOption */
|
6583 | uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
|
6584 | }
|
6585 |
|
6586 | /** Represents an ExtensionRangeOptions. */
|
6587 | class ExtensionRangeOptions implements IExtensionRangeOptions {
|
6588 |
|
6589 | /**
|
6590 | * Constructs a new ExtensionRangeOptions.
|
6591 | * @param [properties] Properties to set
|
6592 | */
|
6593 | constructor(properties?: google.protobuf.IExtensionRangeOptions);
|
6594 |
|
6595 | /** ExtensionRangeOptions uninterpretedOption. */
|
6596 | public uninterpretedOption: google.protobuf.IUninterpretedOption[];
|
6597 |
|
6598 | /**
|
6599 | * Creates a new ExtensionRangeOptions instance using the specified properties.
|
6600 | * @param [properties] Properties to set
|
6601 | * @returns ExtensionRangeOptions instance
|
6602 | */
|
6603 | public static create(properties?: google.protobuf.IExtensionRangeOptions): google.protobuf.ExtensionRangeOptions;
|
6604 |
|
6605 | /**
|
6606 | * Encodes the specified ExtensionRangeOptions message. Does not implicitly { google.protobuf.ExtensionRangeOptions.verify|verify} messages.
|
6607 | * message ExtensionRangeOptions message or plain object to encode
|
6608 | * [writer] Writer to encode to
|
6609 | * Writer
|
6610 | */
|
6611 | public static encode(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer;
|
6612 |
|
6613 | /**
|
6614 | * Encodes the specified ExtensionRangeOptions message, length delimited. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages.
|
6615 | * @param message ExtensionRangeOptions message or plain object to encode
|
6616 | * @param [writer] Writer to encode to
|
6617 | * @returns Writer
|
6618 | */
|
6619 | public static encodeDelimited(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer;
|
6620 |
|
6621 | /**
|
6622 | * Decodes an ExtensionRangeOptions message from the specified reader or buffer.
|
6623 | * @param reader Reader or buffer to decode from
|
6624 | * @param [length] Message length if known beforehand
|
6625 | * @returns ExtensionRangeOptions
|
6626 | * @throws {Error} If the payload is not a reader or valid buffer
|
6627 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
6628 | */
|
6629 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ExtensionRangeOptions;
|
6630 |
|
6631 | /**
|
6632 | * Decodes an ExtensionRangeOptions message from the specified reader or buffer, length delimited.
|
6633 | * @param reader Reader or buffer to decode from
|
6634 | * @returns ExtensionRangeOptions
|
6635 | * @throws {Error} If the payload is not a reader or valid buffer
|
6636 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
6637 | */
|
6638 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ExtensionRangeOptions;
|
6639 |
|
6640 | /**
|
6641 | * Verifies an ExtensionRangeOptions message.
|
6642 | * @param message Plain object to verify
|
6643 | * @returns `null` if valid, otherwise the reason why it is not
|
6644 | */
|
6645 | public static verify(message: { [k: string]: any }): (string|null);
|
6646 |
|
6647 | /**
|
6648 | * Creates an ExtensionRangeOptions message from a plain object. Also converts values to their respective internal types.
|
6649 | * @param object Plain object
|
6650 | * @returns ExtensionRangeOptions
|
6651 | */
|
6652 | public static fromObject(object: { [k: string]: any }): google.protobuf.ExtensionRangeOptions;
|
6653 |
|
6654 | /**
|
6655 | * Creates a plain object from an ExtensionRangeOptions message. Also converts values to other types if specified.
|
6656 | * @param message ExtensionRangeOptions
|
6657 | * @param [options] Conversion options
|
6658 | * @returns Plain object
|
6659 | */
|
6660 | public static toObject(message: google.protobuf.ExtensionRangeOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
6661 |
|
6662 | /**
|
6663 | * Converts this ExtensionRangeOptions to JSON.
|
6664 | * @returns JSON object
|
6665 | */
|
6666 | public toJSON(): { [k: string]: any };
|
6667 | }
|
6668 |
|
6669 | /** Properties of a FieldDescriptorProto. */
|
6670 | interface IFieldDescriptorProto {
|
6671 |
|
6672 | /** FieldDescriptorProto name */
|
6673 | name?: (string|null);
|
6674 |
|
6675 | /** FieldDescriptorProto number */
|
6676 | number?: (number|null);
|
6677 |
|
6678 | /** FieldDescriptorProto label */
|
6679 | label?: (google.protobuf.FieldDescriptorProto.Label|keyof typeof google.protobuf.FieldDescriptorProto.Label|null);
|
6680 |
|
6681 | /** FieldDescriptorProto type */
|
6682 | type?: (google.protobuf.FieldDescriptorProto.Type|keyof typeof google.protobuf.FieldDescriptorProto.Type|null);
|
6683 |
|
6684 | /** FieldDescriptorProto typeName */
|
6685 | typeName?: (string|null);
|
6686 |
|
6687 | /** FieldDescriptorProto extendee */
|
6688 | extendee?: (string|null);
|
6689 |
|
6690 | /** FieldDescriptorProto defaultValue */
|
6691 | defaultValue?: (string|null);
|
6692 |
|
6693 | /** FieldDescriptorProto oneofIndex */
|
6694 | oneofIndex?: (number|null);
|
6695 |
|
6696 | /** FieldDescriptorProto jsonName */
|
6697 | jsonName?: (string|null);
|
6698 |
|
6699 | /** FieldDescriptorProto options */
|
6700 | options?: (google.protobuf.IFieldOptions|null);
|
6701 |
|
6702 | /** FieldDescriptorProto proto3Optional */
|
6703 | proto3Optional?: (boolean|null);
|
6704 | }
|
6705 |
|
6706 | /** Represents a FieldDescriptorProto. */
|
6707 | class FieldDescriptorProto implements IFieldDescriptorProto {
|
6708 |
|
6709 | /**
|
6710 | * Constructs a new FieldDescriptorProto.
|
6711 | * @param [properties] Properties to set
|
6712 | */
|
6713 | constructor(properties?: google.protobuf.IFieldDescriptorProto);
|
6714 |
|
6715 | /** FieldDescriptorProto name. */
|
6716 | public name: string;
|
6717 |
|
6718 | /** FieldDescriptorProto number. */
|
6719 | public number: number;
|
6720 |
|
6721 | /** FieldDescriptorProto label. */
|
6722 | public label: (google.protobuf.FieldDescriptorProto.Label|keyof typeof google.protobuf.FieldDescriptorProto.Label);
|
6723 |
|
6724 | /** FieldDescriptorProto type. */
|
6725 | public type: (google.protobuf.FieldDescriptorProto.Type|keyof typeof google.protobuf.FieldDescriptorProto.Type);
|
6726 |
|
6727 | /** FieldDescriptorProto typeName. */
|
6728 | public typeName: string;
|
6729 |
|
6730 | /** FieldDescriptorProto extendee. */
|
6731 | public extendee: string;
|
6732 |
|
6733 | /** FieldDescriptorProto defaultValue. */
|
6734 | public defaultValue: string;
|
6735 |
|
6736 | /** FieldDescriptorProto oneofIndex. */
|
6737 | public oneofIndex: number;
|
6738 |
|
6739 | /** FieldDescriptorProto jsonName. */
|
6740 | public jsonName: string;
|
6741 |
|
6742 | /** FieldDescriptorProto options. */
|
6743 | public options?: (google.protobuf.IFieldOptions|null);
|
6744 |
|
6745 | /** FieldDescriptorProto proto3Optional. */
|
6746 | public proto3Optional: boolean;
|
6747 |
|
6748 | /**
|
6749 | * Creates a new FieldDescriptorProto instance using the specified properties.
|
6750 | * @param [properties] Properties to set
|
6751 | * @returns FieldDescriptorProto instance
|
6752 | */
|
6753 | public static create(properties?: google.protobuf.IFieldDescriptorProto): google.protobuf.FieldDescriptorProto;
|
6754 |
|
6755 | /**
|
6756 | * Encodes the specified FieldDescriptorProto message. Does not implicitly { google.protobuf.FieldDescriptorProto.verify|verify} messages.
|
6757 | * message FieldDescriptorProto message or plain object to encode
|
6758 | * [writer] Writer to encode to
|
6759 | * Writer
|
6760 | */
|
6761 | public static encode(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
|
6762 |
|
6763 | /**
|
6764 | * Encodes the specified FieldDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages.
|
6765 | * @param message FieldDescriptorProto message or plain object to encode
|
6766 | * @param [writer] Writer to encode to
|
6767 | * @returns Writer
|
6768 | */
|
6769 | public static encodeDelimited(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
|
6770 |
|
6771 | /**
|
6772 | * Decodes a FieldDescriptorProto message from the specified reader or buffer.
|
6773 | * @param reader Reader or buffer to decode from
|
6774 | * @param [length] Message length if known beforehand
|
6775 | * @returns FieldDescriptorProto
|
6776 | * @throws {Error} If the payload is not a reader or valid buffer
|
6777 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
6778 | */
|
6779 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldDescriptorProto;
|
6780 |
|
6781 | /**
|
6782 | * Decodes a FieldDescriptorProto message from the specified reader or buffer, length delimited.
|
6783 | * @param reader Reader or buffer to decode from
|
6784 | * @returns FieldDescriptorProto
|
6785 | * @throws {Error} If the payload is not a reader or valid buffer
|
6786 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
6787 | */
|
6788 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldDescriptorProto;
|
6789 |
|
6790 | /**
|
6791 | * Verifies a FieldDescriptorProto message.
|
6792 | * @param message Plain object to verify
|
6793 | * @returns `null` if valid, otherwise the reason why it is not
|
6794 | */
|
6795 | public static verify(message: { [k: string]: any }): (string|null);
|
6796 |
|
6797 | /**
|
6798 | * Creates a FieldDescriptorProto message from a plain object. Also converts values to their respective internal types.
|
6799 | * @param object Plain object
|
6800 | * @returns FieldDescriptorProto
|
6801 | */
|
6802 | public static fromObject(object: { [k: string]: any }): google.protobuf.FieldDescriptorProto;
|
6803 |
|
6804 | /**
|
6805 | * Creates a plain object from a FieldDescriptorProto message. Also converts values to other types if specified.
|
6806 | * @param message FieldDescriptorProto
|
6807 | * @param [options] Conversion options
|
6808 | * @returns Plain object
|
6809 | */
|
6810 | public static toObject(message: google.protobuf.FieldDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
6811 |
|
6812 | /**
|
6813 | * Converts this FieldDescriptorProto to JSON.
|
6814 | * @returns JSON object
|
6815 | */
|
6816 | public toJSON(): { [k: string]: any };
|
6817 | }
|
6818 |
|
6819 | namespace FieldDescriptorProto {
|
6820 |
|
6821 | /** Type enum. */
|
6822 | enum Type {
|
6823 | TYPE_DOUBLE = 1,
|
6824 | TYPE_FLOAT = 2,
|
6825 | TYPE_INT64 = 3,
|
6826 | TYPE_UINT64 = 4,
|
6827 | TYPE_INT32 = 5,
|
6828 | TYPE_FIXED64 = 6,
|
6829 | TYPE_FIXED32 = 7,
|
6830 | TYPE_BOOL = 8,
|
6831 | TYPE_STRING = 9,
|
6832 | TYPE_GROUP = 10,
|
6833 | TYPE_MESSAGE = 11,
|
6834 | TYPE_BYTES = 12,
|
6835 | TYPE_UINT32 = 13,
|
6836 | TYPE_ENUM = 14,
|
6837 | TYPE_SFIXED32 = 15,
|
6838 | TYPE_SFIXED64 = 16,
|
6839 | TYPE_SINT32 = 17,
|
6840 | TYPE_SINT64 = 18
|
6841 | }
|
6842 |
|
6843 | /** Label enum. */
|
6844 | enum Label {
|
6845 | LABEL_OPTIONAL = 1,
|
6846 | LABEL_REQUIRED = 2,
|
6847 | LABEL_REPEATED = 3
|
6848 | }
|
6849 | }
|
6850 |
|
6851 | /** Properties of an OneofDescriptorProto. */
|
6852 | interface IOneofDescriptorProto {
|
6853 |
|
6854 | /** OneofDescriptorProto name */
|
6855 | name?: (string|null);
|
6856 |
|
6857 | /** OneofDescriptorProto options */
|
6858 | options?: (google.protobuf.IOneofOptions|null);
|
6859 | }
|
6860 |
|
6861 | /** Represents an OneofDescriptorProto. */
|
6862 | class OneofDescriptorProto implements IOneofDescriptorProto {
|
6863 |
|
6864 | /**
|
6865 | * Constructs a new OneofDescriptorProto.
|
6866 | * @param [properties] Properties to set
|
6867 | */
|
6868 | constructor(properties?: google.protobuf.IOneofDescriptorProto);
|
6869 |
|
6870 | /** OneofDescriptorProto name. */
|
6871 | public name: string;
|
6872 |
|
6873 | /** OneofDescriptorProto options. */
|
6874 | public options?: (google.protobuf.IOneofOptions|null);
|
6875 |
|
6876 | /**
|
6877 | * Creates a new OneofDescriptorProto instance using the specified properties.
|
6878 | * @param [properties] Properties to set
|
6879 | * @returns OneofDescriptorProto instance
|
6880 | */
|
6881 | public static create(properties?: google.protobuf.IOneofDescriptorProto): google.protobuf.OneofDescriptorProto;
|
6882 |
|
6883 | /**
|
6884 | * Encodes the specified OneofDescriptorProto message. Does not implicitly { google.protobuf.OneofDescriptorProto.verify|verify} messages.
|
6885 | * message OneofDescriptorProto message or plain object to encode
|
6886 | * [writer] Writer to encode to
|
6887 | * Writer
|
6888 | */
|
6889 | public static encode(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
|
6890 |
|
6891 | /**
|
6892 | * Encodes the specified OneofDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages.
|
6893 | * @param message OneofDescriptorProto message or plain object to encode
|
6894 | * @param [writer] Writer to encode to
|
6895 | * @returns Writer
|
6896 | */
|
6897 | public static encodeDelimited(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
|
6898 |
|
6899 | /**
|
6900 | * Decodes an OneofDescriptorProto message from the specified reader or buffer.
|
6901 | * @param reader Reader or buffer to decode from
|
6902 | * @param [length] Message length if known beforehand
|
6903 | * @returns OneofDescriptorProto
|
6904 | * @throws {Error} If the payload is not a reader or valid buffer
|
6905 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
6906 | */
|
6907 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofDescriptorProto;
|
6908 |
|
6909 | /**
|
6910 | * Decodes an OneofDescriptorProto message from the specified reader or buffer, length delimited.
|
6911 | * @param reader Reader or buffer to decode from
|
6912 | * @returns OneofDescriptorProto
|
6913 | * @throws {Error} If the payload is not a reader or valid buffer
|
6914 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
6915 | */
|
6916 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.OneofDescriptorProto;
|
6917 |
|
6918 | /**
|
6919 | * Verifies an OneofDescriptorProto message.
|
6920 | * @param message Plain object to verify
|
6921 | * @returns `null` if valid, otherwise the reason why it is not
|
6922 | */
|
6923 | public static verify(message: { [k: string]: any }): (string|null);
|
6924 |
|
6925 | /**
|
6926 | * Creates an OneofDescriptorProto message from a plain object. Also converts values to their respective internal types.
|
6927 | * @param object Plain object
|
6928 | * @returns OneofDescriptorProto
|
6929 | */
|
6930 | public static fromObject(object: { [k: string]: any }): google.protobuf.OneofDescriptorProto;
|
6931 |
|
6932 | /**
|
6933 | * Creates a plain object from an OneofDescriptorProto message. Also converts values to other types if specified.
|
6934 | * @param message OneofDescriptorProto
|
6935 | * @param [options] Conversion options
|
6936 | * @returns Plain object
|
6937 | */
|
6938 | public static toObject(message: google.protobuf.OneofDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
6939 |
|
6940 | /**
|
6941 | * Converts this OneofDescriptorProto to JSON.
|
6942 | * @returns JSON object
|
6943 | */
|
6944 | public toJSON(): { [k: string]: any };
|
6945 | }
|
6946 |
|
6947 | /** Properties of an EnumDescriptorProto. */
|
6948 | interface IEnumDescriptorProto {
|
6949 |
|
6950 | /** EnumDescriptorProto name */
|
6951 | name?: (string|null);
|
6952 |
|
6953 | /** EnumDescriptorProto value */
|
6954 | value?: (google.protobuf.IEnumValueDescriptorProto[]|null);
|
6955 |
|
6956 | /** EnumDescriptorProto options */
|
6957 | options?: (google.protobuf.IEnumOptions|null);
|
6958 |
|
6959 | /** EnumDescriptorProto reservedRange */
|
6960 | reservedRange?: (google.protobuf.EnumDescriptorProto.IEnumReservedRange[]|null);
|
6961 |
|
6962 | /** EnumDescriptorProto reservedName */
|
6963 | reservedName?: (string[]|null);
|
6964 | }
|
6965 |
|
6966 | /** Represents an EnumDescriptorProto. */
|
6967 | class EnumDescriptorProto implements IEnumDescriptorProto {
|
6968 |
|
6969 | /**
|
6970 | * Constructs a new EnumDescriptorProto.
|
6971 | * @param [properties] Properties to set
|
6972 | */
|
6973 | constructor(properties?: google.protobuf.IEnumDescriptorProto);
|
6974 |
|
6975 | /** EnumDescriptorProto name. */
|
6976 | public name: string;
|
6977 |
|
6978 | /** EnumDescriptorProto value. */
|
6979 | public value: google.protobuf.IEnumValueDescriptorProto[];
|
6980 |
|
6981 | /** EnumDescriptorProto options. */
|
6982 | public options?: (google.protobuf.IEnumOptions|null);
|
6983 |
|
6984 | /** EnumDescriptorProto reservedRange. */
|
6985 | public reservedRange: google.protobuf.EnumDescriptorProto.IEnumReservedRange[];
|
6986 |
|
6987 | /** EnumDescriptorProto reservedName. */
|
6988 | public reservedName: string[];
|
6989 |
|
6990 | /**
|
6991 | * Creates a new EnumDescriptorProto instance using the specified properties.
|
6992 | * @param [properties] Properties to set
|
6993 | * @returns EnumDescriptorProto instance
|
6994 | */
|
6995 | public static create(properties?: google.protobuf.IEnumDescriptorProto): google.protobuf.EnumDescriptorProto;
|
6996 |
|
6997 | /**
|
6998 | * Encodes the specified EnumDescriptorProto message. Does not implicitly { google.protobuf.EnumDescriptorProto.verify|verify} messages.
|
6999 | * message EnumDescriptorProto message or plain object to encode
|
7000 | * [writer] Writer to encode to
|
7001 | * Writer
|
7002 | */
|
7003 | public static encode(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
|
7004 |
|
7005 | /**
|
7006 | * Encodes the specified EnumDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages.
|
7007 | * @param message EnumDescriptorProto message or plain object to encode
|
7008 | * @param [writer] Writer to encode to
|
7009 | * @returns Writer
|
7010 | */
|
7011 | public static encodeDelimited(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
|
7012 |
|
7013 | /**
|
7014 | * Decodes an EnumDescriptorProto message from the specified reader or buffer.
|
7015 | * @param reader Reader or buffer to decode from
|
7016 | * @param [length] Message length if known beforehand
|
7017 | * @returns EnumDescriptorProto
|
7018 | * @throws {Error} If the payload is not a reader or valid buffer
|
7019 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
7020 | */
|
7021 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumDescriptorProto;
|
7022 |
|
7023 | /**
|
7024 | * Decodes an EnumDescriptorProto message from the specified reader or buffer, length delimited.
|
7025 | * @param reader Reader or buffer to decode from
|
7026 | * @returns EnumDescriptorProto
|
7027 | * @throws {Error} If the payload is not a reader or valid buffer
|
7028 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
7029 | */
|
7030 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumDescriptorProto;
|
7031 |
|
7032 | /**
|
7033 | * Verifies an EnumDescriptorProto message.
|
7034 | * @param message Plain object to verify
|
7035 | * @returns `null` if valid, otherwise the reason why it is not
|
7036 | */
|
7037 | public static verify(message: { [k: string]: any }): (string|null);
|
7038 |
|
7039 | /**
|
7040 | * Creates an EnumDescriptorProto message from a plain object. Also converts values to their respective internal types.
|
7041 | * @param object Plain object
|
7042 | * @returns EnumDescriptorProto
|
7043 | */
|
7044 | public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto;
|
7045 |
|
7046 | /**
|
7047 | * Creates a plain object from an EnumDescriptorProto message. Also converts values to other types if specified.
|
7048 | * @param message EnumDescriptorProto
|
7049 | * @param [options] Conversion options
|
7050 | * @returns Plain object
|
7051 | */
|
7052 | public static toObject(message: google.protobuf.EnumDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
7053 |
|
7054 | /**
|
7055 | * Converts this EnumDescriptorProto to JSON.
|
7056 | * @returns JSON object
|
7057 | */
|
7058 | public toJSON(): { [k: string]: any };
|
7059 | }
|
7060 |
|
7061 | namespace EnumDescriptorProto {
|
7062 |
|
7063 | /** Properties of an EnumReservedRange. */
|
7064 | interface IEnumReservedRange {
|
7065 |
|
7066 | /** EnumReservedRange start */
|
7067 | start?: (number|null);
|
7068 |
|
7069 | /** EnumReservedRange end */
|
7070 | end?: (number|null);
|
7071 | }
|
7072 |
|
7073 | /** Represents an EnumReservedRange. */
|
7074 | class EnumReservedRange implements IEnumReservedRange {
|
7075 |
|
7076 | /**
|
7077 | * Constructs a new EnumReservedRange.
|
7078 | * @param [properties] Properties to set
|
7079 | */
|
7080 | constructor(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange);
|
7081 |
|
7082 | /** EnumReservedRange start. */
|
7083 | public start: number;
|
7084 |
|
7085 | /** EnumReservedRange end. */
|
7086 | public end: number;
|
7087 |
|
7088 | /**
|
7089 | * Creates a new EnumReservedRange instance using the specified properties.
|
7090 | * @param [properties] Properties to set
|
7091 | * @returns EnumReservedRange instance
|
7092 | */
|
7093 | public static create(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange): google.protobuf.EnumDescriptorProto.EnumReservedRange;
|
7094 |
|
7095 | /**
|
7096 | * Encodes the specified EnumReservedRange message. Does not implicitly { google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages.
|
7097 | * message EnumReservedRange message or plain object to encode
|
7098 | * [writer] Writer to encode to
|
7099 | * Writer
|
7100 | */
|
7101 | public static encode(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
|
7102 |
|
7103 | /**
|
7104 | * Encodes the specified EnumReservedRange message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages.
|
7105 | * @param message EnumReservedRange message or plain object to encode
|
7106 | * @param [writer] Writer to encode to
|
7107 | * @returns Writer
|
7108 | */
|
7109 | public static encodeDelimited(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
|
7110 |
|
7111 | /**
|
7112 | * Decodes an EnumReservedRange message from the specified reader or buffer.
|
7113 | * @param reader Reader or buffer to decode from
|
7114 | * @param [length] Message length if known beforehand
|
7115 | * @returns EnumReservedRange
|
7116 | * @throws {Error} If the payload is not a reader or valid buffer
|
7117 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
7118 | */
|
7119 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumDescriptorProto.EnumReservedRange;
|
7120 |
|
7121 | /**
|
7122 | * Decodes an EnumReservedRange message from the specified reader or buffer, length delimited.
|
7123 | * @param reader Reader or buffer to decode from
|
7124 | * @returns EnumReservedRange
|
7125 | * @throws {Error} If the payload is not a reader or valid buffer
|
7126 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
7127 | */
|
7128 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumDescriptorProto.EnumReservedRange;
|
7129 |
|
7130 | /**
|
7131 | * Verifies an EnumReservedRange message.
|
7132 | * @param message Plain object to verify
|
7133 | * @returns `null` if valid, otherwise the reason why it is not
|
7134 | */
|
7135 | public static verify(message: { [k: string]: any }): (string|null);
|
7136 |
|
7137 | /**
|
7138 | * Creates an EnumReservedRange message from a plain object. Also converts values to their respective internal types.
|
7139 | * @param object Plain object
|
7140 | * @returns EnumReservedRange
|
7141 | */
|
7142 | public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto.EnumReservedRange;
|
7143 |
|
7144 | /**
|
7145 | * Creates a plain object from an EnumReservedRange message. Also converts values to other types if specified.
|
7146 | * @param message EnumReservedRange
|
7147 | * @param [options] Conversion options
|
7148 | * @returns Plain object
|
7149 | */
|
7150 | public static toObject(message: google.protobuf.EnumDescriptorProto.EnumReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
7151 |
|
7152 | /**
|
7153 | * Converts this EnumReservedRange to JSON.
|
7154 | * @returns JSON object
|
7155 | */
|
7156 | public toJSON(): { [k: string]: any };
|
7157 | }
|
7158 | }
|
7159 |
|
7160 | /** Properties of an EnumValueDescriptorProto. */
|
7161 | interface IEnumValueDescriptorProto {
|
7162 |
|
7163 | /** EnumValueDescriptorProto name */
|
7164 | name?: (string|null);
|
7165 |
|
7166 | /** EnumValueDescriptorProto number */
|
7167 | number?: (number|null);
|
7168 |
|
7169 | /** EnumValueDescriptorProto options */
|
7170 | options?: (google.protobuf.IEnumValueOptions|null);
|
7171 | }
|
7172 |
|
7173 | /** Represents an EnumValueDescriptorProto. */
|
7174 | class EnumValueDescriptorProto implements IEnumValueDescriptorProto {
|
7175 |
|
7176 | /**
|
7177 | * Constructs a new EnumValueDescriptorProto.
|
7178 | * @param [properties] Properties to set
|
7179 | */
|
7180 | constructor(properties?: google.protobuf.IEnumValueDescriptorProto);
|
7181 |
|
7182 | /** EnumValueDescriptorProto name. */
|
7183 | public name: string;
|
7184 |
|
7185 | /** EnumValueDescriptorProto number. */
|
7186 | public number: number;
|
7187 |
|
7188 | /** EnumValueDescriptorProto options. */
|
7189 | public options?: (google.protobuf.IEnumValueOptions|null);
|
7190 |
|
7191 | /**
|
7192 | * Creates a new EnumValueDescriptorProto instance using the specified properties.
|
7193 | * @param [properties] Properties to set
|
7194 | * @returns EnumValueDescriptorProto instance
|
7195 | */
|
7196 | public static create(properties?: google.protobuf.IEnumValueDescriptorProto): google.protobuf.EnumValueDescriptorProto;
|
7197 |
|
7198 | /**
|
7199 | * Encodes the specified EnumValueDescriptorProto message. Does not implicitly { google.protobuf.EnumValueDescriptorProto.verify|verify} messages.
|
7200 | * message EnumValueDescriptorProto message or plain object to encode
|
7201 | * [writer] Writer to encode to
|
7202 | * Writer
|
7203 | */
|
7204 | public static encode(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
|
7205 |
|
7206 | /**
|
7207 | * Encodes the specified EnumValueDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages.
|
7208 | * @param message EnumValueDescriptorProto message or plain object to encode
|
7209 | * @param [writer] Writer to encode to
|
7210 | * @returns Writer
|
7211 | */
|
7212 | public static encodeDelimited(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
|
7213 |
|
7214 | /**
|
7215 | * Decodes an EnumValueDescriptorProto message from the specified reader or buffer.
|
7216 | * @param reader Reader or buffer to decode from
|
7217 | * @param [length] Message length if known beforehand
|
7218 | * @returns EnumValueDescriptorProto
|
7219 | * @throws {Error} If the payload is not a reader or valid buffer
|
7220 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
7221 | */
|
7222 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueDescriptorProto;
|
7223 |
|
7224 | /**
|
7225 | * Decodes an EnumValueDescriptorProto message from the specified reader or buffer, length delimited.
|
7226 | * @param reader Reader or buffer to decode from
|
7227 | * @returns EnumValueDescriptorProto
|
7228 | * @throws {Error} If the payload is not a reader or valid buffer
|
7229 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
7230 | */
|
7231 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumValueDescriptorProto;
|
7232 |
|
7233 | /**
|
7234 | * Verifies an EnumValueDescriptorProto message.
|
7235 | * @param message Plain object to verify
|
7236 | * @returns `null` if valid, otherwise the reason why it is not
|
7237 | */
|
7238 | public static verify(message: { [k: string]: any }): (string|null);
|
7239 |
|
7240 | /**
|
7241 | * Creates an EnumValueDescriptorProto message from a plain object. Also converts values to their respective internal types.
|
7242 | * @param object Plain object
|
7243 | * @returns EnumValueDescriptorProto
|
7244 | */
|
7245 | public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueDescriptorProto;
|
7246 |
|
7247 | /**
|
7248 | * Creates a plain object from an EnumValueDescriptorProto message. Also converts values to other types if specified.
|
7249 | * @param message EnumValueDescriptorProto
|
7250 | * @param [options] Conversion options
|
7251 | * @returns Plain object
|
7252 | */
|
7253 | public static toObject(message: google.protobuf.EnumValueDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
7254 |
|
7255 | /**
|
7256 | * Converts this EnumValueDescriptorProto to JSON.
|
7257 | * @returns JSON object
|
7258 | */
|
7259 | public toJSON(): { [k: string]: any };
|
7260 | }
|
7261 |
|
7262 | /** Properties of a ServiceDescriptorProto. */
|
7263 | interface IServiceDescriptorProto {
|
7264 |
|
7265 | /** ServiceDescriptorProto name */
|
7266 | name?: (string|null);
|
7267 |
|
7268 | /** ServiceDescriptorProto method */
|
7269 | method?: (google.protobuf.IMethodDescriptorProto[]|null);
|
7270 |
|
7271 | /** ServiceDescriptorProto options */
|
7272 | options?: (google.protobuf.IServiceOptions|null);
|
7273 | }
|
7274 |
|
7275 | /** Represents a ServiceDescriptorProto. */
|
7276 | class ServiceDescriptorProto implements IServiceDescriptorProto {
|
7277 |
|
7278 | /**
|
7279 | * Constructs a new ServiceDescriptorProto.
|
7280 | * @param [properties] Properties to set
|
7281 | */
|
7282 | constructor(properties?: google.protobuf.IServiceDescriptorProto);
|
7283 |
|
7284 | /** ServiceDescriptorProto name. */
|
7285 | public name: string;
|
7286 |
|
7287 | /** ServiceDescriptorProto method. */
|
7288 | public method: google.protobuf.IMethodDescriptorProto[];
|
7289 |
|
7290 | /** ServiceDescriptorProto options. */
|
7291 | public options?: (google.protobuf.IServiceOptions|null);
|
7292 |
|
7293 | /**
|
7294 | * Creates a new ServiceDescriptorProto instance using the specified properties.
|
7295 | * @param [properties] Properties to set
|
7296 | * @returns ServiceDescriptorProto instance
|
7297 | */
|
7298 | public static create(properties?: google.protobuf.IServiceDescriptorProto): google.protobuf.ServiceDescriptorProto;
|
7299 |
|
7300 | /**
|
7301 | * Encodes the specified ServiceDescriptorProto message. Does not implicitly { google.protobuf.ServiceDescriptorProto.verify|verify} messages.
|
7302 | * message ServiceDescriptorProto message or plain object to encode
|
7303 | * [writer] Writer to encode to
|
7304 | * Writer
|
7305 | */
|
7306 | public static encode(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
|
7307 |
|
7308 | /**
|
7309 | * Encodes the specified ServiceDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages.
|
7310 | * @param message ServiceDescriptorProto message or plain object to encode
|
7311 | * @param [writer] Writer to encode to
|
7312 | * @returns Writer
|
7313 | */
|
7314 | public static encodeDelimited(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
|
7315 |
|
7316 | /**
|
7317 | * Decodes a ServiceDescriptorProto message from the specified reader or buffer.
|
7318 | * @param reader Reader or buffer to decode from
|
7319 | * @param [length] Message length if known beforehand
|
7320 | * @returns ServiceDescriptorProto
|
7321 | * @throws {Error} If the payload is not a reader or valid buffer
|
7322 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
7323 | */
|
7324 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceDescriptorProto;
|
7325 |
|
7326 | /**
|
7327 | * Decodes a ServiceDescriptorProto message from the specified reader or buffer, length delimited.
|
7328 | * @param reader Reader or buffer to decode from
|
7329 | * @returns ServiceDescriptorProto
|
7330 | * @throws {Error} If the payload is not a reader or valid buffer
|
7331 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
7332 | */
|
7333 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ServiceDescriptorProto;
|
7334 |
|
7335 | /**
|
7336 | * Verifies a ServiceDescriptorProto message.
|
7337 | * @param message Plain object to verify
|
7338 | * @returns `null` if valid, otherwise the reason why it is not
|
7339 | */
|
7340 | public static verify(message: { [k: string]: any }): (string|null);
|
7341 |
|
7342 | /**
|
7343 | * Creates a ServiceDescriptorProto message from a plain object. Also converts values to their respective internal types.
|
7344 | * @param object Plain object
|
7345 | * @returns ServiceDescriptorProto
|
7346 | */
|
7347 | public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceDescriptorProto;
|
7348 |
|
7349 | /**
|
7350 | * Creates a plain object from a ServiceDescriptorProto message. Also converts values to other types if specified.
|
7351 | * @param message ServiceDescriptorProto
|
7352 | * @param [options] Conversion options
|
7353 | * @returns Plain object
|
7354 | */
|
7355 | public static toObject(message: google.protobuf.ServiceDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
7356 |
|
7357 | /**
|
7358 | * Converts this ServiceDescriptorProto to JSON.
|
7359 | * @returns JSON object
|
7360 | */
|
7361 | public toJSON(): { [k: string]: any };
|
7362 | }
|
7363 |
|
7364 | /** Properties of a MethodDescriptorProto. */
|
7365 | interface IMethodDescriptorProto {
|
7366 |
|
7367 | /** MethodDescriptorProto name */
|
7368 | name?: (string|null);
|
7369 |
|
7370 | /** MethodDescriptorProto inputType */
|
7371 | inputType?: (string|null);
|
7372 |
|
7373 | /** MethodDescriptorProto outputType */
|
7374 | outputType?: (string|null);
|
7375 |
|
7376 | /** MethodDescriptorProto options */
|
7377 | options?: (google.protobuf.IMethodOptions|null);
|
7378 |
|
7379 | /** MethodDescriptorProto clientStreaming */
|
7380 | clientStreaming?: (boolean|null);
|
7381 |
|
7382 | /** MethodDescriptorProto serverStreaming */
|
7383 | serverStreaming?: (boolean|null);
|
7384 | }
|
7385 |
|
7386 | /** Represents a MethodDescriptorProto. */
|
7387 | class MethodDescriptorProto implements IMethodDescriptorProto {
|
7388 |
|
7389 | /**
|
7390 | * Constructs a new MethodDescriptorProto.
|
7391 | * @param [properties] Properties to set
|
7392 | */
|
7393 | constructor(properties?: google.protobuf.IMethodDescriptorProto);
|
7394 |
|
7395 | /** MethodDescriptorProto name. */
|
7396 | public name: string;
|
7397 |
|
7398 | /** MethodDescriptorProto inputType. */
|
7399 | public inputType: string;
|
7400 |
|
7401 | /** MethodDescriptorProto outputType. */
|
7402 | public outputType: string;
|
7403 |
|
7404 | /** MethodDescriptorProto options. */
|
7405 | public options?: (google.protobuf.IMethodOptions|null);
|
7406 |
|
7407 | /** MethodDescriptorProto clientStreaming. */
|
7408 | public clientStreaming: boolean;
|
7409 |
|
7410 | /** MethodDescriptorProto serverStreaming. */
|
7411 | public serverStreaming: boolean;
|
7412 |
|
7413 | /**
|
7414 | * Creates a new MethodDescriptorProto instance using the specified properties.
|
7415 | * @param [properties] Properties to set
|
7416 | * @returns MethodDescriptorProto instance
|
7417 | */
|
7418 | public static create(properties?: google.protobuf.IMethodDescriptorProto): google.protobuf.MethodDescriptorProto;
|
7419 |
|
7420 | /**
|
7421 | * Encodes the specified MethodDescriptorProto message. Does not implicitly { google.protobuf.MethodDescriptorProto.verify|verify} messages.
|
7422 | * message MethodDescriptorProto message or plain object to encode
|
7423 | * [writer] Writer to encode to
|
7424 | * Writer
|
7425 | */
|
7426 | public static encode(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
|
7427 |
|
7428 | /**
|
7429 | * Encodes the specified MethodDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages.
|
7430 | * @param message MethodDescriptorProto message or plain object to encode
|
7431 | * @param [writer] Writer to encode to
|
7432 | * @returns Writer
|
7433 | */
|
7434 | public static encodeDelimited(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
|
7435 |
|
7436 | /**
|
7437 | * Decodes a MethodDescriptorProto message from the specified reader or buffer.
|
7438 | * @param reader Reader or buffer to decode from
|
7439 | * @param [length] Message length if known beforehand
|
7440 | * @returns MethodDescriptorProto
|
7441 | * @throws {Error} If the payload is not a reader or valid buffer
|
7442 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
7443 | */
|
7444 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodDescriptorProto;
|
7445 |
|
7446 | /**
|
7447 | * Decodes a MethodDescriptorProto message from the specified reader or buffer, length delimited.
|
7448 | * @param reader Reader or buffer to decode from
|
7449 | * @returns MethodDescriptorProto
|
7450 | * @throws {Error} If the payload is not a reader or valid buffer
|
7451 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
7452 | */
|
7453 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MethodDescriptorProto;
|
7454 |
|
7455 | /**
|
7456 | * Verifies a MethodDescriptorProto message.
|
7457 | * @param message Plain object to verify
|
7458 | * @returns `null` if valid, otherwise the reason why it is not
|
7459 | */
|
7460 | public static verify(message: { [k: string]: any }): (string|null);
|
7461 |
|
7462 | /**
|
7463 | * Creates a MethodDescriptorProto message from a plain object. Also converts values to their respective internal types.
|
7464 | * @param object Plain object
|
7465 | * @returns MethodDescriptorProto
|
7466 | */
|
7467 | public static fromObject(object: { [k: string]: any }): google.protobuf.MethodDescriptorProto;
|
7468 |
|
7469 | /**
|
7470 | * Creates a plain object from a MethodDescriptorProto message. Also converts values to other types if specified.
|
7471 | * @param message MethodDescriptorProto
|
7472 | * @param [options] Conversion options
|
7473 | * @returns Plain object
|
7474 | */
|
7475 | public static toObject(message: google.protobuf.MethodDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
7476 |
|
7477 | /**
|
7478 | * Converts this MethodDescriptorProto to JSON.
|
7479 | * @returns JSON object
|
7480 | */
|
7481 | public toJSON(): { [k: string]: any };
|
7482 | }
|
7483 |
|
7484 | /** Properties of a FileOptions. */
|
7485 | interface IFileOptions {
|
7486 |
|
7487 | /** FileOptions javaPackage */
|
7488 | javaPackage?: (string|null);
|
7489 |
|
7490 | /** FileOptions javaOuterClassname */
|
7491 | javaOuterClassname?: (string|null);
|
7492 |
|
7493 | /** FileOptions javaMultipleFiles */
|
7494 | javaMultipleFiles?: (boolean|null);
|
7495 |
|
7496 | /** FileOptions javaGenerateEqualsAndHash */
|
7497 | javaGenerateEqualsAndHash?: (boolean|null);
|
7498 |
|
7499 | /** FileOptions javaStringCheckUtf8 */
|
7500 | javaStringCheckUtf8?: (boolean|null);
|
7501 |
|
7502 | /** FileOptions optimizeFor */
|
7503 | optimizeFor?: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode|null);
|
7504 |
|
7505 | /** FileOptions goPackage */
|
7506 | goPackage?: (string|null);
|
7507 |
|
7508 | /** FileOptions ccGenericServices */
|
7509 | ccGenericServices?: (boolean|null);
|
7510 |
|
7511 | /** FileOptions javaGenericServices */
|
7512 | javaGenericServices?: (boolean|null);
|
7513 |
|
7514 | /** FileOptions pyGenericServices */
|
7515 | pyGenericServices?: (boolean|null);
|
7516 |
|
7517 | /** FileOptions phpGenericServices */
|
7518 | phpGenericServices?: (boolean|null);
|
7519 |
|
7520 | /** FileOptions deprecated */
|
7521 | deprecated?: (boolean|null);
|
7522 |
|
7523 | /** FileOptions ccEnableArenas */
|
7524 | ccEnableArenas?: (boolean|null);
|
7525 |
|
7526 | /** FileOptions objcClassPrefix */
|
7527 | objcClassPrefix?: (string|null);
|
7528 |
|
7529 | /** FileOptions csharpNamespace */
|
7530 | csharpNamespace?: (string|null);
|
7531 |
|
7532 | /** FileOptions swiftPrefix */
|
7533 | swiftPrefix?: (string|null);
|
7534 |
|
7535 | /** FileOptions phpClassPrefix */
|
7536 | phpClassPrefix?: (string|null);
|
7537 |
|
7538 | /** FileOptions phpNamespace */
|
7539 | phpNamespace?: (string|null);
|
7540 |
|
7541 | /** FileOptions phpMetadataNamespace */
|
7542 | phpMetadataNamespace?: (string|null);
|
7543 |
|
7544 | /** FileOptions rubyPackage */
|
7545 | rubyPackage?: (string|null);
|
7546 |
|
7547 | /** FileOptions uninterpretedOption */
|
7548 | uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
|
7549 | }
|
7550 |
|
7551 | /** Represents a FileOptions. */
|
7552 | class FileOptions implements IFileOptions {
|
7553 |
|
7554 | /**
|
7555 | * Constructs a new FileOptions.
|
7556 | * @param [properties] Properties to set
|
7557 | */
|
7558 | constructor(properties?: google.protobuf.IFileOptions);
|
7559 |
|
7560 | /** FileOptions javaPackage. */
|
7561 | public javaPackage: string;
|
7562 |
|
7563 | /** FileOptions javaOuterClassname. */
|
7564 | public javaOuterClassname: string;
|
7565 |
|
7566 | /** FileOptions javaMultipleFiles. */
|
7567 | public javaMultipleFiles: boolean;
|
7568 |
|
7569 | /** FileOptions javaGenerateEqualsAndHash. */
|
7570 | public javaGenerateEqualsAndHash: boolean;
|
7571 |
|
7572 | /** FileOptions javaStringCheckUtf8. */
|
7573 | public javaStringCheckUtf8: boolean;
|
7574 |
|
7575 | /** FileOptions optimizeFor. */
|
7576 | public optimizeFor: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode);
|
7577 |
|
7578 | /** FileOptions goPackage. */
|
7579 | public goPackage: string;
|
7580 |
|
7581 | /** FileOptions ccGenericServices. */
|
7582 | public ccGenericServices: boolean;
|
7583 |
|
7584 | /** FileOptions javaGenericServices. */
|
7585 | public javaGenericServices: boolean;
|
7586 |
|
7587 | /** FileOptions pyGenericServices. */
|
7588 | public pyGenericServices: boolean;
|
7589 |
|
7590 | /** FileOptions phpGenericServices. */
|
7591 | public phpGenericServices: boolean;
|
7592 |
|
7593 | /** FileOptions deprecated. */
|
7594 | public deprecated: boolean;
|
7595 |
|
7596 | /** FileOptions ccEnableArenas. */
|
7597 | public ccEnableArenas: boolean;
|
7598 |
|
7599 | /** FileOptions objcClassPrefix. */
|
7600 | public objcClassPrefix: string;
|
7601 |
|
7602 | /** FileOptions csharpNamespace. */
|
7603 | public csharpNamespace: string;
|
7604 |
|
7605 | /** FileOptions swiftPrefix. */
|
7606 | public swiftPrefix: string;
|
7607 |
|
7608 | /** FileOptions phpClassPrefix. */
|
7609 | public phpClassPrefix: string;
|
7610 |
|
7611 | /** FileOptions phpNamespace. */
|
7612 | public phpNamespace: string;
|
7613 |
|
7614 | /** FileOptions phpMetadataNamespace. */
|
7615 | public phpMetadataNamespace: string;
|
7616 |
|
7617 | /** FileOptions rubyPackage. */
|
7618 | public rubyPackage: string;
|
7619 |
|
7620 | /** FileOptions uninterpretedOption. */
|
7621 | public uninterpretedOption: google.protobuf.IUninterpretedOption[];
|
7622 |
|
7623 | /**
|
7624 | * Creates a new FileOptions instance using the specified properties.
|
7625 | * @param [properties] Properties to set
|
7626 | * @returns FileOptions instance
|
7627 | */
|
7628 | public static create(properties?: google.protobuf.IFileOptions): google.protobuf.FileOptions;
|
7629 |
|
7630 | /**
|
7631 | * Encodes the specified FileOptions message. Does not implicitly { google.protobuf.FileOptions.verify|verify} messages.
|
7632 | * message FileOptions message or plain object to encode
|
7633 | * [writer] Writer to encode to
|
7634 | * Writer
|
7635 | */
|
7636 | public static encode(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer;
|
7637 |
|
7638 | /**
|
7639 | * Encodes the specified FileOptions message, length delimited. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages.
|
7640 | * @param message FileOptions message or plain object to encode
|
7641 | * @param [writer] Writer to encode to
|
7642 | * @returns Writer
|
7643 | */
|
7644 | public static encodeDelimited(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer;
|
7645 |
|
7646 | /**
|
7647 | * Decodes a FileOptions message from the specified reader or buffer.
|
7648 | * @param reader Reader or buffer to decode from
|
7649 | * @param [length] Message length if known beforehand
|
7650 | * @returns FileOptions
|
7651 | * @throws {Error} If the payload is not a reader or valid buffer
|
7652 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
7653 | */
|
7654 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileOptions;
|
7655 |
|
7656 | /**
|
7657 | * Decodes a FileOptions message from the specified reader or buffer, length delimited.
|
7658 | * @param reader Reader or buffer to decode from
|
7659 | * @returns FileOptions
|
7660 | * @throws {Error} If the payload is not a reader or valid buffer
|
7661 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
7662 | */
|
7663 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileOptions;
|
7664 |
|
7665 | /**
|
7666 | * Verifies a FileOptions message.
|
7667 | * @param message Plain object to verify
|
7668 | * @returns `null` if valid, otherwise the reason why it is not
|
7669 | */
|
7670 | public static verify(message: { [k: string]: any }): (string|null);
|
7671 |
|
7672 | /**
|
7673 | * Creates a FileOptions message from a plain object. Also converts values to their respective internal types.
|
7674 | * @param object Plain object
|
7675 | * @returns FileOptions
|
7676 | */
|
7677 | public static fromObject(object: { [k: string]: any }): google.protobuf.FileOptions;
|
7678 |
|
7679 | /**
|
7680 | * Creates a plain object from a FileOptions message. Also converts values to other types if specified.
|
7681 | * @param message FileOptions
|
7682 | * @param [options] Conversion options
|
7683 | * @returns Plain object
|
7684 | */
|
7685 | public static toObject(message: google.protobuf.FileOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
7686 |
|
7687 | /**
|
7688 | * Converts this FileOptions to JSON.
|
7689 | * @returns JSON object
|
7690 | */
|
7691 | public toJSON(): { [k: string]: any };
|
7692 | }
|
7693 |
|
7694 | namespace FileOptions {
|
7695 |
|
7696 | /** OptimizeMode enum. */
|
7697 | enum OptimizeMode {
|
7698 | SPEED = 1,
|
7699 | CODE_SIZE = 2,
|
7700 | LITE_RUNTIME = 3
|
7701 | }
|
7702 | }
|
7703 |
|
7704 | /** Properties of a MessageOptions. */
|
7705 | interface IMessageOptions {
|
7706 |
|
7707 | /** MessageOptions messageSetWireFormat */
|
7708 | messageSetWireFormat?: (boolean|null);
|
7709 |
|
7710 | /** MessageOptions noStandardDescriptorAccessor */
|
7711 | noStandardDescriptorAccessor?: (boolean|null);
|
7712 |
|
7713 | /** MessageOptions deprecated */
|
7714 | deprecated?: (boolean|null);
|
7715 |
|
7716 | /** MessageOptions mapEntry */
|
7717 | mapEntry?: (boolean|null);
|
7718 |
|
7719 | /** MessageOptions uninterpretedOption */
|
7720 | uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
|
7721 | }
|
7722 |
|
7723 | /** Represents a MessageOptions. */
|
7724 | class MessageOptions implements IMessageOptions {
|
7725 |
|
7726 | /**
|
7727 | * Constructs a new MessageOptions.
|
7728 | * @param [properties] Properties to set
|
7729 | */
|
7730 | constructor(properties?: google.protobuf.IMessageOptions);
|
7731 |
|
7732 | /** MessageOptions messageSetWireFormat. */
|
7733 | public messageSetWireFormat: boolean;
|
7734 |
|
7735 | /** MessageOptions noStandardDescriptorAccessor. */
|
7736 | public noStandardDescriptorAccessor: boolean;
|
7737 |
|
7738 | /** MessageOptions deprecated. */
|
7739 | public deprecated: boolean;
|
7740 |
|
7741 | /** MessageOptions mapEntry. */
|
7742 | public mapEntry: boolean;
|
7743 |
|
7744 | /** MessageOptions uninterpretedOption. */
|
7745 | public uninterpretedOption: google.protobuf.IUninterpretedOption[];
|
7746 |
|
7747 | /**
|
7748 | * Creates a new MessageOptions instance using the specified properties.
|
7749 | * @param [properties] Properties to set
|
7750 | * @returns MessageOptions instance
|
7751 | */
|
7752 | public static create(properties?: google.protobuf.IMessageOptions): google.protobuf.MessageOptions;
|
7753 |
|
7754 | /**
|
7755 | * Encodes the specified MessageOptions message. Does not implicitly { google.protobuf.MessageOptions.verify|verify} messages.
|
7756 | * message MessageOptions message or plain object to encode
|
7757 | * [writer] Writer to encode to
|
7758 | * Writer
|
7759 | */
|
7760 | public static encode(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer;
|
7761 |
|
7762 | /**
|
7763 | * Encodes the specified MessageOptions message, length delimited. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages.
|
7764 | * @param message MessageOptions message or plain object to encode
|
7765 | * @param [writer] Writer to encode to
|
7766 | * @returns Writer
|
7767 | */
|
7768 | public static encodeDelimited(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer;
|
7769 |
|
7770 | /**
|
7771 | * Decodes a MessageOptions message from the specified reader or buffer.
|
7772 | * @param reader Reader or buffer to decode from
|
7773 | * @param [length] Message length if known beforehand
|
7774 | * @returns MessageOptions
|
7775 | * @throws {Error} If the payload is not a reader or valid buffer
|
7776 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
7777 | */
|
7778 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MessageOptions;
|
7779 |
|
7780 | /**
|
7781 | * Decodes a MessageOptions message from the specified reader or buffer, length delimited.
|
7782 | * @param reader Reader or buffer to decode from
|
7783 | * @returns MessageOptions
|
7784 | * @throws {Error} If the payload is not a reader or valid buffer
|
7785 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
7786 | */
|
7787 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MessageOptions;
|
7788 |
|
7789 | /**
|
7790 | * Verifies a MessageOptions message.
|
7791 | * @param message Plain object to verify
|
7792 | * @returns `null` if valid, otherwise the reason why it is not
|
7793 | */
|
7794 | public static verify(message: { [k: string]: any }): (string|null);
|
7795 |
|
7796 | /**
|
7797 | * Creates a MessageOptions message from a plain object. Also converts values to their respective internal types.
|
7798 | * @param object Plain object
|
7799 | * @returns MessageOptions
|
7800 | */
|
7801 | public static fromObject(object: { [k: string]: any }): google.protobuf.MessageOptions;
|
7802 |
|
7803 | /**
|
7804 | * Creates a plain object from a MessageOptions message. Also converts values to other types if specified.
|
7805 | * @param message MessageOptions
|
7806 | * @param [options] Conversion options
|
7807 | * @returns Plain object
|
7808 | */
|
7809 | public static toObject(message: google.protobuf.MessageOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
7810 |
|
7811 | /**
|
7812 | * Converts this MessageOptions to JSON.
|
7813 | * @returns JSON object
|
7814 | */
|
7815 | public toJSON(): { [k: string]: any };
|
7816 | }
|
7817 |
|
7818 | /** Properties of a FieldOptions. */
|
7819 | interface IFieldOptions {
|
7820 |
|
7821 | /** FieldOptions ctype */
|
7822 | ctype?: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType|null);
|
7823 |
|
7824 | /** FieldOptions packed */
|
7825 | packed?: (boolean|null);
|
7826 |
|
7827 | /** FieldOptions jstype */
|
7828 | jstype?: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType|null);
|
7829 |
|
7830 | /** FieldOptions lazy */
|
7831 | lazy?: (boolean|null);
|
7832 |
|
7833 | /** FieldOptions deprecated */
|
7834 | deprecated?: (boolean|null);
|
7835 |
|
7836 | /** FieldOptions weak */
|
7837 | weak?: (boolean|null);
|
7838 |
|
7839 | /** FieldOptions uninterpretedOption */
|
7840 | uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
|
7841 |
|
7842 | /** FieldOptions .google.api.fieldBehavior */
|
7843 | ".google.api.fieldBehavior"?: (google.api.FieldBehavior[]|null);
|
7844 | }
|
7845 |
|
7846 | /** Represents a FieldOptions. */
|
7847 | class FieldOptions implements IFieldOptions {
|
7848 |
|
7849 | /**
|
7850 | * Constructs a new FieldOptions.
|
7851 | * @param [properties] Properties to set
|
7852 | */
|
7853 | constructor(properties?: google.protobuf.IFieldOptions);
|
7854 |
|
7855 | /** FieldOptions ctype. */
|
7856 | public ctype: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType);
|
7857 |
|
7858 | /** FieldOptions packed. */
|
7859 | public packed: boolean;
|
7860 |
|
7861 | /** FieldOptions jstype. */
|
7862 | public jstype: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType);
|
7863 |
|
7864 | /** FieldOptions lazy. */
|
7865 | public lazy: boolean;
|
7866 |
|
7867 | /** FieldOptions deprecated. */
|
7868 | public deprecated: boolean;
|
7869 |
|
7870 | /** FieldOptions weak. */
|
7871 | public weak: boolean;
|
7872 |
|
7873 | /** FieldOptions uninterpretedOption. */
|
7874 | public uninterpretedOption: google.protobuf.IUninterpretedOption[];
|
7875 |
|
7876 | /**
|
7877 | * Creates a new FieldOptions instance using the specified properties.
|
7878 | * @param [properties] Properties to set
|
7879 | * @returns FieldOptions instance
|
7880 | */
|
7881 | public static create(properties?: google.protobuf.IFieldOptions): google.protobuf.FieldOptions;
|
7882 |
|
7883 | /**
|
7884 | * Encodes the specified FieldOptions message. Does not implicitly { google.protobuf.FieldOptions.verify|verify} messages.
|
7885 | * message FieldOptions message or plain object to encode
|
7886 | * [writer] Writer to encode to
|
7887 | * Writer
|
7888 | */
|
7889 | public static encode(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer;
|
7890 |
|
7891 | /**
|
7892 | * Encodes the specified FieldOptions message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages.
|
7893 | * @param message FieldOptions message or plain object to encode
|
7894 | * @param [writer] Writer to encode to
|
7895 | * @returns Writer
|
7896 | */
|
7897 | public static encodeDelimited(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer;
|
7898 |
|
7899 | /**
|
7900 | * Decodes a FieldOptions message from the specified reader or buffer.
|
7901 | * @param reader Reader or buffer to decode from
|
7902 | * @param [length] Message length if known beforehand
|
7903 | * @returns FieldOptions
|
7904 | * @throws {Error} If the payload is not a reader or valid buffer
|
7905 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
7906 | */
|
7907 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldOptions;
|
7908 |
|
7909 | /**
|
7910 | * Decodes a FieldOptions message from the specified reader or buffer, length delimited.
|
7911 | * @param reader Reader or buffer to decode from
|
7912 | * @returns FieldOptions
|
7913 | * @throws {Error} If the payload is not a reader or valid buffer
|
7914 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
7915 | */
|
7916 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldOptions;
|
7917 |
|
7918 | /**
|
7919 | * Verifies a FieldOptions message.
|
7920 | * @param message Plain object to verify
|
7921 | * @returns `null` if valid, otherwise the reason why it is not
|
7922 | */
|
7923 | public static verify(message: { [k: string]: any }): (string|null);
|
7924 |
|
7925 | /**
|
7926 | * Creates a FieldOptions message from a plain object. Also converts values to their respective internal types.
|
7927 | * @param object Plain object
|
7928 | * @returns FieldOptions
|
7929 | */
|
7930 | public static fromObject(object: { [k: string]: any }): google.protobuf.FieldOptions;
|
7931 |
|
7932 | /**
|
7933 | * Creates a plain object from a FieldOptions message. Also converts values to other types if specified.
|
7934 | * @param message FieldOptions
|
7935 | * @param [options] Conversion options
|
7936 | * @returns Plain object
|
7937 | */
|
7938 | public static toObject(message: google.protobuf.FieldOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
7939 |
|
7940 | /**
|
7941 | * Converts this FieldOptions to JSON.
|
7942 | * @returns JSON object
|
7943 | */
|
7944 | public toJSON(): { [k: string]: any };
|
7945 | }
|
7946 |
|
7947 | namespace FieldOptions {
|
7948 |
|
7949 | /** CType enum. */
|
7950 | enum CType {
|
7951 | STRING = 0,
|
7952 | CORD = 1,
|
7953 | STRING_PIECE = 2
|
7954 | }
|
7955 |
|
7956 | /** JSType enum. */
|
7957 | enum JSType {
|
7958 | JS_NORMAL = 0,
|
7959 | JS_STRING = 1,
|
7960 | JS_NUMBER = 2
|
7961 | }
|
7962 | }
|
7963 |
|
7964 | /** Properties of an OneofOptions. */
|
7965 | interface IOneofOptions {
|
7966 |
|
7967 | /** OneofOptions uninterpretedOption */
|
7968 | uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
|
7969 | }
|
7970 |
|
7971 | /** Represents an OneofOptions. */
|
7972 | class OneofOptions implements IOneofOptions {
|
7973 |
|
7974 | /**
|
7975 | * Constructs a new OneofOptions.
|
7976 | * @param [properties] Properties to set
|
7977 | */
|
7978 | constructor(properties?: google.protobuf.IOneofOptions);
|
7979 |
|
7980 | /** OneofOptions uninterpretedOption. */
|
7981 | public uninterpretedOption: google.protobuf.IUninterpretedOption[];
|
7982 |
|
7983 | /**
|
7984 | * Creates a new OneofOptions instance using the specified properties.
|
7985 | * @param [properties] Properties to set
|
7986 | * @returns OneofOptions instance
|
7987 | */
|
7988 | public static create(properties?: google.protobuf.IOneofOptions): google.protobuf.OneofOptions;
|
7989 |
|
7990 | /**
|
7991 | * Encodes the specified OneofOptions message. Does not implicitly { google.protobuf.OneofOptions.verify|verify} messages.
|
7992 | * message OneofOptions message or plain object to encode
|
7993 | * [writer] Writer to encode to
|
7994 | * Writer
|
7995 | */
|
7996 | public static encode(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer;
|
7997 |
|
7998 | /**
|
7999 | * Encodes the specified OneofOptions message, length delimited. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages.
|
8000 | * @param message OneofOptions message or plain object to encode
|
8001 | * @param [writer] Writer to encode to
|
8002 | * @returns Writer
|
8003 | */
|
8004 | public static encodeDelimited(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer;
|
8005 |
|
8006 | /**
|
8007 | * Decodes an OneofOptions message from the specified reader or buffer.
|
8008 | * @param reader Reader or buffer to decode from
|
8009 | * @param [length] Message length if known beforehand
|
8010 | * @returns OneofOptions
|
8011 | * @throws {Error} If the payload is not a reader or valid buffer
|
8012 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
8013 | */
|
8014 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofOptions;
|
8015 |
|
8016 | /**
|
8017 | * Decodes an OneofOptions message from the specified reader or buffer, length delimited.
|
8018 | * @param reader Reader or buffer to decode from
|
8019 | * @returns OneofOptions
|
8020 | * @throws {Error} If the payload is not a reader or valid buffer
|
8021 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
8022 | */
|
8023 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.OneofOptions;
|
8024 |
|
8025 | /**
|
8026 | * Verifies an OneofOptions message.
|
8027 | * @param message Plain object to verify
|
8028 | * @returns `null` if valid, otherwise the reason why it is not
|
8029 | */
|
8030 | public static verify(message: { [k: string]: any }): (string|null);
|
8031 |
|
8032 | /**
|
8033 | * Creates an OneofOptions message from a plain object. Also converts values to their respective internal types.
|
8034 | * @param object Plain object
|
8035 | * @returns OneofOptions
|
8036 | */
|
8037 | public static fromObject(object: { [k: string]: any }): google.protobuf.OneofOptions;
|
8038 |
|
8039 | /**
|
8040 | * Creates a plain object from an OneofOptions message. Also converts values to other types if specified.
|
8041 | * @param message OneofOptions
|
8042 | * @param [options] Conversion options
|
8043 | * @returns Plain object
|
8044 | */
|
8045 | public static toObject(message: google.protobuf.OneofOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
8046 |
|
8047 | /**
|
8048 | * Converts this OneofOptions to JSON.
|
8049 | * @returns JSON object
|
8050 | */
|
8051 | public toJSON(): { [k: string]: any };
|
8052 | }
|
8053 |
|
8054 | /** Properties of an EnumOptions. */
|
8055 | interface IEnumOptions {
|
8056 |
|
8057 | /** EnumOptions allowAlias */
|
8058 | allowAlias?: (boolean|null);
|
8059 |
|
8060 | /** EnumOptions deprecated */
|
8061 | deprecated?: (boolean|null);
|
8062 |
|
8063 | /** EnumOptions uninterpretedOption */
|
8064 | uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
|
8065 | }
|
8066 |
|
8067 | /** Represents an EnumOptions. */
|
8068 | class EnumOptions implements IEnumOptions {
|
8069 |
|
8070 | /**
|
8071 | * Constructs a new EnumOptions.
|
8072 | * @param [properties] Properties to set
|
8073 | */
|
8074 | constructor(properties?: google.protobuf.IEnumOptions);
|
8075 |
|
8076 | /** EnumOptions allowAlias. */
|
8077 | public allowAlias: boolean;
|
8078 |
|
8079 | /** EnumOptions deprecated. */
|
8080 | public deprecated: boolean;
|
8081 |
|
8082 | /** EnumOptions uninterpretedOption. */
|
8083 | public uninterpretedOption: google.protobuf.IUninterpretedOption[];
|
8084 |
|
8085 | /**
|
8086 | * Creates a new EnumOptions instance using the specified properties.
|
8087 | * @param [properties] Properties to set
|
8088 | * @returns EnumOptions instance
|
8089 | */
|
8090 | public static create(properties?: google.protobuf.IEnumOptions): google.protobuf.EnumOptions;
|
8091 |
|
8092 | /**
|
8093 | * Encodes the specified EnumOptions message. Does not implicitly { google.protobuf.EnumOptions.verify|verify} messages.
|
8094 | * message EnumOptions message or plain object to encode
|
8095 | * [writer] Writer to encode to
|
8096 | * Writer
|
8097 | */
|
8098 | public static encode(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer;
|
8099 |
|
8100 | /**
|
8101 | * Encodes the specified EnumOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages.
|
8102 | * @param message EnumOptions message or plain object to encode
|
8103 | * @param [writer] Writer to encode to
|
8104 | * @returns Writer
|
8105 | */
|
8106 | public static encodeDelimited(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer;
|
8107 |
|
8108 | /**
|
8109 | * Decodes an EnumOptions message from the specified reader or buffer.
|
8110 | * @param reader Reader or buffer to decode from
|
8111 | * @param [length] Message length if known beforehand
|
8112 | * @returns EnumOptions
|
8113 | * @throws {Error} If the payload is not a reader or valid buffer
|
8114 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
8115 | */
|
8116 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumOptions;
|
8117 |
|
8118 | /**
|
8119 | * Decodes an EnumOptions message from the specified reader or buffer, length delimited.
|
8120 | * @param reader Reader or buffer to decode from
|
8121 | * @returns EnumOptions
|
8122 | * @throws {Error} If the payload is not a reader or valid buffer
|
8123 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
8124 | */
|
8125 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumOptions;
|
8126 |
|
8127 | /**
|
8128 | * Verifies an EnumOptions message.
|
8129 | * @param message Plain object to verify
|
8130 | * @returns `null` if valid, otherwise the reason why it is not
|
8131 | */
|
8132 | public static verify(message: { [k: string]: any }): (string|null);
|
8133 |
|
8134 | /**
|
8135 | * Creates an EnumOptions message from a plain object. Also converts values to their respective internal types.
|
8136 | * @param object Plain object
|
8137 | * @returns EnumOptions
|
8138 | */
|
8139 | public static fromObject(object: { [k: string]: any }): google.protobuf.EnumOptions;
|
8140 |
|
8141 | /**
|
8142 | * Creates a plain object from an EnumOptions message. Also converts values to other types if specified.
|
8143 | * @param message EnumOptions
|
8144 | * @param [options] Conversion options
|
8145 | * @returns Plain object
|
8146 | */
|
8147 | public static toObject(message: google.protobuf.EnumOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
8148 |
|
8149 | /**
|
8150 | * Converts this EnumOptions to JSON.
|
8151 | * @returns JSON object
|
8152 | */
|
8153 | public toJSON(): { [k: string]: any };
|
8154 | }
|
8155 |
|
8156 | /** Properties of an EnumValueOptions. */
|
8157 | interface IEnumValueOptions {
|
8158 |
|
8159 | /** EnumValueOptions deprecated */
|
8160 | deprecated?: (boolean|null);
|
8161 |
|
8162 | /** EnumValueOptions uninterpretedOption */
|
8163 | uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
|
8164 | }
|
8165 |
|
8166 | /** Represents an EnumValueOptions. */
|
8167 | class EnumValueOptions implements IEnumValueOptions {
|
8168 |
|
8169 | /**
|
8170 | * Constructs a new EnumValueOptions.
|
8171 | * @param [properties] Properties to set
|
8172 | */
|
8173 | constructor(properties?: google.protobuf.IEnumValueOptions);
|
8174 |
|
8175 | /** EnumValueOptions deprecated. */
|
8176 | public deprecated: boolean;
|
8177 |
|
8178 | /** EnumValueOptions uninterpretedOption. */
|
8179 | public uninterpretedOption: google.protobuf.IUninterpretedOption[];
|
8180 |
|
8181 | /**
|
8182 | * Creates a new EnumValueOptions instance using the specified properties.
|
8183 | * @param [properties] Properties to set
|
8184 | * @returns EnumValueOptions instance
|
8185 | */
|
8186 | public static create(properties?: google.protobuf.IEnumValueOptions): google.protobuf.EnumValueOptions;
|
8187 |
|
8188 | /**
|
8189 | * Encodes the specified EnumValueOptions message. Does not implicitly { google.protobuf.EnumValueOptions.verify|verify} messages.
|
8190 | * message EnumValueOptions message or plain object to encode
|
8191 | * [writer] Writer to encode to
|
8192 | * Writer
|
8193 | */
|
8194 | public static encode(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer;
|
8195 |
|
8196 | /**
|
8197 | * Encodes the specified EnumValueOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages.
|
8198 | * @param message EnumValueOptions message or plain object to encode
|
8199 | * @param [writer] Writer to encode to
|
8200 | * @returns Writer
|
8201 | */
|
8202 | public static encodeDelimited(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer;
|
8203 |
|
8204 | /**
|
8205 | * Decodes an EnumValueOptions message from the specified reader or buffer.
|
8206 | * @param reader Reader or buffer to decode from
|
8207 | * @param [length] Message length if known beforehand
|
8208 | * @returns EnumValueOptions
|
8209 | * @throws {Error} If the payload is not a reader or valid buffer
|
8210 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
8211 | */
|
8212 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueOptions;
|
8213 |
|
8214 | /**
|
8215 | * Decodes an EnumValueOptions message from the specified reader or buffer, length delimited.
|
8216 | * @param reader Reader or buffer to decode from
|
8217 | * @returns EnumValueOptions
|
8218 | * @throws {Error} If the payload is not a reader or valid buffer
|
8219 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
8220 | */
|
8221 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumValueOptions;
|
8222 |
|
8223 | /**
|
8224 | * Verifies an EnumValueOptions message.
|
8225 | * @param message Plain object to verify
|
8226 | * @returns `null` if valid, otherwise the reason why it is not
|
8227 | */
|
8228 | public static verify(message: { [k: string]: any }): (string|null);
|
8229 |
|
8230 | /**
|
8231 | * Creates an EnumValueOptions message from a plain object. Also converts values to their respective internal types.
|
8232 | * @param object Plain object
|
8233 | * @returns EnumValueOptions
|
8234 | */
|
8235 | public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueOptions;
|
8236 |
|
8237 | /**
|
8238 | * Creates a plain object from an EnumValueOptions message. Also converts values to other types if specified.
|
8239 | * @param message EnumValueOptions
|
8240 | * @param [options] Conversion options
|
8241 | * @returns Plain object
|
8242 | */
|
8243 | public static toObject(message: google.protobuf.EnumValueOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
8244 |
|
8245 | /**
|
8246 | * Converts this EnumValueOptions to JSON.
|
8247 | * @returns JSON object
|
8248 | */
|
8249 | public toJSON(): { [k: string]: any };
|
8250 | }
|
8251 |
|
8252 | /** Properties of a ServiceOptions. */
|
8253 | interface IServiceOptions {
|
8254 |
|
8255 | /** ServiceOptions deprecated */
|
8256 | deprecated?: (boolean|null);
|
8257 |
|
8258 | /** ServiceOptions uninterpretedOption */
|
8259 | uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
|
8260 |
|
8261 | /** ServiceOptions .google.api.defaultHost */
|
8262 | ".google.api.defaultHost"?: (string|null);
|
8263 |
|
8264 | /** ServiceOptions .google.api.oauthScopes */
|
8265 | ".google.api.oauthScopes"?: (string|null);
|
8266 | }
|
8267 |
|
8268 | /** Represents a ServiceOptions. */
|
8269 | class ServiceOptions implements IServiceOptions {
|
8270 |
|
8271 | /**
|
8272 | * Constructs a new ServiceOptions.
|
8273 | * @param [properties] Properties to set
|
8274 | */
|
8275 | constructor(properties?: google.protobuf.IServiceOptions);
|
8276 |
|
8277 | /** ServiceOptions deprecated. */
|
8278 | public deprecated: boolean;
|
8279 |
|
8280 | /** ServiceOptions uninterpretedOption. */
|
8281 | public uninterpretedOption: google.protobuf.IUninterpretedOption[];
|
8282 |
|
8283 | /**
|
8284 | * Creates a new ServiceOptions instance using the specified properties.
|
8285 | * @param [properties] Properties to set
|
8286 | * @returns ServiceOptions instance
|
8287 | */
|
8288 | public static create(properties?: google.protobuf.IServiceOptions): google.protobuf.ServiceOptions;
|
8289 |
|
8290 | /**
|
8291 | * Encodes the specified ServiceOptions message. Does not implicitly { google.protobuf.ServiceOptions.verify|verify} messages.
|
8292 | * message ServiceOptions message or plain object to encode
|
8293 | * [writer] Writer to encode to
|
8294 | * Writer
|
8295 | */
|
8296 | public static encode(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer;
|
8297 |
|
8298 | /**
|
8299 | * Encodes the specified ServiceOptions message, length delimited. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages.
|
8300 | * @param message ServiceOptions message or plain object to encode
|
8301 | * @param [writer] Writer to encode to
|
8302 | * @returns Writer
|
8303 | */
|
8304 | public static encodeDelimited(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer;
|
8305 |
|
8306 | /**
|
8307 | * Decodes a ServiceOptions message from the specified reader or buffer.
|
8308 | * @param reader Reader or buffer to decode from
|
8309 | * @param [length] Message length if known beforehand
|
8310 | * @returns ServiceOptions
|
8311 | * @throws {Error} If the payload is not a reader or valid buffer
|
8312 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
8313 | */
|
8314 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceOptions;
|
8315 |
|
8316 | /**
|
8317 | * Decodes a ServiceOptions message from the specified reader or buffer, length delimited.
|
8318 | * @param reader Reader or buffer to decode from
|
8319 | * @returns ServiceOptions
|
8320 | * @throws {Error} If the payload is not a reader or valid buffer
|
8321 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
8322 | */
|
8323 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ServiceOptions;
|
8324 |
|
8325 | /**
|
8326 | * Verifies a ServiceOptions message.
|
8327 | * @param message Plain object to verify
|
8328 | * @returns `null` if valid, otherwise the reason why it is not
|
8329 | */
|
8330 | public static verify(message: { [k: string]: any }): (string|null);
|
8331 |
|
8332 | /**
|
8333 | * Creates a ServiceOptions message from a plain object. Also converts values to their respective internal types.
|
8334 | * @param object Plain object
|
8335 | * @returns ServiceOptions
|
8336 | */
|
8337 | public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceOptions;
|
8338 |
|
8339 | /**
|
8340 | * Creates a plain object from a ServiceOptions message. Also converts values to other types if specified.
|
8341 | * @param message ServiceOptions
|
8342 | * @param [options] Conversion options
|
8343 | * @returns Plain object
|
8344 | */
|
8345 | public static toObject(message: google.protobuf.ServiceOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
8346 |
|
8347 | /**
|
8348 | * Converts this ServiceOptions to JSON.
|
8349 | * @returns JSON object
|
8350 | */
|
8351 | public toJSON(): { [k: string]: any };
|
8352 | }
|
8353 |
|
8354 | /** Properties of a MethodOptions. */
|
8355 | interface IMethodOptions {
|
8356 |
|
8357 | /** MethodOptions deprecated */
|
8358 | deprecated?: (boolean|null);
|
8359 |
|
8360 | /** MethodOptions idempotencyLevel */
|
8361 | idempotencyLevel?: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel|null);
|
8362 |
|
8363 | /** MethodOptions uninterpretedOption */
|
8364 | uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
|
8365 |
|
8366 | /** MethodOptions .google.api.http */
|
8367 | ".google.api.http"?: (google.api.IHttpRule|null);
|
8368 |
|
8369 | /** MethodOptions .google.api.methodSignature */
|
8370 | ".google.api.methodSignature"?: (string[]|null);
|
8371 | }
|
8372 |
|
8373 | /** Represents a MethodOptions. */
|
8374 | class MethodOptions implements IMethodOptions {
|
8375 |
|
8376 | /**
|
8377 | * Constructs a new MethodOptions.
|
8378 | * @param [properties] Properties to set
|
8379 | */
|
8380 | constructor(properties?: google.protobuf.IMethodOptions);
|
8381 |
|
8382 | /** MethodOptions deprecated. */
|
8383 | public deprecated: boolean;
|
8384 |
|
8385 | /** MethodOptions idempotencyLevel. */
|
8386 | public idempotencyLevel: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel);
|
8387 |
|
8388 | /** MethodOptions uninterpretedOption. */
|
8389 | public uninterpretedOption: google.protobuf.IUninterpretedOption[];
|
8390 |
|
8391 | /**
|
8392 | * Creates a new MethodOptions instance using the specified properties.
|
8393 | * @param [properties] Properties to set
|
8394 | * @returns MethodOptions instance
|
8395 | */
|
8396 | public static create(properties?: google.protobuf.IMethodOptions): google.protobuf.MethodOptions;
|
8397 |
|
8398 | /**
|
8399 | * Encodes the specified MethodOptions message. Does not implicitly { google.protobuf.MethodOptions.verify|verify} messages.
|
8400 | * message MethodOptions message or plain object to encode
|
8401 | * [writer] Writer to encode to
|
8402 | * Writer
|
8403 | */
|
8404 | public static encode(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer;
|
8405 |
|
8406 | /**
|
8407 | * Encodes the specified MethodOptions message, length delimited. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages.
|
8408 | * @param message MethodOptions message or plain object to encode
|
8409 | * @param [writer] Writer to encode to
|
8410 | * @returns Writer
|
8411 | */
|
8412 | public static encodeDelimited(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer;
|
8413 |
|
8414 | /**
|
8415 | * Decodes a MethodOptions message from the specified reader or buffer.
|
8416 | * @param reader Reader or buffer to decode from
|
8417 | * @param [length] Message length if known beforehand
|
8418 | * @returns MethodOptions
|
8419 | * @throws {Error} If the payload is not a reader or valid buffer
|
8420 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
8421 | */
|
8422 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodOptions;
|
8423 |
|
8424 | /**
|
8425 | * Decodes a MethodOptions message from the specified reader or buffer, length delimited.
|
8426 | * @param reader Reader or buffer to decode from
|
8427 | * @returns MethodOptions
|
8428 | * @throws {Error} If the payload is not a reader or valid buffer
|
8429 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
8430 | */
|
8431 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MethodOptions;
|
8432 |
|
8433 | /**
|
8434 | * Verifies a MethodOptions message.
|
8435 | * @param message Plain object to verify
|
8436 | * @returns `null` if valid, otherwise the reason why it is not
|
8437 | */
|
8438 | public static verify(message: { [k: string]: any }): (string|null);
|
8439 |
|
8440 | /**
|
8441 | * Creates a MethodOptions message from a plain object. Also converts values to their respective internal types.
|
8442 | * @param object Plain object
|
8443 | * @returns MethodOptions
|
8444 | */
|
8445 | public static fromObject(object: { [k: string]: any }): google.protobuf.MethodOptions;
|
8446 |
|
8447 | /**
|
8448 | * Creates a plain object from a MethodOptions message. Also converts values to other types if specified.
|
8449 | * @param message MethodOptions
|
8450 | * @param [options] Conversion options
|
8451 | * @returns Plain object
|
8452 | */
|
8453 | public static toObject(message: google.protobuf.MethodOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
8454 |
|
8455 | /**
|
8456 | * Converts this MethodOptions to JSON.
|
8457 | * @returns JSON object
|
8458 | */
|
8459 | public toJSON(): { [k: string]: any };
|
8460 | }
|
8461 |
|
8462 | namespace MethodOptions {
|
8463 |
|
8464 | /** IdempotencyLevel enum. */
|
8465 | enum IdempotencyLevel {
|
8466 | IDEMPOTENCY_UNKNOWN = 0,
|
8467 | NO_SIDE_EFFECTS = 1,
|
8468 | IDEMPOTENT = 2
|
8469 | }
|
8470 | }
|
8471 |
|
8472 | /** Properties of an UninterpretedOption. */
|
8473 | interface IUninterpretedOption {
|
8474 |
|
8475 | /** UninterpretedOption name */
|
8476 | name?: (google.protobuf.UninterpretedOption.INamePart[]|null);
|
8477 |
|
8478 | /** UninterpretedOption identifierValue */
|
8479 | identifierValue?: (string|null);
|
8480 |
|
8481 | /** UninterpretedOption positiveIntValue */
|
8482 | positiveIntValue?: (number|Long|string|null);
|
8483 |
|
8484 | /** UninterpretedOption negativeIntValue */
|
8485 | negativeIntValue?: (number|Long|string|null);
|
8486 |
|
8487 | /** UninterpretedOption doubleValue */
|
8488 | doubleValue?: (number|null);
|
8489 |
|
8490 | /** UninterpretedOption stringValue */
|
8491 | stringValue?: (Uint8Array|string|null);
|
8492 |
|
8493 | /** UninterpretedOption aggregateValue */
|
8494 | aggregateValue?: (string|null);
|
8495 | }
|
8496 |
|
8497 | /** Represents an UninterpretedOption. */
|
8498 | class UninterpretedOption implements IUninterpretedOption {
|
8499 |
|
8500 | /**
|
8501 | * Constructs a new UninterpretedOption.
|
8502 | * @param [properties] Properties to set
|
8503 | */
|
8504 | constructor(properties?: google.protobuf.IUninterpretedOption);
|
8505 |
|
8506 | /** UninterpretedOption name. */
|
8507 | public name: google.protobuf.UninterpretedOption.INamePart[];
|
8508 |
|
8509 | /** UninterpretedOption identifierValue. */
|
8510 | public identifierValue: string;
|
8511 |
|
8512 | /** UninterpretedOption positiveIntValue. */
|
8513 | public positiveIntValue: (number|Long|string);
|
8514 |
|
8515 | /** UninterpretedOption negativeIntValue. */
|
8516 | public negativeIntValue: (number|Long|string);
|
8517 |
|
8518 | /** UninterpretedOption doubleValue. */
|
8519 | public doubleValue: number;
|
8520 |
|
8521 | /** UninterpretedOption stringValue. */
|
8522 | public stringValue: (Uint8Array|string);
|
8523 |
|
8524 | /** UninterpretedOption aggregateValue. */
|
8525 | public aggregateValue: string;
|
8526 |
|
8527 | /**
|
8528 | * Creates a new UninterpretedOption instance using the specified properties.
|
8529 | * @param [properties] Properties to set
|
8530 | * @returns UninterpretedOption instance
|
8531 | */
|
8532 | public static create(properties?: google.protobuf.IUninterpretedOption): google.protobuf.UninterpretedOption;
|
8533 |
|
8534 | /**
|
8535 | * Encodes the specified UninterpretedOption message. Does not implicitly { google.protobuf.UninterpretedOption.verify|verify} messages.
|
8536 | * message UninterpretedOption message or plain object to encode
|
8537 | * [writer] Writer to encode to
|
8538 | * Writer
|
8539 | */
|
8540 | public static encode(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer;
|
8541 |
|
8542 | /**
|
8543 | * Encodes the specified UninterpretedOption message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages.
|
8544 | * @param message UninterpretedOption message or plain object to encode
|
8545 | * @param [writer] Writer to encode to
|
8546 | * @returns Writer
|
8547 | */
|
8548 | public static encodeDelimited(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer;
|
8549 |
|
8550 | /**
|
8551 | * Decodes an UninterpretedOption message from the specified reader or buffer.
|
8552 | * @param reader Reader or buffer to decode from
|
8553 | * @param [length] Message length if known beforehand
|
8554 | * @returns UninterpretedOption
|
8555 | * @throws {Error} If the payload is not a reader or valid buffer
|
8556 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
8557 | */
|
8558 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption;
|
8559 |
|
8560 | /**
|
8561 | * Decodes an UninterpretedOption message from the specified reader or buffer, length delimited.
|
8562 | * @param reader Reader or buffer to decode from
|
8563 | * @returns UninterpretedOption
|
8564 | * @throws {Error} If the payload is not a reader or valid buffer
|
8565 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
8566 | */
|
8567 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UninterpretedOption;
|
8568 |
|
8569 | /**
|
8570 | * Verifies an UninterpretedOption message.
|
8571 | * @param message Plain object to verify
|
8572 | * @returns `null` if valid, otherwise the reason why it is not
|
8573 | */
|
8574 | public static verify(message: { [k: string]: any }): (string|null);
|
8575 |
|
8576 | /**
|
8577 | * Creates an UninterpretedOption message from a plain object. Also converts values to their respective internal types.
|
8578 | * @param object Plain object
|
8579 | * @returns UninterpretedOption
|
8580 | */
|
8581 | public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption;
|
8582 |
|
8583 | /**
|
8584 | * Creates a plain object from an UninterpretedOption message. Also converts values to other types if specified.
|
8585 | * @param message UninterpretedOption
|
8586 | * @param [options] Conversion options
|
8587 | * @returns Plain object
|
8588 | */
|
8589 | public static toObject(message: google.protobuf.UninterpretedOption, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
8590 |
|
8591 | /**
|
8592 | * Converts this UninterpretedOption to JSON.
|
8593 | * @returns JSON object
|
8594 | */
|
8595 | public toJSON(): { [k: string]: any };
|
8596 | }
|
8597 |
|
8598 | namespace UninterpretedOption {
|
8599 |
|
8600 | /** Properties of a NamePart. */
|
8601 | interface INamePart {
|
8602 |
|
8603 | /** NamePart namePart */
|
8604 | namePart: string;
|
8605 |
|
8606 | /** NamePart isExtension */
|
8607 | isExtension: boolean;
|
8608 | }
|
8609 |
|
8610 | /** Represents a NamePart. */
|
8611 | class NamePart implements INamePart {
|
8612 |
|
8613 | /**
|
8614 | * Constructs a new NamePart.
|
8615 | * @param [properties] Properties to set
|
8616 | */
|
8617 | constructor(properties?: google.protobuf.UninterpretedOption.INamePart);
|
8618 |
|
8619 | /** NamePart namePart. */
|
8620 | public namePart: string;
|
8621 |
|
8622 | /** NamePart isExtension. */
|
8623 | public isExtension: boolean;
|
8624 |
|
8625 | /**
|
8626 | * Creates a new NamePart instance using the specified properties.
|
8627 | * @param [properties] Properties to set
|
8628 | * @returns NamePart instance
|
8629 | */
|
8630 | public static create(properties?: google.protobuf.UninterpretedOption.INamePart): google.protobuf.UninterpretedOption.NamePart;
|
8631 |
|
8632 | /**
|
8633 | * Encodes the specified NamePart message. Does not implicitly { google.protobuf.UninterpretedOption.NamePart.verify|verify} messages.
|
8634 | * message NamePart message or plain object to encode
|
8635 | * [writer] Writer to encode to
|
8636 | * Writer
|
8637 | */
|
8638 | public static encode(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer;
|
8639 |
|
8640 | /**
|
8641 | * Encodes the specified NamePart message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages.
|
8642 | * @param message NamePart message or plain object to encode
|
8643 | * @param [writer] Writer to encode to
|
8644 | * @returns Writer
|
8645 | */
|
8646 | public static encodeDelimited(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer;
|
8647 |
|
8648 | /**
|
8649 | * Decodes a NamePart message from the specified reader or buffer.
|
8650 | * @param reader Reader or buffer to decode from
|
8651 | * @param [length] Message length if known beforehand
|
8652 | * @returns NamePart
|
8653 | * @throws {Error} If the payload is not a reader or valid buffer
|
8654 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
8655 | */
|
8656 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption.NamePart;
|
8657 |
|
8658 | /**
|
8659 | * Decodes a NamePart message from the specified reader or buffer, length delimited.
|
8660 | * @param reader Reader or buffer to decode from
|
8661 | * @returns NamePart
|
8662 | * @throws {Error} If the payload is not a reader or valid buffer
|
8663 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
8664 | */
|
8665 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UninterpretedOption.NamePart;
|
8666 |
|
8667 | /**
|
8668 | * Verifies a NamePart message.
|
8669 | * @param message Plain object to verify
|
8670 | * @returns `null` if valid, otherwise the reason why it is not
|
8671 | */
|
8672 | public static verify(message: { [k: string]: any }): (string|null);
|
8673 |
|
8674 | /**
|
8675 | * Creates a NamePart message from a plain object. Also converts values to their respective internal types.
|
8676 | * @param object Plain object
|
8677 | * @returns NamePart
|
8678 | */
|
8679 | public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption.NamePart;
|
8680 |
|
8681 | /**
|
8682 | * Creates a plain object from a NamePart message. Also converts values to other types if specified.
|
8683 | * @param message NamePart
|
8684 | * @param [options] Conversion options
|
8685 | * @returns Plain object
|
8686 | */
|
8687 | public static toObject(message: google.protobuf.UninterpretedOption.NamePart, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
8688 |
|
8689 | /**
|
8690 | * Converts this NamePart to JSON.
|
8691 | * @returns JSON object
|
8692 | */
|
8693 | public toJSON(): { [k: string]: any };
|
8694 | }
|
8695 | }
|
8696 |
|
8697 | /** Properties of a SourceCodeInfo. */
|
8698 | interface ISourceCodeInfo {
|
8699 |
|
8700 | /** SourceCodeInfo location */
|
8701 | location?: (google.protobuf.SourceCodeInfo.ILocation[]|null);
|
8702 | }
|
8703 |
|
8704 | /** Represents a SourceCodeInfo. */
|
8705 | class SourceCodeInfo implements ISourceCodeInfo {
|
8706 |
|
8707 | /**
|
8708 | * Constructs a new SourceCodeInfo.
|
8709 | * @param [properties] Properties to set
|
8710 | */
|
8711 | constructor(properties?: google.protobuf.ISourceCodeInfo);
|
8712 |
|
8713 | /** SourceCodeInfo location. */
|
8714 | public location: google.protobuf.SourceCodeInfo.ILocation[];
|
8715 |
|
8716 | /**
|
8717 | * Creates a new SourceCodeInfo instance using the specified properties.
|
8718 | * @param [properties] Properties to set
|
8719 | * @returns SourceCodeInfo instance
|
8720 | */
|
8721 | public static create(properties?: google.protobuf.ISourceCodeInfo): google.protobuf.SourceCodeInfo;
|
8722 |
|
8723 | /**
|
8724 | * Encodes the specified SourceCodeInfo message. Does not implicitly { google.protobuf.SourceCodeInfo.verify|verify} messages.
|
8725 | * message SourceCodeInfo message or plain object to encode
|
8726 | * [writer] Writer to encode to
|
8727 | * Writer
|
8728 | */
|
8729 | public static encode(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
|
8730 |
|
8731 | /**
|
8732 | * Encodes the specified SourceCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages.
|
8733 | * @param message SourceCodeInfo message or plain object to encode
|
8734 | * @param [writer] Writer to encode to
|
8735 | * @returns Writer
|
8736 | */
|
8737 | public static encodeDelimited(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
|
8738 |
|
8739 | /**
|
8740 | * Decodes a SourceCodeInfo message from the specified reader or buffer.
|
8741 | * @param reader Reader or buffer to decode from
|
8742 | * @param [length] Message length if known beforehand
|
8743 | * @returns SourceCodeInfo
|
8744 | * @throws {Error} If the payload is not a reader or valid buffer
|
8745 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
8746 | */
|
8747 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo;
|
8748 |
|
8749 | /**
|
8750 | * Decodes a SourceCodeInfo message from the specified reader or buffer, length delimited.
|
8751 | * @param reader Reader or buffer to decode from
|
8752 | * @returns SourceCodeInfo
|
8753 | * @throws {Error} If the payload is not a reader or valid buffer
|
8754 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
8755 | */
|
8756 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.SourceCodeInfo;
|
8757 |
|
8758 | /**
|
8759 | * Verifies a SourceCodeInfo message.
|
8760 | * @param message Plain object to verify
|
8761 | * @returns `null` if valid, otherwise the reason why it is not
|
8762 | */
|
8763 | public static verify(message: { [k: string]: any }): (string|null);
|
8764 |
|
8765 | /**
|
8766 | * Creates a SourceCodeInfo message from a plain object. Also converts values to their respective internal types.
|
8767 | * @param object Plain object
|
8768 | * @returns SourceCodeInfo
|
8769 | */
|
8770 | public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo;
|
8771 |
|
8772 | /**
|
8773 | * Creates a plain object from a SourceCodeInfo message. Also converts values to other types if specified.
|
8774 | * @param message SourceCodeInfo
|
8775 | * @param [options] Conversion options
|
8776 | * @returns Plain object
|
8777 | */
|
8778 | public static toObject(message: google.protobuf.SourceCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
8779 |
|
8780 | /**
|
8781 | * Converts this SourceCodeInfo to JSON.
|
8782 | * @returns JSON object
|
8783 | */
|
8784 | public toJSON(): { [k: string]: any };
|
8785 | }
|
8786 |
|
8787 | namespace SourceCodeInfo {
|
8788 |
|
8789 | /** Properties of a Location. */
|
8790 | interface ILocation {
|
8791 |
|
8792 | /** Location path */
|
8793 | path?: (number[]|null);
|
8794 |
|
8795 | /** Location span */
|
8796 | span?: (number[]|null);
|
8797 |
|
8798 | /** Location leadingComments */
|
8799 | leadingComments?: (string|null);
|
8800 |
|
8801 | /** Location trailingComments */
|
8802 | trailingComments?: (string|null);
|
8803 |
|
8804 | /** Location leadingDetachedComments */
|
8805 | leadingDetachedComments?: (string[]|null);
|
8806 | }
|
8807 |
|
8808 | /** Represents a Location. */
|
8809 | class Location implements ILocation {
|
8810 |
|
8811 | /**
|
8812 | * Constructs a new Location.
|
8813 | * @param [properties] Properties to set
|
8814 | */
|
8815 | constructor(properties?: google.protobuf.SourceCodeInfo.ILocation);
|
8816 |
|
8817 | /** Location path. */
|
8818 | public path: number[];
|
8819 |
|
8820 | /** Location span. */
|
8821 | public span: number[];
|
8822 |
|
8823 | /** Location leadingComments. */
|
8824 | public leadingComments: string;
|
8825 |
|
8826 | /** Location trailingComments. */
|
8827 | public trailingComments: string;
|
8828 |
|
8829 | /** Location leadingDetachedComments. */
|
8830 | public leadingDetachedComments: string[];
|
8831 |
|
8832 | /**
|
8833 | * Creates a new Location instance using the specified properties.
|
8834 | * @param [properties] Properties to set
|
8835 | * @returns Location instance
|
8836 | */
|
8837 | public static create(properties?: google.protobuf.SourceCodeInfo.ILocation): google.protobuf.SourceCodeInfo.Location;
|
8838 |
|
8839 | /**
|
8840 | * Encodes the specified Location message. Does not implicitly { google.protobuf.SourceCodeInfo.Location.verify|verify} messages.
|
8841 | * message Location message or plain object to encode
|
8842 | * [writer] Writer to encode to
|
8843 | * Writer
|
8844 | */
|
8845 | public static encode(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer;
|
8846 |
|
8847 | /**
|
8848 | * Encodes the specified Location message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages.
|
8849 | * @param message Location message or plain object to encode
|
8850 | * @param [writer] Writer to encode to
|
8851 | * @returns Writer
|
8852 | */
|
8853 | public static encodeDelimited(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer;
|
8854 |
|
8855 | /**
|
8856 | * Decodes a Location message from the specified reader or buffer.
|
8857 | * @param reader Reader or buffer to decode from
|
8858 | * @param [length] Message length if known beforehand
|
8859 | * @returns Location
|
8860 | * @throws {Error} If the payload is not a reader or valid buffer
|
8861 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
8862 | */
|
8863 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo.Location;
|
8864 |
|
8865 | /**
|
8866 | * Decodes a Location message from the specified reader or buffer, length delimited.
|
8867 | * @param reader Reader or buffer to decode from
|
8868 | * @returns Location
|
8869 | * @throws {Error} If the payload is not a reader or valid buffer
|
8870 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
8871 | */
|
8872 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.SourceCodeInfo.Location;
|
8873 |
|
8874 | /**
|
8875 | * Verifies a Location message.
|
8876 | * @param message Plain object to verify
|
8877 | * @returns `null` if valid, otherwise the reason why it is not
|
8878 | */
|
8879 | public static verify(message: { [k: string]: any }): (string|null);
|
8880 |
|
8881 | /**
|
8882 | * Creates a Location message from a plain object. Also converts values to their respective internal types.
|
8883 | * @param object Plain object
|
8884 | * @returns Location
|
8885 | */
|
8886 | public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo.Location;
|
8887 |
|
8888 | /**
|
8889 | * Creates a plain object from a Location message. Also converts values to other types if specified.
|
8890 | * @param message Location
|
8891 | * @param [options] Conversion options
|
8892 | * @returns Plain object
|
8893 | */
|
8894 | public static toObject(message: google.protobuf.SourceCodeInfo.Location, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
8895 |
|
8896 | /**
|
8897 | * Converts this Location to JSON.
|
8898 | * @returns JSON object
|
8899 | */
|
8900 | public toJSON(): { [k: string]: any };
|
8901 | }
|
8902 | }
|
8903 |
|
8904 | /** Properties of a GeneratedCodeInfo. */
|
8905 | interface IGeneratedCodeInfo {
|
8906 |
|
8907 | /** GeneratedCodeInfo annotation */
|
8908 | annotation?: (google.protobuf.GeneratedCodeInfo.IAnnotation[]|null);
|
8909 | }
|
8910 |
|
8911 | /** Represents a GeneratedCodeInfo. */
|
8912 | class GeneratedCodeInfo implements IGeneratedCodeInfo {
|
8913 |
|
8914 | /**
|
8915 | * Constructs a new GeneratedCodeInfo.
|
8916 | * @param [properties] Properties to set
|
8917 | */
|
8918 | constructor(properties?: google.protobuf.IGeneratedCodeInfo);
|
8919 |
|
8920 | /** GeneratedCodeInfo annotation. */
|
8921 | public annotation: google.protobuf.GeneratedCodeInfo.IAnnotation[];
|
8922 |
|
8923 | /**
|
8924 | * Creates a new GeneratedCodeInfo instance using the specified properties.
|
8925 | * @param [properties] Properties to set
|
8926 | * @returns GeneratedCodeInfo instance
|
8927 | */
|
8928 | public static create(properties?: google.protobuf.IGeneratedCodeInfo): google.protobuf.GeneratedCodeInfo;
|
8929 |
|
8930 | /**
|
8931 | * Encodes the specified GeneratedCodeInfo message. Does not implicitly { google.protobuf.GeneratedCodeInfo.verify|verify} messages.
|
8932 | * message GeneratedCodeInfo message or plain object to encode
|
8933 | * [writer] Writer to encode to
|
8934 | * Writer
|
8935 | */
|
8936 | public static encode(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
|
8937 |
|
8938 | /**
|
8939 | * Encodes the specified GeneratedCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages.
|
8940 | * @param message GeneratedCodeInfo message or plain object to encode
|
8941 | * @param [writer] Writer to encode to
|
8942 | * @returns Writer
|
8943 | */
|
8944 | public static encodeDelimited(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
|
8945 |
|
8946 | /**
|
8947 | * Decodes a GeneratedCodeInfo message from the specified reader or buffer.
|
8948 | * @param reader Reader or buffer to decode from
|
8949 | * @param [length] Message length if known beforehand
|
8950 | * @returns GeneratedCodeInfo
|
8951 | * @throws {Error} If the payload is not a reader or valid buffer
|
8952 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
8953 | */
|
8954 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo;
|
8955 |
|
8956 | /**
|
8957 | * Decodes a GeneratedCodeInfo message from the specified reader or buffer, length delimited.
|
8958 | * @param reader Reader or buffer to decode from
|
8959 | * @returns GeneratedCodeInfo
|
8960 | * @throws {Error} If the payload is not a reader or valid buffer
|
8961 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
8962 | */
|
8963 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.GeneratedCodeInfo;
|
8964 |
|
8965 | /**
|
8966 | * Verifies a GeneratedCodeInfo message.
|
8967 | * @param message Plain object to verify
|
8968 | * @returns `null` if valid, otherwise the reason why it is not
|
8969 | */
|
8970 | public static verify(message: { [k: string]: any }): (string|null);
|
8971 |
|
8972 | /**
|
8973 | * Creates a GeneratedCodeInfo message from a plain object. Also converts values to their respective internal types.
|
8974 | * @param object Plain object
|
8975 | * @returns GeneratedCodeInfo
|
8976 | */
|
8977 | public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo;
|
8978 |
|
8979 | /**
|
8980 | * Creates a plain object from a GeneratedCodeInfo message. Also converts values to other types if specified.
|
8981 | * @param message GeneratedCodeInfo
|
8982 | * @param [options] Conversion options
|
8983 | * @returns Plain object
|
8984 | */
|
8985 | public static toObject(message: google.protobuf.GeneratedCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
8986 |
|
8987 | /**
|
8988 | * Converts this GeneratedCodeInfo to JSON.
|
8989 | * @returns JSON object
|
8990 | */
|
8991 | public toJSON(): { [k: string]: any };
|
8992 | }
|
8993 |
|
8994 | namespace GeneratedCodeInfo {
|
8995 |
|
8996 | /** Properties of an Annotation. */
|
8997 | interface IAnnotation {
|
8998 |
|
8999 | /** Annotation path */
|
9000 | path?: (number[]|null);
|
9001 |
|
9002 | /** Annotation sourceFile */
|
9003 | sourceFile?: (string|null);
|
9004 |
|
9005 | /** Annotation begin */
|
9006 | begin?: (number|null);
|
9007 |
|
9008 | /** Annotation end */
|
9009 | end?: (number|null);
|
9010 | }
|
9011 |
|
9012 | /** Represents an Annotation. */
|
9013 | class Annotation implements IAnnotation {
|
9014 |
|
9015 | /**
|
9016 | * Constructs a new Annotation.
|
9017 | * @param [properties] Properties to set
|
9018 | */
|
9019 | constructor(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation);
|
9020 |
|
9021 | /** Annotation path. */
|
9022 | public path: number[];
|
9023 |
|
9024 | /** Annotation sourceFile. */
|
9025 | public sourceFile: string;
|
9026 |
|
9027 | /** Annotation begin. */
|
9028 | public begin: number;
|
9029 |
|
9030 | /** Annotation end. */
|
9031 | public end: number;
|
9032 |
|
9033 | /**
|
9034 | * Creates a new Annotation instance using the specified properties.
|
9035 | * @param [properties] Properties to set
|
9036 | * @returns Annotation instance
|
9037 | */
|
9038 | public static create(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation): google.protobuf.GeneratedCodeInfo.Annotation;
|
9039 |
|
9040 | /**
|
9041 | * Encodes the specified Annotation message. Does not implicitly { google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages.
|
9042 | * message Annotation message or plain object to encode
|
9043 | * [writer] Writer to encode to
|
9044 | * Writer
|
9045 | */
|
9046 | public static encode(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
|
9047 |
|
9048 | /**
|
9049 | * Encodes the specified Annotation message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages.
|
9050 | * @param message Annotation message or plain object to encode
|
9051 | * @param [writer] Writer to encode to
|
9052 | * @returns Writer
|
9053 | */
|
9054 | public static encodeDelimited(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
|
9055 |
|
9056 | /**
|
9057 | * Decodes an Annotation message from the specified reader or buffer.
|
9058 | * @param reader Reader or buffer to decode from
|
9059 | * @param [length] Message length if known beforehand
|
9060 | * @returns Annotation
|
9061 | * @throws {Error} If the payload is not a reader or valid buffer
|
9062 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
9063 | */
|
9064 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo.Annotation;
|
9065 |
|
9066 | /**
|
9067 | * Decodes an Annotation message from the specified reader or buffer, length delimited.
|
9068 | * @param reader Reader or buffer to decode from
|
9069 | * @returns Annotation
|
9070 | * @throws {Error} If the payload is not a reader or valid buffer
|
9071 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
9072 | */
|
9073 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.GeneratedCodeInfo.Annotation;
|
9074 |
|
9075 | /**
|
9076 | * Verifies an Annotation message.
|
9077 | * @param message Plain object to verify
|
9078 | * @returns `null` if valid, otherwise the reason why it is not
|
9079 | */
|
9080 | public static verify(message: { [k: string]: any }): (string|null);
|
9081 |
|
9082 | /**
|
9083 | * Creates an Annotation message from a plain object. Also converts values to their respective internal types.
|
9084 | * @param object Plain object
|
9085 | * @returns Annotation
|
9086 | */
|
9087 | public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo.Annotation;
|
9088 |
|
9089 | /**
|
9090 | * Creates a plain object from an Annotation message. Also converts values to other types if specified.
|
9091 | * @param message Annotation
|
9092 | * @param [options] Conversion options
|
9093 | * @returns Plain object
|
9094 | */
|
9095 | public static toObject(message: google.protobuf.GeneratedCodeInfo.Annotation, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
9096 |
|
9097 | /**
|
9098 | * Converts this Annotation to JSON.
|
9099 | * @returns JSON object
|
9100 | */
|
9101 | public toJSON(): { [k: string]: any };
|
9102 | }
|
9103 | }
|
9104 |
|
9105 | /** Properties of a Timestamp. */
|
9106 | interface ITimestamp {
|
9107 |
|
9108 | /** Timestamp seconds */
|
9109 | seconds?: (number|Long|string|null);
|
9110 |
|
9111 | /** Timestamp nanos */
|
9112 | nanos?: (number|null);
|
9113 | }
|
9114 |
|
9115 | /** Represents a Timestamp. */
|
9116 | class Timestamp implements ITimestamp {
|
9117 |
|
9118 | /**
|
9119 | * Constructs a new Timestamp.
|
9120 | * @param [properties] Properties to set
|
9121 | */
|
9122 | constructor(properties?: google.protobuf.ITimestamp);
|
9123 |
|
9124 | /** Timestamp seconds. */
|
9125 | public seconds: (number|Long|string);
|
9126 |
|
9127 | /** Timestamp nanos. */
|
9128 | public nanos: number;
|
9129 |
|
9130 | /**
|
9131 | * Creates a new Timestamp instance using the specified properties.
|
9132 | * @param [properties] Properties to set
|
9133 | * @returns Timestamp instance
|
9134 | */
|
9135 | public static create(properties?: google.protobuf.ITimestamp): google.protobuf.Timestamp;
|
9136 |
|
9137 | /**
|
9138 | * Encodes the specified Timestamp message. Does not implicitly { google.protobuf.Timestamp.verify|verify} messages.
|
9139 | * message Timestamp message or plain object to encode
|
9140 | * [writer] Writer to encode to
|
9141 | * Writer
|
9142 | */
|
9143 | public static encode(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer;
|
9144 |
|
9145 | /**
|
9146 | * Encodes the specified Timestamp message, length delimited. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages.
|
9147 | * @param message Timestamp message or plain object to encode
|
9148 | * @param [writer] Writer to encode to
|
9149 | * @returns Writer
|
9150 | */
|
9151 | public static encodeDelimited(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer;
|
9152 |
|
9153 | /**
|
9154 | * Decodes a Timestamp message from the specified reader or buffer.
|
9155 | * @param reader Reader or buffer to decode from
|
9156 | * @param [length] Message length if known beforehand
|
9157 | * @returns Timestamp
|
9158 | * @throws {Error} If the payload is not a reader or valid buffer
|
9159 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
9160 | */
|
9161 | public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Timestamp;
|
9162 |
|
9163 | /**
|
9164 | * Decodes a Timestamp message from the specified reader or buffer, length delimited.
|
9165 | * @param reader Reader or buffer to decode from
|
9166 | * @returns Timestamp
|
9167 | * @throws {Error} If the payload is not a reader or valid buffer
|
9168 | * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
9169 | */
|
9170 | public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Timestamp;
|
9171 |
|
9172 | /**
|
9173 | * Verifies a Timestamp message.
|
9174 | * @param message Plain object to verify
|
9175 | * @returns `null` if valid, otherwise the reason why it is not
|
9176 | */
|
9177 | public static verify(message: { [k: string]: any }): (string|null);
|
9178 |
|
9179 | /**
|
9180 | * Creates a Timestamp message from a plain object. Also converts values to their respective internal types.
|
9181 | * @param object Plain object
|
9182 | * @returns Timestamp
|
9183 | */
|
9184 | public static fromObject(object: { [k: string]: any }): google.protobuf.Timestamp;
|
9185 |
|
9186 | /**
|
9187 | * Creates a plain object from a Timestamp message. Also converts values to other types if specified.
|
9188 | * @param message Timestamp
|
9189 | * @param [options] Conversion options
|
9190 | * @returns Plain object
|
9191 | */
|
9192 | public static toObject(message: google.protobuf.Timestamp, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
9193 |
|
9194 | /**
|
9195 | * Converts this Timestamp to JSON.
|
9196 | * @returns JSON object
|
9197 | */
|
9198 | public toJSON(): { [k: string]: any };
|
9199 | }
|
9200 | }
|
9201 | }
|