Package com.google.cloud.language.v1
Interface DependencyEdgeOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
DependencyEdge,DependencyEdge.Builder
@Generated
public interface DependencyEdgeOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionintRepresents the head of this token in the dependency tree.getLabel()The parse label for the token.intThe parse label for the token.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getHeadTokenIndex
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:
- The headTokenIndex.
-
getLabelValue
int getLabelValue()The parse label for the token.
.google.cloud.language.v1.DependencyEdge.Label label = 2;- Returns:
- The enum numeric value on the wire for label.
-
getLabel
DependencyEdge.Label getLabel()The parse label for the token.
.google.cloud.language.v1.DependencyEdge.Label label = 2;- Returns:
- The label.
-