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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SequentialSegment.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public SequentialSegment build()
Returns
buildPartial()
public SequentialSegment buildPartial()
Returns
clear()
public SequentialSegment.Builder clear()
Returns
Overrides
clearEnd()
public SequentialSegment.Builder clearEnd()
End position (exclusive).
int32 end = 2;
Returns
clearField(Descriptors.FieldDescriptor field)
public SequentialSegment.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public SequentialSegment.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearStart()
public SequentialSegment.Builder clearStart()
Start position (inclusive).
int32 start = 1;
Returns
clone()
public SequentialSegment.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public SequentialSegment getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getEnd()
End position (exclusive).
int32 end = 2;
Returns
Type | Description |
int | The end.
|
getStart()
Start position (inclusive).
int32 start = 1;
Returns
Type | Description |
int | The start.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(SequentialSegment other)
public SequentialSegment.Builder mergeFrom(SequentialSegment other)
Parameter
Returns
public SequentialSegment.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public SequentialSegment.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SequentialSegment.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
setField(Descriptors.FieldDescriptor field, Object value)
public SequentialSegment.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SequentialSegment.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
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
setUnknownFields(UnknownFieldSet unknownFields)
public final SequentialSegment.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides