Class: Google::Apis::ContentwarehouseV1::GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTextBlock
- Inherits:
-
Object
- Object
- Google::Apis::ContentwarehouseV1::GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTextBlock
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/contentwarehouse_v1/classes.rb,
lib/google/apis/contentwarehouse_v1/representations.rb,
lib/google/apis/contentwarehouse_v1/representations.rb
Overview
Represents a text type block.
Instance Attribute Summary collapse
-
#blocks ⇒ Array<Google::Apis::ContentwarehouseV1::GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlock>
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) ⇒ GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTextBlock
constructor
A new instance of GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTextBlock.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTextBlock
Returns a new instance of GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTextBlock.
4831 4832 4833 |
# File 'lib/google/apis/contentwarehouse_v1/classes.rb', line 4831 def initialize(**args) update!(**args) end |
Instance Attribute Details
#blocks ⇒ Array<Google::Apis::ContentwarehouseV1::GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlock>
A text block could further have child blocks. Repeated blocks support further
hierarchies and nested blocks.
Corresponds to the JSON property blocks
4817 4818 4819 |
# File 'lib/google/apis/contentwarehouse_v1/classes.rb', line 4817 def blocks @blocks end |
#text ⇒ String
Text content stored in the block.
Corresponds to the JSON property text
4822 4823 4824 |
# File 'lib/google/apis/contentwarehouse_v1/classes.rb', line 4822 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
4829 4830 4831 |
# File 'lib/google/apis/contentwarehouse_v1/classes.rb', line 4829 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4836 4837 4838 4839 4840 |
# File 'lib/google/apis/contentwarehouse_v1/classes.rb', line 4836 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 |