Class DependencyEdge.Builder (2.33.0)

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DependencyEdge.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
DependencyEdge.Builder
Overrides

build()

public DependencyEdge build()
Returns
TypeDescription
DependencyEdge

buildPartial()

public DependencyEdge buildPartial()
Returns
TypeDescription
DependencyEdge

clear()

public DependencyEdge.Builder clear()
Returns
TypeDescription
DependencyEdge.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public DependencyEdge.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
DependencyEdge.Builder
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;

Returns
TypeDescription
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
TypeDescription
DependencyEdge.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public DependencyEdge.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
DependencyEdge.Builder
Overrides

clone()

public DependencyEdge.Builder clone()
Returns
TypeDescription
DependencyEdge.Builder
Overrides

getDefaultInstanceForType()

public DependencyEdge getDefaultInstanceForType()
Returns
TypeDescription
DependencyEdge

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
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
TypeDescription
int

The headTokenIndex.

getLabel()

public DependencyEdge.Label getLabel()

The parse label for the token.

.google.cloud.language.v1beta2.DependencyEdge.Label label = 2;

Returns
TypeDescription
DependencyEdge.Label

The label.

getLabelValue()

public int getLabelValue()

The parse label for the token.

.google.cloud.language.v1beta2.DependencyEdge.Label label = 2;

Returns
TypeDescription
int

The enum numeric value on the wire for label.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(DependencyEdge other)

public DependencyEdge.Builder mergeFrom(DependencyEdge other)
Parameter
NameDescription
otherDependencyEdge
Returns
TypeDescription
DependencyEdge.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DependencyEdge.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DependencyEdge.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public DependencyEdge.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
DependencyEdge.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DependencyEdge.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DependencyEdge.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public DependencyEdge.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
DependencyEdge.Builder
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
NameDescription
valueint

The headTokenIndex to set.

Returns
TypeDescription
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
NameDescription
valueDependencyEdge.Label

The label to set.

Returns
TypeDescription
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
NameDescription
valueint

The enum numeric value on the wire for label to set.

Returns
TypeDescription
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)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
DependencyEdge.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final DependencyEdge.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DependencyEdge.Builder
Overrides