Class Document.TextAnchor (2.11.0)

public static final class Document.TextAnchor extends GeneratedMessageV3 implements Document.TextAnchorOrBuilder

Text reference indexing into the Document.text.

Protobuf type google.cloud.documentai.v1beta1.Document.TextAnchor

Static Fields

TEXT_SEGMENTS_FIELD_NUMBER

public static final int TEXT_SEGMENTS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Document.TextAnchor getDefaultInstance()
Returns
TypeDescription
Document.TextAnchor

getDescriptor()

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

newBuilder()

public static Document.TextAnchor.Builder newBuilder()
Returns
TypeDescription
Document.TextAnchor.Builder

newBuilder(Document.TextAnchor prototype)

public static Document.TextAnchor.Builder newBuilder(Document.TextAnchor prototype)
Parameter
NameDescription
prototypeDocument.TextAnchor
Returns
TypeDescription
Document.TextAnchor.Builder

parseDelimitedFrom(InputStream input)

public static Document.TextAnchor parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Document.TextAnchor
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)