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.GeneratedMessageV3.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.GeneratedMessageV3.Builder<Document.TextAnchor.Builder> implements Document.TextAnchorOrBuilder
Text reference indexing into the [Document.text][google.cloud.documentai.v1.Document.text].
Protobuf typegoogle.cloud.documentai.v1.Document.TextAnchor
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Document.TextAnchor.BuilderaddAllTextSegments(Iterable<? extends Document.TextAnchor.TextSegment> values)The text segments from the [Document.text][google.cloud.documentai.v1.Document.text].Document.TextAnchor.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Document.TextAnchor.BuilderaddTextSegments(int index, Document.TextAnchor.TextSegment value)The text segments from the [Document.text][google.cloud.documentai.v1.Document.text].Document.TextAnchor.BuilderaddTextSegments(int index, Document.TextAnchor.TextSegment.Builder builderForValue)The text segments from the [Document.text][google.cloud.documentai.v1.Document.text].Document.TextAnchor.BuilderaddTextSegments(Document.TextAnchor.TextSegment value)The text segments from the [Document.text][google.cloud.documentai.v1.Document.text].Document.TextAnchor.BuilderaddTextSegments(Document.TextAnchor.TextSegment.Builder builderForValue)The text segments from the [Document.text][google.cloud.documentai.v1.Document.text].Document.TextAnchor.TextSegment.BuilderaddTextSegmentsBuilder()The text segments from the [Document.text][google.cloud.documentai.v1.Document.text].Document.TextAnchor.TextSegment.BuilderaddTextSegmentsBuilder(int index)The text segments from the [Document.text][google.cloud.documentai.v1.Document.text].Document.TextAnchorbuild()Document.TextAnchorbuildPartial()Document.TextAnchor.Builderclear()Document.TextAnchor.BuilderclearContent()Contains the content of the text span so that users do not have to look it up in the text_segments.Document.TextAnchor.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Document.TextAnchor.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Document.TextAnchor.BuilderclearTextSegments()The text segments from the [Document.text][google.cloud.documentai.v1.Document.text].Document.TextAnchor.Builderclone()StringgetContent()Contains the content of the text span so that users do not have to look it up in the text_segments.com.google.protobuf.ByteStringgetContentBytes()Contains the content of the text span so that users do not have to look it up in the text_segments.Document.TextAnchorgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()Document.TextAnchor.TextSegmentgetTextSegments(int index)The text segments from the [Document.text][google.cloud.documentai.v1.Document.text].Document.TextAnchor.TextSegment.BuildergetTextSegmentsBuilder(int index)The text segments from the [Document.text][google.cloud.documentai.v1.Document.text].List<Document.TextAnchor.TextSegment.Builder>getTextSegmentsBuilderList()The text segments from the [Document.text][google.cloud.documentai.v1.Document.text].intgetTextSegmentsCount()The text segments from the [Document.text][google.cloud.documentai.v1.Document.text].List<Document.TextAnchor.TextSegment>getTextSegmentsList()The text segments from the [Document.text][google.cloud.documentai.v1.Document.text].Document.TextAnchor.TextSegmentOrBuildergetTextSegmentsOrBuilder(int index)The text segments from the [Document.text][google.cloud.documentai.v1.Document.text].List<? extends Document.TextAnchor.TextSegmentOrBuilder>getTextSegmentsOrBuilderList()The text segments from the [Document.text][google.cloud.documentai.v1.Document.text].protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Document.TextAnchor.BuildermergeFrom(Document.TextAnchor other)Document.TextAnchor.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Document.TextAnchor.BuildermergeFrom(com.google.protobuf.Message other)Document.TextAnchor.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Document.TextAnchor.BuilderremoveTextSegments(int index)The text segments from the [Document.text][google.cloud.documentai.v1.Document.text].Document.TextAnchor.BuildersetContent(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.BuildersetContentBytes(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.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Document.TextAnchor.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Document.TextAnchor.BuildersetTextSegments(int index, Document.TextAnchor.TextSegment value)The text segments from the [Document.text][google.cloud.documentai.v1.Document.text].Document.TextAnchor.BuildersetTextSegments(int index, Document.TextAnchor.TextSegment.Builder builderForValue)The text segments from the [Document.text][google.cloud.documentai.v1.Document.text].Document.TextAnchor.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Document.TextAnchor.Builder>
-
clear
public 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.GeneratedMessageV3.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.GeneratedMessageV3.Builder<Document.TextAnchor.Builder>
-
getDefaultInstanceForType
public Document.TextAnchor getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Document.TextAnchor build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Document.TextAnchor buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Document.TextAnchor.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Document.TextAnchor.Builder>
-
setField
public Document.TextAnchor.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Document.TextAnchor.Builder>
-
clearField
public Document.TextAnchor.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Document.TextAnchor.Builder>
-
clearOneof
public Document.TextAnchor.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Document.TextAnchor.Builder>
-
setRepeatedField
public Document.TextAnchor.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Document.TextAnchor.Builder>
-
addRepeatedField
public Document.TextAnchor.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Document.TextAnchor.Builder>
-
mergeFrom
public Document.TextAnchor.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Document.TextAnchor.Builder>
-
mergeFrom
public Document.TextAnchor.Builder mergeFrom(Document.TextAnchor other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.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
public 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;- 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
public Document.TextAnchor.TextSegment getTextSegments(int index)
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
public Document.TextAnchor.Builder addTextSegments(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(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
public Document.TextAnchor.Builder 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
public Document.TextAnchor.Builder removeTextSegments(int index)
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
public Document.TextAnchor.TextSegment.Builder getTextSegmentsBuilder(int index)
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
public Document.TextAnchor.TextSegmentOrBuilder getTextSegmentsOrBuilder(int index)
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
public 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;- Specified by:
getTextSegmentsOrBuilderListin interfaceDocument.TextAnchorOrBuilder
-
addTextSegmentsBuilder
public Document.TextAnchor.TextSegment.Builder 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
public Document.TextAnchor.TextSegment.Builder addTextSegmentsBuilder(int index)
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
public List<Document.TextAnchor.TextSegment.Builder> 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
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;- 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
public 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;- Parameters:
value- The content to set.- Returns:
- This builder for chaining.
-
clearContent
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;- Returns:
- This builder for chaining.
-
setContentBytes
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;- Parameters:
value- The bytes for content to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final Document.TextAnchor.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Document.TextAnchor.Builder>
-
mergeUnknownFields
public final Document.TextAnchor.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Document.TextAnchor.Builder>
-
-