Package com.google.cloud.documentai.v1
Class Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder>
com.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder
- All Implemented Interfaces:
Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlockOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock
public static final class Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder>
implements Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlockOrBuilder
Represents a text type block.Protobuf type
google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock-
Method Summary
Modifier and TypeMethodDescriptionaddAllBlocks(Iterable<? extends Document.DocumentLayout.DocumentLayoutBlock> values) A text block could further have child blocks.addBlocks(int index, Document.DocumentLayout.DocumentLayoutBlock value) A text block could further have child blocks.addBlocks(int index, Document.DocumentLayout.DocumentLayoutBlock.Builder builderForValue) A text block could further have child blocks.A text block could further have child blocks.addBlocks(Document.DocumentLayout.DocumentLayoutBlock.Builder builderForValue) A text block could further have child blocks.A text block could further have child blocks.addBlocksBuilder(int index) A text block could further have child blocks.build()clear()Annotation of the text block.A text block could further have child blocks.Text content stored in the block.Type of the text in the block.Annotation of the text block.Annotation of the text block.Annotation of the text block.getBlocks(int index) A text block could further have child blocks.getBlocksBuilder(int index) A text block could further have child blocks.A text block could further have child blocks.intA text block could further have child blocks.A text block could further have child blocks.getBlocksOrBuilder(int index) A text block could further have child blocks.A text block could further have child blocks.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetText()Text content stored in the block.com.google.protobuf.ByteStringText content stored in the block.getType()Type of the text in the block.com.google.protobuf.ByteStringType of the text in the block.booleanAnnotation of the text block.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanAnnotation of the text block.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeBlocks(int index) A text block could further have child blocks.Annotation of the text block.setAnnotations(Document.Annotations.Builder builderForValue) Annotation of the text block.setBlocks(int index, Document.DocumentLayout.DocumentLayoutBlock value) A text block could further have child blocks.setBlocks(int index, Document.DocumentLayout.DocumentLayoutBlock.Builder builderForValue) A text block could further have child blocks.Text content stored in the block.setTextBytes(com.google.protobuf.ByteString value) Text content stored in the block.Type of the text in the block.setTypeBytes(com.google.protobuf.ByteString value) Type of the text in the block.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.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.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.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.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.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.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
public Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder>
-
mergeFrom
public Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.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.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder>- Throws:
IOException
-
getText
Text content stored in the block.
string text = 1;- Specified by:
getTextin interfaceDocument.DocumentLayout.DocumentLayoutBlock.LayoutTextBlockOrBuilder- Returns:
- The text.
-
getTextBytes
public com.google.protobuf.ByteString getTextBytes()Text content stored in the block.
string text = 1;- Specified by:
getTextBytesin interfaceDocument.DocumentLayout.DocumentLayoutBlock.LayoutTextBlockOrBuilder- Returns:
- The bytes for text.
-
setText
Text content stored in the block.
string text = 1;- Parameters:
value- The text to set.- Returns:
- This builder for chaining.
-
clearText
Text content stored in the block.
string text = 1;- Returns:
- This builder for chaining.
-
setTextBytes
public Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder setTextBytes(com.google.protobuf.ByteString value) Text content stored in the block.
string text = 1;- Parameters:
value- The bytes for text to set.- Returns:
- This builder for chaining.
-
getType
Type of the text in the block. Available options are: `paragraph`, `subtitle`, `heading-1`, `heading-2`, `heading-3`, `heading-4`, `heading-5`, `header`, `footer`.
string type = 2;- Specified by:
getTypein interfaceDocument.DocumentLayout.DocumentLayoutBlock.LayoutTextBlockOrBuilder- Returns:
- The type.
-
getTypeBytes
public com.google.protobuf.ByteString getTypeBytes()Type of the text in the block. Available options are: `paragraph`, `subtitle`, `heading-1`, `heading-2`, `heading-3`, `heading-4`, `heading-5`, `header`, `footer`.
string type = 2;- Specified by:
getTypeBytesin interfaceDocument.DocumentLayout.DocumentLayoutBlock.LayoutTextBlockOrBuilder- Returns:
- The bytes for type.
-
setType
Type of the text in the block. Available options are: `paragraph`, `subtitle`, `heading-1`, `heading-2`, `heading-3`, `heading-4`, `heading-5`, `header`, `footer`.
string type = 2;- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
Type of the text in the block. Available options are: `paragraph`, `subtitle`, `heading-1`, `heading-2`, `heading-3`, `heading-4`, `heading-5`, `header`, `footer`.
string type = 2;- Returns:
- This builder for chaining.
-
setTypeBytes
public Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder setTypeBytes(com.google.protobuf.ByteString value) Type of the text in the block. Available options are: `paragraph`, `subtitle`, `heading-1`, `heading-2`, `heading-3`, `heading-4`, `heading-5`, `header`, `footer`.
string type = 2;- Parameters:
value- The bytes for type to set.- Returns:
- This builder for chaining.
-
getBlocksList
A text block could further have child blocks. Repeated blocks support further hierarchies and nested blocks.
repeated .google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock blocks = 3;- Specified by:
getBlocksListin interfaceDocument.DocumentLayout.DocumentLayoutBlock.LayoutTextBlockOrBuilder
-
getBlocksCount
public int getBlocksCount()A text block could further have child blocks. Repeated blocks support further hierarchies and nested blocks.
repeated .google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock blocks = 3;- Specified by:
getBlocksCountin interfaceDocument.DocumentLayout.DocumentLayoutBlock.LayoutTextBlockOrBuilder
-
getBlocks
A text block could further have child blocks. Repeated blocks support further hierarchies and nested blocks.
repeated .google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock blocks = 3;- Specified by:
getBlocksin interfaceDocument.DocumentLayout.DocumentLayoutBlock.LayoutTextBlockOrBuilder
-
setBlocks
public Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder setBlocks(int index, Document.DocumentLayout.DocumentLayoutBlock value) A text block could further have child blocks. Repeated blocks support further hierarchies and nested blocks.
repeated .google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock blocks = 3; -
setBlocks
public Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder setBlocks(int index, Document.DocumentLayout.DocumentLayoutBlock.Builder builderForValue) A text block could further have child blocks. Repeated blocks support further hierarchies and nested blocks.
repeated .google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock blocks = 3; -
addBlocks
public Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder addBlocks(Document.DocumentLayout.DocumentLayoutBlock value) A text block could further have child blocks. Repeated blocks support further hierarchies and nested blocks.
repeated .google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock blocks = 3; -
addBlocks
public Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder addBlocks(int index, Document.DocumentLayout.DocumentLayoutBlock value) A text block could further have child blocks. Repeated blocks support further hierarchies and nested blocks.
repeated .google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock blocks = 3; -
addBlocks
public Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder addBlocks(Document.DocumentLayout.DocumentLayoutBlock.Builder builderForValue) A text block could further have child blocks. Repeated blocks support further hierarchies and nested blocks.
repeated .google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock blocks = 3; -
addBlocks
public Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder addBlocks(int index, Document.DocumentLayout.DocumentLayoutBlock.Builder builderForValue) A text block could further have child blocks. Repeated blocks support further hierarchies and nested blocks.
repeated .google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock blocks = 3; -
addAllBlocks
public Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder addAllBlocks(Iterable<? extends Document.DocumentLayout.DocumentLayoutBlock> values) A text block could further have child blocks. Repeated blocks support further hierarchies and nested blocks.
repeated .google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock blocks = 3; -
clearBlocks
A text block could further have child blocks. Repeated blocks support further hierarchies and nested blocks.
repeated .google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock blocks = 3; -
removeBlocks
A text block could further have child blocks. Repeated blocks support further hierarchies and nested blocks.
repeated .google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock blocks = 3; -
getBlocksBuilder
A text block could further have child blocks. Repeated blocks support further hierarchies and nested blocks.
repeated .google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock blocks = 3; -
getBlocksOrBuilder
A text block could further have child blocks. Repeated blocks support further hierarchies and nested blocks.
repeated .google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock blocks = 3;- Specified by:
getBlocksOrBuilderin interfaceDocument.DocumentLayout.DocumentLayoutBlock.LayoutTextBlockOrBuilder
-
getBlocksOrBuilderList
public List<? extends Document.DocumentLayout.DocumentLayoutBlockOrBuilder> getBlocksOrBuilderList()A text block could further have child blocks. Repeated blocks support further hierarchies and nested blocks.
repeated .google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock blocks = 3;- Specified by:
getBlocksOrBuilderListin interfaceDocument.DocumentLayout.DocumentLayoutBlock.LayoutTextBlockOrBuilder
-
addBlocksBuilder
A text block could further have child blocks. Repeated blocks support further hierarchies and nested blocks.
repeated .google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock blocks = 3; -
addBlocksBuilder
A text block could further have child blocks. Repeated blocks support further hierarchies and nested blocks.
repeated .google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock blocks = 3; -
getBlocksBuilderList
A text block could further have child blocks. Repeated blocks support further hierarchies and nested blocks.
repeated .google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock blocks = 3; -
hasAnnotations
public boolean hasAnnotations()Annotation of the text block.
.google.cloud.documentai.v1.Document.Annotations annotations = 4;- Specified by:
hasAnnotationsin interfaceDocument.DocumentLayout.DocumentLayoutBlock.LayoutTextBlockOrBuilder- Returns:
- Whether the annotations field is set.
-
getAnnotations
Annotation of the text block.
.google.cloud.documentai.v1.Document.Annotations annotations = 4;- Specified by:
getAnnotationsin interfaceDocument.DocumentLayout.DocumentLayoutBlock.LayoutTextBlockOrBuilder- Returns:
- The annotations.
-
setAnnotations
public Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder setAnnotations(Document.Annotations value) Annotation of the text block.
.google.cloud.documentai.v1.Document.Annotations annotations = 4; -
setAnnotations
public Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder setAnnotations(Document.Annotations.Builder builderForValue) Annotation of the text block.
.google.cloud.documentai.v1.Document.Annotations annotations = 4; -
mergeAnnotations
public Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder mergeAnnotations(Document.Annotations value) Annotation of the text block.
.google.cloud.documentai.v1.Document.Annotations annotations = 4; -
clearAnnotations
Annotation of the text block.
.google.cloud.documentai.v1.Document.Annotations annotations = 4; -
getAnnotationsBuilder
Annotation of the text block.
.google.cloud.documentai.v1.Document.Annotations annotations = 4; -
getAnnotationsOrBuilder
Annotation of the text block.
.google.cloud.documentai.v1.Document.Annotations annotations = 4;- Specified by:
getAnnotationsOrBuilderin interfaceDocument.DocumentLayout.DocumentLayoutBlock.LayoutTextBlockOrBuilder
-