Class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunk
- Inherits:
-
Object
- Object
- Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunk
- 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 chunk.
Instance Attribute Summary collapse
-
#chunk_id ⇒ String
ID of the chunk.
-
#content ⇒ String
Text content of the chunk.
-
#page_footers ⇒ Array<Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkPageFooter>
Page footers associated with the chunk.
-
#page_headers ⇒ Array<Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkPageHeader>
Page headers associated with the chunk.
-
#page_span ⇒ Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkPageSpan
Represents where the chunk starts and ends in the document.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunk
constructor
A new instance of GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunk.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunk
Returns a new instance of GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunk.
7181 7182 7183 |
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 7181 def initialize(**args) update!(**args) end |
Instance Attribute Details
#chunk_id ⇒ String
ID of the chunk.
Corresponds to the JSON property chunkId
7159 7160 7161 |
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 7159 def chunk_id @chunk_id end |
#content ⇒ String
Text content of the chunk.
Corresponds to the JSON property content
7164 7165 7166 |
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 7164 def content @content end |
#page_footers ⇒ Array<Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkPageFooter>
Page footers associated with the chunk.
Corresponds to the JSON property pageFooters
7169 7170 7171 |
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 7169 def @page_footers end |
#page_headers ⇒ Array<Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkPageHeader>
Page headers associated with the chunk.
Corresponds to the JSON property pageHeaders
7174 7175 7176 |
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 7174 def page_headers @page_headers end |
#page_span ⇒ Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkPageSpan
Represents where the chunk starts and ends in the document.
Corresponds to the JSON property pageSpan
7179 7180 7181 |
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 7179 def page_span @page_span end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7186 7187 7188 7189 7190 7191 7192 |
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 7186 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) end |