public final class DependencyEdge extends GeneratedMessageV3 implements DependencyEdgeOrBuilder
Represents dependency parse tree information for a token.
Protobuf type google.cloud.language.v1beta2.DependencyEdge
Static Fields
HEAD_TOKEN_INDEX_FIELD_NUMBER
public static final int HEAD_TOKEN_INDEX_FIELD_NUMBER
Field Value
LABEL_FIELD_NUMBER
public static final int LABEL_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static DependencyEdge getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static DependencyEdge.Builder newBuilder()
Returns
newBuilder(DependencyEdge prototype)
public static DependencyEdge.Builder newBuilder(DependencyEdge prototype)
Parameter
Returns
public static DependencyEdge parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static DependencyEdge parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static DependencyEdge parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static DependencyEdge parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static DependencyEdge parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static DependencyEdge parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static DependencyEdge parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static DependencyEdge parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static DependencyEdge parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static DependencyEdge parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static DependencyEdge parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static DependencyEdge parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<DependencyEdge> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public DependencyEdge getDefaultInstanceForType()
Returns
getHeadTokenIndex()
public int getHeadTokenIndex()
Represents the head of this token in the dependency tree.
This is the index of the token which has an arc going to this token.
The index is the position of the token in the array of tokens returned
by the API method. If this token is a root token, then the
head_token_index
is its own index.
int32 head_token_index = 1;
Returns
Type | Description |
int | The headTokenIndex.
|
getLabel()
public DependencyEdge.Label getLabel()
The parse label for the token.
.google.cloud.language.v1beta2.DependencyEdge.Label label = 2;
Returns
getLabelValue()
public int getLabelValue()
The parse label for the token.
.google.cloud.language.v1beta2.DependencyEdge.Label label = 2;
Returns
Type | Description |
int | The enum numeric value on the wire for label.
|
getParserForType()
public Parser<DependencyEdge> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public DependencyEdge.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected DependencyEdge.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public DependencyEdge.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions