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.v1beta3.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.v1beta3.Document.text].
Protobuf typegoogle.cloud.documentai.v1beta3.Document.TextAnchor
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Document.TextAnchor.Builder
addAllTextSegments(Iterable<? extends Document.TextAnchor.TextSegment> values)
The text segments from the [Document.text][google.cloud.documentai.v1beta3.Document.text].Document.TextAnchor.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Document.TextAnchor.Builder
addTextSegments(int index, Document.TextAnchor.TextSegment value)
The text segments from the [Document.text][google.cloud.documentai.v1beta3.Document.text].Document.TextAnchor.Builder
addTextSegments(int index, Document.TextAnchor.TextSegment.Builder builderForValue)
The text segments from the [Document.text][google.cloud.documentai.v1beta3.Document.text].Document.TextAnchor.Builder
addTextSegments(Document.TextAnchor.TextSegment value)
The text segments from the [Document.text][google.cloud.documentai.v1beta3.Document.text].Document.TextAnchor.Builder
addTextSegments(Document.TextAnchor.TextSegment.Builder builderForValue)
The text segments from the [Document.text][google.cloud.documentai.v1beta3.Document.text].Document.TextAnchor.TextSegment.Builder
addTextSegmentsBuilder()
The text segments from the [Document.text][google.cloud.documentai.v1beta3.Document.text].Document.TextAnchor.TextSegment.Builder
addTextSegmentsBuilder(int index)
The text segments from the [Document.text][google.cloud.documentai.v1beta3.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.v1beta3.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.v1beta3.Document.text].Document.TextAnchor.TextSegment.Builder
getTextSegmentsBuilder(int index)
The text segments from the [Document.text][google.cloud.documentai.v1beta3.Document.text].List<Document.TextAnchor.TextSegment.Builder>
getTextSegmentsBuilderList()
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].protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Document.TextAnchor.Builder
mergeFrom(Document.TextAnchor other)
Document.TextAnchor.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
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.v1beta3.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 value)
The text segments from the [Document.text][google.cloud.documentai.v1beta3.Document.text].Document.TextAnchor.Builder
setTextSegments(int index, Document.TextAnchor.TextSegment.Builder builderForValue)
The text segments from the [Document.text][google.cloud.documentai.v1beta3.Document.text].Document.TextAnchor.Builder
setUnknownFields(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Document.TextAnchor.Builder>
-
clear
public Document.TextAnchor.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Document.TextAnchor.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Document.TextAnchor.Builder>
-
getDefaultInstanceForType
public Document.TextAnchor getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Document.TextAnchor build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Document.TextAnchor buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Document.TextAnchor.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Document.TextAnchor.Builder>
-
setField
public Document.TextAnchor.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Document.TextAnchor.Builder>
-
clearField
public Document.TextAnchor.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Document.TextAnchor.Builder>
-
clearOneof
public Document.TextAnchor.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in 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:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Document.TextAnchor.Builder>
-
addRepeatedField
public Document.TextAnchor.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Document.TextAnchor.Builder>
-
mergeFrom
public Document.TextAnchor.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Document.TextAnchor.Builder>
-
mergeFrom
public Document.TextAnchor.Builder mergeFrom(Document.TextAnchor other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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.v1beta3.Document.text].
repeated .google.cloud.documentai.v1beta3.Document.TextAnchor.TextSegment text_segments = 1;
- Specified by:
getTextSegmentsList
in interfaceDocument.TextAnchorOrBuilder
-
getTextSegmentsCount
public 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;
- Specified by:
getTextSegmentsCount
in interfaceDocument.TextAnchorOrBuilder
-
getTextSegments
public 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;
- Specified by:
getTextSegments
in interfaceDocument.TextAnchorOrBuilder
-
setTextSegments
public Document.TextAnchor.Builder setTextSegments(int index, Document.TextAnchor.TextSegment value)
The text segments from the [Document.text][google.cloud.documentai.v1beta3.Document.text].
repeated .google.cloud.documentai.v1beta3.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.v1beta3.Document.text].
repeated .google.cloud.documentai.v1beta3.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.v1beta3.Document.text].
repeated .google.cloud.documentai.v1beta3.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.v1beta3.Document.text].
repeated .google.cloud.documentai.v1beta3.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.v1beta3.Document.text].
repeated .google.cloud.documentai.v1beta3.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.v1beta3.Document.text].
repeated .google.cloud.documentai.v1beta3.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.v1beta3.Document.text].
repeated .google.cloud.documentai.v1beta3.Document.TextAnchor.TextSegment text_segments = 1;
-
clearTextSegments
public Document.TextAnchor.Builder clearTextSegments()
The text segments from the [Document.text][google.cloud.documentai.v1beta3.Document.text].
repeated .google.cloud.documentai.v1beta3.Document.TextAnchor.TextSegment text_segments = 1;
-
removeTextSegments
public Document.TextAnchor.Builder removeTextSegments(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;
-
getTextSegmentsBuilder
public Document.TextAnchor.TextSegment.Builder getTextSegmentsBuilder(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;
-
getTextSegmentsOrBuilder
public 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;
- Specified by:
getTextSegmentsOrBuilder
in interfaceDocument.TextAnchorOrBuilder
-
getTextSegmentsOrBuilderList
public 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;
- Specified by:
getTextSegmentsOrBuilderList
in interfaceDocument.TextAnchorOrBuilder
-
addTextSegmentsBuilder
public Document.TextAnchor.TextSegment.Builder addTextSegmentsBuilder()
The text segments from the [Document.text][google.cloud.documentai.v1beta3.Document.text].
repeated .google.cloud.documentai.v1beta3.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.v1beta3.Document.text].
repeated .google.cloud.documentai.v1beta3.Document.TextAnchor.TextSegment text_segments = 1;
-
getTextSegmentsBuilderList
public List<Document.TextAnchor.TextSegment.Builder> getTextSegmentsBuilderList()
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
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:
getContent
in 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:
getContentBytes
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Document.TextAnchor.Builder>
-
mergeUnknownFields
public final Document.TextAnchor.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Document.TextAnchor.Builder>
-
-