# Document AI V1 API - Class Google::Cloud::DocumentAI::V1::Document::ChunkedDocument::Chunk (v1.12.1)

1.12.1 (latest) 1.12.0 1.11.0 1.10.2 1.9.0 1.8.0 1.7.0 1.6.1 1.5.1 1.4.0 1.3.0 1.2.0 1.1.1 1.0.0 0.23.1 0.22.0 0.21.1 0.20.0 0.19.0 0.18.0 0.17.2 0.16.2 0.15.0 0.14.0 0.13.0 0.12.0 0.11.0 0.10.0 0.9.0 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.4 Reference documentation and code samples for the Document AI V1 API class Google::Cloud::DocumentAI::V1::Document::ChunkedDocument::Chunk.

Represents a chunk.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #chunk_fields

    def chunk_fields() -> ::Array<::Google::Cloud::DocumentAI::V1::Document::ChunkedDocument::Chunk::ChunkField>

**Returns**

- (::Array\<[::Google::Cloud::DocumentAI::V1::Document::ChunkedDocument::Chunk::ChunkField](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-document_ai-v1/latest/Google-Cloud-DocumentAI-V1-Document-ChunkedDocument-Chunk-ChunkField)\>) --- Chunk fields inside this chunk.

### #chunk_fields=

    def chunk_fields=(value) -> ::Array<::Google::Cloud::DocumentAI::V1::Document::ChunkedDocument::Chunk::ChunkField>

**Parameter**

- **value** (::Array\<[::Google::Cloud::DocumentAI::V1::Document::ChunkedDocument::Chunk::ChunkField](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-document_ai-v1/latest/Google-Cloud-DocumentAI-V1-Document-ChunkedDocument-Chunk-ChunkField)\>) --- Chunk fields inside this chunk.
**Returns**

- (::Array\<[::Google::Cloud::DocumentAI::V1::Document::ChunkedDocument::Chunk::ChunkField](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-document_ai-v1/latest/Google-Cloud-DocumentAI-V1-Document-ChunkedDocument-Chunk-ChunkField)\>) --- Chunk fields inside this chunk.

### #chunk_id

    def chunk_id() -> ::String

**Returns**

- (::String) --- ID of the chunk.

### #chunk_id=

    def chunk_id=(value) -> ::String

**Parameter**

- **value** (::String) --- ID of the chunk.
**Returns**

- (::String) --- ID of the chunk.

### #content

    def content() -> ::String

**Returns**

- (::String) --- Text content of the chunk.

### #content=

    def content=(value) -> ::String

**Parameter**

- **value** (::String) --- Text content of the chunk.
**Returns**

- (::String) --- Text content of the chunk.

### #page_footers

    def page_footers() -> ::Array<::Google::Cloud::DocumentAI::V1::Document::ChunkedDocument::Chunk::ChunkPageFooter>

**Returns**

- (::Array\<[::Google::Cloud::DocumentAI::V1::Document::ChunkedDocument::Chunk::ChunkPageFooter](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-document_ai-v1/latest/Google-Cloud-DocumentAI-V1-Document-ChunkedDocument-Chunk-ChunkPageFooter)\>) --- Page footers associated with the chunk.

### #page_footers=

    def page_footers=(value) -> ::Array<::Google::Cloud::DocumentAI::V1::Document::ChunkedDocument::Chunk::ChunkPageFooter>

**Parameter**

- **value** (::Array\<[::Google::Cloud::DocumentAI::V1::Document::ChunkedDocument::Chunk::ChunkPageFooter](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-document_ai-v1/latest/Google-Cloud-DocumentAI-V1-Document-ChunkedDocument-Chunk-ChunkPageFooter)\>) --- Page footers associated with the chunk.
**Returns**

- (::Array\<[::Google::Cloud::DocumentAI::V1::Document::ChunkedDocument::Chunk::ChunkPageFooter](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-document_ai-v1/latest/Google-Cloud-DocumentAI-V1-Document-ChunkedDocument-Chunk-ChunkPageFooter)\>) --- Page footers associated with the chunk.

### #page_headers

    def page_headers() -> ::Array<::Google::Cloud::DocumentAI::V1::Document::ChunkedDocument::Chunk::ChunkPageHeader>

**Returns**

- (::Array\<[::Google::Cloud::DocumentAI::V1::Document::ChunkedDocument::Chunk::ChunkPageHeader](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-document_ai-v1/latest/Google-Cloud-DocumentAI-V1-Document-ChunkedDocument-Chunk-ChunkPageHeader)\>) --- Page headers associated with the chunk.

### #page_headers=

    def page_headers=(value) -> ::Array<::Google::Cloud::DocumentAI::V1::Document::ChunkedDocument::Chunk::ChunkPageHeader>

**Parameter**

- **value** (::Array\<[::Google::Cloud::DocumentAI::V1::Document::ChunkedDocument::Chunk::ChunkPageHeader](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-document_ai-v1/latest/Google-Cloud-DocumentAI-V1-Document-ChunkedDocument-Chunk-ChunkPageHeader)\>) --- Page headers associated with the chunk.
**Returns**

- (::Array\<[::Google::Cloud::DocumentAI::V1::Document::ChunkedDocument::Chunk::ChunkPageHeader](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-document_ai-v1/latest/Google-Cloud-DocumentAI-V1-Document-ChunkedDocument-Chunk-ChunkPageHeader)\>) --- Page headers associated with the chunk.

### #page_span

    def page_span() -> ::Google::Cloud::DocumentAI::V1::Document::ChunkedDocument::Chunk::ChunkPageSpan

**Returns**

- ([::Google::Cloud::DocumentAI::V1::Document::ChunkedDocument::Chunk::ChunkPageSpan](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-document_ai-v1/latest/Google-Cloud-DocumentAI-V1-Document-ChunkedDocument-Chunk-ChunkPageSpan)) --- Page span of the chunk.

### #page_span=

    def page_span=(value) -> ::Google::Cloud::DocumentAI::V1::Document::ChunkedDocument::Chunk::ChunkPageSpan

**Parameter**

- **value** ([::Google::Cloud::DocumentAI::V1::Document::ChunkedDocument::Chunk::ChunkPageSpan](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-document_ai-v1/latest/Google-Cloud-DocumentAI-V1-Document-ChunkedDocument-Chunk-ChunkPageSpan)) --- Page span of the chunk.
**Returns**

- ([::Google::Cloud::DocumentAI::V1::Document::ChunkedDocument::Chunk::ChunkPageSpan](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-document_ai-v1/latest/Google-Cloud-DocumentAI-V1-Document-ChunkedDocument-Chunk-ChunkPageSpan)) --- Page span of the chunk.

### #source_block_ids

    def source_block_ids() -> ::Array<::String>

**Returns**

- (::Array\<::String\>) --- Unused.

### #source_block_ids=

    def source_block_ids=(value) -> ::Array<::String>

**Parameter**

- **value** (::Array\<::String\>) --- Unused.
**Returns**

- (::Array\<::String\>) --- Unused.