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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getContent()
Contains the content of the text span so that users do not have to look it up in the text_segments.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.Document.TextAnchor.TextSegment
getTextSegments(int index)
The text segments from the [Document.text][google.cloud.documentai.v1beta3.Document.text].int
getTextSegmentsCount()
The text segments from the [Document.text][google.cloud.documentai.v1beta3.Document.text].List<Document.TextAnchor.TextSegment>
getTextSegmentsList()
The text segments from the [Document.text][google.cloud.documentai.v1beta3.Document.text].Document.TextAnchor.TextSegmentOrBuilder
getTextSegmentsOrBuilder(int index)
The text segments from the [Document.text][google.cloud.documentai.v1beta3.Document.text].List<? extends Document.TextAnchor.TextSegmentOrBuilder>
getTextSegmentsOrBuilderList()
The text segments from the [Document.text][google.cloud.documentai.v1beta3.Document.text].-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getTextSegmentsList
List<Document.TextAnchor.TextSegment> getTextSegmentsList()
The text segments from the [Document.text][google.cloud.documentai.v1beta3.Document.text].
repeated .google.cloud.documentai.v1beta3.Document.TextAnchor.TextSegment text_segments = 1;
-
getTextSegments
Document.TextAnchor.TextSegment getTextSegments(int index)
The text segments from the [Document.text][google.cloud.documentai.v1beta3.Document.text].
repeated .google.cloud.documentai.v1beta3.Document.TextAnchor.TextSegment text_segments = 1;
-
getTextSegmentsCount
int getTextSegmentsCount()
The text segments from the [Document.text][google.cloud.documentai.v1beta3.Document.text].
repeated .google.cloud.documentai.v1beta3.Document.TextAnchor.TextSegment text_segments = 1;
-
getTextSegmentsOrBuilderList
List<? extends Document.TextAnchor.TextSegmentOrBuilder> getTextSegmentsOrBuilderList()
The text segments from the [Document.text][google.cloud.documentai.v1beta3.Document.text].
repeated .google.cloud.documentai.v1beta3.Document.TextAnchor.TextSegment text_segments = 1;
-
getTextSegmentsOrBuilder
Document.TextAnchor.TextSegmentOrBuilder getTextSegmentsOrBuilder(int index)
The text segments from the [Document.text][google.cloud.documentai.v1beta3.Document.text].
repeated .google.cloud.documentai.v1beta3.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.
-
-