Class SequentialSegment.Builder (0.159.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SequentialSegment build()
Returns
TypeDescription
SequentialSegment

buildPartial()

public SequentialSegment buildPartial()
Returns
TypeDescription
SequentialSegment

clear()

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

clearEnd()

public SequentialSegment.Builder clearEnd()

End position (exclusive).

int32 end = 2;

Returns
TypeDescription
SequentialSegment.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public SequentialSegment.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
SequentialSegment.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearStart()

public SequentialSegment.Builder clearStart()

Start position (inclusive).

int32 start = 1;

Returns
TypeDescription
SequentialSegment.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public SequentialSegment getDefaultInstanceForType()
Returns
TypeDescription
SequentialSegment

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEnd()

public int getEnd()

End position (exclusive).

int32 end = 2;

Returns
TypeDescription
int

The end.

getStart()

public int getStart()

Start position (inclusive).

int32 start = 1;

Returns
TypeDescription
int

The start.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SequentialSegment other)

public SequentialSegment.Builder mergeFrom(SequentialSegment other)
Parameter
NameDescription
otherSequentialSegment
Returns
TypeDescription
SequentialSegment.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setEnd(int value)

public SequentialSegment.Builder setEnd(int value)

End position (exclusive).

int32 end = 2;

Parameter
NameDescription
valueint

The end to set.

Returns
TypeDescription
SequentialSegment.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public SequentialSegment.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
SequentialSegment.Builder
Overrides

setStart(int value)

public SequentialSegment.Builder setStart(int value)

Start position (inclusive).

int32 start = 1;

Parameter
NameDescription
valueint

The start to set.

Returns
TypeDescription
SequentialSegment.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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