Package com.google.cloud.documentai.v1
Interface Document.TextAnchorOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Document.TextAnchor,Document.TextAnchor.Builder
- Enclosing class:
- Document
public static interface Document.TextAnchorOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionContains the content of the text span so that users do not have to look it up in the text_segments.com.google.protobuf.ByteStringContains the content of the text span so that users do not have to look it up in the text_segments.getTextSegments(int index) The text segments from the [Document.text][google.cloud.documentai.v1.Document.text].intThe text segments from the [Document.text][google.cloud.documentai.v1.Document.text].The text segments from the [Document.text][google.cloud.documentai.v1.Document.text].getTextSegmentsOrBuilder(int index) The text segments from the [Document.text][google.cloud.documentai.v1.Document.text].List<? extends Document.TextAnchor.TextSegmentOrBuilder>The text segments from the [Document.text][google.cloud.documentai.v1.Document.text].Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getTextSegmentsList
List<Document.TextAnchor.TextSegment> getTextSegmentsList()The text segments from the [Document.text][google.cloud.documentai.v1.Document.text].
repeated .google.cloud.documentai.v1.Document.TextAnchor.TextSegment text_segments = 1; -
getTextSegments
The text segments from the [Document.text][google.cloud.documentai.v1.Document.text].
repeated .google.cloud.documentai.v1.Document.TextAnchor.TextSegment text_segments = 1; -
getTextSegmentsCount
int getTextSegmentsCount()The text segments from the [Document.text][google.cloud.documentai.v1.Document.text].
repeated .google.cloud.documentai.v1.Document.TextAnchor.TextSegment text_segments = 1; -
getTextSegmentsOrBuilderList
List<? extends Document.TextAnchor.TextSegmentOrBuilder> getTextSegmentsOrBuilderList()The text segments from the [Document.text][google.cloud.documentai.v1.Document.text].
repeated .google.cloud.documentai.v1.Document.TextAnchor.TextSegment text_segments = 1; -
getTextSegmentsOrBuilder
The text segments from the [Document.text][google.cloud.documentai.v1.Document.text].
repeated .google.cloud.documentai.v1.Document.TextAnchor.TextSegment text_segments = 1; -
getContent
String getContent()Contains the content of the text span so that users do not have to look it up in the text_segments. It is always populated for formFields.
string content = 2;- Returns:
- The content.
-
getContentBytes
com.google.protobuf.ByteString getContentBytes()Contains the content of the text span so that users do not have to look it up in the text_segments. It is always populated for formFields.
string content = 2;- Returns:
- The bytes for content.
-