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()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SequentialSegment.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public SequentialSegment build()
buildPartial()
public SequentialSegment buildPartial()
clear()
public SequentialSegment.Builder clear()
Overrides
clearEnd()
public SequentialSegment.Builder clearEnd()
End position (exclusive).
int32 end = 2;
clearField(Descriptors.FieldDescriptor field)
public SequentialSegment.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public SequentialSegment.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearStart()
public SequentialSegment.Builder clearStart()
Start position (inclusive).
int32 start = 1;
clone()
public SequentialSegment.Builder clone()
Overrides
getDefaultInstanceForType()
public SequentialSegment getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(SequentialSegment other)
public SequentialSegment.Builder mergeFrom(SequentialSegment other)
public SequentialSegment.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public SequentialSegment.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SequentialSegment.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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.
|
setField(Descriptors.FieldDescriptor field, Object value)
public SequentialSegment.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SequentialSegment.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
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.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final SequentialSegment.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides