Reference documentation and code samples for the Document AI V1beta3 API class Google::Cloud::DocumentAI::V1beta3::Document::DocumentLayout::DocumentLayoutBlock::LayoutTextBlock.
Represents a text type block.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#blocks
def blocks() -> ::Array<::Google::Cloud::DocumentAI::V1beta3::Document::DocumentLayout::DocumentLayoutBlock>
Returns
- (::Array<::Google::Cloud::DocumentAI::V1beta3::Document::DocumentLayout::DocumentLayoutBlock>) — A text block could further have child blocks. Repeated blocks support further hierarchies and nested blocks.
#blocks=
def blocks=(value) -> ::Array<::Google::Cloud::DocumentAI::V1beta3::Document::DocumentLayout::DocumentLayoutBlock>
Parameter
- value (::Array<::Google::Cloud::DocumentAI::V1beta3::Document::DocumentLayout::DocumentLayoutBlock>) — A text block could further have child blocks. Repeated blocks support further hierarchies and nested blocks.
Returns
- (::Array<::Google::Cloud::DocumentAI::V1beta3::Document::DocumentLayout::DocumentLayoutBlock>) — A text block could further have child blocks. Repeated blocks support further hierarchies and nested blocks.
#text
def text() -> ::String
Returns
- (::String) — Text content stored in the block.
#text=
def text=(value) -> ::String
Parameter
- value (::String) — Text content stored in the block.
Returns
- (::String) — Text content stored in the block.
#type
def type() -> ::String
Returns
-
(::String) — Type of the text in the block. Available options are:
paragraph
,subtitle
,heading-1
,heading-2
,heading-3
,heading-4
,heading-5
,header
,footer
.
#type=
def type=(value) -> ::String
Parameter
-
value (::String) — Type of the text in the block. Available options are:
paragraph
,subtitle
,heading-1
,heading-2
,heading-3
,heading-4
,heading-5
,header
,footer
.
Returns
-
(::String) — Type of the text in the block. Available options are:
paragraph
,subtitle
,heading-1
,heading-2
,heading-3
,heading-4
,heading-5
,header
,footer
.