Class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlock

Inherits:
Object
  • Object
show all
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 block. A block could be one of the various types (text, table, list) supported.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlock

Returns a new instance of GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlock.



8154
8155
8156
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 8154

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#block_idString

ID of the block. Corresponds to the JSON property blockId

Returns:

  • (String)


8132
8133
8134
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 8132

def block_id
  @block_id
end

#list_blockGoogle::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock

Represents a list type block. Corresponds to the JSON property listBlock



8137
8138
8139
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 8137

def list_block
  @list_block
end

#page_spanGoogle::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutPageSpan

Represents where the block starts and ends in the document. Corresponds to the JSON property pageSpan



8142
8143
8144
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 8142

def page_span
  @page_span
end

#table_blockGoogle::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutTableBlock

Represents a table type block. Corresponds to the JSON property tableBlock



8147
8148
8149
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 8147

def table_block
  @table_block
end

#text_blockGoogle::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutTextBlock

Represents a text type block. Corresponds to the JSON property textBlock



8152
8153
8154
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 8152

def text_block
  @text_block
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8159
8160
8161
8162
8163
8164
8165
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 8159

def update!(**args)
  @block_id = args[:block_id] if args.key?(:block_id)
  @list_block = args[:list_block] if args.key?(:list_block)
  @page_span = args[:page_span] if args.key?(:page_span)
  @table_block = args[:table_block] if args.key?(:table_block)
  @text_block = args[:text_block] if args.key?(:text_block)
end