Package com.google.cloud.documentai.v1
Class Document.TextAnchor.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Document.TextAnchor.Builder>
com.google.cloud.documentai.v1.Document.TextAnchor.Builder
- All Implemented Interfaces:
Document.TextAnchorOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Document.TextAnchor
public static final class Document.TextAnchor.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Document.TextAnchor.Builder>
implements Document.TextAnchorOrBuilder
Text reference indexing into the [Document.text][google.cloud.documentai.v1.Document.text].Protobuf type
google.cloud.documentai.v1.Document.TextAnchor-
Method Summary
Modifier and TypeMethodDescriptionaddAllTextSegments(Iterable<? extends Document.TextAnchor.TextSegment> values) The text segments from the [Document.text][google.cloud.documentai.v1.Document.text].addTextSegments(int index, Document.TextAnchor.TextSegment value) The text segments from the [Document.text][google.cloud.documentai.v1.Document.text].addTextSegments(int index, Document.TextAnchor.TextSegment.Builder builderForValue) The 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].addTextSegments(Document.TextAnchor.TextSegment.Builder builderForValue) The 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].addTextSegmentsBuilder(int index) The text segments from the [Document.text][google.cloud.documentai.v1.Document.text].build()clear()Contains the content of the text span so that users do not have to look it up in the text_segments.The text segments from the [Document.text][google.cloud.documentai.v1.Document.text].Contains 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.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetTextSegments(int index) The text segments from the [Document.text][google.cloud.documentai.v1.Document.text].getTextSegmentsBuilder(int index) The 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].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].protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(Document.TextAnchor other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeTextSegments(int index) The text segments from the [Document.text][google.cloud.documentai.v1.Document.text].setContent(String value) Contains the content of the text span so that users do not have to look it up in the text_segments.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.setTextSegments(int index, Document.TextAnchor.TextSegment value) The text segments from the [Document.text][google.cloud.documentai.v1.Document.text].setTextSegments(int index, Document.TextAnchor.TextSegment.Builder builderForValue) The text segments from the [Document.text][google.cloud.documentai.v1.Document.text].Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Document.TextAnchor.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Document.TextAnchor.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Document.TextAnchor.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Document.TextAnchor.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Document.TextAnchor.Builder>
-
mergeFrom
public Document.TextAnchor.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Document.TextAnchor.Builder>- Throws:
IOException
-
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;- Specified by:
getTextSegmentsListin interfaceDocument.TextAnchorOrBuilder
-
getTextSegmentsCount
public 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;- Specified by:
getTextSegmentsCountin interfaceDocument.TextAnchorOrBuilder
-
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;- Specified by:
getTextSegmentsin interfaceDocument.TextAnchorOrBuilder
-
setTextSegments
public Document.TextAnchor.Builder setTextSegments(int index, Document.TextAnchor.TextSegment value) The text segments from the [Document.text][google.cloud.documentai.v1.Document.text].
repeated .google.cloud.documentai.v1.Document.TextAnchor.TextSegment text_segments = 1; -
setTextSegments
public Document.TextAnchor.Builder setTextSegments(int index, Document.TextAnchor.TextSegment.Builder builderForValue) The text segments from the [Document.text][google.cloud.documentai.v1.Document.text].
repeated .google.cloud.documentai.v1.Document.TextAnchor.TextSegment text_segments = 1; -
addTextSegments
The text segments from the [Document.text][google.cloud.documentai.v1.Document.text].
repeated .google.cloud.documentai.v1.Document.TextAnchor.TextSegment text_segments = 1; -
addTextSegments
public Document.TextAnchor.Builder addTextSegments(int index, Document.TextAnchor.TextSegment value) The text segments from the [Document.text][google.cloud.documentai.v1.Document.text].
repeated .google.cloud.documentai.v1.Document.TextAnchor.TextSegment text_segments = 1; -
addTextSegments
public Document.TextAnchor.Builder addTextSegments(Document.TextAnchor.TextSegment.Builder builderForValue) The text segments from the [Document.text][google.cloud.documentai.v1.Document.text].
repeated .google.cloud.documentai.v1.Document.TextAnchor.TextSegment text_segments = 1; -
addTextSegments
public Document.TextAnchor.Builder addTextSegments(int index, Document.TextAnchor.TextSegment.Builder builderForValue) The text segments from the [Document.text][google.cloud.documentai.v1.Document.text].
repeated .google.cloud.documentai.v1.Document.TextAnchor.TextSegment text_segments = 1; -
addAllTextSegments
public Document.TextAnchor.Builder addAllTextSegments(Iterable<? extends Document.TextAnchor.TextSegment> values) The text segments from the [Document.text][google.cloud.documentai.v1.Document.text].
repeated .google.cloud.documentai.v1.Document.TextAnchor.TextSegment text_segments = 1; -
clearTextSegments
The text segments from the [Document.text][google.cloud.documentai.v1.Document.text].
repeated .google.cloud.documentai.v1.Document.TextAnchor.TextSegment text_segments = 1; -
removeTextSegments
The text segments from the [Document.text][google.cloud.documentai.v1.Document.text].
repeated .google.cloud.documentai.v1.Document.TextAnchor.TextSegment text_segments = 1; -
getTextSegmentsBuilder
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;- Specified by:
getTextSegmentsOrBuilderin interfaceDocument.TextAnchorOrBuilder
-
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;- Specified by:
getTextSegmentsOrBuilderListin interfaceDocument.TextAnchorOrBuilder
-
addTextSegmentsBuilder
The text segments from the [Document.text][google.cloud.documentai.v1.Document.text].
repeated .google.cloud.documentai.v1.Document.TextAnchor.TextSegment text_segments = 1; -
addTextSegmentsBuilder
The text segments from the [Document.text][google.cloud.documentai.v1.Document.text].
repeated .google.cloud.documentai.v1.Document.TextAnchor.TextSegment text_segments = 1; -
getTextSegmentsBuilderList
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
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;- Specified by:
getContentin interfaceDocument.TextAnchorOrBuilder- Returns:
- The content.
-
getContentBytes
public 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;- Specified by:
getContentBytesin interfaceDocument.TextAnchorOrBuilder- Returns:
- The bytes for content.
-
setContent
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;- Parameters:
value- The content to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
setContentBytes
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;- Parameters:
value- The bytes for content to set.- Returns:
- This builder for chaining.
-