Class SequentialSegment (0.133.0)

public final class SequentialSegment extends GeneratedMessageV3 implements SequentialSegmentOrBuilder

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

Protobuf type google.cloud.datalabeling.v1beta1.SequentialSegment

Static Fields

END_FIELD_NUMBER

public static final int END_FIELD_NUMBER
Field Value
TypeDescription
int

START_FIELD_NUMBER

public static final int START_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static SequentialSegment getDefaultInstance()
Returns
TypeDescription
SequentialSegment

getDescriptor()

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

newBuilder()

public static SequentialSegment.Builder newBuilder()
Returns
TypeDescription
SequentialSegment.Builder

newBuilder(SequentialSegment prototype)

public static SequentialSegment.Builder newBuilder(SequentialSegment prototype)
Parameter
NameDescription
prototypeSequentialSegment
Returns
TypeDescription
SequentialSegment.Builder

parseDelimitedFrom(InputStream input)

public static SequentialSegment parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SequentialSegment
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SequentialSegment parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SequentialSegment
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static SequentialSegment parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
SequentialSegment
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static SequentialSegment parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SequentialSegment
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static SequentialSegment parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
SequentialSegment
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static SequentialSegment parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SequentialSegment
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static SequentialSegment parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
SequentialSegment
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static SequentialSegment parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SequentialSegment
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static SequentialSegment parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SequentialSegment
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SequentialSegment parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SequentialSegment
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static SequentialSegment parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
SequentialSegment
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static SequentialSegment parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SequentialSegment
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<SequentialSegment> parser()
Returns
TypeDescription
Parser<SequentialSegment>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public SequentialSegment getDefaultInstanceForType()
Returns
TypeDescription
SequentialSegment

getEnd()

public int getEnd()

End position (exclusive).

int32 end = 2;

Returns
TypeDescription
int

The end.

getParserForType()

public Parser<SequentialSegment> getParserForType()
Returns
TypeDescription
Parser<SequentialSegment>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getStart()

public int getStart()

Start position (inclusive).

int32 start = 1;

Returns
TypeDescription
int

The start.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public SequentialSegment.Builder newBuilderForType()
Returns
TypeDescription
SequentialSegment.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected SequentialSegment.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
SequentialSegment.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public SequentialSegment.Builder toBuilder()
Returns
TypeDescription
SequentialSegment.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException