Document AI V1beta3 API - Class Google::Cloud::DocumentAI::V1beta3::Document::DocumentLayout::DocumentLayoutBlock::LayoutTextBlock (v0.35.0)

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

#blocks=

def blocks=(value) -> ::Array<::Google::Cloud::DocumentAI::V1beta3::Document::DocumentLayout::DocumentLayoutBlock>
Parameter
Returns

#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.