Class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentChunkedDocumentChunk

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 chunk.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDocumentaiV1beta2DocumentChunkedDocumentChunk

Returns a new instance of GoogleCloudDocumentaiV1beta2DocumentChunkedDocumentChunk.



8855
8856
8857
# File 'lib/google/apis/documentai_v1/classes.rb', line 8855

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

Instance Attribute Details

#chunk_idString

ID of the chunk. Corresponds to the JSON property chunkId

Returns:

  • (String)


8828
8829
8830
# File 'lib/google/apis/documentai_v1/classes.rb', line 8828

def chunk_id
  @chunk_id
end

#contentString

Text content of the chunk. Corresponds to the JSON property content

Returns:

  • (String)


8833
8834
8835
# File 'lib/google/apis/documentai_v1/classes.rb', line 8833

def content
  @content
end

#page_footersArray<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentChunkedDocumentChunkChunkPageFooter>

Page footers associated with the chunk. Corresponds to the JSON property pageFooters



8838
8839
8840
# File 'lib/google/apis/documentai_v1/classes.rb', line 8838

def page_footers
  @page_footers
end

#page_headersArray<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentChunkedDocumentChunkChunkPageHeader>

Page headers associated with the chunk. Corresponds to the JSON property pageHeaders



8843
8844
8845
# File 'lib/google/apis/documentai_v1/classes.rb', line 8843

def page_headers
  @page_headers
end

#page_spanGoogle::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentChunkedDocumentChunkChunkPageSpan

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



8848
8849
8850
# File 'lib/google/apis/documentai_v1/classes.rb', line 8848

def page_span
  @page_span
end

#source_block_idsArray<String>

Unused. Corresponds to the JSON property sourceBlockIds

Returns:

  • (Array<String>)


8853
8854
8855
# File 'lib/google/apis/documentai_v1/classes.rb', line 8853

def source_block_ids
  @source_block_ids
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8860
8861
8862
8863
8864
8865
8866
8867
# File 'lib/google/apis/documentai_v1/classes.rb', line 8860

def update!(**args)
  @chunk_id = args[:chunk_id] if args.key?(:chunk_id)
  @content = args[:content] if args.key?(:content)
  @page_footers = args[:page_footers] if args.key?(:page_footers)
  @page_headers = args[:page_headers] if args.key?(:page_headers)
  @page_span = args[:page_span] if args.key?(:page_span)
  @source_block_ids = args[:source_block_ids] if args.key?(:source_block_ids)
end