Class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableBlock

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/documentai_v1/classes.rb,
lib/google/apis/documentai_v1/representations.rb,
lib/google/apis/documentai_v1/representations.rb

Overview

Represents a table type block.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableBlock

Returns a new instance of GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableBlock.



3959
3960
3961
# File 'lib/google/apis/documentai_v1/classes.rb', line 3959

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

Instance Attribute Details

#annotationsGoogle::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentAnnotations

Represents the annotation of a block or a chunk. Corresponds to the JSON property annotations



3942
3943
3944
# File 'lib/google/apis/documentai_v1/classes.rb', line 3942

def annotations
  @annotations
end

#body_rowsArray<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow>

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



3947
3948
3949
# File 'lib/google/apis/documentai_v1/classes.rb', line 3947

def body_rows
  @body_rows
end

#captionString

Table caption/title. Corresponds to the JSON property caption

Returns:

  • (String)


3952
3953
3954
# File 'lib/google/apis/documentai_v1/classes.rb', line 3952

def caption
  @caption
end

#header_rowsArray<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow>

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



3957
3958
3959
# File 'lib/google/apis/documentai_v1/classes.rb', line 3957

def header_rows
  @header_rows
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3964
3965
3966
3967
3968
3969
# File 'lib/google/apis/documentai_v1/classes.rb', line 3964

def update!(**args)
  @annotations = args[:annotations] if args.key?(:annotations)
  @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