PartOfSpeech

google.cloud.language.v1beta2. PartOfSpeech

Represents a PartOfSpeech.

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

aspect

PartOfSpeech aspect.

case

PartOfSpeech case.

form

PartOfSpeech form.

gender

PartOfSpeech gender.

mood

PartOfSpeech mood.

number

PartOfSpeech number.

person

PartOfSpeech person.

proper

PartOfSpeech proper.

reciprocity

PartOfSpeech reciprocity.

tag

PartOfSpeech tag.

tense

PartOfSpeech tense.

voice

PartOfSpeech voice.

Aspect

Aspect enum.

Properties:
Name Type Description
ASPECT_UNKNOWN number

ASPECT_UNKNOWN value

PERFECTIVE number

PERFECTIVE value

IMPERFECTIVE number

IMPERFECTIVE value

PROGRESSIVE number

PROGRESSIVE value

Case

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

Form

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

Gender

Gender enum.

Properties:
Name Type Description
GENDER_UNKNOWN number

GENDER_UNKNOWN value

FEMININE number

FEMININE value

MASCULINE number

MASCULINE value

NEUTER number

NEUTER value

Mood

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

Number

Number enum.

Properties:
Name Type Description
NUMBER_UNKNOWN number

NUMBER_UNKNOWN value

SINGULAR number

SINGULAR value

PLURAL number

PLURAL value

DUAL number

DUAL value

Person

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

Proper

Proper enum.

Properties:
Name Type Description
PROPER_UNKNOWN number

PROPER_UNKNOWN value

PROPER number

PROPER value

NOT_PROPER number

NOT_PROPER value

Reciprocity

Reciprocity enum.

Properties:
Name Type Description
RECIPROCITY_UNKNOWN number

RECIPROCITY_UNKNOWN value

RECIPROCAL number

RECIPROCAL value

NON_RECIPROCAL number

NON_RECIPROCAL value

Tag

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

Tense

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

Voice

Voice enum.

Properties:
Name Type Description
VOICE_UNKNOWN number

VOICE_UNKNOWN value

ACTIVE number

ACTIVE value

CAUSATIVE number

CAUSATIVE value

PASSIVE number

PASSIVE value

Methods

toJSON() → {Object.<string, *>}

Converts this PartOfSpeech to JSON.

Returns:
Type Description
Object.<string, *>

JSON object

(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

Returns:
Type Description
google.cloud.language.v1beta2.PartOfSpeech

PartOfSpeech instance

(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

Returns:
Type Description
google.cloud.language.v1beta2.PartOfSpeech

PartOfSpeech

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

Returns:
Type Description
google.cloud.language.v1beta2.PartOfSpeech

PartOfSpeech

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

Returns:
Type Description
$protobuf.Writer

Writer

(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

Returns:
Type Description
$protobuf.Writer

Writer

(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

Returns:
Type Description
google.cloud.language.v1beta2.PartOfSpeech

PartOfSpeech

(static) getTypeUrl(typeUrlPrefixopt) → {string}

Gets the default type url for PartOfSpeech

Parameters:
Name Type Attributes Description
typeUrlPrefix string <optional>

your custom typeUrlPrefix(default "type.googleapis.com")

Returns:
Type Description
string

The default type url

(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

Returns:
Type Description
Object.<string, *>

Plain object

(static) verify(message) → {string|null}

Verifies a PartOfSpeech message.

Parameters:
Name Type Description
message Object.<string, *>

Plain object to verify

Returns:
Type Description
string | null

null if valid, otherwise the reason why it is not