Send feedback
Class DependencyEdge.Builder (2.18.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.18.0 keyboard_arrow_down
public static final class DependencyEdge . Builder extends GeneratedMessageV3 . Builder<DependencyEdge . Builder > 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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public DependencyEdge . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
build()
public DependencyEdge build ()
buildPartial()
public DependencyEdge buildPartial ()
clear()
public DependencyEdge . Builder clear ()
Overrides
clearField(Descriptors.FieldDescriptor field)
public DependencyEdge . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
clearHeadTokenIndex()
public DependencyEdge . Builder clearHeadTokenIndex ()
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;
clearLabel()
public DependencyEdge . Builder clearLabel ()
The parse label for the token.
.google.cloud.language.v1.DependencyEdge.Label label = 2;
clearOneof(Descriptors.OneofDescriptor oneof)
public DependencyEdge . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Overrides
clone()
public DependencyEdge . Builder clone ()
Overrides
getDefaultInstanceForType()
public DependencyEdge getDefaultInstanceForType ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Overrides
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.v1.DependencyEdge.Label label = 2;
getLabelValue()
public int getLabelValue ()
The parse label for the token.
.google.cloud.language.v1.DependencyEdge.Label label = 2;
Returns Type Description int
The enum numeric value on the wire for label.
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
mergeFrom(DependencyEdge other)
public DependencyEdge . Builder mergeFrom ( DependencyEdge other )
public DependencyEdge . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public DependencyEdge . Builder mergeFrom ( Message other )
Parameter Name Description other
Message
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final DependencyEdge . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public DependencyEdge . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Overrides
setHeadTokenIndex(int value)
public DependencyEdge . Builder setHeadTokenIndex ( int value )
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;
Parameter Name Description value
int
The headTokenIndex to set.
setLabel(DependencyEdge.Label value)
public DependencyEdge . Builder setLabel ( DependencyEdge . Label value )
The parse label for the token.
.google.cloud.language.v1.DependencyEdge.Label label = 2;
setLabelValue(int value)
public DependencyEdge . Builder setLabelValue ( int value )
The parse label for the token.
.google.cloud.language.v1.DependencyEdge.Label label = 2;
Parameter Name Description value
int
The enum numeric value on the wire for label to set.
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public DependencyEdge . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final DependencyEdge . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-21 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-21 UTC."],[],[]]