- 2.56.0 (latest)
- 2.55.0
- 2.54.0
- 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.
Protobuf type google.cloud.language.v1beta2.DependencyEdge
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > DependencyEdge.BuilderImplements
DependencyEdgeOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
build()
public DependencyEdge build()
Returns | |
---|---|
Type | Description |
DependencyEdge |
buildPartial()
public DependencyEdge buildPartial()
Returns | |
---|---|
Type | Description |
DependencyEdge |
clear()
public DependencyEdge.Builder clear()
Returns | |
---|---|
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;
Returns | |
---|---|
Type | Description |
DependencyEdge.Builder | This builder for chaining. |
clearLabel()
public DependencyEdge.Builder clearLabel()
The parse label for the token.
.google.cloud.language.v1beta2.DependencyEdge.Label label = 2;
Returns | |
---|---|
Type | Description |
DependencyEdge.Builder | This builder for chaining. |
getDefaultInstanceForType()
public DependencyEdge getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
DependencyEdge |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
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;
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 | |
---|---|
Type | Description |
DependencyEdge.Label | The label. |
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. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(DependencyEdge other)
public DependencyEdge.Builder mergeFrom(DependencyEdge other)
Parameter | |
---|---|
Name | Description |
other | DependencyEdge |
Returns | |
---|---|
Type | Description |
DependencyEdge.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public DependencyEdge.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
DependencyEdge.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public DependencyEdge.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
DependencyEdge.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final DependencyEdge.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
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;
Parameter | |
---|---|
Name | Description |
value | int The headTokenIndex to set. |
Returns | |
---|---|
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.v1beta2.DependencyEdge.Label label = 2;
Parameter | |
---|---|
Name | Description |
value | DependencyEdge.Label The label to set. |
Returns | |
---|---|
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.v1beta2.DependencyEdge.Label label = 2;
Parameter | |
---|---|
Name | Description |
value | int The enum numeric value on the wire for label to set. |
Returns | |
---|---|
Type | Description |
DependencyEdge.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final DependencyEdge.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
DependencyEdge.Builder |