public static final class Document.TextAnchor.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Document.TextAnchor.Builder> implements Document.TextAnchorOrBuilder
Text reference indexing into the [Document.text][google.cloud.documentai.v1beta2.Document.text].Protobuf type
google.cloud.documentai.v1beta2.Document.TextAnchor| Modifier and Type | Method and Description |
|---|---|
Document.TextAnchor.Builder |
addAllTextSegments(Iterable<? extends Document.TextAnchor.TextSegment> values)
The text segments from the
[Document.text][google.cloud.documentai.v1beta2.Document.text].
|
Document.TextAnchor.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Document.TextAnchor.Builder |
addTextSegments(Document.TextAnchor.TextSegment.Builder builderForValue)
The text segments from the
[Document.text][google.cloud.documentai.v1beta2.Document.text].
|
Document.TextAnchor.Builder |
addTextSegments(Document.TextAnchor.TextSegment value)
The text segments from the
[Document.text][google.cloud.documentai.v1beta2.Document.text].
|
Document.TextAnchor.Builder |
addTextSegments(int index,
Document.TextAnchor.TextSegment.Builder builderForValue)
The text segments from the
[Document.text][google.cloud.documentai.v1beta2.Document.text].
|
Document.TextAnchor.Builder |
addTextSegments(int index,
Document.TextAnchor.TextSegment value)
The text segments from the
[Document.text][google.cloud.documentai.v1beta2.Document.text].
|
Document.TextAnchor.TextSegment.Builder |
addTextSegmentsBuilder()
The text segments from the
[Document.text][google.cloud.documentai.v1beta2.Document.text].
|
Document.TextAnchor.TextSegment.Builder |
addTextSegmentsBuilder(int index)
The text segments from the
[Document.text][google.cloud.documentai.v1beta2.Document.text].
|
Document.TextAnchor |
build() |
Document.TextAnchor |
buildPartial() |
Document.TextAnchor.Builder |
clear() |
Document.TextAnchor.Builder |
clearContent()
Contains the content of the text span so that users do
not have to look it up in the text_segments.
|
Document.TextAnchor.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Document.TextAnchor.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Document.TextAnchor.Builder |
clearTextSegments()
The text segments from the
[Document.text][google.cloud.documentai.v1beta2.Document.text].
|
Document.TextAnchor.Builder |
clone() |
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 |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Document.TextAnchor.TextSegment |
getTextSegments(int index)
The text segments from the
[Document.text][google.cloud.documentai.v1beta2.Document.text].
|
Document.TextAnchor.TextSegment.Builder |
getTextSegmentsBuilder(int index)
The text segments from the
[Document.text][google.cloud.documentai.v1beta2.Document.text].
|
List<Document.TextAnchor.TextSegment.Builder> |
getTextSegmentsBuilderList()
The text segments from the
[Document.text][google.cloud.documentai.v1beta2.Document.text].
|
int |
getTextSegmentsCount()
The text segments from the
[Document.text][google.cloud.documentai.v1beta2.Document.text].
|
List<Document.TextAnchor.TextSegment> |
getTextSegmentsList()
The text segments from the
[Document.text][google.cloud.documentai.v1beta2.Document.text].
|
Document.TextAnchor.TextSegmentOrBuilder |
getTextSegmentsOrBuilder(int index)
The text segments from the
[Document.text][google.cloud.documentai.v1beta2.Document.text].
|
List<? extends Document.TextAnchor.TextSegmentOrBuilder> |
getTextSegmentsOrBuilderList()
The text segments from the
[Document.text][google.cloud.documentai.v1beta2.Document.text].
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Document.TextAnchor.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Document.TextAnchor.Builder |
mergeFrom(Document.TextAnchor other) |
Document.TextAnchor.Builder |
mergeFrom(com.google.protobuf.Message other) |
Document.TextAnchor.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Document.TextAnchor.Builder |
removeTextSegments(int index)
The text segments from the
[Document.text][google.cloud.documentai.v1beta2.Document.text].
|
Document.TextAnchor.Builder |
setContent(String value)
Contains the content of the text span so that users do
not have to look it up in the text_segments.
|
Document.TextAnchor.Builder |
setContentBytes(com.google.protobuf.ByteString value)
Contains the content of the text span so that users do
not have to look it up in the text_segments.
|
Document.TextAnchor.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Document.TextAnchor.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Document.TextAnchor.Builder |
setTextSegments(int index,
Document.TextAnchor.TextSegment.Builder builderForValue)
The text segments from the
[Document.text][google.cloud.documentai.v1beta2.Document.text].
|
Document.TextAnchor.Builder |
setTextSegments(int index,
Document.TextAnchor.TextSegment value)
The text segments from the
[Document.text][google.cloud.documentai.v1beta2.Document.text].
|
Document.TextAnchor.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Document.TextAnchor.Builder>public Document.TextAnchor.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Document.TextAnchor.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Document.TextAnchor.Builder>public Document.TextAnchor getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Document.TextAnchor build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Document.TextAnchor buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Document.TextAnchor.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Document.TextAnchor.Builder>public Document.TextAnchor.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Document.TextAnchor.Builder>public Document.TextAnchor.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Document.TextAnchor.Builder>public Document.TextAnchor.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Document.TextAnchor.Builder>public Document.TextAnchor.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Document.TextAnchor.Builder>public Document.TextAnchor.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Document.TextAnchor.Builder>public Document.TextAnchor.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Document.TextAnchor.Builder>public Document.TextAnchor.Builder mergeFrom(Document.TextAnchor other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Document.TextAnchor.Builder>public Document.TextAnchor.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Document.TextAnchor.Builder>IOExceptionpublic List<Document.TextAnchor.TextSegment> getTextSegmentsList()
The text segments from the [Document.text][google.cloud.documentai.v1beta2.Document.text].
repeated .google.cloud.documentai.v1beta2.Document.TextAnchor.TextSegment text_segments = 1;
getTextSegmentsList in interface Document.TextAnchorOrBuilderpublic int getTextSegmentsCount()
The text segments from the [Document.text][google.cloud.documentai.v1beta2.Document.text].
repeated .google.cloud.documentai.v1beta2.Document.TextAnchor.TextSegment text_segments = 1;
getTextSegmentsCount in interface Document.TextAnchorOrBuilderpublic Document.TextAnchor.TextSegment getTextSegments(int index)
The text segments from the [Document.text][google.cloud.documentai.v1beta2.Document.text].
repeated .google.cloud.documentai.v1beta2.Document.TextAnchor.TextSegment text_segments = 1;
getTextSegments in interface Document.TextAnchorOrBuilderpublic Document.TextAnchor.Builder setTextSegments(int index, Document.TextAnchor.TextSegment value)
The text segments from the [Document.text][google.cloud.documentai.v1beta2.Document.text].
repeated .google.cloud.documentai.v1beta2.Document.TextAnchor.TextSegment text_segments = 1;
public Document.TextAnchor.Builder setTextSegments(int index, Document.TextAnchor.TextSegment.Builder builderForValue)
The text segments from the [Document.text][google.cloud.documentai.v1beta2.Document.text].
repeated .google.cloud.documentai.v1beta2.Document.TextAnchor.TextSegment text_segments = 1;
public Document.TextAnchor.Builder addTextSegments(Document.TextAnchor.TextSegment value)
The text segments from the [Document.text][google.cloud.documentai.v1beta2.Document.text].
repeated .google.cloud.documentai.v1beta2.Document.TextAnchor.TextSegment text_segments = 1;
public Document.TextAnchor.Builder addTextSegments(int index, Document.TextAnchor.TextSegment value)
The text segments from the [Document.text][google.cloud.documentai.v1beta2.Document.text].
repeated .google.cloud.documentai.v1beta2.Document.TextAnchor.TextSegment text_segments = 1;
public Document.TextAnchor.Builder addTextSegments(Document.TextAnchor.TextSegment.Builder builderForValue)
The text segments from the [Document.text][google.cloud.documentai.v1beta2.Document.text].
repeated .google.cloud.documentai.v1beta2.Document.TextAnchor.TextSegment text_segments = 1;
public Document.TextAnchor.Builder addTextSegments(int index, Document.TextAnchor.TextSegment.Builder builderForValue)
The text segments from the [Document.text][google.cloud.documentai.v1beta2.Document.text].
repeated .google.cloud.documentai.v1beta2.Document.TextAnchor.TextSegment text_segments = 1;
public Document.TextAnchor.Builder addAllTextSegments(Iterable<? extends Document.TextAnchor.TextSegment> values)
The text segments from the [Document.text][google.cloud.documentai.v1beta2.Document.text].
repeated .google.cloud.documentai.v1beta2.Document.TextAnchor.TextSegment text_segments = 1;
public Document.TextAnchor.Builder clearTextSegments()
The text segments from the [Document.text][google.cloud.documentai.v1beta2.Document.text].
repeated .google.cloud.documentai.v1beta2.Document.TextAnchor.TextSegment text_segments = 1;
public Document.TextAnchor.Builder removeTextSegments(int index)
The text segments from the [Document.text][google.cloud.documentai.v1beta2.Document.text].
repeated .google.cloud.documentai.v1beta2.Document.TextAnchor.TextSegment text_segments = 1;
public Document.TextAnchor.TextSegment.Builder getTextSegmentsBuilder(int index)
The text segments from the [Document.text][google.cloud.documentai.v1beta2.Document.text].
repeated .google.cloud.documentai.v1beta2.Document.TextAnchor.TextSegment text_segments = 1;
public Document.TextAnchor.TextSegmentOrBuilder getTextSegmentsOrBuilder(int index)
The text segments from the [Document.text][google.cloud.documentai.v1beta2.Document.text].
repeated .google.cloud.documentai.v1beta2.Document.TextAnchor.TextSegment text_segments = 1;
getTextSegmentsOrBuilder in interface Document.TextAnchorOrBuilderpublic List<? extends Document.TextAnchor.TextSegmentOrBuilder> getTextSegmentsOrBuilderList()
The text segments from the [Document.text][google.cloud.documentai.v1beta2.Document.text].
repeated .google.cloud.documentai.v1beta2.Document.TextAnchor.TextSegment text_segments = 1;
getTextSegmentsOrBuilderList in interface Document.TextAnchorOrBuilderpublic Document.TextAnchor.TextSegment.Builder addTextSegmentsBuilder()
The text segments from the [Document.text][google.cloud.documentai.v1beta2.Document.text].
repeated .google.cloud.documentai.v1beta2.Document.TextAnchor.TextSegment text_segments = 1;
public Document.TextAnchor.TextSegment.Builder addTextSegmentsBuilder(int index)
The text segments from the [Document.text][google.cloud.documentai.v1beta2.Document.text].
repeated .google.cloud.documentai.v1beta2.Document.TextAnchor.TextSegment text_segments = 1;
public List<Document.TextAnchor.TextSegment.Builder> getTextSegmentsBuilderList()
The text segments from the [Document.text][google.cloud.documentai.v1beta2.Document.text].
repeated .google.cloud.documentai.v1beta2.Document.TextAnchor.TextSegment text_segments = 1;
public 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;getContent in interface Document.TextAnchorOrBuilderpublic 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;getContentBytes in interface Document.TextAnchorOrBuilderpublic Document.TextAnchor.Builder setContent(String value)
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;value - The content to set.public Document.TextAnchor.Builder clearContent()
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;public Document.TextAnchor.Builder setContentBytes(com.google.protobuf.ByteString value)
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;value - The bytes for content to set.public final Document.TextAnchor.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Document.TextAnchor.Builder>public final Document.TextAnchor.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Document.TextAnchor.Builder>Copyright © 2023 Google LLC. All rights reserved.