Class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutTextBlock
- Inherits:
-
Object
- Object
- Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutTextBlock
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/documentai_v1beta3/classes.rb,
lib/google/apis/documentai_v1beta3/representations.rb,
lib/google/apis/documentai_v1beta3/representations.rb
Overview
Represents a text type block.
Instance Attribute Summary collapse
-
#blocks ⇒ Array<Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlock>
A text block could further have child blocks.
-
#text ⇒ String
Text content stored in the block.
-
#type ⇒ String
Type of the text in the block.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutTextBlock
constructor
A new instance of GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutTextBlock.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutTextBlock
Returns a new instance of GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutTextBlock.
5079 5080 5081 |
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 5079 def initialize(**args) update!(**args) end |
Instance Attribute Details
#blocks ⇒ Array<Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlock>
A text block could further have child blocks. Repeated blocks support further
hierarchies and nested blocks.
Corresponds to the JSON property blocks
5065 5066 5067 |
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 5065 def blocks @blocks end |
#text ⇒ String
Text content stored in the block.
Corresponds to the JSON property text
5070 5071 5072 |
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 5070 def text @text end |
#type ⇒ 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
.
Corresponds to the JSON property type
5077 5078 5079 |
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 5077 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5084 5085 5086 5087 5088 |
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 5084 def update!(**args) @blocks = args[:blocks] if args.key?(:blocks) @text = args[:text] if args.key?(:text) @type = args[:type] if args.key?(:type) end |