Interface DependencyEdgeOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
DependencyEdge
,DependencyEdge.Builder
public interface DependencyEdgeOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getHeadTokenIndex()
Represents the head of this token in the dependency tree.DependencyEdge.Label
getLabel()
The parse label for the token.int
getLabelValue()
The parse label for the token.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
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.v1beta2.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.v1beta2.DependencyEdge.Label label = 2;
- Returns:
- The label.
-
-