Class PartOfSpeech (2.31.0)

public final class PartOfSpeech extends GeneratedMessageV3 implements PartOfSpeechOrBuilder

Represents part of speech information for a token.

Protobuf type google.cloud.language.v1beta2.PartOfSpeech

Static Fields

ASPECT_FIELD_NUMBER

public static final int ASPECT_FIELD_NUMBER
Field Value
TypeDescription
int

CASE_FIELD_NUMBER

public static final int CASE_FIELD_NUMBER
Field Value
TypeDescription
int

FORM_FIELD_NUMBER

public static final int FORM_FIELD_NUMBER
Field Value
TypeDescription
int

GENDER_FIELD_NUMBER

public static final int GENDER_FIELD_NUMBER
Field Value
TypeDescription
int

MOOD_FIELD_NUMBER

public static final int MOOD_FIELD_NUMBER
Field Value
TypeDescription
int

NUMBER_FIELD_NUMBER

public static final int NUMBER_FIELD_NUMBER
Field Value
TypeDescription
int

PERSON_FIELD_NUMBER

public static final int PERSON_FIELD_NUMBER
Field Value
TypeDescription
int

PROPER_FIELD_NUMBER

public static final int PROPER_FIELD_NUMBER
Field Value
TypeDescription
int

RECIPROCITY_FIELD_NUMBER

public static final int RECIPROCITY_FIELD_NUMBER
Field Value
TypeDescription
int

TAG_FIELD_NUMBER

public static final int TAG_FIELD_NUMBER
Field Value
TypeDescription
int

TENSE_FIELD_NUMBER

public static final int TENSE_FIELD_NUMBER
Field Value
TypeDescription
int

VOICE_FIELD_NUMBER

public static final int VOICE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static PartOfSpeech getDefaultInstance()
Returns
TypeDescription
PartOfSpeech

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static PartOfSpeech.Builder newBuilder()
Returns
TypeDescription
PartOfSpeech.Builder

newBuilder(PartOfSpeech prototype)

public static PartOfSpeech.Builder newBuilder(PartOfSpeech prototype)
Parameter
NameDescription
prototypePartOfSpeech
Returns
TypeDescription
PartOfSpeech.Builder

parseDelimitedFrom(InputStream input)

public static PartOfSpeech parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
PartOfSpeech
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PartOfSpeech parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PartOfSpeech
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static PartOfSpeech parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
PartOfSpeech
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static PartOfSpeech parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PartOfSpeech
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static PartOfSpeech parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
PartOfSpeech
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static PartOfSpeech parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PartOfSpeech
Exceptions
TypeDescription
InvalidProtocolBufferException