Class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutTableBlock

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 table type block.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutTableBlock

Returns a new instance of GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutTableBlock.



8258
8259
8260
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 8258

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

Instance Attribute Details

#body_rowsArray<Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow>

Body rows containing main table content. Corresponds to the JSON property bodyRows



8246
8247
8248
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 8246

def body_rows
  @body_rows
end

#captionString

Table caption/title. Corresponds to the JSON property caption

Returns:

  • (String)


8251
8252
8253
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 8251

def caption
  @caption
end

#header_rowsArray<Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow>

Header rows at the top of the table. Corresponds to the JSON property headerRows



8256
8257
8258
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 8256

def header_rows
  @header_rows
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8263
8264
8265
8266
8267
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 8263

def update!(**args)
  @body_rows = args[:body_rows] if args.key?(:body_rows)
  @caption = args[:caption] if args.key?(:caption)
  @header_rows = args[:header_rows] if args.key?(:header_rows)
end