Class SequentialSegment.Builder (0.174.0)

public static final class SequentialSegment.Builder extends GeneratedMessageV3.Builder<SequentialSegment.Builder> implements SequentialSegmentOrBuilder

Start and end position in a sequence (e.g. text segment).

Protobuf type google.cloud.datalabeling.v1beta1.SequentialSegment

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SequentialSegment.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SequentialSegment.Builder
Overrides

build()

public SequentialSegment build()
Returns
Type Description
SequentialSegment

buildPartial()

public SequentialSegment buildPartial()
Returns
Type Description
SequentialSegment

clear()

public SequentialSegment.Builder clear()
Returns
Type Description
SequentialSegment.Builder
Overrides

clearEnd()

public SequentialSegment.Builder clearEnd()

End position (exclusive).

int32 end = 2;

Returns
Type Description
SequentialSegment.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public SequentialSegment.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
SequentialSegment.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public SequentialSegment.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
SequentialSegment.Builder
Overrides

clearStart()

public SequentialSegment.Builder clearStart()

Start position (inclusive).

int32 start = 1;

Returns
Type Description
SequentialSegment.Builder

This builder for chaining.

clone()

public SequentialSegment.Builder clone()
Returns
Type Description
SequentialSegment.Builder
Overrides

getDefaultInstanceForType()

public SequentialSegment getDefaultInstanceForType()
Returns
Type Description
SequentialSegment

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEnd()

public int getEnd()

End position (exclusive).

int32 end = 2;

Returns
Type Description
int

The end.

getStart()

public int getStart()

Start position (inclusive).

int32 start = 1;

Returns
Type Description
int

The start.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SequentialSegment other)

public SequentialSegment.Builder mergeFrom(SequentialSegment other)
Parameter
Name Description
other SequentialSegment
Returns
Type Description
SequentialSegment.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SequentialSegment.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SequentialSegment.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public SequentialSegment.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
SequentialSegment.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SequentialSegment.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SequentialSegment.Builder
Overrides

setEnd(int value)

public SequentialSegment.Builder setEnd(int value)

End position (exclusive).

int32 end = 2;

Parameter
Name Description
value int

The end to set.

Returns
Type Description
SequentialSegment.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public SequentialSegment.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SequentialSegment.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public SequentialSegment.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
SequentialSegment.Builder
Overrides

setStart(int value)

public SequentialSegment.Builder setStart(int value)

Start position (inclusive).

int32 start = 1;

Parameter
Name Description
value int

The start to set.

Returns
Type Description
SequentialSegment.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final SequentialSegment.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SequentialSegment.Builder
Overrides