UNPKG

460 kBTypeScriptView Raw
1// Copyright 2021 Google LLC
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15import * as Long from "long";
16import {protobuf as $protobuf} from "google-gax";
17/** Namespace google. */
18export namespace google {
19
20 /** Namespace cloud. */
21 namespace cloud {
22
23 /** Namespace 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 {@link google.cloud.language.v1.Document.verify|verify} messages.
228 * @param message Document message or plain object to encode
229 * @param [writer] Writer to encode to
230 * @returns 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 {@link google.cloud.language.v1.Sentence.verify|verify} messages.
334 * @param message Sentence message or plain object to encode
335 * @param [writer] Writer to encode to
336 * @returns 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 {@link google.cloud.language.v1.Token.verify|verify} messages.
590 * @param message Token message or plain object to encode
591 * @param [writer] Writer to encode to
592 * @returns 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 {@link google.cloud.language.v1.Sentiment.verify|verify} messages.
686 * @param message Sentiment message or plain object to encode
687 * @param [writer] Writer to encode to
688 * @returns 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 {@link google.cloud.language.v1.PartOfSpeech.verify|verify} messages.
842 * @param message PartOfSpeech message or plain object to encode
843 * @param [writer] Writer to encode to
844 * @returns 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 {@link google.cloud.language.v1.DependencyEdge.verify|verify} messages.
1071 * @param message DependencyEdge message or plain object to encode
1072 * @param [writer] Writer to encode to
1073 * @returns 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 {@link google.cloud.language.v1.EntityMention.verify|verify} messages.
1263 * @param message EntityMention message or plain object to encode
1264 * @param [writer] Writer to encode to
1265 * @returns 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 {@link google.cloud.language.v1.TextSpan.verify|verify} messages.
1369 * @param message TextSpan message or plain object to encode
1370 * @param [writer] Writer to encode to
1371 * @returns 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 {@link google.cloud.language.v1.ClassificationCategory.verify|verify} messages.
1465 * @param message ClassificationCategory message or plain object to encode
1466 * @param [writer] Writer to encode to
1467 * @returns 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 {@link google.cloud.language.v1.AnalyzeSentimentRequest.verify|verify} messages.
1561 * @param message AnalyzeSentimentRequest message or plain object to encode
1562 * @param [writer] Writer to encode to
1563 * @returns 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 {@link google.cloud.language.v1.AnalyzeSentimentResponse.verify|verify} messages.
1663 * @param message AnalyzeSentimentResponse message or plain object to encode
1664 * @param [writer] Writer to encode to
1665 * @returns 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 {@link google.cloud.language.v1.AnalyzeEntitySentimentRequest.verify|verify} messages.
1759 * @param message AnalyzeEntitySentimentRequest message or plain object to encode
1760 * @param [writer] Writer to encode to
1761 * @returns 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 {@link google.cloud.language.v1.AnalyzeEntitySentimentResponse.verify|verify} messages.
1855 * @param message AnalyzeEntitySentimentResponse message or plain object to encode
1856 * @param [writer] Writer to encode to
1857 * @returns 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 {@link google.cloud.language.v1.AnalyzeEntitiesRequest.verify|verify} messages.
1951 * @param message AnalyzeEntitiesRequest message or plain object to encode
1952 * @param [writer] Writer to encode to
1953 * @returns 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 {@link google.cloud.language.v1.AnalyzeEntitiesResponse.verify|verify} messages.
2047 * @param message AnalyzeEntitiesResponse message or plain object to encode
2048 * @param [writer] Writer to encode to
2049 * @returns 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 {@link google.cloud.language.v1.AnalyzeSyntaxRequest.verify|verify} messages.
2143 * @param message AnalyzeSyntaxRequest message or plain object to encode
2144 * @param [writer] Writer to encode to
2145 * @returns 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 {@link google.cloud.language.v1.AnalyzeSyntaxResponse.verify|verify} messages.
2245 * @param message AnalyzeSyntaxResponse message or plain object to encode
2246 * @param [writer] Writer to encode to
2247 * @returns 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 {@link google.cloud.language.v1.ClassifyTextRequest.verify|verify} messages.
2335 * @param message ClassifyTextRequest message or plain object to encode
2336 * @param [writer] Writer to encode to
2337 * @returns 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 {@link google.cloud.language.v1.ClassifyTextResponse.verify|verify} messages.
2425 * @param message ClassifyTextResponse message or plain object to encode
2426 * @param [writer] Writer to encode to
2427 * @returns 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 {@link google.cloud.language.v1.AnnotateTextRequest.verify|verify} messages.
2527 * @param message AnnotateTextRequest message or plain object to encode
2528 * @param [writer] Writer to encode to
2529 * @returns 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 {@link google.cloud.language.v1.AnnotateTextRequest.Features.verify|verify} messages.
2643 * @param message Features message or plain object to encode
2644 * @param [writer] Writer to encode to
2645 * @returns 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 {@link google.cloud.language.v1.AnnotateTextResponse.verify|verify} messages.
2764 * @param message AnnotateTextResponse message or plain object to encode
2765 * @param [writer] Writer to encode to
2766 * @returns 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 {@link google.cloud.language.v1beta2.Document.verify|verify} messages.
3029 * @param message Document message or plain object to encode
3030 * @param [writer] Writer to encode to
3031 * @returns 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 {@link google.cloud.language.v1beta2.Sentence.verify|verify} messages.
3135 * @param message Sentence message or plain object to encode
3136 * @param [writer] Writer to encode to
3137 * @returns 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 {@link google.cloud.language.v1beta2.Token.verify|verify} messages.
3383 * @param message Token message or plain object to encode
3384 * @param [writer] Writer to encode to
3385 * @returns 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 {@link google.cloud.language.v1beta2.Sentiment.verify|verify} messages.
3487 * @param message Sentiment message or plain object to encode
3488 * @param [writer] Writer to encode to
3489 * @returns 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 {@link google.cloud.language.v1beta2.PartOfSpeech.verify|verify} messages.
3643 * @param message PartOfSpeech message or plain object to encode
3644 * @param [writer] Writer to encode to
3645 * @returns 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 {@link google.cloud.language.v1beta2.DependencyEdge.verify|verify} messages.
3872 * @param message DependencyEdge message or plain object to encode
3873 * @param [writer] Writer to encode to
3874 * @returns 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 {@link google.cloud.language.v1beta2.EntityMention.verify|verify} messages.
4064 * @param message EntityMention message or plain object to encode
4065 * @param [writer] Writer to encode to
4066 * @returns 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 {@link google.cloud.language.v1beta2.TextSpan.verify|verify} messages.
4170 * @param message TextSpan message or plain object to encode
4171 * @param [writer] Writer to encode to
4172 * @returns 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 {@link google.cloud.language.v1beta2.ClassificationCategory.verify|verify} messages.
4266 * @param message ClassificationCategory message or plain object to encode
4267 * @param [writer] Writer to encode to
4268 * @returns 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 {@link google.cloud.language.v1beta2.AnalyzeSentimentRequest.verify|verify} messages.
4362 * @param message AnalyzeSentimentRequest message or plain object to encode
4363 * @param [writer] Writer to encode to
4364 * @returns 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 {@link google.cloud.language.v1beta2.AnalyzeSentimentResponse.verify|verify} messages.
4464 * @param message AnalyzeSentimentResponse message or plain object to encode
4465 * @param [writer] Writer to encode to
4466 * @returns 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 {@link google.cloud.language.v1beta2.AnalyzeEntitySentimentRequest.verify|verify} messages.
4560 * @param message AnalyzeEntitySentimentRequest message or plain object to encode
4561 * @param [writer] Writer to encode to
4562 * @returns 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 {@link google.cloud.language.v1beta2.AnalyzeEntitySentimentResponse.verify|verify} messages.
4656 * @param message AnalyzeEntitySentimentResponse message or plain object to encode
4657 * @param [writer] Writer to encode to
4658 * @returns 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 {@link google.cloud.language.v1beta2.AnalyzeEntitiesRequest.verify|verify} messages.
4752 * @param message AnalyzeEntitiesRequest message or plain object to encode
4753 * @param [writer] Writer to encode to
4754 * @returns 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 {@link google.cloud.language.v1beta2.AnalyzeEntitiesResponse.verify|verify} messages.
4848 * @param message AnalyzeEntitiesResponse message or plain object to encode
4849 * @param [writer] Writer to encode to
4850 * @returns 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 {@link google.cloud.language.v1beta2.AnalyzeSyntaxRequest.verify|verify} messages.
4944 * @param message AnalyzeSyntaxRequest message or plain object to encode
4945 * @param [writer] Writer to encode to
4946 * @returns 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 {@link google.cloud.language.v1beta2.AnalyzeSyntaxResponse.verify|verify} messages.
5046 * @param message AnalyzeSyntaxResponse message or plain object to encode
5047 * @param [writer] Writer to encode to
5048 * @returns 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 {@link google.cloud.language.v1beta2.ClassifyTextRequest.verify|verify} messages.
5136 * @param message ClassifyTextRequest message or plain object to encode
5137 * @param [writer] Writer to encode to
5138 * @returns 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 {@link google.cloud.language.v1beta2.ClassifyTextResponse.verify|verify} messages.
5226 * @param message ClassifyTextResponse message or plain object to encode
5227 * @param [writer] Writer to encode to
5228 * @returns 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 {@link google.cloud.language.v1beta2.AnnotateTextRequest.verify|verify} messages.
5328 * @param message AnnotateTextRequest message or plain object to encode
5329 * @param [writer] Writer to encode to
5330 * @returns 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 {@link google.cloud.language.v1beta2.AnnotateTextRequest.Features.verify|verify} messages.
5444 * @param message Features message or plain object to encode
5445 * @param [writer] Writer to encode to
5446 * @returns 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 {@link google.cloud.language.v1beta2.AnnotateTextResponse.verify|verify} messages.
5565 * @param message AnnotateTextResponse message or plain object to encode
5566 * @param [writer] Writer to encode to
5567 * @returns 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 {@link google.api.Http.verify|verify} messages.
5667 * @param message Http message or plain object to encode
5668 * @param [writer] Writer to encode to
5669 * @returns 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 {@link google.api.HttpRule.verify|verify} messages.
5814 * @param message HttpRule message or plain object to encode
5815 * @param [writer] Writer to encode to
5816 * @returns 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 {@link google.api.CustomHttpPattern.verify|verify} messages.
5910 * @param message CustomHttpPattern message or plain object to encode
5911 * @param [writer] Writer to encode to
5912 * @returns 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 }
5982 }
5983
5984 /** Namespace protobuf. */
5985 namespace protobuf {
5986
5987 /** Properties of a FileDescriptorSet. */
5988 interface IFileDescriptorSet {
5989
5990 /** FileDescriptorSet file */
5991 file?: (google.protobuf.IFileDescriptorProto[]|null);
5992 }
5993
5994 /** Represents a FileDescriptorSet. */
5995 class FileDescriptorSet implements IFileDescriptorSet {
5996
5997 /**
5998 * Constructs a new FileDescriptorSet.
5999 * @param [properties] Properties to set
6000 */
6001 constructor(properties?: google.protobuf.IFileDescriptorSet);
6002
6003 /** FileDescriptorSet file. */
6004 public file: google.protobuf.IFileDescriptorProto[];
6005
6006 /**
6007 * Creates a new FileDescriptorSet instance using the specified properties.
6008 * @param [properties] Properties to set
6009 * @returns FileDescriptorSet instance
6010 */
6011 public static create(properties?: google.protobuf.IFileDescriptorSet): google.protobuf.FileDescriptorSet;
6012
6013 /**
6014 * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages.
6015 * @param message FileDescriptorSet message or plain object to encode
6016 * @param [writer] Writer to encode to
6017 * @returns Writer
6018 */
6019 public static encode(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer;
6020
6021 /**
6022 * Encodes the specified FileDescriptorSet message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages.
6023 * @param message FileDescriptorSet message or plain object to encode
6024 * @param [writer] Writer to encode to
6025 * @returns Writer
6026 */
6027 public static encodeDelimited(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer;
6028
6029 /**
6030 * Decodes a FileDescriptorSet message from the specified reader or buffer.
6031 * @param reader Reader or buffer to decode from
6032 * @param [length] Message length if known beforehand
6033 * @returns FileDescriptorSet
6034 * @throws {Error} If the payload is not a reader or valid buffer
6035 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6036 */
6037 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorSet;
6038
6039 /**
6040 * Decodes a FileDescriptorSet message from the specified reader or buffer, length delimited.
6041 * @param reader Reader or buffer to decode from
6042 * @returns FileDescriptorSet
6043 * @throws {Error} If the payload is not a reader or valid buffer
6044 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6045 */
6046 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileDescriptorSet;
6047
6048 /**
6049 * Verifies a FileDescriptorSet message.
6050 * @param message Plain object to verify
6051 * @returns `null` if valid, otherwise the reason why it is not
6052 */
6053 public static verify(message: { [k: string]: any }): (string|null);
6054
6055 /**
6056 * Creates a FileDescriptorSet message from a plain object. Also converts values to their respective internal types.
6057 * @param object Plain object
6058 * @returns FileDescriptorSet
6059 */
6060 public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorSet;
6061
6062 /**
6063 * Creates a plain object from a FileDescriptorSet message. Also converts values to other types if specified.
6064 * @param message FileDescriptorSet
6065 * @param [options] Conversion options
6066 * @returns Plain object
6067 */
6068 public static toObject(message: google.protobuf.FileDescriptorSet, options?: $protobuf.IConversionOptions): { [k: string]: any };
6069
6070 /**
6071 * Converts this FileDescriptorSet to JSON.
6072 * @returns JSON object
6073 */
6074 public toJSON(): { [k: string]: any };
6075 }
6076
6077 /** Properties of a FileDescriptorProto. */
6078 interface IFileDescriptorProto {
6079
6080 /** FileDescriptorProto name */
6081 name?: (string|null);
6082
6083 /** FileDescriptorProto package */
6084 "package"?: (string|null);
6085
6086 /** FileDescriptorProto dependency */
6087 dependency?: (string[]|null);
6088
6089 /** FileDescriptorProto publicDependency */
6090 publicDependency?: (number[]|null);
6091
6092 /** FileDescriptorProto weakDependency */
6093 weakDependency?: (number[]|null);
6094
6095 /** FileDescriptorProto messageType */
6096 messageType?: (google.protobuf.IDescriptorProto[]|null);
6097
6098 /** FileDescriptorProto enumType */
6099 enumType?: (google.protobuf.IEnumDescriptorProto[]|null);
6100
6101 /** FileDescriptorProto service */
6102 service?: (google.protobuf.IServiceDescriptorProto[]|null);
6103
6104 /** FileDescriptorProto extension */
6105 extension?: (google.protobuf.IFieldDescriptorProto[]|null);
6106
6107 /** FileDescriptorProto options */
6108 options?: (google.protobuf.IFileOptions|null);
6109
6110 /** FileDescriptorProto sourceCodeInfo */
6111 sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null);
6112
6113 /** FileDescriptorProto syntax */
6114 syntax?: (string|null);
6115 }
6116
6117 /** Represents a FileDescriptorProto. */
6118 class FileDescriptorProto implements IFileDescriptorProto {
6119
6120 /**
6121 * Constructs a new FileDescriptorProto.
6122 * @param [properties] Properties to set
6123 */
6124 constructor(properties?: google.protobuf.IFileDescriptorProto);
6125
6126 /** FileDescriptorProto name. */
6127 public name: string;
6128
6129 /** FileDescriptorProto package. */
6130 public package: string;
6131
6132 /** FileDescriptorProto dependency. */
6133 public dependency: string[];
6134
6135 /** FileDescriptorProto publicDependency. */
6136 public publicDependency: number[];
6137
6138 /** FileDescriptorProto weakDependency. */
6139 public weakDependency: number[];
6140
6141 /** FileDescriptorProto messageType. */
6142 public messageType: google.protobuf.IDescriptorProto[];
6143
6144 /** FileDescriptorProto enumType. */
6145 public enumType: google.protobuf.IEnumDescriptorProto[];
6146
6147 /** FileDescriptorProto service. */
6148 public service: google.protobuf.IServiceDescriptorProto[];
6149
6150 /** FileDescriptorProto extension. */
6151 public extension: google.protobuf.IFieldDescriptorProto[];
6152
6153 /** FileDescriptorProto options. */
6154 public options?: (google.protobuf.IFileOptions|null);
6155
6156 /** FileDescriptorProto sourceCodeInfo. */
6157 public sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null);
6158
6159 /** FileDescriptorProto syntax. */
6160 public syntax: string;
6161
6162 /**
6163 * Creates a new FileDescriptorProto instance using the specified properties.
6164 * @param [properties] Properties to set
6165 * @returns FileDescriptorProto instance
6166 */
6167 public static create(properties?: google.protobuf.IFileDescriptorProto): google.protobuf.FileDescriptorProto;
6168
6169 /**
6170 * Encodes the specified FileDescriptorProto message. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages.
6171 * @param message FileDescriptorProto message or plain object to encode
6172 * @param [writer] Writer to encode to
6173 * @returns Writer
6174 */
6175 public static encode(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
6176
6177 /**
6178 * Encodes the specified FileDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages.
6179 * @param message FileDescriptorProto message or plain object to encode
6180 * @param [writer] Writer to encode to
6181 * @returns Writer
6182 */
6183 public static encodeDelimited(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
6184
6185 /**
6186 * Decodes a FileDescriptorProto message from the specified reader or buffer.
6187 * @param reader Reader or buffer to decode from
6188 * @param [length] Message length if known beforehand
6189 * @returns FileDescriptorProto
6190 * @throws {Error} If the payload is not a reader or valid buffer
6191 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6192 */
6193 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorProto;
6194
6195 /**
6196 * Decodes a FileDescriptorProto message from the specified reader or buffer, length delimited.
6197 * @param reader Reader or buffer to decode from
6198 * @returns FileDescriptorProto
6199 * @throws {Error} If the payload is not a reader or valid buffer
6200 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6201 */
6202 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileDescriptorProto;
6203
6204 /**
6205 * Verifies a FileDescriptorProto message.
6206 * @param message Plain object to verify
6207 * @returns `null` if valid, otherwise the reason why it is not
6208 */
6209 public static verify(message: { [k: string]: any }): (string|null);
6210
6211 /**
6212 * Creates a FileDescriptorProto message from a plain object. Also converts values to their respective internal types.
6213 * @param object Plain object
6214 * @returns FileDescriptorProto
6215 */
6216 public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorProto;
6217
6218 /**
6219 * Creates a plain object from a FileDescriptorProto message. Also converts values to other types if specified.
6220 * @param message FileDescriptorProto
6221 * @param [options] Conversion options
6222 * @returns Plain object
6223 */
6224 public static toObject(message: google.protobuf.FileDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
6225
6226 /**
6227 * Converts this FileDescriptorProto to JSON.
6228 * @returns JSON object
6229 */
6230 public toJSON(): { [k: string]: any };
6231 }
6232
6233 /** Properties of a DescriptorProto. */
6234 interface IDescriptorProto {
6235
6236 /** DescriptorProto name */
6237 name?: (string|null);
6238
6239 /** DescriptorProto field */
6240 field?: (google.protobuf.IFieldDescriptorProto[]|null);
6241
6242 /** DescriptorProto extension */
6243 extension?: (google.protobuf.IFieldDescriptorProto[]|null);
6244
6245 /** DescriptorProto nestedType */
6246 nestedType?: (google.protobuf.IDescriptorProto[]|null);
6247
6248 /** DescriptorProto enumType */
6249 enumType?: (google.protobuf.IEnumDescriptorProto[]|null);
6250
6251 /** DescriptorProto extensionRange */
6252 extensionRange?: (google.protobuf.DescriptorProto.IExtensionRange[]|null);
6253
6254 /** DescriptorProto oneofDecl */
6255 oneofDecl?: (google.protobuf.IOneofDescriptorProto[]|null);
6256
6257 /** DescriptorProto options */
6258 options?: (google.protobuf.IMessageOptions|null);
6259
6260 /** DescriptorProto reservedRange */
6261 reservedRange?: (google.protobuf.DescriptorProto.IReservedRange[]|null);
6262
6263 /** DescriptorProto reservedName */
6264 reservedName?: (string[]|null);
6265 }
6266
6267 /** Represents a DescriptorProto. */
6268 class DescriptorProto implements IDescriptorProto {
6269
6270 /**
6271 * Constructs a new DescriptorProto.
6272 * @param [properties] Properties to set
6273 */
6274 constructor(properties?: google.protobuf.IDescriptorProto);
6275
6276 /** DescriptorProto name. */
6277 public name: string;
6278
6279 /** DescriptorProto field. */
6280 public field: google.protobuf.IFieldDescriptorProto[];
6281
6282 /** DescriptorProto extension. */
6283 public extension: google.protobuf.IFieldDescriptorProto[];
6284
6285 /** DescriptorProto nestedType. */
6286 public nestedType: google.protobuf.IDescriptorProto[];
6287
6288 /** DescriptorProto enumType. */
6289 public enumType: google.protobuf.IEnumDescriptorProto[];
6290
6291 /** DescriptorProto extensionRange. */
6292 public extensionRange: google.protobuf.DescriptorProto.IExtensionRange[];
6293
6294 /** DescriptorProto oneofDecl. */
6295 public oneofDecl: google.protobuf.IOneofDescriptorProto[];
6296
6297 /** DescriptorProto options. */
6298 public options?: (google.protobuf.IMessageOptions|null);
6299
6300 /** DescriptorProto reservedRange. */
6301 public reservedRange: google.protobuf.DescriptorProto.IReservedRange[];
6302
6303 /** DescriptorProto reservedName. */
6304 public reservedName: string[];
6305
6306 /**
6307 * Creates a new DescriptorProto instance using the specified properties.
6308 * @param [properties] Properties to set
6309 * @returns DescriptorProto instance
6310 */
6311 public static create(properties?: google.protobuf.IDescriptorProto): google.protobuf.DescriptorProto;
6312
6313 /**
6314 * Encodes the specified DescriptorProto message. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages.
6315 * @param message DescriptorProto message or plain object to encode
6316 * @param [writer] Writer to encode to
6317 * @returns Writer
6318 */
6319 public static encode(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
6320
6321 /**
6322 * Encodes the specified DescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages.
6323 * @param message DescriptorProto message or plain object to encode
6324 * @param [writer] Writer to encode to
6325 * @returns Writer
6326 */
6327 public static encodeDelimited(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
6328
6329 /**
6330 * Decodes a DescriptorProto message from the specified reader or buffer.
6331 * @param reader Reader or buffer to decode from
6332 * @param [length] Message length if known beforehand
6333 * @returns DescriptorProto
6334 * @throws {Error} If the payload is not a reader or valid buffer
6335 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6336 */
6337 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto;
6338
6339 /**
6340 * Decodes a DescriptorProto message from the specified reader or buffer, length delimited.
6341 * @param reader Reader or buffer to decode from
6342 * @returns DescriptorProto
6343 * @throws {Error} If the payload is not a reader or valid buffer
6344 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6345 */
6346 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto;
6347
6348 /**
6349 * Verifies a DescriptorProto message.
6350 * @param message Plain object to verify
6351 * @returns `null` if valid, otherwise the reason why it is not
6352 */
6353 public static verify(message: { [k: string]: any }): (string|null);
6354
6355 /**
6356 * Creates a DescriptorProto message from a plain object. Also converts values to their respective internal types.
6357 * @param object Plain object
6358 * @returns DescriptorProto
6359 */
6360 public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto;
6361
6362 /**
6363 * Creates a plain object from a DescriptorProto message. Also converts values to other types if specified.
6364 * @param message DescriptorProto
6365 * @param [options] Conversion options
6366 * @returns Plain object
6367 */
6368 public static toObject(message: google.protobuf.DescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
6369
6370 /**
6371 * Converts this DescriptorProto to JSON.
6372 * @returns JSON object
6373 */
6374 public toJSON(): { [k: string]: any };
6375 }
6376
6377 namespace DescriptorProto {
6378
6379 /** Properties of an ExtensionRange. */
6380 interface IExtensionRange {
6381
6382 /** ExtensionRange start */
6383 start?: (number|null);
6384
6385 /** ExtensionRange end */
6386 end?: (number|null);
6387
6388 /** ExtensionRange options */
6389 options?: (google.protobuf.IExtensionRangeOptions|null);
6390 }
6391
6392 /** Represents an ExtensionRange. */
6393 class ExtensionRange implements IExtensionRange {
6394
6395 /**
6396 * Constructs a new ExtensionRange.
6397 * @param [properties] Properties to set
6398 */
6399 constructor(properties?: google.protobuf.DescriptorProto.IExtensionRange);
6400
6401 /** ExtensionRange start. */
6402 public start: number;
6403
6404 /** ExtensionRange end. */
6405 public end: number;
6406
6407 /** ExtensionRange options. */
6408 public options?: (google.protobuf.IExtensionRangeOptions|null);
6409
6410 /**
6411 * Creates a new ExtensionRange instance using the specified properties.
6412 * @param [properties] Properties to set
6413 * @returns ExtensionRange instance
6414 */
6415 public static create(properties?: google.protobuf.DescriptorProto.IExtensionRange): google.protobuf.DescriptorProto.ExtensionRange;
6416
6417 /**
6418 * Encodes the specified ExtensionRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages.
6419 * @param message ExtensionRange message or plain object to encode
6420 * @param [writer] Writer to encode to
6421 * @returns Writer
6422 */
6423 public static encode(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer;
6424
6425 /**
6426 * Encodes the specified ExtensionRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages.
6427 * @param message ExtensionRange message or plain object to encode
6428 * @param [writer] Writer to encode to
6429 * @returns Writer
6430 */
6431 public static encodeDelimited(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer;
6432
6433 /**
6434 * Decodes an ExtensionRange message from the specified reader or buffer.
6435 * @param reader Reader or buffer to decode from
6436 * @param [length] Message length if known beforehand
6437 * @returns ExtensionRange
6438 * @throws {Error} If the payload is not a reader or valid buffer
6439 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6440 */
6441 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto.ExtensionRange;
6442
6443 /**
6444 * Decodes an ExtensionRange message from the specified reader or buffer, length delimited.
6445 * @param reader Reader or buffer to decode from
6446 * @returns ExtensionRange
6447 * @throws {Error} If the payload is not a reader or valid buffer
6448 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6449 */
6450 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto.ExtensionRange;
6451
6452 /**
6453 * Verifies an ExtensionRange message.
6454 * @param message Plain object to verify
6455 * @returns `null` if valid, otherwise the reason why it is not
6456 */
6457 public static verify(message: { [k: string]: any }): (string|null);
6458
6459 /**
6460 * Creates an ExtensionRange message from a plain object. Also converts values to their respective internal types.
6461 * @param object Plain object
6462 * @returns ExtensionRange
6463 */
6464 public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ExtensionRange;
6465
6466 /**
6467 * Creates a plain object from an ExtensionRange message. Also converts values to other types if specified.
6468 * @param message ExtensionRange
6469 * @param [options] Conversion options
6470 * @returns Plain object
6471 */
6472 public static toObject(message: google.protobuf.DescriptorProto.ExtensionRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
6473
6474 /**
6475 * Converts this ExtensionRange to JSON.
6476 * @returns JSON object
6477 */
6478 public toJSON(): { [k: string]: any };
6479 }
6480
6481 /** Properties of a ReservedRange. */
6482 interface IReservedRange {
6483
6484 /** ReservedRange start */
6485 start?: (number|null);
6486
6487 /** ReservedRange end */
6488 end?: (number|null);
6489 }
6490
6491 /** Represents a ReservedRange. */
6492 class ReservedRange implements IReservedRange {
6493
6494 /**
6495 * Constructs a new ReservedRange.
6496 * @param [properties] Properties to set
6497 */
6498 constructor(properties?: google.protobuf.DescriptorProto.IReservedRange);
6499
6500 /** ReservedRange start. */
6501 public start: number;
6502
6503 /** ReservedRange end. */
6504 public end: number;
6505
6506 /**
6507 * Creates a new ReservedRange instance using the specified properties.
6508 * @param [properties] Properties to set
6509 * @returns ReservedRange instance
6510 */
6511 public static create(properties?: google.protobuf.DescriptorProto.IReservedRange): google.protobuf.DescriptorProto.ReservedRange;
6512
6513 /**
6514 * Encodes the specified ReservedRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages.
6515 * @param message ReservedRange message or plain object to encode
6516 * @param [writer] Writer to encode to
6517 * @returns Writer
6518 */
6519 public static encode(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
6520
6521 /**
6522 * Encodes the specified ReservedRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages.
6523 * @param message ReservedRange message or plain object to encode
6524 * @param [writer] Writer to encode to
6525 * @returns Writer
6526 */
6527 public static encodeDelimited(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
6528
6529 /**
6530 * Decodes a ReservedRange message from the specified reader or buffer.
6531 * @param reader Reader or buffer to decode from
6532 * @param [length] Message length if known beforehand
6533 * @returns ReservedRange
6534 * @throws {Error} If the payload is not a reader or valid buffer
6535 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6536 */
6537 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto.ReservedRange;
6538
6539 /**
6540 * Decodes a ReservedRange message from the specified reader or buffer, length delimited.
6541 * @param reader Reader or buffer to decode from
6542 * @returns ReservedRange
6543 * @throws {Error} If the payload is not a reader or valid buffer
6544 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6545 */
6546 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto.ReservedRange;
6547
6548 /**
6549 * Verifies a ReservedRange message.
6550 * @param message Plain object to verify
6551 * @returns `null` if valid, otherwise the reason why it is not
6552 */
6553 public static verify(message: { [k: string]: any }): (string|null);
6554
6555 /**
6556 * Creates a ReservedRange message from a plain object. Also converts values to their respective internal types.
6557 * @param object Plain object
6558 * @returns ReservedRange
6559 */
6560 public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ReservedRange;
6561
6562 /**
6563 * Creates a plain object from a ReservedRange message. Also converts values to other types if specified.
6564 * @param message ReservedRange
6565 * @param [options] Conversion options
6566 * @returns Plain object
6567 */
6568 public static toObject(message: google.protobuf.DescriptorProto.ReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
6569
6570 /**
6571 * Converts this ReservedRange to JSON.
6572 * @returns JSON object
6573 */
6574 public toJSON(): { [k: string]: any };
6575 }
6576 }
6577
6578 /** Properties of an ExtensionRangeOptions. */
6579 interface IExtensionRangeOptions {
6580
6581 /** ExtensionRangeOptions uninterpretedOption */
6582 uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
6583 }
6584
6585 /** Represents an ExtensionRangeOptions. */
6586 class ExtensionRangeOptions implements IExtensionRangeOptions {
6587
6588 /**
6589 * Constructs a new ExtensionRangeOptions.
6590 * @param [properties] Properties to set
6591 */
6592 constructor(properties?: google.protobuf.IExtensionRangeOptions);
6593
6594 /** ExtensionRangeOptions uninterpretedOption. */
6595 public uninterpretedOption: google.protobuf.IUninterpretedOption[];
6596
6597 /**
6598 * Creates a new ExtensionRangeOptions instance using the specified properties.
6599 * @param [properties] Properties to set
6600 * @returns ExtensionRangeOptions instance
6601 */
6602 public static create(properties?: google.protobuf.IExtensionRangeOptions): google.protobuf.ExtensionRangeOptions;
6603
6604 /**
6605 * Encodes the specified ExtensionRangeOptions message. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages.
6606 * @param message ExtensionRangeOptions message or plain object to encode
6607 * @param [writer] Writer to encode to
6608 * @returns Writer
6609 */
6610 public static encode(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer;
6611
6612 /**
6613 * Encodes the specified ExtensionRangeOptions message, length delimited. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages.
6614 * @param message ExtensionRangeOptions message or plain object to encode
6615 * @param [writer] Writer to encode to
6616 * @returns Writer
6617 */
6618 public static encodeDelimited(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer;
6619
6620 /**
6621 * Decodes an ExtensionRangeOptions message from the specified reader or buffer.
6622 * @param reader Reader or buffer to decode from
6623 * @param [length] Message length if known beforehand
6624 * @returns ExtensionRangeOptions
6625 * @throws {Error} If the payload is not a reader or valid buffer
6626 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6627 */
6628 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ExtensionRangeOptions;
6629
6630 /**
6631 * Decodes an ExtensionRangeOptions message from the specified reader or buffer, length delimited.
6632 * @param reader Reader or buffer to decode from
6633 * @returns ExtensionRangeOptions
6634 * @throws {Error} If the payload is not a reader or valid buffer
6635 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6636 */
6637 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ExtensionRangeOptions;
6638
6639 /**
6640 * Verifies an ExtensionRangeOptions message.
6641 * @param message Plain object to verify
6642 * @returns `null` if valid, otherwise the reason why it is not
6643 */
6644 public static verify(message: { [k: string]: any }): (string|null);
6645
6646 /**
6647 * Creates an ExtensionRangeOptions message from a plain object. Also converts values to their respective internal types.
6648 * @param object Plain object
6649 * @returns ExtensionRangeOptions
6650 */
6651 public static fromObject(object: { [k: string]: any }): google.protobuf.ExtensionRangeOptions;
6652
6653 /**
6654 * Creates a plain object from an ExtensionRangeOptions message. Also converts values to other types if specified.
6655 * @param message ExtensionRangeOptions
6656 * @param [options] Conversion options
6657 * @returns Plain object
6658 */
6659 public static toObject(message: google.protobuf.ExtensionRangeOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
6660
6661 /**
6662 * Converts this ExtensionRangeOptions to JSON.
6663 * @returns JSON object
6664 */
6665 public toJSON(): { [k: string]: any };
6666 }
6667
6668 /** Properties of a FieldDescriptorProto. */
6669 interface IFieldDescriptorProto {
6670
6671 /** FieldDescriptorProto name */
6672 name?: (string|null);
6673
6674 /** FieldDescriptorProto number */
6675 number?: (number|null);
6676
6677 /** FieldDescriptorProto label */
6678 label?: (google.protobuf.FieldDescriptorProto.Label|keyof typeof google.protobuf.FieldDescriptorProto.Label|null);
6679
6680 /** FieldDescriptorProto type */
6681 type?: (google.protobuf.FieldDescriptorProto.Type|keyof typeof google.protobuf.FieldDescriptorProto.Type|null);
6682
6683 /** FieldDescriptorProto typeName */
6684 typeName?: (string|null);
6685
6686 /** FieldDescriptorProto extendee */
6687 extendee?: (string|null);
6688
6689 /** FieldDescriptorProto defaultValue */
6690 defaultValue?: (string|null);
6691
6692 /** FieldDescriptorProto oneofIndex */
6693 oneofIndex?: (number|null);
6694
6695 /** FieldDescriptorProto jsonName */
6696 jsonName?: (string|null);
6697
6698 /** FieldDescriptorProto options */
6699 options?: (google.protobuf.IFieldOptions|null);
6700
6701 /** FieldDescriptorProto proto3Optional */
6702 proto3Optional?: (boolean|null);
6703 }
6704
6705 /** Represents a FieldDescriptorProto. */
6706 class FieldDescriptorProto implements IFieldDescriptorProto {
6707
6708 /**
6709 * Constructs a new FieldDescriptorProto.
6710 * @param [properties] Properties to set
6711 */
6712 constructor(properties?: google.protobuf.IFieldDescriptorProto);
6713
6714 /** FieldDescriptorProto name. */
6715 public name: string;
6716
6717 /** FieldDescriptorProto number. */
6718 public number: number;
6719
6720 /** FieldDescriptorProto label. */
6721 public label: (google.protobuf.FieldDescriptorProto.Label|keyof typeof google.protobuf.FieldDescriptorProto.Label);
6722
6723 /** FieldDescriptorProto type. */
6724 public type: (google.protobuf.FieldDescriptorProto.Type|keyof typeof google.protobuf.FieldDescriptorProto.Type);
6725
6726 /** FieldDescriptorProto typeName. */
6727 public typeName: string;
6728
6729 /** FieldDescriptorProto extendee. */
6730 public extendee: string;
6731
6732 /** FieldDescriptorProto defaultValue. */
6733 public defaultValue: string;
6734
6735 /** FieldDescriptorProto oneofIndex. */
6736 public oneofIndex: number;
6737
6738 /** FieldDescriptorProto jsonName. */
6739 public jsonName: string;
6740
6741 /** FieldDescriptorProto options. */
6742 public options?: (google.protobuf.IFieldOptions|null);
6743
6744 /** FieldDescriptorProto proto3Optional. */
6745 public proto3Optional: boolean;
6746
6747 /**
6748 * Creates a new FieldDescriptorProto instance using the specified properties.
6749 * @param [properties] Properties to set
6750 * @returns FieldDescriptorProto instance
6751 */
6752 public static create(properties?: google.protobuf.IFieldDescriptorProto): google.protobuf.FieldDescriptorProto;
6753
6754 /**
6755 * Encodes the specified FieldDescriptorProto message. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages.
6756 * @param message FieldDescriptorProto message or plain object to encode
6757 * @param [writer] Writer to encode to
6758 * @returns Writer
6759 */
6760 public static encode(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
6761
6762 /**
6763 * Encodes the specified FieldDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages.
6764 * @param message FieldDescriptorProto message or plain object to encode
6765 * @param [writer] Writer to encode to
6766 * @returns Writer
6767 */
6768 public static encodeDelimited(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
6769
6770 /**
6771 * Decodes a FieldDescriptorProto message from the specified reader or buffer.
6772 * @param reader Reader or buffer to decode from
6773 * @param [length] Message length if known beforehand
6774 * @returns FieldDescriptorProto
6775 * @throws {Error} If the payload is not a reader or valid buffer
6776 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6777 */
6778 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldDescriptorProto;
6779
6780 /**
6781 * Decodes a FieldDescriptorProto message from the specified reader or buffer, length delimited.
6782 * @param reader Reader or buffer to decode from
6783 * @returns FieldDescriptorProto
6784 * @throws {Error} If the payload is not a reader or valid buffer
6785 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6786 */
6787 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldDescriptorProto;
6788
6789 /**
6790 * Verifies a FieldDescriptorProto message.
6791 * @param message Plain object to verify
6792 * @returns `null` if valid, otherwise the reason why it is not
6793 */
6794 public static verify(message: { [k: string]: any }): (string|null);
6795
6796 /**
6797 * Creates a FieldDescriptorProto message from a plain object. Also converts values to their respective internal types.
6798 * @param object Plain object
6799 * @returns FieldDescriptorProto
6800 */
6801 public static fromObject(object: { [k: string]: any }): google.protobuf.FieldDescriptorProto;
6802
6803 /**
6804 * Creates a plain object from a FieldDescriptorProto message. Also converts values to other types if specified.
6805 * @param message FieldDescriptorProto
6806 * @param [options] Conversion options
6807 * @returns Plain object
6808 */
6809 public static toObject(message: google.protobuf.FieldDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
6810
6811 /**
6812 * Converts this FieldDescriptorProto to JSON.
6813 * @returns JSON object
6814 */
6815 public toJSON(): { [k: string]: any };
6816 }
6817
6818 namespace FieldDescriptorProto {
6819
6820 /** Type enum. */
6821 enum Type {
6822 TYPE_DOUBLE = 1,
6823 TYPE_FLOAT = 2,
6824 TYPE_INT64 = 3,
6825 TYPE_UINT64 = 4,
6826 TYPE_INT32 = 5,
6827 TYPE_FIXED64 = 6,
6828 TYPE_FIXED32 = 7,
6829 TYPE_BOOL = 8,
6830 TYPE_STRING = 9,
6831 TYPE_GROUP = 10,
6832 TYPE_MESSAGE = 11,
6833 TYPE_BYTES = 12,
6834 TYPE_UINT32 = 13,
6835 TYPE_ENUM = 14,
6836 TYPE_SFIXED32 = 15,
6837 TYPE_SFIXED64 = 16,
6838 TYPE_SINT32 = 17,
6839 TYPE_SINT64 = 18
6840 }
6841
6842 /** Label enum. */
6843 enum Label {
6844 LABEL_OPTIONAL = 1,
6845 LABEL_REQUIRED = 2,
6846 LABEL_REPEATED = 3
6847 }
6848 }
6849
6850 /** Properties of an OneofDescriptorProto. */
6851 interface IOneofDescriptorProto {
6852
6853 /** OneofDescriptorProto name */
6854 name?: (string|null);
6855
6856 /** OneofDescriptorProto options */
6857 options?: (google.protobuf.IOneofOptions|null);
6858 }
6859
6860 /** Represents an OneofDescriptorProto. */
6861 class OneofDescriptorProto implements IOneofDescriptorProto {
6862
6863 /**
6864 * Constructs a new OneofDescriptorProto.
6865 * @param [properties] Properties to set
6866 */
6867 constructor(properties?: google.protobuf.IOneofDescriptorProto);
6868
6869 /** OneofDescriptorProto name. */
6870 public name: string;
6871
6872 /** OneofDescriptorProto options. */
6873 public options?: (google.protobuf.IOneofOptions|null);
6874
6875 /**
6876 * Creates a new OneofDescriptorProto instance using the specified properties.
6877 * @param [properties] Properties to set
6878 * @returns OneofDescriptorProto instance
6879 */
6880 public static create(properties?: google.protobuf.IOneofDescriptorProto): google.protobuf.OneofDescriptorProto;
6881
6882 /**
6883 * Encodes the specified OneofDescriptorProto message. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages.
6884 * @param message OneofDescriptorProto message or plain object to encode
6885 * @param [writer] Writer to encode to
6886 * @returns Writer
6887 */
6888 public static encode(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
6889
6890 /**
6891 * Encodes the specified OneofDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages.
6892 * @param message OneofDescriptorProto message or plain object to encode
6893 * @param [writer] Writer to encode to
6894 * @returns Writer
6895 */
6896 public static encodeDelimited(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
6897
6898 /**
6899 * Decodes an OneofDescriptorProto message from the specified reader or buffer.
6900 * @param reader Reader or buffer to decode from
6901 * @param [length] Message length if known beforehand
6902 * @returns OneofDescriptorProto
6903 * @throws {Error} If the payload is not a reader or valid buffer
6904 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6905 */
6906 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofDescriptorProto;
6907
6908 /**
6909 * Decodes an OneofDescriptorProto message from the specified reader or buffer, length delimited.
6910 * @param reader Reader or buffer to decode from
6911 * @returns OneofDescriptorProto
6912 * @throws {Error} If the payload is not a reader or valid buffer
6913 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6914 */
6915 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.OneofDescriptorProto;
6916
6917 /**
6918 * Verifies an OneofDescriptorProto message.
6919 * @param message Plain object to verify
6920 * @returns `null` if valid, otherwise the reason why it is not
6921 */
6922 public static verify(message: { [k: string]: any }): (string|null);
6923
6924 /**
6925 * Creates an OneofDescriptorProto message from a plain object. Also converts values to their respective internal types.
6926 * @param object Plain object
6927 * @returns OneofDescriptorProto
6928 */
6929 public static fromObject(object: { [k: string]: any }): google.protobuf.OneofDescriptorProto;
6930
6931 /**
6932 * Creates a plain object from an OneofDescriptorProto message. Also converts values to other types if specified.
6933 * @param message OneofDescriptorProto
6934 * @param [options] Conversion options
6935 * @returns Plain object
6936 */
6937 public static toObject(message: google.protobuf.OneofDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
6938
6939 /**
6940 * Converts this OneofDescriptorProto to JSON.
6941 * @returns JSON object
6942 */
6943 public toJSON(): { [k: string]: any };
6944 }
6945
6946 /** Properties of an EnumDescriptorProto. */
6947 interface IEnumDescriptorProto {
6948
6949 /** EnumDescriptorProto name */
6950 name?: (string|null);
6951
6952 /** EnumDescriptorProto value */
6953 value?: (google.protobuf.IEnumValueDescriptorProto[]|null);
6954
6955 /** EnumDescriptorProto options */
6956 options?: (google.protobuf.IEnumOptions|null);
6957
6958 /** EnumDescriptorProto reservedRange */
6959 reservedRange?: (google.protobuf.EnumDescriptorProto.IEnumReservedRange[]|null);
6960
6961 /** EnumDescriptorProto reservedName */
6962 reservedName?: (string[]|null);
6963 }
6964
6965 /** Represents an EnumDescriptorProto. */
6966 class EnumDescriptorProto implements IEnumDescriptorProto {
6967
6968 /**
6969 * Constructs a new EnumDescriptorProto.
6970 * @param [properties] Properties to set
6971 */
6972 constructor(properties?: google.protobuf.IEnumDescriptorProto);
6973
6974 /** EnumDescriptorProto name. */
6975 public name: string;
6976
6977 /** EnumDescriptorProto value. */
6978 public value: google.protobuf.IEnumValueDescriptorProto[];
6979
6980 /** EnumDescriptorProto options. */
6981 public options?: (google.protobuf.IEnumOptions|null);
6982
6983 /** EnumDescriptorProto reservedRange. */
6984 public reservedRange: google.protobuf.EnumDescriptorProto.IEnumReservedRange[];
6985
6986 /** EnumDescriptorProto reservedName. */
6987 public reservedName: string[];
6988
6989 /**
6990 * Creates a new EnumDescriptorProto instance using the specified properties.
6991 * @param [properties] Properties to set
6992 * @returns EnumDescriptorProto instance
6993 */
6994 public static create(properties?: google.protobuf.IEnumDescriptorProto): google.protobuf.EnumDescriptorProto;
6995
6996 /**
6997 * Encodes the specified EnumDescriptorProto message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages.
6998 * @param message EnumDescriptorProto message or plain object to encode
6999 * @param [writer] Writer to encode to
7000 * @returns Writer
7001 */
7002 public static encode(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
7003
7004 /**
7005 * Encodes the specified EnumDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages.
7006 * @param message EnumDescriptorProto message or plain object to encode
7007 * @param [writer] Writer to encode to
7008 * @returns Writer
7009 */
7010 public static encodeDelimited(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
7011
7012 /**
7013 * Decodes an EnumDescriptorProto message from the specified reader or buffer.
7014 * @param reader Reader or buffer to decode from
7015 * @param [length] Message length if known beforehand
7016 * @returns EnumDescriptorProto
7017 * @throws {Error} If the payload is not a reader or valid buffer
7018 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7019 */
7020 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumDescriptorProto;
7021
7022 /**
7023 * Decodes an EnumDescriptorProto message from the specified reader or buffer, length delimited.
7024 * @param reader Reader or buffer to decode from
7025 * @returns EnumDescriptorProto
7026 * @throws {Error} If the payload is not a reader or valid buffer
7027 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7028 */
7029 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumDescriptorProto;
7030
7031 /**
7032 * Verifies an EnumDescriptorProto message.
7033 * @param message Plain object to verify
7034 * @returns `null` if valid, otherwise the reason why it is not
7035 */
7036 public static verify(message: { [k: string]: any }): (string|null);
7037
7038 /**
7039 * Creates an EnumDescriptorProto message from a plain object. Also converts values to their respective internal types.
7040 * @param object Plain object
7041 * @returns EnumDescriptorProto
7042 */
7043 public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto;
7044
7045 /**
7046 * Creates a plain object from an EnumDescriptorProto message. Also converts values to other types if specified.
7047 * @param message EnumDescriptorProto
7048 * @param [options] Conversion options
7049 * @returns Plain object
7050 */
7051 public static toObject(message: google.protobuf.EnumDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
7052
7053 /**
7054 * Converts this EnumDescriptorProto to JSON.
7055 * @returns JSON object
7056 */
7057 public toJSON(): { [k: string]: any };
7058 }
7059
7060 namespace EnumDescriptorProto {
7061
7062 /** Properties of an EnumReservedRange. */
7063 interface IEnumReservedRange {
7064
7065 /** EnumReservedRange start */
7066 start?: (number|null);
7067
7068 /** EnumReservedRange end */
7069 end?: (number|null);
7070 }
7071
7072 /** Represents an EnumReservedRange. */
7073 class EnumReservedRange implements IEnumReservedRange {
7074
7075 /**
7076 * Constructs a new EnumReservedRange.
7077 * @param [properties] Properties to set
7078 */
7079 constructor(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange);
7080
7081 /** EnumReservedRange start. */
7082 public start: number;
7083
7084 /** EnumReservedRange end. */
7085 public end: number;
7086
7087 /**
7088 * Creates a new EnumReservedRange instance using the specified properties.
7089 * @param [properties] Properties to set
7090 * @returns EnumReservedRange instance
7091 */
7092 public static create(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange): google.protobuf.EnumDescriptorProto.EnumReservedRange;
7093
7094 /**
7095 * Encodes the specified EnumReservedRange message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages.
7096 * @param message EnumReservedRange message or plain object to encode
7097 * @param [writer] Writer to encode to
7098 * @returns Writer
7099 */
7100 public static encode(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
7101
7102 /**
7103 * Encodes the specified EnumReservedRange message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages.
7104 * @param message EnumReservedRange message or plain object to encode
7105 * @param [writer] Writer to encode to
7106 * @returns Writer
7107 */
7108 public static encodeDelimited(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
7109
7110 /**
7111 * Decodes an EnumReservedRange message from the specified reader or buffer.
7112 * @param reader Reader or buffer to decode from
7113 * @param [length] Message length if known beforehand
7114 * @returns EnumReservedRange
7115 * @throws {Error} If the payload is not a reader or valid buffer
7116 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7117 */
7118 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumDescriptorProto.EnumReservedRange;
7119
7120 /**
7121 * Decodes an EnumReservedRange message from the specified reader or buffer, length delimited.
7122 * @param reader Reader or buffer to decode from
7123 * @returns EnumReservedRange
7124 * @throws {Error} If the payload is not a reader or valid buffer
7125 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7126 */
7127 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumDescriptorProto.EnumReservedRange;
7128
7129 /**
7130 * Verifies an EnumReservedRange message.
7131 * @param message Plain object to verify
7132 * @returns `null` if valid, otherwise the reason why it is not
7133 */
7134 public static verify(message: { [k: string]: any }): (string|null);
7135
7136 /**
7137 * Creates an EnumReservedRange message from a plain object. Also converts values to their respective internal types.
7138 * @param object Plain object
7139 * @returns EnumReservedRange
7140 */
7141 public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto.EnumReservedRange;
7142
7143 /**
7144 * Creates a plain object from an EnumReservedRange message. Also converts values to other types if specified.
7145 * @param message EnumReservedRange
7146 * @param [options] Conversion options
7147 * @returns Plain object
7148 */
7149 public static toObject(message: google.protobuf.EnumDescriptorProto.EnumReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
7150
7151 /**
7152 * Converts this EnumReservedRange to JSON.
7153 * @returns JSON object
7154 */
7155 public toJSON(): { [k: string]: any };
7156 }
7157 }
7158
7159 /** Properties of an EnumValueDescriptorProto. */
7160 interface IEnumValueDescriptorProto {
7161
7162 /** EnumValueDescriptorProto name */
7163 name?: (string|null);
7164
7165 /** EnumValueDescriptorProto number */
7166 number?: (number|null);
7167
7168 /** EnumValueDescriptorProto options */
7169 options?: (google.protobuf.IEnumValueOptions|null);
7170 }
7171
7172 /** Represents an EnumValueDescriptorProto. */
7173 class EnumValueDescriptorProto implements IEnumValueDescriptorProto {
7174
7175 /**
7176 * Constructs a new EnumValueDescriptorProto.
7177 * @param [properties] Properties to set
7178 */
7179 constructor(properties?: google.protobuf.IEnumValueDescriptorProto);
7180
7181 /** EnumValueDescriptorProto name. */
7182 public name: string;
7183
7184 /** EnumValueDescriptorProto number. */
7185 public number: number;
7186
7187 /** EnumValueDescriptorProto options. */
7188 public options?: (google.protobuf.IEnumValueOptions|null);
7189
7190 /**
7191 * Creates a new EnumValueDescriptorProto instance using the specified properties.
7192 * @param [properties] Properties to set
7193 * @returns EnumValueDescriptorProto instance
7194 */
7195 public static create(properties?: google.protobuf.IEnumValueDescriptorProto): google.protobuf.EnumValueDescriptorProto;
7196
7197 /**
7198 * Encodes the specified EnumValueDescriptorProto message. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages.
7199 * @param message EnumValueDescriptorProto message or plain object to encode
7200 * @param [writer] Writer to encode to
7201 * @returns Writer
7202 */
7203 public static encode(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
7204
7205 /**
7206 * Encodes the specified EnumValueDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages.
7207 * @param message EnumValueDescriptorProto message or plain object to encode
7208 * @param [writer] Writer to encode to
7209 * @returns Writer
7210 */
7211 public static encodeDelimited(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
7212
7213 /**
7214 * Decodes an EnumValueDescriptorProto message from the specified reader or buffer.
7215 * @param reader Reader or buffer to decode from
7216 * @param [length] Message length if known beforehand
7217 * @returns EnumValueDescriptorProto
7218 * @throws {Error} If the payload is not a reader or valid buffer
7219 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7220 */
7221 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueDescriptorProto;
7222
7223 /**
7224 * Decodes an EnumValueDescriptorProto message from the specified reader or buffer, length delimited.
7225 * @param reader Reader or buffer to decode from
7226 * @returns EnumValueDescriptorProto
7227 * @throws {Error} If the payload is not a reader or valid buffer
7228 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7229 */
7230 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumValueDescriptorProto;
7231
7232 /**
7233 * Verifies an EnumValueDescriptorProto message.
7234 * @param message Plain object to verify
7235 * @returns `null` if valid, otherwise the reason why it is not
7236 */
7237 public static verify(message: { [k: string]: any }): (string|null);
7238
7239 /**
7240 * Creates an EnumValueDescriptorProto message from a plain object. Also converts values to their respective internal types.
7241 * @param object Plain object
7242 * @returns EnumValueDescriptorProto
7243 */
7244 public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueDescriptorProto;
7245
7246 /**
7247 * Creates a plain object from an EnumValueDescriptorProto message. Also converts values to other types if specified.
7248 * @param message EnumValueDescriptorProto
7249 * @param [options] Conversion options
7250 * @returns Plain object
7251 */
7252 public static toObject(message: google.protobuf.EnumValueDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
7253
7254 /**
7255 * Converts this EnumValueDescriptorProto to JSON.
7256 * @returns JSON object
7257 */
7258 public toJSON(): { [k: string]: any };
7259 }
7260
7261 /** Properties of a ServiceDescriptorProto. */
7262 interface IServiceDescriptorProto {
7263
7264 /** ServiceDescriptorProto name */
7265 name?: (string|null);
7266
7267 /** ServiceDescriptorProto method */
7268 method?: (google.protobuf.IMethodDescriptorProto[]|null);
7269
7270 /** ServiceDescriptorProto options */
7271 options?: (google.protobuf.IServiceOptions|null);
7272 }
7273
7274 /** Represents a ServiceDescriptorProto. */
7275 class ServiceDescriptorProto implements IServiceDescriptorProto {
7276
7277 /**
7278 * Constructs a new ServiceDescriptorProto.
7279 * @param [properties] Properties to set
7280 */
7281 constructor(properties?: google.protobuf.IServiceDescriptorProto);
7282
7283 /** ServiceDescriptorProto name. */
7284 public name: string;
7285
7286 /** ServiceDescriptorProto method. */
7287 public method: google.protobuf.IMethodDescriptorProto[];
7288
7289 /** ServiceDescriptorProto options. */
7290 public options?: (google.protobuf.IServiceOptions|null);
7291
7292 /**
7293 * Creates a new ServiceDescriptorProto instance using the specified properties.
7294 * @param [properties] Properties to set
7295 * @returns ServiceDescriptorProto instance
7296 */
7297 public static create(properties?: google.protobuf.IServiceDescriptorProto): google.protobuf.ServiceDescriptorProto;
7298
7299 /**
7300 * Encodes the specified ServiceDescriptorProto message. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages.
7301 * @param message ServiceDescriptorProto message or plain object to encode
7302 * @param [writer] Writer to encode to
7303 * @returns Writer
7304 */
7305 public static encode(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
7306
7307 /**
7308 * Encodes the specified ServiceDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages.
7309 * @param message ServiceDescriptorProto message or plain object to encode
7310 * @param [writer] Writer to encode to
7311 * @returns Writer
7312 */
7313 public static encodeDelimited(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
7314
7315 /**
7316 * Decodes a ServiceDescriptorProto message from the specified reader or buffer.
7317 * @param reader Reader or buffer to decode from
7318 * @param [length] Message length if known beforehand
7319 * @returns ServiceDescriptorProto
7320 * @throws {Error} If the payload is not a reader or valid buffer
7321 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7322 */
7323 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceDescriptorProto;
7324
7325 /**
7326 * Decodes a ServiceDescriptorProto message from the specified reader or buffer, length delimited.
7327 * @param reader Reader or buffer to decode from
7328 * @returns ServiceDescriptorProto
7329 * @throws {Error} If the payload is not a reader or valid buffer
7330 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7331 */
7332 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ServiceDescriptorProto;
7333
7334 /**
7335 * Verifies a ServiceDescriptorProto message.
7336 * @param message Plain object to verify
7337 * @returns `null` if valid, otherwise the reason why it is not
7338 */
7339 public static verify(message: { [k: string]: any }): (string|null);
7340
7341 /**
7342 * Creates a ServiceDescriptorProto message from a plain object. Also converts values to their respective internal types.
7343 * @param object Plain object
7344 * @returns ServiceDescriptorProto
7345 */
7346 public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceDescriptorProto;
7347
7348 /**
7349 * Creates a plain object from a ServiceDescriptorProto message. Also converts values to other types if specified.
7350 * @param message ServiceDescriptorProto
7351 * @param [options] Conversion options
7352 * @returns Plain object
7353 */
7354 public static toObject(message: google.protobuf.ServiceDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
7355
7356 /**
7357 * Converts this ServiceDescriptorProto to JSON.
7358 * @returns JSON object
7359 */
7360 public toJSON(): { [k: string]: any };
7361 }
7362
7363 /** Properties of a MethodDescriptorProto. */
7364 interface IMethodDescriptorProto {
7365
7366 /** MethodDescriptorProto name */
7367 name?: (string|null);
7368
7369 /** MethodDescriptorProto inputType */
7370 inputType?: (string|null);
7371
7372 /** MethodDescriptorProto outputType */
7373 outputType?: (string|null);
7374
7375 /** MethodDescriptorProto options */
7376 options?: (google.protobuf.IMethodOptions|null);
7377
7378 /** MethodDescriptorProto clientStreaming */
7379 clientStreaming?: (boolean|null);
7380
7381 /** MethodDescriptorProto serverStreaming */
7382 serverStreaming?: (boolean|null);
7383 }
7384
7385 /** Represents a MethodDescriptorProto. */
7386 class MethodDescriptorProto implements IMethodDescriptorProto {
7387
7388 /**
7389 * Constructs a new MethodDescriptorProto.
7390 * @param [properties] Properties to set
7391 */
7392 constructor(properties?: google.protobuf.IMethodDescriptorProto);
7393
7394 /** MethodDescriptorProto name. */
7395 public name: string;
7396
7397 /** MethodDescriptorProto inputType. */
7398 public inputType: string;
7399
7400 /** MethodDescriptorProto outputType. */
7401 public outputType: string;
7402
7403 /** MethodDescriptorProto options. */
7404 public options?: (google.protobuf.IMethodOptions|null);
7405
7406 /** MethodDescriptorProto clientStreaming. */
7407 public clientStreaming: boolean;
7408
7409 /** MethodDescriptorProto serverStreaming. */
7410 public serverStreaming: boolean;
7411
7412 /**
7413 * Creates a new MethodDescriptorProto instance using the specified properties.
7414 * @param [properties] Properties to set
7415 * @returns MethodDescriptorProto instance
7416 */
7417 public static create(properties?: google.protobuf.IMethodDescriptorProto): google.protobuf.MethodDescriptorProto;
7418
7419 /**
7420 * Encodes the specified MethodDescriptorProto message. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages.
7421 * @param message MethodDescriptorProto message or plain object to encode
7422 * @param [writer] Writer to encode to
7423 * @returns Writer
7424 */
7425 public static encode(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
7426
7427 /**
7428 * Encodes the specified MethodDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages.
7429 * @param message MethodDescriptorProto message or plain object to encode
7430 * @param [writer] Writer to encode to
7431 * @returns Writer
7432 */
7433 public static encodeDelimited(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
7434
7435 /**
7436 * Decodes a MethodDescriptorProto message from the specified reader or buffer.
7437 * @param reader Reader or buffer to decode from
7438 * @param [length] Message length if known beforehand
7439 * @returns MethodDescriptorProto
7440 * @throws {Error} If the payload is not a reader or valid buffer
7441 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7442 */
7443 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodDescriptorProto;
7444
7445 /**
7446 * Decodes a MethodDescriptorProto message from the specified reader or buffer, length delimited.
7447 * @param reader Reader or buffer to decode from
7448 * @returns MethodDescriptorProto
7449 * @throws {Error} If the payload is not a reader or valid buffer
7450 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7451 */
7452 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MethodDescriptorProto;
7453
7454 /**
7455 * Verifies a MethodDescriptorProto message.
7456 * @param message Plain object to verify
7457 * @returns `null` if valid, otherwise the reason why it is not
7458 */
7459 public static verify(message: { [k: string]: any }): (string|null);
7460
7461 /**
7462 * Creates a MethodDescriptorProto message from a plain object. Also converts values to their respective internal types.
7463 * @param object Plain object
7464 * @returns MethodDescriptorProto
7465 */
7466 public static fromObject(object: { [k: string]: any }): google.protobuf.MethodDescriptorProto;
7467
7468 /**
7469 * Creates a plain object from a MethodDescriptorProto message. Also converts values to other types if specified.
7470 * @param message MethodDescriptorProto
7471 * @param [options] Conversion options
7472 * @returns Plain object
7473 */
7474 public static toObject(message: google.protobuf.MethodDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
7475
7476 /**
7477 * Converts this MethodDescriptorProto to JSON.
7478 * @returns JSON object
7479 */
7480 public toJSON(): { [k: string]: any };
7481 }
7482
7483 /** Properties of a FileOptions. */
7484 interface IFileOptions {
7485
7486 /** FileOptions javaPackage */
7487 javaPackage?: (string|null);
7488
7489 /** FileOptions javaOuterClassname */
7490 javaOuterClassname?: (string|null);
7491
7492 /** FileOptions javaMultipleFiles */
7493 javaMultipleFiles?: (boolean|null);
7494
7495 /** FileOptions javaGenerateEqualsAndHash */
7496 javaGenerateEqualsAndHash?: (boolean|null);
7497
7498 /** FileOptions javaStringCheckUtf8 */
7499 javaStringCheckUtf8?: (boolean|null);
7500
7501 /** FileOptions optimizeFor */
7502 optimizeFor?: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode|null);
7503
7504 /** FileOptions goPackage */
7505 goPackage?: (string|null);
7506
7507 /** FileOptions ccGenericServices */
7508 ccGenericServices?: (boolean|null);
7509
7510 /** FileOptions javaGenericServices */
7511 javaGenericServices?: (boolean|null);
7512
7513 /** FileOptions pyGenericServices */
7514 pyGenericServices?: (boolean|null);
7515
7516 /** FileOptions phpGenericServices */
7517 phpGenericServices?: (boolean|null);
7518
7519 /** FileOptions deprecated */
7520 deprecated?: (boolean|null);
7521
7522 /** FileOptions ccEnableArenas */
7523 ccEnableArenas?: (boolean|null);
7524
7525 /** FileOptions objcClassPrefix */
7526 objcClassPrefix?: (string|null);
7527
7528 /** FileOptions csharpNamespace */
7529 csharpNamespace?: (string|null);
7530
7531 /** FileOptions swiftPrefix */
7532 swiftPrefix?: (string|null);
7533
7534 /** FileOptions phpClassPrefix */
7535 phpClassPrefix?: (string|null);
7536
7537 /** FileOptions phpNamespace */
7538 phpNamespace?: (string|null);
7539
7540 /** FileOptions phpMetadataNamespace */
7541 phpMetadataNamespace?: (string|null);
7542
7543 /** FileOptions rubyPackage */
7544 rubyPackage?: (string|null);
7545
7546 /** FileOptions uninterpretedOption */
7547 uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
7548 }
7549
7550 /** Represents a FileOptions. */
7551 class FileOptions implements IFileOptions {
7552
7553 /**
7554 * Constructs a new FileOptions.
7555 * @param [properties] Properties to set
7556 */
7557 constructor(properties?: google.protobuf.IFileOptions);
7558
7559 /** FileOptions javaPackage. */
7560 public javaPackage: string;
7561
7562 /** FileOptions javaOuterClassname. */
7563 public javaOuterClassname: string;
7564
7565 /** FileOptions javaMultipleFiles. */
7566 public javaMultipleFiles: boolean;
7567
7568 /** FileOptions javaGenerateEqualsAndHash. */
7569 public javaGenerateEqualsAndHash: boolean;
7570
7571 /** FileOptions javaStringCheckUtf8. */
7572 public javaStringCheckUtf8: boolean;
7573
7574 /** FileOptions optimizeFor. */
7575 public optimizeFor: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode);
7576
7577 /** FileOptions goPackage. */
7578 public goPackage: string;
7579
7580 /** FileOptions ccGenericServices. */
7581 public ccGenericServices: boolean;
7582
7583 /** FileOptions javaGenericServices. */
7584 public javaGenericServices: boolean;
7585
7586 /** FileOptions pyGenericServices. */
7587 public pyGenericServices: boolean;
7588
7589 /** FileOptions phpGenericServices. */
7590 public phpGenericServices: boolean;
7591
7592 /** FileOptions deprecated. */
7593 public deprecated: boolean;
7594
7595 /** FileOptions ccEnableArenas. */
7596 public ccEnableArenas: boolean;
7597
7598 /** FileOptions objcClassPrefix. */
7599 public objcClassPrefix: string;
7600
7601 /** FileOptions csharpNamespace. */
7602 public csharpNamespace: string;
7603
7604 /** FileOptions swiftPrefix. */
7605 public swiftPrefix: string;
7606
7607 /** FileOptions phpClassPrefix. */
7608 public phpClassPrefix: string;
7609
7610 /** FileOptions phpNamespace. */
7611 public phpNamespace: string;
7612
7613 /** FileOptions phpMetadataNamespace. */
7614 public phpMetadataNamespace: string;
7615
7616 /** FileOptions rubyPackage. */
7617 public rubyPackage: string;
7618
7619 /** FileOptions uninterpretedOption. */
7620 public uninterpretedOption: google.protobuf.IUninterpretedOption[];
7621
7622 /**
7623 * Creates a new FileOptions instance using the specified properties.
7624 * @param [properties] Properties to set
7625 * @returns FileOptions instance
7626 */
7627 public static create(properties?: google.protobuf.IFileOptions): google.protobuf.FileOptions;
7628
7629 /**
7630 * Encodes the specified FileOptions message. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages.
7631 * @param message FileOptions message or plain object to encode
7632 * @param [writer] Writer to encode to
7633 * @returns Writer
7634 */
7635 public static encode(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer;
7636
7637 /**
7638 * Encodes the specified FileOptions message, length delimited. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages.
7639 * @param message FileOptions message or plain object to encode
7640 * @param [writer] Writer to encode to
7641 * @returns Writer
7642 */
7643 public static encodeDelimited(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer;
7644
7645 /**
7646 * Decodes a FileOptions message from the specified reader or buffer.
7647 * @param reader Reader or buffer to decode from
7648 * @param [length] Message length if known beforehand
7649 * @returns FileOptions
7650 * @throws {Error} If the payload is not a reader or valid buffer
7651 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7652 */
7653 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileOptions;
7654
7655 /**
7656 * Decodes a FileOptions message from the specified reader or buffer, length delimited.
7657 * @param reader Reader or buffer to decode from
7658 * @returns FileOptions
7659 * @throws {Error} If the payload is not a reader or valid buffer
7660 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7661 */
7662 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileOptions;
7663
7664 /**
7665 * Verifies a FileOptions message.
7666 * @param message Plain object to verify
7667 * @returns `null` if valid, otherwise the reason why it is not
7668 */
7669 public static verify(message: { [k: string]: any }): (string|null);
7670
7671 /**
7672 * Creates a FileOptions message from a plain object. Also converts values to their respective internal types.
7673 * @param object Plain object
7674 * @returns FileOptions
7675 */
7676 public static fromObject(object: { [k: string]: any }): google.protobuf.FileOptions;
7677
7678 /**
7679 * Creates a plain object from a FileOptions message. Also converts values to other types if specified.
7680 * @param message FileOptions
7681 * @param [options] Conversion options
7682 * @returns Plain object
7683 */
7684 public static toObject(message: google.protobuf.FileOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
7685
7686 /**
7687 * Converts this FileOptions to JSON.
7688 * @returns JSON object
7689 */
7690 public toJSON(): { [k: string]: any };
7691 }
7692
7693 namespace FileOptions {
7694
7695 /** OptimizeMode enum. */
7696 enum OptimizeMode {
7697 SPEED = 1,
7698 CODE_SIZE = 2,
7699 LITE_RUNTIME = 3
7700 }
7701 }
7702
7703 /** Properties of a MessageOptions. */
7704 interface IMessageOptions {
7705
7706 /** MessageOptions messageSetWireFormat */
7707 messageSetWireFormat?: (boolean|null);
7708
7709 /** MessageOptions noStandardDescriptorAccessor */
7710 noStandardDescriptorAccessor?: (boolean|null);
7711
7712 /** MessageOptions deprecated */
7713 deprecated?: (boolean|null);
7714
7715 /** MessageOptions mapEntry */
7716 mapEntry?: (boolean|null);
7717
7718 /** MessageOptions uninterpretedOption */
7719 uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
7720 }
7721
7722 /** Represents a MessageOptions. */
7723 class MessageOptions implements IMessageOptions {
7724
7725 /**
7726 * Constructs a new MessageOptions.
7727 * @param [properties] Properties to set
7728 */
7729 constructor(properties?: google.protobuf.IMessageOptions);
7730
7731 /** MessageOptions messageSetWireFormat. */
7732 public messageSetWireFormat: boolean;
7733
7734 /** MessageOptions noStandardDescriptorAccessor. */
7735 public noStandardDescriptorAccessor: boolean;
7736
7737 /** MessageOptions deprecated. */
7738 public deprecated: boolean;
7739
7740 /** MessageOptions mapEntry. */
7741 public mapEntry: boolean;
7742
7743 /** MessageOptions uninterpretedOption. */
7744 public uninterpretedOption: google.protobuf.IUninterpretedOption[];
7745
7746 /**
7747 * Creates a new MessageOptions instance using the specified properties.
7748 * @param [properties] Properties to set
7749 * @returns MessageOptions instance
7750 */
7751 public static create(properties?: google.protobuf.IMessageOptions): google.protobuf.MessageOptions;
7752
7753 /**
7754 * Encodes the specified MessageOptions message. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages.
7755 * @param message MessageOptions message or plain object to encode
7756 * @param [writer] Writer to encode to
7757 * @returns Writer
7758 */
7759 public static encode(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer;
7760
7761 /**
7762 * Encodes the specified MessageOptions message, length delimited. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages.
7763 * @param message MessageOptions message or plain object to encode
7764 * @param [writer] Writer to encode to
7765 * @returns Writer
7766 */
7767 public static encodeDelimited(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer;
7768
7769 /**
7770 * Decodes a MessageOptions message from the specified reader or buffer.
7771 * @param reader Reader or buffer to decode from
7772 * @param [length] Message length if known beforehand
7773 * @returns MessageOptions
7774 * @throws {Error} If the payload is not a reader or valid buffer
7775 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7776 */
7777 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MessageOptions;
7778
7779 /**
7780 * Decodes a MessageOptions message from the specified reader or buffer, length delimited.
7781 * @param reader Reader or buffer to decode from
7782 * @returns MessageOptions
7783 * @throws {Error} If the payload is not a reader or valid buffer
7784 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7785 */
7786 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MessageOptions;
7787
7788 /**
7789 * Verifies a MessageOptions message.
7790 * @param message Plain object to verify
7791 * @returns `null` if valid, otherwise the reason why it is not
7792 */
7793 public static verify(message: { [k: string]: any }): (string|null);
7794
7795 /**
7796 * Creates a MessageOptions message from a plain object. Also converts values to their respective internal types.
7797 * @param object Plain object
7798 * @returns MessageOptions
7799 */
7800 public static fromObject(object: { [k: string]: any }): google.protobuf.MessageOptions;
7801
7802 /**
7803 * Creates a plain object from a MessageOptions message. Also converts values to other types if specified.
7804 * @param message MessageOptions
7805 * @param [options] Conversion options
7806 * @returns Plain object
7807 */
7808 public static toObject(message: google.protobuf.MessageOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
7809
7810 /**
7811 * Converts this MessageOptions to JSON.
7812 * @returns JSON object
7813 */
7814 public toJSON(): { [k: string]: any };
7815 }
7816
7817 /** Properties of a FieldOptions. */
7818 interface IFieldOptions {
7819
7820 /** FieldOptions ctype */
7821 ctype?: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType|null);
7822
7823 /** FieldOptions packed */
7824 packed?: (boolean|null);
7825
7826 /** FieldOptions jstype */
7827 jstype?: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType|null);
7828
7829 /** FieldOptions lazy */
7830 lazy?: (boolean|null);
7831
7832 /** FieldOptions deprecated */
7833 deprecated?: (boolean|null);
7834
7835 /** FieldOptions weak */
7836 weak?: (boolean|null);
7837
7838 /** FieldOptions uninterpretedOption */
7839 uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
7840
7841 /** FieldOptions .google.api.fieldBehavior */
7842 ".google.api.fieldBehavior"?: (google.api.FieldBehavior[]|null);
7843 }
7844
7845 /** Represents a FieldOptions. */
7846 class FieldOptions implements IFieldOptions {
7847
7848 /**
7849 * Constructs a new FieldOptions.
7850 * @param [properties] Properties to set
7851 */
7852 constructor(properties?: google.protobuf.IFieldOptions);
7853
7854 /** FieldOptions ctype. */
7855 public ctype: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType);
7856
7857 /** FieldOptions packed. */
7858 public packed: boolean;
7859
7860 /** FieldOptions jstype. */
7861 public jstype: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType);
7862
7863 /** FieldOptions lazy. */
7864 public lazy: boolean;
7865
7866 /** FieldOptions deprecated. */
7867 public deprecated: boolean;
7868
7869 /** FieldOptions weak. */
7870 public weak: boolean;
7871
7872 /** FieldOptions uninterpretedOption. */
7873 public uninterpretedOption: google.protobuf.IUninterpretedOption[];
7874
7875 /**
7876 * Creates a new FieldOptions instance using the specified properties.
7877 * @param [properties] Properties to set
7878 * @returns FieldOptions instance
7879 */
7880 public static create(properties?: google.protobuf.IFieldOptions): google.protobuf.FieldOptions;
7881
7882 /**
7883 * Encodes the specified FieldOptions message. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages.
7884 * @param message FieldOptions message or plain object to encode
7885 * @param [writer] Writer to encode to
7886 * @returns Writer
7887 */
7888 public static encode(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer;
7889
7890 /**
7891 * Encodes the specified FieldOptions message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages.
7892 * @param message FieldOptions message or plain object to encode
7893 * @param [writer] Writer to encode to
7894 * @returns Writer
7895 */
7896 public static encodeDelimited(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer;
7897
7898 /**
7899 * Decodes a FieldOptions message from the specified reader or buffer.
7900 * @param reader Reader or buffer to decode from
7901 * @param [length] Message length if known beforehand
7902 * @returns FieldOptions
7903 * @throws {Error} If the payload is not a reader or valid buffer
7904 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7905 */
7906 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldOptions;
7907
7908 /**
7909 * Decodes a FieldOptions message from the specified reader or buffer, length delimited.
7910 * @param reader Reader or buffer to decode from
7911 * @returns FieldOptions
7912 * @throws {Error} If the payload is not a reader or valid buffer
7913 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7914 */
7915 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldOptions;
7916
7917 /**
7918 * Verifies a FieldOptions message.
7919 * @param message Plain object to verify
7920 * @returns `null` if valid, otherwise the reason why it is not
7921 */
7922 public static verify(message: { [k: string]: any }): (string|null);
7923
7924 /**
7925 * Creates a FieldOptions message from a plain object. Also converts values to their respective internal types.
7926 * @param object Plain object
7927 * @returns FieldOptions
7928 */
7929 public static fromObject(object: { [k: string]: any }): google.protobuf.FieldOptions;
7930
7931 /**
7932 * Creates a plain object from a FieldOptions message. Also converts values to other types if specified.
7933 * @param message FieldOptions
7934 * @param [options] Conversion options
7935 * @returns Plain object
7936 */
7937 public static toObject(message: google.protobuf.FieldOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
7938
7939 /**
7940 * Converts this FieldOptions to JSON.
7941 * @returns JSON object
7942 */
7943 public toJSON(): { [k: string]: any };
7944 }
7945
7946 namespace FieldOptions {
7947
7948 /** CType enum. */
7949 enum CType {
7950 STRING = 0,
7951 CORD = 1,
7952 STRING_PIECE = 2
7953 }
7954
7955 /** JSType enum. */
7956 enum JSType {
7957 JS_NORMAL = 0,
7958 JS_STRING = 1,
7959 JS_NUMBER = 2
7960 }
7961 }
7962
7963 /** Properties of an OneofOptions. */
7964 interface IOneofOptions {
7965
7966 /** OneofOptions uninterpretedOption */
7967 uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
7968 }
7969
7970 /** Represents an OneofOptions. */
7971 class OneofOptions implements IOneofOptions {
7972
7973 /**
7974 * Constructs a new OneofOptions.
7975 * @param [properties] Properties to set
7976 */
7977 constructor(properties?: google.protobuf.IOneofOptions);
7978
7979 /** OneofOptions uninterpretedOption. */
7980 public uninterpretedOption: google.protobuf.IUninterpretedOption[];
7981
7982 /**
7983 * Creates a new OneofOptions instance using the specified properties.
7984 * @param [properties] Properties to set
7985 * @returns OneofOptions instance
7986 */
7987 public static create(properties?: google.protobuf.IOneofOptions): google.protobuf.OneofOptions;
7988
7989 /**
7990 * Encodes the specified OneofOptions message. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages.
7991 * @param message OneofOptions message or plain object to encode
7992 * @param [writer] Writer to encode to
7993 * @returns Writer
7994 */
7995 public static encode(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer;
7996
7997 /**
7998 * Encodes the specified OneofOptions message, length delimited. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages.
7999 * @param message OneofOptions message or plain object to encode
8000 * @param [writer] Writer to encode to
8001 * @returns Writer
8002 */
8003 public static encodeDelimited(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer;
8004
8005 /**
8006 * Decodes an OneofOptions message from the specified reader or buffer.
8007 * @param reader Reader or buffer to decode from
8008 * @param [length] Message length if known beforehand
8009 * @returns OneofOptions
8010 * @throws {Error} If the payload is not a reader or valid buffer
8011 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8012 */
8013 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofOptions;
8014
8015 /**
8016 * Decodes an OneofOptions message from the specified reader or buffer, length delimited.
8017 * @param reader Reader or buffer to decode from
8018 * @returns OneofOptions
8019 * @throws {Error} If the payload is not a reader or valid buffer
8020 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8021 */
8022 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.OneofOptions;
8023
8024 /**
8025 * Verifies an OneofOptions message.
8026 * @param message Plain object to verify
8027 * @returns `null` if valid, otherwise the reason why it is not
8028 */
8029 public static verify(message: { [k: string]: any }): (string|null);
8030
8031 /**
8032 * Creates an OneofOptions message from a plain object. Also converts values to their respective internal types.
8033 * @param object Plain object
8034 * @returns OneofOptions
8035 */
8036 public static fromObject(object: { [k: string]: any }): google.protobuf.OneofOptions;
8037
8038 /**
8039 * Creates a plain object from an OneofOptions message. Also converts values to other types if specified.
8040 * @param message OneofOptions
8041 * @param [options] Conversion options
8042 * @returns Plain object
8043 */
8044 public static toObject(message: google.protobuf.OneofOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
8045
8046 /**
8047 * Converts this OneofOptions to JSON.
8048 * @returns JSON object
8049 */
8050 public toJSON(): { [k: string]: any };
8051 }
8052
8053 /** Properties of an EnumOptions. */
8054 interface IEnumOptions {
8055
8056 /** EnumOptions allowAlias */
8057 allowAlias?: (boolean|null);
8058
8059 /** EnumOptions deprecated */
8060 deprecated?: (boolean|null);
8061
8062 /** EnumOptions uninterpretedOption */
8063 uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
8064 }
8065
8066 /** Represents an EnumOptions. */
8067 class EnumOptions implements IEnumOptions {
8068
8069 /**
8070 * Constructs a new EnumOptions.
8071 * @param [properties] Properties to set
8072 */
8073 constructor(properties?: google.protobuf.IEnumOptions);
8074
8075 /** EnumOptions allowAlias. */
8076 public allowAlias: boolean;
8077
8078 /** EnumOptions deprecated. */
8079 public deprecated: boolean;
8080
8081 /** EnumOptions uninterpretedOption. */
8082 public uninterpretedOption: google.protobuf.IUninterpretedOption[];
8083
8084 /**
8085 * Creates a new EnumOptions instance using the specified properties.
8086 * @param [properties] Properties to set
8087 * @returns EnumOptions instance
8088 */
8089 public static create(properties?: google.protobuf.IEnumOptions): google.protobuf.EnumOptions;
8090
8091 /**
8092 * Encodes the specified EnumOptions message. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages.
8093 * @param message EnumOptions message or plain object to encode
8094 * @param [writer] Writer to encode to
8095 * @returns Writer
8096 */
8097 public static encode(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer;
8098
8099 /**
8100 * Encodes the specified EnumOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages.
8101 * @param message EnumOptions message or plain object to encode
8102 * @param [writer] Writer to encode to
8103 * @returns Writer
8104 */
8105 public static encodeDelimited(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer;
8106
8107 /**
8108 * Decodes an EnumOptions message from the specified reader or buffer.
8109 * @param reader Reader or buffer to decode from
8110 * @param [length] Message length if known beforehand
8111 * @returns EnumOptions
8112 * @throws {Error} If the payload is not a reader or valid buffer
8113 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8114 */
8115 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumOptions;
8116
8117 /**
8118 * Decodes an EnumOptions message from the specified reader or buffer, length delimited.
8119 * @param reader Reader or buffer to decode from
8120 * @returns EnumOptions
8121 * @throws {Error} If the payload is not a reader or valid buffer
8122 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8123 */
8124 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumOptions;
8125
8126 /**
8127 * Verifies an EnumOptions message.
8128 * @param message Plain object to verify
8129 * @returns `null` if valid, otherwise the reason why it is not
8130 */
8131 public static verify(message: { [k: string]: any }): (string|null);
8132
8133 /**
8134 * Creates an EnumOptions message from a plain object. Also converts values to their respective internal types.
8135 * @param object Plain object
8136 * @returns EnumOptions
8137 */
8138 public static fromObject(object: { [k: string]: any }): google.protobuf.EnumOptions;
8139
8140 /**
8141 * Creates a plain object from an EnumOptions message. Also converts values to other types if specified.
8142 * @param message EnumOptions
8143 * @param [options] Conversion options
8144 * @returns Plain object
8145 */
8146 public static toObject(message: google.protobuf.EnumOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
8147
8148 /**
8149 * Converts this EnumOptions to JSON.
8150 * @returns JSON object
8151 */
8152 public toJSON(): { [k: string]: any };
8153 }
8154
8155 /** Properties of an EnumValueOptions. */
8156 interface IEnumValueOptions {
8157
8158 /** EnumValueOptions deprecated */
8159 deprecated?: (boolean|null);
8160
8161 /** EnumValueOptions uninterpretedOption */
8162 uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
8163 }
8164
8165 /** Represents an EnumValueOptions. */
8166 class EnumValueOptions implements IEnumValueOptions {
8167
8168 /**
8169 * Constructs a new EnumValueOptions.
8170 * @param [properties] Properties to set
8171 */
8172 constructor(properties?: google.protobuf.IEnumValueOptions);
8173
8174 /** EnumValueOptions deprecated. */
8175 public deprecated: boolean;
8176
8177 /** EnumValueOptions uninterpretedOption. */
8178 public uninterpretedOption: google.protobuf.IUninterpretedOption[];
8179
8180 /**
8181 * Creates a new EnumValueOptions instance using the specified properties.
8182 * @param [properties] Properties to set
8183 * @returns EnumValueOptions instance
8184 */
8185 public static create(properties?: google.protobuf.IEnumValueOptions): google.protobuf.EnumValueOptions;
8186
8187 /**
8188 * Encodes the specified EnumValueOptions message. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages.
8189 * @param message EnumValueOptions message or plain object to encode
8190 * @param [writer] Writer to encode to
8191 * @returns Writer
8192 */
8193 public static encode(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer;
8194
8195 /**
8196 * Encodes the specified EnumValueOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages.
8197 * @param message EnumValueOptions message or plain object to encode
8198 * @param [writer] Writer to encode to
8199 * @returns Writer
8200 */
8201 public static encodeDelimited(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer;
8202
8203 /**
8204 * Decodes an EnumValueOptions message from the specified reader or buffer.
8205 * @param reader Reader or buffer to decode from
8206 * @param [length] Message length if known beforehand
8207 * @returns EnumValueOptions
8208 * @throws {Error} If the payload is not a reader or valid buffer
8209 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8210 */
8211 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueOptions;
8212
8213 /**
8214 * Decodes an EnumValueOptions message from the specified reader or buffer, length delimited.
8215 * @param reader Reader or buffer to decode from
8216 * @returns EnumValueOptions
8217 * @throws {Error} If the payload is not a reader or valid buffer
8218 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8219 */
8220 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumValueOptions;
8221
8222 /**
8223 * Verifies an EnumValueOptions message.
8224 * @param message Plain object to verify
8225 * @returns `null` if valid, otherwise the reason why it is not
8226 */
8227 public static verify(message: { [k: string]: any }): (string|null);
8228
8229 /**
8230 * Creates an EnumValueOptions message from a plain object. Also converts values to their respective internal types.
8231 * @param object Plain object
8232 * @returns EnumValueOptions
8233 */
8234 public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueOptions;
8235
8236 /**
8237 * Creates a plain object from an EnumValueOptions message. Also converts values to other types if specified.
8238 * @param message EnumValueOptions
8239 * @param [options] Conversion options
8240 * @returns Plain object
8241 */
8242 public static toObject(message: google.protobuf.EnumValueOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
8243
8244 /**
8245 * Converts this EnumValueOptions to JSON.
8246 * @returns JSON object
8247 */
8248 public toJSON(): { [k: string]: any };
8249 }
8250
8251 /** Properties of a ServiceOptions. */
8252 interface IServiceOptions {
8253
8254 /** ServiceOptions deprecated */
8255 deprecated?: (boolean|null);
8256
8257 /** ServiceOptions uninterpretedOption */
8258 uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
8259
8260 /** ServiceOptions .google.api.defaultHost */
8261 ".google.api.defaultHost"?: (string|null);
8262
8263 /** ServiceOptions .google.api.oauthScopes */
8264 ".google.api.oauthScopes"?: (string|null);
8265 }
8266
8267 /** Represents a ServiceOptions. */
8268 class ServiceOptions implements IServiceOptions {
8269
8270 /**
8271 * Constructs a new ServiceOptions.
8272 * @param [properties] Properties to set
8273 */
8274 constructor(properties?: google.protobuf.IServiceOptions);
8275
8276 /** ServiceOptions deprecated. */
8277 public deprecated: boolean;
8278
8279 /** ServiceOptions uninterpretedOption. */
8280 public uninterpretedOption: google.protobuf.IUninterpretedOption[];
8281
8282 /**
8283 * Creates a new ServiceOptions instance using the specified properties.
8284 * @param [properties] Properties to set
8285 * @returns ServiceOptions instance
8286 */
8287 public static create(properties?: google.protobuf.IServiceOptions): google.protobuf.ServiceOptions;
8288
8289 /**
8290 * Encodes the specified ServiceOptions message. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages.
8291 * @param message ServiceOptions message or plain object to encode
8292 * @param [writer] Writer to encode to
8293 * @returns Writer
8294 */
8295 public static encode(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer;
8296
8297 /**
8298 * Encodes the specified ServiceOptions message, length delimited. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages.
8299 * @param message ServiceOptions message or plain object to encode
8300 * @param [writer] Writer to encode to
8301 * @returns Writer
8302 */
8303 public static encodeDelimited(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer;
8304
8305 /**
8306 * Decodes a ServiceOptions message from the specified reader or buffer.
8307 * @param reader Reader or buffer to decode from
8308 * @param [length] Message length if known beforehand
8309 * @returns ServiceOptions
8310 * @throws {Error} If the payload is not a reader or valid buffer
8311 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8312 */
8313 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceOptions;
8314
8315 /**
8316 * Decodes a ServiceOptions message from the specified reader or buffer, length delimited.
8317 * @param reader Reader or buffer to decode from
8318 * @returns ServiceOptions
8319 * @throws {Error} If the payload is not a reader or valid buffer
8320 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8321 */
8322 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ServiceOptions;
8323
8324 /**
8325 * Verifies a ServiceOptions message.
8326 * @param message Plain object to verify
8327 * @returns `null` if valid, otherwise the reason why it is not
8328 */
8329 public static verify(message: { [k: string]: any }): (string|null);
8330
8331 /**
8332 * Creates a ServiceOptions message from a plain object. Also converts values to their respective internal types.
8333 * @param object Plain object
8334 * @returns ServiceOptions
8335 */
8336 public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceOptions;
8337
8338 /**
8339 * Creates a plain object from a ServiceOptions message. Also converts values to other types if specified.
8340 * @param message ServiceOptions
8341 * @param [options] Conversion options
8342 * @returns Plain object
8343 */
8344 public static toObject(message: google.protobuf.ServiceOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
8345
8346 /**
8347 * Converts this ServiceOptions to JSON.
8348 * @returns JSON object
8349 */
8350 public toJSON(): { [k: string]: any };
8351 }
8352
8353 /** Properties of a MethodOptions. */
8354 interface IMethodOptions {
8355
8356 /** MethodOptions deprecated */
8357 deprecated?: (boolean|null);
8358
8359 /** MethodOptions idempotencyLevel */
8360 idempotencyLevel?: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel|null);
8361
8362 /** MethodOptions uninterpretedOption */
8363 uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
8364
8365 /** MethodOptions .google.api.http */
8366 ".google.api.http"?: (google.api.IHttpRule|null);
8367
8368 /** MethodOptions .google.api.methodSignature */
8369 ".google.api.methodSignature"?: (string[]|null);
8370 }
8371
8372 /** Represents a MethodOptions. */
8373 class MethodOptions implements IMethodOptions {
8374
8375 /**
8376 * Constructs a new MethodOptions.
8377 * @param [properties] Properties to set
8378 */
8379 constructor(properties?: google.protobuf.IMethodOptions);
8380
8381 /** MethodOptions deprecated. */
8382 public deprecated: boolean;
8383
8384 /** MethodOptions idempotencyLevel. */
8385 public idempotencyLevel: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel);
8386
8387 /** MethodOptions uninterpretedOption. */
8388 public uninterpretedOption: google.protobuf.IUninterpretedOption[];
8389
8390 /**
8391 * Creates a new MethodOptions instance using the specified properties.
8392 * @param [properties] Properties to set
8393 * @returns MethodOptions instance
8394 */
8395 public static create(properties?: google.protobuf.IMethodOptions): google.protobuf.MethodOptions;
8396
8397 /**
8398 * Encodes the specified MethodOptions message. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages.
8399 * @param message MethodOptions message or plain object to encode
8400 * @param [writer] Writer to encode to
8401 * @returns Writer
8402 */
8403 public static encode(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer;
8404
8405 /**
8406 * Encodes the specified MethodOptions message, length delimited. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages.
8407 * @param message MethodOptions message or plain object to encode
8408 * @param [writer] Writer to encode to
8409 * @returns Writer
8410 */
8411 public static encodeDelimited(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer;
8412
8413 /**
8414 * Decodes a MethodOptions message from the specified reader or buffer.
8415 * @param reader Reader or buffer to decode from
8416 * @param [length] Message length if known beforehand
8417 * @returns MethodOptions
8418 * @throws {Error} If the payload is not a reader or valid buffer
8419 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8420 */
8421 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodOptions;
8422
8423 /**
8424 * Decodes a MethodOptions message from the specified reader or buffer, length delimited.
8425 * @param reader Reader or buffer to decode from
8426 * @returns MethodOptions
8427 * @throws {Error} If the payload is not a reader or valid buffer
8428 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8429 */
8430 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MethodOptions;
8431
8432 /**
8433 * Verifies a MethodOptions message.
8434 * @param message Plain object to verify
8435 * @returns `null` if valid, otherwise the reason why it is not
8436 */
8437 public static verify(message: { [k: string]: any }): (string|null);
8438
8439 /**
8440 * Creates a MethodOptions message from a plain object. Also converts values to their respective internal types.
8441 * @param object Plain object
8442 * @returns MethodOptions
8443 */
8444 public static fromObject(object: { [k: string]: any }): google.protobuf.MethodOptions;
8445
8446 /**
8447 * Creates a plain object from a MethodOptions message. Also converts values to other types if specified.
8448 * @param message MethodOptions
8449 * @param [options] Conversion options
8450 * @returns Plain object
8451 */
8452 public static toObject(message: google.protobuf.MethodOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
8453
8454 /**
8455 * Converts this MethodOptions to JSON.
8456 * @returns JSON object
8457 */
8458 public toJSON(): { [k: string]: any };
8459 }
8460
8461 namespace MethodOptions {
8462
8463 /** IdempotencyLevel enum. */
8464 enum IdempotencyLevel {
8465 IDEMPOTENCY_UNKNOWN = 0,
8466 NO_SIDE_EFFECTS = 1,
8467 IDEMPOTENT = 2
8468 }
8469 }
8470
8471 /** Properties of an UninterpretedOption. */
8472 interface IUninterpretedOption {
8473
8474 /** UninterpretedOption name */
8475 name?: (google.protobuf.UninterpretedOption.INamePart[]|null);
8476
8477 /** UninterpretedOption identifierValue */
8478 identifierValue?: (string|null);
8479
8480 /** UninterpretedOption positiveIntValue */
8481 positiveIntValue?: (number|Long|string|null);
8482
8483 /** UninterpretedOption negativeIntValue */
8484 negativeIntValue?: (number|Long|string|null);
8485
8486 /** UninterpretedOption doubleValue */
8487 doubleValue?: (number|null);
8488
8489 /** UninterpretedOption stringValue */
8490 stringValue?: (Uint8Array|string|null);
8491
8492 /** UninterpretedOption aggregateValue */
8493 aggregateValue?: (string|null);
8494 }
8495
8496 /** Represents an UninterpretedOption. */
8497 class UninterpretedOption implements IUninterpretedOption {
8498
8499 /**
8500 * Constructs a new UninterpretedOption.
8501 * @param [properties] Properties to set
8502 */
8503 constructor(properties?: google.protobuf.IUninterpretedOption);
8504
8505 /** UninterpretedOption name. */
8506 public name: google.protobuf.UninterpretedOption.INamePart[];
8507
8508 /** UninterpretedOption identifierValue. */
8509 public identifierValue: string;
8510
8511 /** UninterpretedOption positiveIntValue. */
8512 public positiveIntValue: (number|Long|string);
8513
8514 /** UninterpretedOption negativeIntValue. */
8515 public negativeIntValue: (number|Long|string);
8516
8517 /** UninterpretedOption doubleValue. */
8518 public doubleValue: number;
8519
8520 /** UninterpretedOption stringValue. */
8521 public stringValue: (Uint8Array|string);
8522
8523 /** UninterpretedOption aggregateValue. */
8524 public aggregateValue: string;
8525
8526 /**
8527 * Creates a new UninterpretedOption instance using the specified properties.
8528 * @param [properties] Properties to set
8529 * @returns UninterpretedOption instance
8530 */
8531 public static create(properties?: google.protobuf.IUninterpretedOption): google.protobuf.UninterpretedOption;
8532
8533 /**
8534 * Encodes the specified UninterpretedOption message. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages.
8535 * @param message UninterpretedOption message or plain object to encode
8536 * @param [writer] Writer to encode to
8537 * @returns Writer
8538 */
8539 public static encode(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer;
8540
8541 /**
8542 * Encodes the specified UninterpretedOption message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages.
8543 * @param message UninterpretedOption message or plain object to encode
8544 * @param [writer] Writer to encode to
8545 * @returns Writer
8546 */
8547 public static encodeDelimited(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer;
8548
8549 /**
8550 * Decodes an UninterpretedOption message from the specified reader or buffer.
8551 * @param reader Reader or buffer to decode from
8552 * @param [length] Message length if known beforehand
8553 * @returns UninterpretedOption
8554 * @throws {Error} If the payload is not a reader or valid buffer
8555 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8556 */
8557 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption;
8558
8559 /**
8560 * Decodes an UninterpretedOption message from the specified reader or buffer, length delimited.
8561 * @param reader Reader or buffer to decode from
8562 * @returns UninterpretedOption
8563 * @throws {Error} If the payload is not a reader or valid buffer
8564 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8565 */
8566 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UninterpretedOption;
8567
8568 /**
8569 * Verifies an UninterpretedOption message.
8570 * @param message Plain object to verify
8571 * @returns `null` if valid, otherwise the reason why it is not
8572 */
8573 public static verify(message: { [k: string]: any }): (string|null);
8574
8575 /**
8576 * Creates an UninterpretedOption message from a plain object. Also converts values to their respective internal types.
8577 * @param object Plain object
8578 * @returns UninterpretedOption
8579 */
8580 public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption;
8581
8582 /**
8583 * Creates a plain object from an UninterpretedOption message. Also converts values to other types if specified.
8584 * @param message UninterpretedOption
8585 * @param [options] Conversion options
8586 * @returns Plain object
8587 */
8588 public static toObject(message: google.protobuf.UninterpretedOption, options?: $protobuf.IConversionOptions): { [k: string]: any };
8589
8590 /**
8591 * Converts this UninterpretedOption to JSON.
8592 * @returns JSON object
8593 */
8594 public toJSON(): { [k: string]: any };
8595 }
8596
8597 namespace UninterpretedOption {
8598
8599 /** Properties of a NamePart. */
8600 interface INamePart {
8601
8602 /** NamePart namePart */
8603 namePart: string;
8604
8605 /** NamePart isExtension */
8606 isExtension: boolean;
8607 }
8608
8609 /** Represents a NamePart. */
8610 class NamePart implements INamePart {
8611
8612 /**
8613 * Constructs a new NamePart.
8614 * @param [properties] Properties to set
8615 */
8616 constructor(properties?: google.protobuf.UninterpretedOption.INamePart);
8617
8618 /** NamePart namePart. */
8619 public namePart: string;
8620
8621 /** NamePart isExtension. */
8622 public isExtension: boolean;
8623
8624 /**
8625 * Creates a new NamePart instance using the specified properties.
8626 * @param [properties] Properties to set
8627 * @returns NamePart instance
8628 */
8629 public static create(properties?: google.protobuf.UninterpretedOption.INamePart): google.protobuf.UninterpretedOption.NamePart;
8630
8631 /**
8632 * Encodes the specified NamePart message. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages.
8633 * @param message NamePart message or plain object to encode
8634 * @param [writer] Writer to encode to
8635 * @returns Writer
8636 */
8637 public static encode(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer;
8638
8639 /**
8640 * Encodes the specified NamePart message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages.
8641 * @param message NamePart message or plain object to encode
8642 * @param [writer] Writer to encode to
8643 * @returns Writer
8644 */
8645 public static encodeDelimited(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer;
8646
8647 /**
8648 * Decodes a NamePart message from the specified reader or buffer.
8649 * @param reader Reader or buffer to decode from
8650 * @param [length] Message length if known beforehand
8651 * @returns NamePart
8652 * @throws {Error} If the payload is not a reader or valid buffer
8653 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8654 */
8655 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption.NamePart;
8656
8657 /**
8658 * Decodes a NamePart message from the specified reader or buffer, length delimited.
8659 * @param reader Reader or buffer to decode from
8660 * @returns NamePart
8661 * @throws {Error} If the payload is not a reader or valid buffer
8662 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8663 */
8664 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UninterpretedOption.NamePart;
8665
8666 /**
8667 * Verifies a NamePart message.
8668 * @param message Plain object to verify
8669 * @returns `null` if valid, otherwise the reason why it is not
8670 */
8671 public static verify(message: { [k: string]: any }): (string|null);
8672
8673 /**
8674 * Creates a NamePart message from a plain object. Also converts values to their respective internal types.
8675 * @param object Plain object
8676 * @returns NamePart
8677 */
8678 public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption.NamePart;
8679
8680 /**
8681 * Creates a plain object from a NamePart message. Also converts values to other types if specified.
8682 * @param message NamePart
8683 * @param [options] Conversion options
8684 * @returns Plain object
8685 */
8686 public static toObject(message: google.protobuf.UninterpretedOption.NamePart, options?: $protobuf.IConversionOptions): { [k: string]: any };
8687
8688 /**
8689 * Converts this NamePart to JSON.
8690 * @returns JSON object
8691 */
8692 public toJSON(): { [k: string]: any };
8693 }
8694 }
8695
8696 /** Properties of a SourceCodeInfo. */
8697 interface ISourceCodeInfo {
8698
8699 /** SourceCodeInfo location */
8700 location?: (google.protobuf.SourceCodeInfo.ILocation[]|null);
8701 }
8702
8703 /** Represents a SourceCodeInfo. */
8704 class SourceCodeInfo implements ISourceCodeInfo {
8705
8706 /**
8707 * Constructs a new SourceCodeInfo.
8708 * @param [properties] Properties to set
8709 */
8710 constructor(properties?: google.protobuf.ISourceCodeInfo);
8711
8712 /** SourceCodeInfo location. */
8713 public location: google.protobuf.SourceCodeInfo.ILocation[];
8714
8715 /**
8716 * Creates a new SourceCodeInfo instance using the specified properties.
8717 * @param [properties] Properties to set
8718 * @returns SourceCodeInfo instance
8719 */
8720 public static create(properties?: google.protobuf.ISourceCodeInfo): google.protobuf.SourceCodeInfo;
8721
8722 /**
8723 * Encodes the specified SourceCodeInfo message. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages.
8724 * @param message SourceCodeInfo message or plain object to encode
8725 * @param [writer] Writer to encode to
8726 * @returns Writer
8727 */
8728 public static encode(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
8729
8730 /**
8731 * Encodes the specified SourceCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages.
8732 * @param message SourceCodeInfo message or plain object to encode
8733 * @param [writer] Writer to encode to
8734 * @returns Writer
8735 */
8736 public static encodeDelimited(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
8737
8738 /**
8739 * Decodes a SourceCodeInfo message from the specified reader or buffer.
8740 * @param reader Reader or buffer to decode from
8741 * @param [length] Message length if known beforehand
8742 * @returns SourceCodeInfo
8743 * @throws {Error} If the payload is not a reader or valid buffer
8744 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8745 */
8746 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo;
8747
8748 /**
8749 * Decodes a SourceCodeInfo message from the specified reader or buffer, length delimited.
8750 * @param reader Reader or buffer to decode from
8751 * @returns SourceCodeInfo
8752 * @throws {Error} If the payload is not a reader or valid buffer
8753 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8754 */
8755 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.SourceCodeInfo;
8756
8757 /**
8758 * Verifies a SourceCodeInfo message.
8759 * @param message Plain object to verify
8760 * @returns `null` if valid, otherwise the reason why it is not
8761 */
8762 public static verify(message: { [k: string]: any }): (string|null);
8763
8764 /**
8765 * Creates a SourceCodeInfo message from a plain object. Also converts values to their respective internal types.
8766 * @param object Plain object
8767 * @returns SourceCodeInfo
8768 */
8769 public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo;
8770
8771 /**
8772 * Creates a plain object from a SourceCodeInfo message. Also converts values to other types if specified.
8773 * @param message SourceCodeInfo
8774 * @param [options] Conversion options
8775 * @returns Plain object
8776 */
8777 public static toObject(message: google.protobuf.SourceCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
8778
8779 /**
8780 * Converts this SourceCodeInfo to JSON.
8781 * @returns JSON object
8782 */
8783 public toJSON(): { [k: string]: any };
8784 }
8785
8786 namespace SourceCodeInfo {
8787
8788 /** Properties of a Location. */
8789 interface ILocation {
8790
8791 /** Location path */
8792 path?: (number[]|null);
8793
8794 /** Location span */
8795 span?: (number[]|null);
8796
8797 /** Location leadingComments */
8798 leadingComments?: (string|null);
8799
8800 /** Location trailingComments */
8801 trailingComments?: (string|null);
8802
8803 /** Location leadingDetachedComments */
8804 leadingDetachedComments?: (string[]|null);
8805 }
8806
8807 /** Represents a Location. */
8808 class Location implements ILocation {
8809
8810 /**
8811 * Constructs a new Location.
8812 * @param [properties] Properties to set
8813 */
8814 constructor(properties?: google.protobuf.SourceCodeInfo.ILocation);
8815
8816 /** Location path. */
8817 public path: number[];
8818
8819 /** Location span. */
8820 public span: number[];
8821
8822 /** Location leadingComments. */
8823 public leadingComments: string;
8824
8825 /** Location trailingComments. */
8826 public trailingComments: string;
8827
8828 /** Location leadingDetachedComments. */
8829 public leadingDetachedComments: string[];
8830
8831 /**
8832 * Creates a new Location instance using the specified properties.
8833 * @param [properties] Properties to set
8834 * @returns Location instance
8835 */
8836 public static create(properties?: google.protobuf.SourceCodeInfo.ILocation): google.protobuf.SourceCodeInfo.Location;
8837
8838 /**
8839 * Encodes the specified Location message. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages.
8840 * @param message Location message or plain object to encode
8841 * @param [writer] Writer to encode to
8842 * @returns Writer
8843 */
8844 public static encode(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer;
8845
8846 /**
8847 * Encodes the specified Location message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages.
8848 * @param message Location message or plain object to encode
8849 * @param [writer] Writer to encode to
8850 * @returns Writer
8851 */
8852 public static encodeDelimited(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer;
8853
8854 /**
8855 * Decodes a Location message from the specified reader or buffer.
8856 * @param reader Reader or buffer to decode from
8857 * @param [length] Message length if known beforehand
8858 * @returns Location
8859 * @throws {Error} If the payload is not a reader or valid buffer
8860 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8861 */
8862 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo.Location;
8863
8864 /**
8865 * Decodes a Location message from the specified reader or buffer, length delimited.
8866 * @param reader Reader or buffer to decode from
8867 * @returns Location
8868 * @throws {Error} If the payload is not a reader or valid buffer
8869 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8870 */
8871 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.SourceCodeInfo.Location;
8872
8873 /**
8874 * Verifies a Location message.
8875 * @param message Plain object to verify
8876 * @returns `null` if valid, otherwise the reason why it is not
8877 */
8878 public static verify(message: { [k: string]: any }): (string|null);
8879
8880 /**
8881 * Creates a Location message from a plain object. Also converts values to their respective internal types.
8882 * @param object Plain object
8883 * @returns Location
8884 */
8885 public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo.Location;
8886
8887 /**
8888 * Creates a plain object from a Location message. Also converts values to other types if specified.
8889 * @param message Location
8890 * @param [options] Conversion options
8891 * @returns Plain object
8892 */
8893 public static toObject(message: google.protobuf.SourceCodeInfo.Location, options?: $protobuf.IConversionOptions): { [k: string]: any };
8894
8895 /**
8896 * Converts this Location to JSON.
8897 * @returns JSON object
8898 */
8899 public toJSON(): { [k: string]: any };
8900 }
8901 }
8902
8903 /** Properties of a GeneratedCodeInfo. */
8904 interface IGeneratedCodeInfo {
8905
8906 /** GeneratedCodeInfo annotation */
8907 annotation?: (google.protobuf.GeneratedCodeInfo.IAnnotation[]|null);
8908 }
8909
8910 /** Represents a GeneratedCodeInfo. */
8911 class GeneratedCodeInfo implements IGeneratedCodeInfo {
8912
8913 /**
8914 * Constructs a new GeneratedCodeInfo.
8915 * @param [properties] Properties to set
8916 */
8917 constructor(properties?: google.protobuf.IGeneratedCodeInfo);
8918
8919 /** GeneratedCodeInfo annotation. */
8920 public annotation: google.protobuf.GeneratedCodeInfo.IAnnotation[];
8921
8922 /**
8923 * Creates a new GeneratedCodeInfo instance using the specified properties.
8924 * @param [properties] Properties to set
8925 * @returns GeneratedCodeInfo instance
8926 */
8927 public static create(properties?: google.protobuf.IGeneratedCodeInfo): google.protobuf.GeneratedCodeInfo;
8928
8929 /**
8930 * Encodes the specified GeneratedCodeInfo message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages.
8931 * @param message GeneratedCodeInfo message or plain object to encode
8932 * @param [writer] Writer to encode to
8933 * @returns Writer
8934 */
8935 public static encode(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
8936
8937 /**
8938 * Encodes the specified GeneratedCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages.
8939 * @param message GeneratedCodeInfo message or plain object to encode
8940 * @param [writer] Writer to encode to
8941 * @returns Writer
8942 */
8943 public static encodeDelimited(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
8944
8945 /**
8946 * Decodes a GeneratedCodeInfo message from the specified reader or buffer.
8947 * @param reader Reader or buffer to decode from
8948 * @param [length] Message length if known beforehand
8949 * @returns GeneratedCodeInfo
8950 * @throws {Error} If the payload is not a reader or valid buffer
8951 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8952 */
8953 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo;
8954
8955 /**
8956 * Decodes a GeneratedCodeInfo message from the specified reader or buffer, length delimited.
8957 * @param reader Reader or buffer to decode from
8958 * @returns GeneratedCodeInfo
8959 * @throws {Error} If the payload is not a reader or valid buffer
8960 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8961 */
8962 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.GeneratedCodeInfo;
8963
8964 /**
8965 * Verifies a GeneratedCodeInfo message.
8966 * @param message Plain object to verify
8967 * @returns `null` if valid, otherwise the reason why it is not
8968 */
8969 public static verify(message: { [k: string]: any }): (string|null);
8970
8971 /**
8972 * Creates a GeneratedCodeInfo message from a plain object. Also converts values to their respective internal types.
8973 * @param object Plain object
8974 * @returns GeneratedCodeInfo
8975 */
8976 public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo;
8977
8978 /**
8979 * Creates a plain object from a GeneratedCodeInfo message. Also converts values to other types if specified.
8980 * @param message GeneratedCodeInfo
8981 * @param [options] Conversion options
8982 * @returns Plain object
8983 */
8984 public static toObject(message: google.protobuf.GeneratedCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
8985
8986 /**
8987 * Converts this GeneratedCodeInfo to JSON.
8988 * @returns JSON object
8989 */
8990 public toJSON(): { [k: string]: any };
8991 }
8992
8993 namespace GeneratedCodeInfo {
8994
8995 /** Properties of an Annotation. */
8996 interface IAnnotation {
8997
8998 /** Annotation path */
8999 path?: (number[]|null);
9000
9001 /** Annotation sourceFile */
9002 sourceFile?: (string|null);
9003
9004 /** Annotation begin */
9005 begin?: (number|null);
9006
9007 /** Annotation end */
9008 end?: (number|null);
9009 }
9010
9011 /** Represents an Annotation. */
9012 class Annotation implements IAnnotation {
9013
9014 /**
9015 * Constructs a new Annotation.
9016 * @param [properties] Properties to set
9017 */
9018 constructor(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation);
9019
9020 /** Annotation path. */
9021 public path: number[];
9022
9023 /** Annotation sourceFile. */
9024 public sourceFile: string;
9025
9026 /** Annotation begin. */
9027 public begin: number;
9028
9029 /** Annotation end. */
9030 public end: number;
9031
9032 /**
9033 * Creates a new Annotation instance using the specified properties.
9034 * @param [properties] Properties to set
9035 * @returns Annotation instance
9036 */
9037 public static create(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation): google.protobuf.GeneratedCodeInfo.Annotation;
9038
9039 /**
9040 * Encodes the specified Annotation message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages.
9041 * @param message Annotation message or plain object to encode
9042 * @param [writer] Writer to encode to
9043 * @returns Writer
9044 */
9045 public static encode(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
9046
9047 /**
9048 * Encodes the specified Annotation message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages.
9049 * @param message Annotation message or plain object to encode
9050 * @param [writer] Writer to encode to
9051 * @returns Writer
9052 */
9053 public static encodeDelimited(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
9054
9055 /**
9056 * Decodes an Annotation message from the specified reader or buffer.
9057 * @param reader Reader or buffer to decode from
9058 * @param [length] Message length if known beforehand
9059 * @returns Annotation
9060 * @throws {Error} If the payload is not a reader or valid buffer
9061 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9062 */
9063 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo.Annotation;
9064
9065 /**
9066 * Decodes an Annotation message from the specified reader or buffer, length delimited.
9067 * @param reader Reader or buffer to decode from
9068 * @returns Annotation
9069 * @throws {Error} If the payload is not a reader or valid buffer
9070 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9071 */
9072 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.GeneratedCodeInfo.Annotation;
9073
9074 /**
9075 * Verifies an Annotation message.
9076 * @param message Plain object to verify
9077 * @returns `null` if valid, otherwise the reason why it is not
9078 */
9079 public static verify(message: { [k: string]: any }): (string|null);
9080
9081 /**
9082 * Creates an Annotation message from a plain object. Also converts values to their respective internal types.
9083 * @param object Plain object
9084 * @returns Annotation
9085 */
9086 public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo.Annotation;
9087
9088 /**
9089 * Creates a plain object from an Annotation message. Also converts values to other types if specified.
9090 * @param message Annotation
9091 * @param [options] Conversion options
9092 * @returns Plain object
9093 */
9094 public static toObject(message: google.protobuf.GeneratedCodeInfo.Annotation, options?: $protobuf.IConversionOptions): { [k: string]: any };
9095
9096 /**
9097 * Converts this Annotation to JSON.
9098 * @returns JSON object
9099 */
9100 public toJSON(): { [k: string]: any };
9101 }
9102 }
9103
9104 /** Properties of a Timestamp. */
9105 interface ITimestamp {
9106
9107 /** Timestamp seconds */
9108 seconds?: (number|Long|string|null);
9109
9110 /** Timestamp nanos */
9111 nanos?: (number|null);
9112 }
9113
9114 /** Represents a Timestamp. */
9115 class Timestamp implements ITimestamp {
9116
9117 /**
9118 * Constructs a new Timestamp.
9119 * @param [properties] Properties to set
9120 */
9121 constructor(properties?: google.protobuf.ITimestamp);
9122
9123 /** Timestamp seconds. */
9124 public seconds: (number|Long|string);
9125
9126 /** Timestamp nanos. */
9127 public nanos: number;
9128
9129 /**
9130 * Creates a new Timestamp instance using the specified properties.
9131 * @param [properties] Properties to set
9132 * @returns Timestamp instance
9133 */
9134 public static create(properties?: google.protobuf.ITimestamp): google.protobuf.Timestamp;
9135
9136 /**
9137 * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages.
9138 * @param message Timestamp message or plain object to encode
9139 * @param [writer] Writer to encode to
9140 * @returns Writer
9141 */
9142 public static encode(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer;
9143
9144 /**
9145 * Encodes the specified Timestamp message, length delimited. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages.
9146 * @param message Timestamp message or plain object to encode
9147 * @param [writer] Writer to encode to
9148 * @returns Writer
9149 */
9150 public static encodeDelimited(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer;
9151
9152 /**
9153 * Decodes a Timestamp message from the specified reader or buffer.
9154 * @param reader Reader or buffer to decode from
9155 * @param [length] Message length if known beforehand
9156 * @returns Timestamp
9157 * @throws {Error} If the payload is not a reader or valid buffer
9158 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9159 */
9160 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Timestamp;
9161
9162 /**
9163 * Decodes a Timestamp message from the specified reader or buffer, length delimited.
9164 * @param reader Reader or buffer to decode from
9165 * @returns Timestamp
9166 * @throws {Error} If the payload is not a reader or valid buffer
9167 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9168 */
9169 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Timestamp;
9170
9171 /**
9172 * Verifies a Timestamp message.
9173 * @param message Plain object to verify
9174 * @returns `null` if valid, otherwise the reason why it is not
9175 */
9176 public static verify(message: { [k: string]: any }): (string|null);
9177
9178 /**
9179 * Creates a Timestamp message from a plain object. Also converts values to their respective internal types.
9180 * @param object Plain object
9181 * @returns Timestamp
9182 */
9183 public static fromObject(object: { [k: string]: any }): google.protobuf.Timestamp;
9184
9185 /**
9186 * Creates a plain object from a Timestamp message. Also converts values to other types if specified.
9187 * @param message Timestamp
9188 * @param [options] Conversion options
9189 * @returns Plain object
9190 */
9191 public static toObject(message: google.protobuf.Timestamp, options?: $protobuf.IConversionOptions): { [k: string]: any };
9192
9193 /**
9194 * Converts this Timestamp to JSON.
9195 * @returns JSON object
9196 */
9197 public toJSON(): { [k: string]: any };
9198 }
9199 }
9200}