Class: Google::Apis::ContentwarehouseV1::GoogleCloudDocumentaiV1DocumentChunkedDocumentChunk

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

Overview

Represents a chunk.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDocumentaiV1DocumentChunkedDocumentChunk

Returns a new instance of GoogleCloudDocumentaiV1DocumentChunkedDocumentChunk.



4502
4503
4504
# File 'lib/google/apis/contentwarehouse_v1/classes.rb', line 4502

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

Instance Attribute Details

#chunk_idString

ID of the chunk. Corresponds to the JSON property chunkId

Returns:

  • (String)


4475
4476
4477
# File 'lib/google/apis/contentwarehouse_v1/classes.rb', line 4475

def chunk_id
  @chunk_id
end

#contentString

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

Returns:

  • (String)


4480
4481
4482
# File 'lib/google/apis/contentwarehouse_v1/classes.rb', line 4480

def content
  @content
end

#page_footersArray<Google::Apis::ContentwarehouseV1::GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageFooter>

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



4485
4486
4487
# File 'lib/google/apis/contentwarehouse_v1/classes.rb', line 4485

def page_footers
  @page_footers
end

#page_headersArray<Google::Apis::ContentwarehouseV1::GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageHeader>

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



4490
4491
4492
# File 'lib/google/apis/contentwarehouse_v1/classes.rb', line 4490

def page_headers
  @page_headers
end

#page_spanGoogle::Apis::ContentwarehouseV1::GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageSpan

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



4495
4496
4497
# File 'lib/google/apis/contentwarehouse_v1/classes.rb', line 4495

def page_span
  @page_span
end

#source_block_idsArray<String>

Unused. Corresponds to the JSON property sourceBlockIds

Returns:

  • (Array<String>)


4500
4501
4502
# File 'lib/google/apis/contentwarehouse_v1/classes.rb', line 4500

def source_block_ids
  @source_block_ids
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4507
4508
4509
4510
4511
4512
4513
4514
# File 'lib/google/apis/contentwarehouse_v1/classes.rb', line 4507

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