Constructor
new PartOfSpeech(propertiesopt)
Constructs a new PartOfSpeech.
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
properties |
google.cloud.language.v1beta2.IPartOfSpeech |
<optional> |
Properties to set |
- Implements:
-
- IPartOfSpeech
Members
(static) Aspect :string
Aspect enum.
Properties:
| Name | Type | Description |
|---|---|---|
ASPECT_UNKNOWN |
number |
ASPECT_UNKNOWN value |
PERFECTIVE |
number |
PERFECTIVE value |
IMPERFECTIVE |
number |
IMPERFECTIVE value |
PROGRESSIVE |
number |
PROGRESSIVE value |
(static) Case :string
Case enum.
Properties:
| Name | Type | Description |
|---|---|---|
CASE_UNKNOWN |
number |
CASE_UNKNOWN value |
ACCUSATIVE |
number |
ACCUSATIVE value |
ADVERBIAL |
number |
ADVERBIAL value |
COMPLEMENTIVE |
number |
COMPLEMENTIVE value |
DATIVE |
number |
DATIVE value |
GENITIVE |
number |
GENITIVE value |
INSTRUMENTAL |
number |
INSTRUMENTAL value |
LOCATIVE |
number |
LOCATIVE value |
NOMINATIVE |
number |
NOMINATIVE value |
OBLIQUE |
number |
OBLIQUE value |
PARTITIVE |
number |
PARTITIVE value |
PREPOSITIONAL |
number |
PREPOSITIONAL value |
REFLEXIVE_CASE |
number |
REFLEXIVE_CASE value |
RELATIVE_CASE |
number |
RELATIVE_CASE value |
VOCATIVE |
number |
VOCATIVE value |
(static) Form :string
Form enum.
Properties:
| Name | Type | Description |
|---|---|---|
FORM_UNKNOWN |
number |
FORM_UNKNOWN value |
ADNOMIAL |
number |
ADNOMIAL value |
AUXILIARY |
number |
AUXILIARY value |
COMPLEMENTIZER |
number |
COMPLEMENTIZER value |
FINAL_ENDING |
number |
FINAL_ENDING value |
GERUND |
number |
GERUND value |
REALIS |
number |
REALIS value |
IRREALIS |
number |
IRREALIS value |
SHORT |
number |
SHORT value |
LONG |
number |
LONG value |
ORDER |
number |
ORDER value |
SPECIFIC |
number |
SPECIFIC value |
(static) Gender :string
Gender enum.
Properties:
| Name | Type | Description |
|---|---|---|
GENDER_UNKNOWN |
number |
GENDER_UNKNOWN value |
FEMININE |
number |
FEMININE value |
MASCULINE |
number |
MASCULINE value |
NEUTER |
number |
NEUTER value |
(static) Mood :string
Mood enum.
Properties:
| Name | Type | Description |
|---|---|---|
MOOD_UNKNOWN |
number |
MOOD_UNKNOWN value |
CONDITIONAL_MOOD |
number |
CONDITIONAL_MOOD value |
IMPERATIVE |
number |
IMPERATIVE value |
INDICATIVE |
number |
INDICATIVE value |
INTERROGATIVE |
number |
INTERROGATIVE value |
JUSSIVE |
number |
JUSSIVE value |
SUBJUNCTIVE |
number |
SUBJUNCTIVE value |
(static) Number :string
Number enum.
Properties:
| Name | Type | Description |
|---|---|---|
NUMBER_UNKNOWN |
number |
NUMBER_UNKNOWN value |
SINGULAR |
number |
SINGULAR value |
PLURAL |
number |
PLURAL value |
DUAL |
number |
DUAL value |
(static) Person :string
Person enum.
Properties:
| Name | Type | Description |
|---|---|---|
PERSON_UNKNOWN |
number |
PERSON_UNKNOWN value |
FIRST |
number |
FIRST value |
SECOND |
number |
SECOND value |
THIRD |
number |
THIRD value |
REFLEXIVE_PERSON |
number |
REFLEXIVE_PERSON value |
(static) Proper :string
Proper enum.
Properties:
| Name | Type | Description |
|---|---|---|
PROPER_UNKNOWN |
number |
PROPER_UNKNOWN value |
PROPER |
number |
PROPER value |
NOT_PROPER |
number |
NOT_PROPER value |
(static) Reciprocity :string
Reciprocity enum.
Properties:
| Name | Type | Description |
|---|---|---|
RECIPROCITY_UNKNOWN |
number |
RECIPROCITY_UNKNOWN value |
RECIPROCAL |
number |
RECIPROCAL value |
NON_RECIPROCAL |
number |
NON_RECIPROCAL value |
(static) Tag :string
Tag enum.
Properties:
| Name | Type | Description |
|---|---|---|
UNKNOWN |
number |
UNKNOWN value |
ADJ |
number |
ADJ value |
ADP |
number |
ADP value |
ADV |
number |
ADV value |
CONJ |
number |
CONJ value |
DET |
number |
DET value |
NOUN |
number |
NOUN value |
NUM |
number |
NUM value |
PRON |
number |
PRON value |
PRT |
number |
PRT value |
PUNCT |
number |
PUNCT value |
VERB |
number |
VERB value |
X |
number |
X value |
AFFIX |
number |
AFFIX value |
(static) Tense :string
Tense enum.
Properties:
| Name | Type | Description |
|---|---|---|
TENSE_UNKNOWN |
number |
TENSE_UNKNOWN value |
CONDITIONAL_TENSE |
number |
CONDITIONAL_TENSE value |
FUTURE |
number |
FUTURE value |
PAST |
number |
PAST value |
PRESENT |
number |
PRESENT value |
IMPERFECT |
number |
IMPERFECT value |
PLUPERFECT |
number |
PLUPERFECT value |
(static) Voice :string
Voice enum.
Properties:
| Name | Type | Description |
|---|---|---|
VOICE_UNKNOWN |
number |
VOICE_UNKNOWN value |
ACTIVE |
number |
ACTIVE value |
CAUSATIVE |
number |
CAUSATIVE value |
PASSIVE |
number |
PASSIVE value |
aspect :google.cloud.language.v1beta2.PartOfSpeech.Aspect
PartOfSpeech aspect.
case :google.cloud.language.v1beta2.PartOfSpeech.Case
PartOfSpeech case.
form :google.cloud.language.v1beta2.PartOfSpeech.Form
PartOfSpeech form.
gender :google.cloud.language.v1beta2.PartOfSpeech.Gender
PartOfSpeech gender.
mood :google.cloud.language.v1beta2.PartOfSpeech.Mood
PartOfSpeech mood.
number :google.cloud.language.v1beta2.PartOfSpeech.Number
PartOfSpeech number.
person :google.cloud.language.v1beta2.PartOfSpeech.Person
PartOfSpeech person.
proper :google.cloud.language.v1beta2.PartOfSpeech.Proper
PartOfSpeech proper.
reciprocity :google.cloud.language.v1beta2.PartOfSpeech.Reciprocity
PartOfSpeech reciprocity.
tag :google.cloud.language.v1beta2.PartOfSpeech.Tag
PartOfSpeech tag.
tense :google.cloud.language.v1beta2.PartOfSpeech.Tense
PartOfSpeech tense.
voice :google.cloud.language.v1beta2.PartOfSpeech.Voice
PartOfSpeech voice.
Methods
(static) create(propertiesopt) → {google.cloud.language.v1beta2.PartOfSpeech}
Creates a new PartOfSpeech instance using the specified properties.
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
properties |
google.cloud.language.v1beta2.IPartOfSpeech |
<optional> |
Properties to set |
(static) decode(reader, lengthopt) → {google.cloud.language.v1beta2.PartOfSpeech}
Decodes a PartOfSpeech message from the specified reader or buffer.
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
reader |
$protobuf.Reader | Uint8Array |
Reader or buffer to decode from |
|
length |
number |
<optional> |
Message length if known beforehand |
Throws:
-
-
If the payload is not a reader or valid buffer
- Type
- Error
-
-
-
If required fields are missing
- Type
- $protobuf.util.ProtocolError
-
(static) decodeDelimited(reader) → {google.cloud.language.v1beta2.PartOfSpeech}
Decodes a PartOfSpeech message from the specified reader or buffer, length delimited.
Parameters:
| Name | Type | Description |
|---|---|---|
reader |
$protobuf.Reader | Uint8Array |
Reader or buffer to decode from |
Throws:
-
-
If the payload is not a reader or valid buffer
- Type
- Error
-
-
-
If required fields are missing
- Type
- $protobuf.util.ProtocolError
-
(static) encode(message, writeropt) → {$protobuf.Writer}
Encodes the specified PartOfSpeech message. Does not implicitly verify messages.
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
message |
google.cloud.language.v1beta2.IPartOfSpeech |
PartOfSpeech message or plain object to encode |
|
writer |
$protobuf.Writer |
<optional> |
Writer to encode to |
(static) encodeDelimited(message, writeropt) → {$protobuf.Writer}
Encodes the specified PartOfSpeech message, length delimited. Does not implicitly verify messages.
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
message |
google.cloud.language.v1beta2.IPartOfSpeech |
PartOfSpeech message or plain object to encode |
|
writer |
$protobuf.Writer |
<optional> |
Writer to encode to |
(static) fromObject(object) → {google.cloud.language.v1beta2.PartOfSpeech}
Creates a PartOfSpeech message from a plain object. Also converts values to their respective internal types.
Parameters:
| Name | Type | Description |
|---|---|---|
object |
Object.<string, *> |
Plain object |
(static) toObject(message, optionsopt) → {Object.<string, *>}
Creates a plain object from a PartOfSpeech message. Also converts values to other types if specified.
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
message |
google.cloud.language.v1beta2.PartOfSpeech |
PartOfSpeech |
|
options |
$protobuf.IConversionOptions |
<optional> |
Conversion options |
(static) verify(message) → {string|null}
Verifies a PartOfSpeech message.
Parameters:
| Name | Type | Description |
|---|---|---|
message |
Object.<string, *> |
Plain object to verify |
toJSON() → {Object.<string, *>}
Converts this PartOfSpeech to JSON.