-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
language_service.pb.go
executable file
·5077 lines (4591 loc) · 205 KB
/
language_service.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.30.0
// protoc v4.23.1
// source: google/cloud/language/v1/language_service.proto
package languagepb
import (
context "context"
reflect "reflect"
sync "sync"
_ "google.golang.org/genproto/googleapis/api/annotations"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// Represents the text encoding that the caller uses to process the output.
// Providing an `EncodingType` is recommended because the API provides the
// beginning offsets for various outputs, such as tokens and mentions, and
// languages that natively use different text encodings may access offsets
// differently.
type EncodingType int32
const (
// If `EncodingType` is not specified, encoding-dependent information (such as
// `begin_offset`) will be set at `-1`.
EncodingType_NONE EncodingType = 0
// Encoding-dependent information (such as `begin_offset`) is calculated based
// on the UTF-8 encoding of the input. C++ and Go are examples of languages
// that use this encoding natively.
EncodingType_UTF8 EncodingType = 1
// Encoding-dependent information (such as `begin_offset`) is calculated based
// on the UTF-16 encoding of the input. Java and JavaScript are examples of
// languages that use this encoding natively.
EncodingType_UTF16 EncodingType = 2
// Encoding-dependent information (such as `begin_offset`) is calculated based
// on the UTF-32 encoding of the input. Python is an example of a language
// that uses this encoding natively.
EncodingType_UTF32 EncodingType = 3
)
// Enum value maps for EncodingType.
var (
EncodingType_name = map[int32]string{
0: "NONE",
1: "UTF8",
2: "UTF16",
3: "UTF32",
}
EncodingType_value = map[string]int32{
"NONE": 0,
"UTF8": 1,
"UTF16": 2,
"UTF32": 3,
}
)
func (x EncodingType) Enum() *EncodingType {
p := new(EncodingType)
*p = x
return p
}
func (x EncodingType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (EncodingType) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_language_v1_language_service_proto_enumTypes[0].Descriptor()
}
func (EncodingType) Type() protoreflect.EnumType {
return &file_google_cloud_language_v1_language_service_proto_enumTypes[0]
}
func (x EncodingType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use EncodingType.Descriptor instead.
func (EncodingType) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_language_v1_language_service_proto_rawDescGZIP(), []int{0}
}
// The document types enum.
type Document_Type int32
const (
// The content type is not specified.
Document_TYPE_UNSPECIFIED Document_Type = 0
// Plain text
Document_PLAIN_TEXT Document_Type = 1
// HTML
Document_HTML Document_Type = 2
)
// Enum value maps for Document_Type.
var (
Document_Type_name = map[int32]string{
0: "TYPE_UNSPECIFIED",
1: "PLAIN_TEXT",
2: "HTML",
}
Document_Type_value = map[string]int32{
"TYPE_UNSPECIFIED": 0,
"PLAIN_TEXT": 1,
"HTML": 2,
}
)
func (x Document_Type) Enum() *Document_Type {
p := new(Document_Type)
*p = x
return p
}
func (x Document_Type) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Document_Type) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_language_v1_language_service_proto_enumTypes[1].Descriptor()
}
func (Document_Type) Type() protoreflect.EnumType {
return &file_google_cloud_language_v1_language_service_proto_enumTypes[1]
}
func (x Document_Type) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Document_Type.Descriptor instead.
func (Document_Type) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_language_v1_language_service_proto_rawDescGZIP(), []int{0, 0}
}
// The type of the entity. For most entity types, the associated metadata is a
// Wikipedia URL (`wikipedia_url`) and Knowledge Graph MID (`mid`). The table
// below lists the associated fields for entities that have different
// metadata.
type Entity_Type int32
const (
// Unknown
Entity_UNKNOWN Entity_Type = 0
// Person
Entity_PERSON Entity_Type = 1
// Location
Entity_LOCATION Entity_Type = 2
// Organization
Entity_ORGANIZATION Entity_Type = 3
// Event
Entity_EVENT Entity_Type = 4
// Artwork
Entity_WORK_OF_ART Entity_Type = 5
// Consumer product
Entity_CONSUMER_GOOD Entity_Type = 6
// Other types of entities
Entity_OTHER Entity_Type = 7
// Phone number
//
// The metadata lists the phone number, formatted according to local
// convention, plus whichever additional elements appear in the text:
//
// * `number` - the actual number, broken down into sections as per local
// convention
// * `national_prefix` - country code, if detected
// * `area_code` - region or area code, if detected
// * `extension` - phone extension (to be dialed after connection), if
// detected
Entity_PHONE_NUMBER Entity_Type = 9
// Address
//
// The metadata identifies the street number and locality plus whichever
// additional elements appear in the text:
//
// * `street_number` - street number
// * `locality` - city or town
// * `street_name` - street/route name, if detected
// * `postal_code` - postal code, if detected
// * `country` - country, if detected<
// * `broad_region` - administrative area, such as the state, if detected
// * `narrow_region` - smaller administrative area, such as county, if
// detected
// * `sublocality` - used in Asian addresses to demark a district within a
// city, if detected
Entity_ADDRESS Entity_Type = 10
// Date
//
// The metadata identifies the components of the date:
//
// * `year` - four digit year, if detected
// * `month` - two digit month number, if detected
// * `day` - two digit day number, if detected
Entity_DATE Entity_Type = 11
// Number
//
// The metadata is the number itself.
Entity_NUMBER Entity_Type = 12
// Price
//
// The metadata identifies the `value` and `currency`.
Entity_PRICE Entity_Type = 13
)
// Enum value maps for Entity_Type.
var (
Entity_Type_name = map[int32]string{
0: "UNKNOWN",
1: "PERSON",
2: "LOCATION",
3: "ORGANIZATION",
4: "EVENT",
5: "WORK_OF_ART",
6: "CONSUMER_GOOD",
7: "OTHER",
9: "PHONE_NUMBER",
10: "ADDRESS",
11: "DATE",
12: "NUMBER",
13: "PRICE",
}
Entity_Type_value = map[string]int32{
"UNKNOWN": 0,
"PERSON": 1,
"LOCATION": 2,
"ORGANIZATION": 3,
"EVENT": 4,
"WORK_OF_ART": 5,
"CONSUMER_GOOD": 6,
"OTHER": 7,
"PHONE_NUMBER": 9,
"ADDRESS": 10,
"DATE": 11,
"NUMBER": 12,
"PRICE": 13,
}
)
func (x Entity_Type) Enum() *Entity_Type {
p := new(Entity_Type)
*p = x
return p
}
func (x Entity_Type) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Entity_Type) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_language_v1_language_service_proto_enumTypes[2].Descriptor()
}
func (Entity_Type) Type() protoreflect.EnumType {
return &file_google_cloud_language_v1_language_service_proto_enumTypes[2]
}
func (x Entity_Type) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Entity_Type.Descriptor instead.
func (Entity_Type) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_language_v1_language_service_proto_rawDescGZIP(), []int{2, 0}
}
// The part of speech tags enum.
type PartOfSpeech_Tag int32
const (
// Unknown
PartOfSpeech_UNKNOWN PartOfSpeech_Tag = 0
// Adjective
PartOfSpeech_ADJ PartOfSpeech_Tag = 1
// Adposition (preposition and postposition)
PartOfSpeech_ADP PartOfSpeech_Tag = 2
// Adverb
PartOfSpeech_ADV PartOfSpeech_Tag = 3
// Conjunction
PartOfSpeech_CONJ PartOfSpeech_Tag = 4
// Determiner
PartOfSpeech_DET PartOfSpeech_Tag = 5
// Noun (common and proper)
PartOfSpeech_NOUN PartOfSpeech_Tag = 6
// Cardinal number
PartOfSpeech_NUM PartOfSpeech_Tag = 7
// Pronoun
PartOfSpeech_PRON PartOfSpeech_Tag = 8
// Particle or other function word
PartOfSpeech_PRT PartOfSpeech_Tag = 9
// Punctuation
PartOfSpeech_PUNCT PartOfSpeech_Tag = 10
// Verb (all tenses and modes)
PartOfSpeech_VERB PartOfSpeech_Tag = 11
// Other: foreign words, typos, abbreviations
PartOfSpeech_X PartOfSpeech_Tag = 12
// Affix
PartOfSpeech_AFFIX PartOfSpeech_Tag = 13
)
// Enum value maps for PartOfSpeech_Tag.
var (
PartOfSpeech_Tag_name = map[int32]string{
0: "UNKNOWN",
1: "ADJ",
2: "ADP",
3: "ADV",
4: "CONJ",
5: "DET",
6: "NOUN",
7: "NUM",
8: "PRON",
9: "PRT",
10: "PUNCT",
11: "VERB",
12: "X",
13: "AFFIX",
}
PartOfSpeech_Tag_value = map[string]int32{
"UNKNOWN": 0,
"ADJ": 1,
"ADP": 2,
"ADV": 3,
"CONJ": 4,
"DET": 5,
"NOUN": 6,
"NUM": 7,
"PRON": 8,
"PRT": 9,
"PUNCT": 10,
"VERB": 11,
"X": 12,
"AFFIX": 13,
}
)
func (x PartOfSpeech_Tag) Enum() *PartOfSpeech_Tag {
p := new(PartOfSpeech_Tag)
*p = x
return p
}
func (x PartOfSpeech_Tag) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (PartOfSpeech_Tag) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_language_v1_language_service_proto_enumTypes[3].Descriptor()
}
func (PartOfSpeech_Tag) Type() protoreflect.EnumType {
return &file_google_cloud_language_v1_language_service_proto_enumTypes[3]
}
func (x PartOfSpeech_Tag) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use PartOfSpeech_Tag.Descriptor instead.
func (PartOfSpeech_Tag) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_language_v1_language_service_proto_rawDescGZIP(), []int{5, 0}
}
// The characteristic of a verb that expresses time flow during an event.
type PartOfSpeech_Aspect int32
const (
// Aspect is not applicable in the analyzed language or is not predicted.
PartOfSpeech_ASPECT_UNKNOWN PartOfSpeech_Aspect = 0
// Perfective
PartOfSpeech_PERFECTIVE PartOfSpeech_Aspect = 1
// Imperfective
PartOfSpeech_IMPERFECTIVE PartOfSpeech_Aspect = 2
// Progressive
PartOfSpeech_PROGRESSIVE PartOfSpeech_Aspect = 3
)
// Enum value maps for PartOfSpeech_Aspect.
var (
PartOfSpeech_Aspect_name = map[int32]string{
0: "ASPECT_UNKNOWN",
1: "PERFECTIVE",
2: "IMPERFECTIVE",
3: "PROGRESSIVE",
}
PartOfSpeech_Aspect_value = map[string]int32{
"ASPECT_UNKNOWN": 0,
"PERFECTIVE": 1,
"IMPERFECTIVE": 2,
"PROGRESSIVE": 3,
}
)
func (x PartOfSpeech_Aspect) Enum() *PartOfSpeech_Aspect {
p := new(PartOfSpeech_Aspect)
*p = x
return p
}
func (x PartOfSpeech_Aspect) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (PartOfSpeech_Aspect) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_language_v1_language_service_proto_enumTypes[4].Descriptor()
}
func (PartOfSpeech_Aspect) Type() protoreflect.EnumType {
return &file_google_cloud_language_v1_language_service_proto_enumTypes[4]
}
func (x PartOfSpeech_Aspect) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use PartOfSpeech_Aspect.Descriptor instead.
func (PartOfSpeech_Aspect) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_language_v1_language_service_proto_rawDescGZIP(), []int{5, 1}
}
// The grammatical function performed by a noun or pronoun in a phrase,
// clause, or sentence. In some languages, other parts of speech, such as
// adjective and determiner, take case inflection in agreement with the noun.
type PartOfSpeech_Case int32
const (
// Case is not applicable in the analyzed language or is not predicted.
PartOfSpeech_CASE_UNKNOWN PartOfSpeech_Case = 0
// Accusative
PartOfSpeech_ACCUSATIVE PartOfSpeech_Case = 1
// Adverbial
PartOfSpeech_ADVERBIAL PartOfSpeech_Case = 2
// Complementive
PartOfSpeech_COMPLEMENTIVE PartOfSpeech_Case = 3
// Dative
PartOfSpeech_DATIVE PartOfSpeech_Case = 4
// Genitive
PartOfSpeech_GENITIVE PartOfSpeech_Case = 5
// Instrumental
PartOfSpeech_INSTRUMENTAL PartOfSpeech_Case = 6
// Locative
PartOfSpeech_LOCATIVE PartOfSpeech_Case = 7
// Nominative
PartOfSpeech_NOMINATIVE PartOfSpeech_Case = 8
// Oblique
PartOfSpeech_OBLIQUE PartOfSpeech_Case = 9
// Partitive
PartOfSpeech_PARTITIVE PartOfSpeech_Case = 10
// Prepositional
PartOfSpeech_PREPOSITIONAL PartOfSpeech_Case = 11
// Reflexive
PartOfSpeech_REFLEXIVE_CASE PartOfSpeech_Case = 12
// Relative
PartOfSpeech_RELATIVE_CASE PartOfSpeech_Case = 13
// Vocative
PartOfSpeech_VOCATIVE PartOfSpeech_Case = 14
)
// Enum value maps for PartOfSpeech_Case.
var (
PartOfSpeech_Case_name = map[int32]string{
0: "CASE_UNKNOWN",
1: "ACCUSATIVE",
2: "ADVERBIAL",
3: "COMPLEMENTIVE",
4: "DATIVE",
5: "GENITIVE",
6: "INSTRUMENTAL",
7: "LOCATIVE",
8: "NOMINATIVE",
9: "OBLIQUE",
10: "PARTITIVE",
11: "PREPOSITIONAL",
12: "REFLEXIVE_CASE",
13: "RELATIVE_CASE",
14: "VOCATIVE",
}
PartOfSpeech_Case_value = map[string]int32{
"CASE_UNKNOWN": 0,
"ACCUSATIVE": 1,
"ADVERBIAL": 2,
"COMPLEMENTIVE": 3,
"DATIVE": 4,
"GENITIVE": 5,
"INSTRUMENTAL": 6,
"LOCATIVE": 7,
"NOMINATIVE": 8,
"OBLIQUE": 9,
"PARTITIVE": 10,
"PREPOSITIONAL": 11,
"REFLEXIVE_CASE": 12,
"RELATIVE_CASE": 13,
"VOCATIVE": 14,
}
)
func (x PartOfSpeech_Case) Enum() *PartOfSpeech_Case {
p := new(PartOfSpeech_Case)
*p = x
return p
}
func (x PartOfSpeech_Case) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (PartOfSpeech_Case) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_language_v1_language_service_proto_enumTypes[5].Descriptor()
}
func (PartOfSpeech_Case) Type() protoreflect.EnumType {
return &file_google_cloud_language_v1_language_service_proto_enumTypes[5]
}
func (x PartOfSpeech_Case) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use PartOfSpeech_Case.Descriptor instead.
func (PartOfSpeech_Case) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_language_v1_language_service_proto_rawDescGZIP(), []int{5, 2}
}
// Depending on the language, Form can be categorizing different forms of
// verbs, adjectives, adverbs, etc. For example, categorizing inflected
// endings of verbs and adjectives or distinguishing between short and long
// forms of adjectives and participles
type PartOfSpeech_Form int32
const (
// Form is not applicable in the analyzed language or is not predicted.
PartOfSpeech_FORM_UNKNOWN PartOfSpeech_Form = 0
// Adnomial
PartOfSpeech_ADNOMIAL PartOfSpeech_Form = 1
// Auxiliary
PartOfSpeech_AUXILIARY PartOfSpeech_Form = 2
// Complementizer
PartOfSpeech_COMPLEMENTIZER PartOfSpeech_Form = 3
// Final ending
PartOfSpeech_FINAL_ENDING PartOfSpeech_Form = 4
// Gerund
PartOfSpeech_GERUND PartOfSpeech_Form = 5
// Realis
PartOfSpeech_REALIS PartOfSpeech_Form = 6
// Irrealis
PartOfSpeech_IRREALIS PartOfSpeech_Form = 7
// Short form
PartOfSpeech_SHORT PartOfSpeech_Form = 8
// Long form
PartOfSpeech_LONG PartOfSpeech_Form = 9
// Order form
PartOfSpeech_ORDER PartOfSpeech_Form = 10
// Specific form
PartOfSpeech_SPECIFIC PartOfSpeech_Form = 11
)
// Enum value maps for PartOfSpeech_Form.
var (
PartOfSpeech_Form_name = map[int32]string{
0: "FORM_UNKNOWN",
1: "ADNOMIAL",
2: "AUXILIARY",
3: "COMPLEMENTIZER",
4: "FINAL_ENDING",
5: "GERUND",
6: "REALIS",
7: "IRREALIS",
8: "SHORT",
9: "LONG",
10: "ORDER",
11: "SPECIFIC",
}
PartOfSpeech_Form_value = map[string]int32{
"FORM_UNKNOWN": 0,
"ADNOMIAL": 1,
"AUXILIARY": 2,
"COMPLEMENTIZER": 3,
"FINAL_ENDING": 4,
"GERUND": 5,
"REALIS": 6,
"IRREALIS": 7,
"SHORT": 8,
"LONG": 9,
"ORDER": 10,
"SPECIFIC": 11,
}
)
func (x PartOfSpeech_Form) Enum() *PartOfSpeech_Form {
p := new(PartOfSpeech_Form)
*p = x
return p
}
func (x PartOfSpeech_Form) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (PartOfSpeech_Form) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_language_v1_language_service_proto_enumTypes[6].Descriptor()
}
func (PartOfSpeech_Form) Type() protoreflect.EnumType {
return &file_google_cloud_language_v1_language_service_proto_enumTypes[6]
}
func (x PartOfSpeech_Form) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use PartOfSpeech_Form.Descriptor instead.
func (PartOfSpeech_Form) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_language_v1_language_service_proto_rawDescGZIP(), []int{5, 3}
}
// Gender classes of nouns reflected in the behaviour of associated words.
type PartOfSpeech_Gender int32
const (
// Gender is not applicable in the analyzed language or is not predicted.
PartOfSpeech_GENDER_UNKNOWN PartOfSpeech_Gender = 0
// Feminine
PartOfSpeech_FEMININE PartOfSpeech_Gender = 1
// Masculine
PartOfSpeech_MASCULINE PartOfSpeech_Gender = 2
// Neuter
PartOfSpeech_NEUTER PartOfSpeech_Gender = 3
)
// Enum value maps for PartOfSpeech_Gender.
var (
PartOfSpeech_Gender_name = map[int32]string{
0: "GENDER_UNKNOWN",
1: "FEMININE",
2: "MASCULINE",
3: "NEUTER",
}
PartOfSpeech_Gender_value = map[string]int32{
"GENDER_UNKNOWN": 0,
"FEMININE": 1,
"MASCULINE": 2,
"NEUTER": 3,
}
)
func (x PartOfSpeech_Gender) Enum() *PartOfSpeech_Gender {
p := new(PartOfSpeech_Gender)
*p = x
return p
}
func (x PartOfSpeech_Gender) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (PartOfSpeech_Gender) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_language_v1_language_service_proto_enumTypes[7].Descriptor()
}
func (PartOfSpeech_Gender) Type() protoreflect.EnumType {
return &file_google_cloud_language_v1_language_service_proto_enumTypes[7]
}
func (x PartOfSpeech_Gender) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use PartOfSpeech_Gender.Descriptor instead.
func (PartOfSpeech_Gender) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_language_v1_language_service_proto_rawDescGZIP(), []int{5, 4}
}
// The grammatical feature of verbs, used for showing modality and attitude.
type PartOfSpeech_Mood int32
const (
// Mood is not applicable in the analyzed language or is not predicted.
PartOfSpeech_MOOD_UNKNOWN PartOfSpeech_Mood = 0
// Conditional
PartOfSpeech_CONDITIONAL_MOOD PartOfSpeech_Mood = 1
// Imperative
PartOfSpeech_IMPERATIVE PartOfSpeech_Mood = 2
// Indicative
PartOfSpeech_INDICATIVE PartOfSpeech_Mood = 3
// Interrogative
PartOfSpeech_INTERROGATIVE PartOfSpeech_Mood = 4
// Jussive
PartOfSpeech_JUSSIVE PartOfSpeech_Mood = 5
// Subjunctive
PartOfSpeech_SUBJUNCTIVE PartOfSpeech_Mood = 6
)
// Enum value maps for PartOfSpeech_Mood.
var (
PartOfSpeech_Mood_name = map[int32]string{
0: "MOOD_UNKNOWN",
1: "CONDITIONAL_MOOD",
2: "IMPERATIVE",
3: "INDICATIVE",
4: "INTERROGATIVE",
5: "JUSSIVE",
6: "SUBJUNCTIVE",
}
PartOfSpeech_Mood_value = map[string]int32{
"MOOD_UNKNOWN": 0,
"CONDITIONAL_MOOD": 1,
"IMPERATIVE": 2,
"INDICATIVE": 3,
"INTERROGATIVE": 4,
"JUSSIVE": 5,
"SUBJUNCTIVE": 6,
}
)
func (x PartOfSpeech_Mood) Enum() *PartOfSpeech_Mood {
p := new(PartOfSpeech_Mood)
*p = x
return p
}
func (x PartOfSpeech_Mood) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (PartOfSpeech_Mood) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_language_v1_language_service_proto_enumTypes[8].Descriptor()
}
func (PartOfSpeech_Mood) Type() protoreflect.EnumType {
return &file_google_cloud_language_v1_language_service_proto_enumTypes[8]
}
func (x PartOfSpeech_Mood) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use PartOfSpeech_Mood.Descriptor instead.
func (PartOfSpeech_Mood) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_language_v1_language_service_proto_rawDescGZIP(), []int{5, 5}
}
// Count distinctions.
type PartOfSpeech_Number int32
const (
// Number is not applicable in the analyzed language or is not predicted.
PartOfSpeech_NUMBER_UNKNOWN PartOfSpeech_Number = 0
// Singular
PartOfSpeech_SINGULAR PartOfSpeech_Number = 1
// Plural
PartOfSpeech_PLURAL PartOfSpeech_Number = 2
// Dual
PartOfSpeech_DUAL PartOfSpeech_Number = 3
)
// Enum value maps for PartOfSpeech_Number.
var (
PartOfSpeech_Number_name = map[int32]string{
0: "NUMBER_UNKNOWN",
1: "SINGULAR",
2: "PLURAL",
3: "DUAL",
}
PartOfSpeech_Number_value = map[string]int32{
"NUMBER_UNKNOWN": 0,
"SINGULAR": 1,
"PLURAL": 2,
"DUAL": 3,
}
)
func (x PartOfSpeech_Number) Enum() *PartOfSpeech_Number {
p := new(PartOfSpeech_Number)
*p = x
return p
}
func (x PartOfSpeech_Number) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (PartOfSpeech_Number) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_language_v1_language_service_proto_enumTypes[9].Descriptor()
}
func (PartOfSpeech_Number) Type() protoreflect.EnumType {
return &file_google_cloud_language_v1_language_service_proto_enumTypes[9]
}
func (x PartOfSpeech_Number) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use PartOfSpeech_Number.Descriptor instead.
func (PartOfSpeech_Number) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_language_v1_language_service_proto_rawDescGZIP(), []int{5, 6}
}
// The distinction between the speaker, second person, third person, etc.
type PartOfSpeech_Person int32
const (
// Person is not applicable in the analyzed language or is not predicted.
PartOfSpeech_PERSON_UNKNOWN PartOfSpeech_Person = 0
// First
PartOfSpeech_FIRST PartOfSpeech_Person = 1
// Second
PartOfSpeech_SECOND PartOfSpeech_Person = 2
// Third
PartOfSpeech_THIRD PartOfSpeech_Person = 3
// Reflexive
PartOfSpeech_REFLEXIVE_PERSON PartOfSpeech_Person = 4
)
// Enum value maps for PartOfSpeech_Person.
var (
PartOfSpeech_Person_name = map[int32]string{
0: "PERSON_UNKNOWN",
1: "FIRST",
2: "SECOND",
3: "THIRD",
4: "REFLEXIVE_PERSON",
}
PartOfSpeech_Person_value = map[string]int32{
"PERSON_UNKNOWN": 0,
"FIRST": 1,
"SECOND": 2,
"THIRD": 3,
"REFLEXIVE_PERSON": 4,
}
)
func (x PartOfSpeech_Person) Enum() *PartOfSpeech_Person {
p := new(PartOfSpeech_Person)
*p = x
return p
}
func (x PartOfSpeech_Person) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (PartOfSpeech_Person) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_language_v1_language_service_proto_enumTypes[10].Descriptor()
}
func (PartOfSpeech_Person) Type() protoreflect.EnumType {
return &file_google_cloud_language_v1_language_service_proto_enumTypes[10]
}
func (x PartOfSpeech_Person) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use PartOfSpeech_Person.Descriptor instead.
func (PartOfSpeech_Person) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_language_v1_language_service_proto_rawDescGZIP(), []int{5, 7}
}
// This category shows if the token is part of a proper name.
type PartOfSpeech_Proper int32
const (
// Proper is not applicable in the analyzed language or is not predicted.
PartOfSpeech_PROPER_UNKNOWN PartOfSpeech_Proper = 0
// Proper
PartOfSpeech_PROPER PartOfSpeech_Proper = 1
// Not proper
PartOfSpeech_NOT_PROPER PartOfSpeech_Proper = 2
)
// Enum value maps for PartOfSpeech_Proper.
var (
PartOfSpeech_Proper_name = map[int32]string{
0: "PROPER_UNKNOWN",
1: "PROPER",
2: "NOT_PROPER",
}
PartOfSpeech_Proper_value = map[string]int32{
"PROPER_UNKNOWN": 0,
"PROPER": 1,
"NOT_PROPER": 2,
}
)
func (x PartOfSpeech_Proper) Enum() *PartOfSpeech_Proper {
p := new(PartOfSpeech_Proper)
*p = x
return p
}
func (x PartOfSpeech_Proper) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (PartOfSpeech_Proper) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_language_v1_language_service_proto_enumTypes[11].Descriptor()
}
func (PartOfSpeech_Proper) Type() protoreflect.EnumType {
return &file_google_cloud_language_v1_language_service_proto_enumTypes[11]
}
func (x PartOfSpeech_Proper) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use PartOfSpeech_Proper.Descriptor instead.
func (PartOfSpeech_Proper) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_language_v1_language_service_proto_rawDescGZIP(), []int{5, 8}
}
// Reciprocal features of a pronoun.
type PartOfSpeech_Reciprocity int32
const (
// Reciprocity is not applicable in the analyzed language or is not
// predicted.
PartOfSpeech_RECIPROCITY_UNKNOWN PartOfSpeech_Reciprocity = 0
// Reciprocal
PartOfSpeech_RECIPROCAL PartOfSpeech_Reciprocity = 1
// Non-reciprocal
PartOfSpeech_NON_RECIPROCAL PartOfSpeech_Reciprocity = 2
)
// Enum value maps for PartOfSpeech_Reciprocity.
var (
PartOfSpeech_Reciprocity_name = map[int32]string{
0: "RECIPROCITY_UNKNOWN",
1: "RECIPROCAL",
2: "NON_RECIPROCAL",
}
PartOfSpeech_Reciprocity_value = map[string]int32{
"RECIPROCITY_UNKNOWN": 0,
"RECIPROCAL": 1,
"NON_RECIPROCAL": 2,
}
)
func (x PartOfSpeech_Reciprocity) Enum() *PartOfSpeech_Reciprocity {
p := new(PartOfSpeech_Reciprocity)
*p = x
return p
}
func (x PartOfSpeech_Reciprocity) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (PartOfSpeech_Reciprocity) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_language_v1_language_service_proto_enumTypes[12].Descriptor()
}
func (PartOfSpeech_Reciprocity) Type() protoreflect.EnumType {
return &file_google_cloud_language_v1_language_service_proto_enumTypes[12]
}
func (x PartOfSpeech_Reciprocity) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use PartOfSpeech_Reciprocity.Descriptor instead.
func (PartOfSpeech_Reciprocity) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_language_v1_language_service_proto_rawDescGZIP(), []int{5, 9}
}
// Time reference.
type PartOfSpeech_Tense int32
const (
// Tense is not applicable in the analyzed language or is not predicted.
PartOfSpeech_TENSE_UNKNOWN PartOfSpeech_Tense = 0
// Conditional