- 2.54.0 (latest)
- 2.53.0
- 2.52.0
- 2.50.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.40.0
- 2.38.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.28.0
- 2.25.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.0
- 2.4.1
- 2.3.4
- 2.2.0
- 2.1.10
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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > DependencyEdge.BuilderImplements
DependencyEdgeOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public DependencyEdge.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
DependencyEdge.Builder |
build()
public DependencyEdge build()
Type | Description |
DependencyEdge |
buildPartial()
public DependencyEdge buildPartial()
Type | Description |
DependencyEdge |
clear()
public DependencyEdge.Builder clear()
Type | Description |
DependencyEdge.Builder |
clearField(Descriptors.FieldDescriptor field)
public DependencyEdge.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
DependencyEdge.Builder |
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;
Type | Description |
DependencyEdge.Builder | This builder for chaining. |
clearLabel()
public DependencyEdge.Builder clearLabel()
The parse label for the token.
.google.cloud.language.v1.DependencyEdge.Label label = 2;
Type | Description |
DependencyEdge.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public DependencyEdge.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
DependencyEdge.Builder |
clone()
public DependencyEdge.Builder clone()
Type | Description |
DependencyEdge.Builder |
getDefaultInstanceForType()
public DependencyEdge getDefaultInstanceForType()
Type | Description |
DependencyEdge |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
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;
Type | Description |
int | The headTokenIndex. |
getLabel()
public DependencyEdge.Label getLabel()
The parse label for the token.
.google.cloud.language.v1.DependencyEdge.Label label = 2;
Type | Description |
DependencyEdge.Label | The label. |
getLabelValue()
public int getLabelValue()
The parse label for the token.
.google.cloud.language.v1.DependencyEdge.Label label = 2;
Type | Description |
int | The enum numeric value on the wire for label. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(DependencyEdge other)
public DependencyEdge.Builder mergeFrom(DependencyEdge other)
Name | Description |
other | DependencyEdge |
Type | Description |
DependencyEdge.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public DependencyEdge.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
DependencyEdge.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public DependencyEdge.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
DependencyEdge.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final DependencyEdge.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
DependencyEdge.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public DependencyEdge.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
DependencyEdge.Builder |
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;
Name | Description |
value | int The headTokenIndex to set. |
Type | Description |
DependencyEdge.Builder | This builder for chaining. |
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;
Name | Description |
value | DependencyEdge.Label The label to set. |
Type | Description |
DependencyEdge.Builder | This builder for chaining. |
setLabelValue(int value)
public DependencyEdge.Builder setLabelValue(int value)
The parse label for the token.
.google.cloud.language.v1.DependencyEdge.Label label = 2;
Name | Description |
value | int The enum numeric value on the wire for label to set. |
Type | Description |
DependencyEdge.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public DependencyEdge.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
DependencyEdge.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final DependencyEdge.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
DependencyEdge.Builder |