Class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutTableBlock

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) ⇒ GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutTableBlock

Returns a new instance of GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutTableBlock.



4994
4995
4996
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 4994

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

Instance Attribute Details

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

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



4982
4983
4984
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 4982

def body_rows
  @body_rows
end

#captionString

Table caption/title. Corresponds to the JSON property caption

Returns:

  • (String)


4987
4988
4989
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 4987

def caption
  @caption
end

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

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



4992
4993
4994
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 4992

def header_rows
  @header_rows
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4999
5000
5001
5002
5003
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 4999

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