Class DependencyEdge (2.36.0)

public final class DependencyEdge extends GeneratedMessageV3 implements DependencyEdgeOrBuilder

Represents dependency parse tree information for a token. (For more information on dependency labels, see http://www.aclweb.org/anthology/P13-2017

Protobuf type google.cloud.language.v1.DependencyEdge

Static Fields

HEAD_TOKEN_INDEX_FIELD_NUMBER

public static final int HEAD_TOKEN_INDEX_FIELD_NUMBER
Field Value
TypeDescription
int

LABEL_FIELD_NUMBER

public static final int LABEL_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static DependencyEdge getDefaultInstance()
Returns
TypeDescription
DependencyEdge

getDescriptor()

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

newBuilder()

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

newBuilder(DependencyEdge prototype)

public static DependencyEdge.Builder newBuilder(DependencyEdge prototype)
Parameter
NameDescription
prototypeDependencyEdge
Returns
TypeDescription
DependencyEdge.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static DependencyEdge parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription